|
...
|
...
|
@@ -44,6 +44,16 @@ |
|
|
|
<a-button @click="handleInventoryIn" type="primary" >入库记录</a-button>
|
|
|
|
<a-button @click="handleInventoryOut" type="primary" >出库记录</a-button>
|
|
|
|
<a-button @click="handleInventoryDefective" type="primary" >不良品库</a-button>
|
|
|
|
<a-upload
|
|
|
|
name="file"
|
|
|
|
:showUploadList="false"
|
|
|
|
:multiple="false"
|
|
|
|
:headers="tokenHeader"
|
|
|
|
:action="importExcelUrlBoh"
|
|
|
|
@change="handleImportExcel"
|
|
|
|
>
|
|
|
|
<a-button type="primary" icon="import">更新BOH</a-button>
|
|
|
|
</a-upload>
|
|
|
|
<!-- 高级查询区域 -->
|
|
|
|
<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> -->
|
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
...
|
...
|
@@ -95,9 +105,10 @@ |
|
|
|
</template>
|
|
|
|
|
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
|
<a @click="handleInventoryInfoIn(record)">入库</a>  
|
|
|
|
<a @click="handleInventoryInfoOut(record)">出库</a>  
|
|
|
|
<a @click="handleInventoryInfo(record)">库存明细</a>
|
|
|
|
<a @click="handleInventoryInfoIn(record)">入库</a>
|
|
|
|
<a @click="handleInventoryInfoOut(record)">出库</a>
|
|
|
|
<a @click="handleInventoryInfo(record)">库存明细</a>
|
|
|
|
<a @click="updateInventoryBoh(record)">更新BOH</a>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</a-table>
|
|
...
|
...
|
@@ -145,7 +156,7 @@ |
|
|
|
@ok="handleCancelInfo"
|
|
|
|
@cancel="handleCancelInfo"
|
|
|
|
cancelText="关闭">
|
|
|
|
<TblTradeInventoryInfoList :materialCode="meterialCode"></TblTradeInventoryInfoList>
|
|
|
|
<TblTradeInventoryInfoList :materialCode="materialCode"></TblTradeInventoryInfoList>
|
|
|
|
</j-modal>
|
|
|
|
|
|
|
|
|
|
...
|
...
|
@@ -175,9 +186,9 @@ |
|
|
|
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="meterialCode">
|
|
|
|
<a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialCode">
|
|
|
|
<a-input
|
|
|
|
v-model="model.meterialCode"
|
|
|
|
v-model="model.materialCode"
|
|
|
|
placeholder="请输入物料编码"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
...
|
...
|
@@ -197,9 +208,9 @@ |
|
|
|
<!-- <a >查询</a>-->
|
|
|
|
<!-- </a-col>-->
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="meterialReview">
|
|
|
|
<a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialReview">
|
|
|
|
<a-input
|
|
|
|
v-model="model.meterialReview"
|
|
|
|
v-model="model.materialReview"
|
|
|
|
placeholder="请输入物料长描述"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
...
|
...
|
@@ -323,9 +334,9 @@ |
|
|
|
<a-form-model ref="form" :model="model2" :rules="validatorOutRules" slot="detail">
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="meterialCode">
|
|
|
|
<a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialCode">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.meterialCode"
|
|
|
|
v-model="model2.materialCode"
|
|
|
|
placeholder="请输入物料编码"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
...
|
...
|
@@ -342,9 +353,9 @@ |
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="meterialReview">
|
|
|
|
<a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialReview">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.meterialReview"
|
|
|
|
v-model="model2.materialReview"
|
|
|
|
placeholder="请输入物料长描述"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
...
|
...
|
@@ -422,6 +433,82 @@ |
|
|
|
</a-spin>
|
|
|
|
|
|
|
|
</j-modal>
|
|
|
|
<j-modal
|
|
|
|
:title="title"
|
|
|
|
:width="width"
|
|
|
|
:visible="visibleBoh"
|
|
|
|
switchFullscreen
|
|
|
|
@ok="handleOkBohInfo"
|
|
|
|
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
|
|
|
|
@cancel="handleCancelBoh"
|
|
|
|
cancelText="关闭">
|
|
|
|
|
|
|
|
<a-spin :spinning="confirmLoading">
|
|
|
|
<j-form-container :disabled="formDisabled">
|
|
|
|
<a-form-model ref="form" :model="model2" :rules="validatorRules" slot="detail">
|
|
|
|
<a-row>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialCode">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.materialCode"
|
|
|
|
placeholder="请输入物料编码"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="物料长描述" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialReview">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.materialReview"
|
|
|
|
placeholder="请输入物料长描述"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="unit">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.unit"
|
|
|
|
placeholder="请输入单位"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="品牌" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="brand">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.brand"
|
|
|
|
placeholder="请输入品牌"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="实际库存量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="actualInventory">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.actualInventory"
|
|
|
|
placeholder="请输入入库数量"
|
|
|
|
disabled="disabled"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
<a-col :span="12">
|
|
|
|
<a-form-model-item label="BOH" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="inventoryBoh">
|
|
|
|
<a-input
|
|
|
|
v-model="model2.inventoryBoh"
|
|
|
|
placeholder="请输入BOH"
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-col>
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
</a-form-model>
|
|
|
|
</j-form-container>
|
|
|
|
</a-spin>
|
|
|
|
|
|
|
|
</j-modal>
|
|
|
|
|
|
|
|
|
|
|
|
</a-card>
|
|
|
|
</template>
|
|
|
|
|
|
...
|
...
|
@@ -471,12 +558,12 @@ |
|
|
|
{
|
|
|
|
title:'物料编码',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'meterialCode'
|
|
|
|
dataIndex: 'materialCode'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'物料长描述',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'meterialReview'
|
|
|
|
dataIndex: 'materialReview'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'计量单位',
|
|
...
|
...
|
@@ -489,6 +576,11 @@ |
|
|
|
dataIndex: 'brand'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'BOH',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'inventoryBoh'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'实际库存量',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'actualInventory'
|
|
...
|
...
|
@@ -498,11 +590,11 @@ |
|
|
|
align:"center",
|
|
|
|
dataIndex: 'quantityInTransit'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'总数量',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'totalQuantity'
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// title:'总数量',
|
|
|
|
// align:"center",
|
|
|
|
// dataIndex: 'totalQuantity'
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// title:'单价(不含税,元)',
|
|
|
|
// align:"center",
|
|
...
|
...
|
@@ -557,6 +649,8 @@ |
|
|
|
deleteBatch: "/trade/tblTradeInventory/deleteBatch",
|
|
|
|
exportXlsUrl: "/trade/tblTradeInventory/exportXls",
|
|
|
|
importExcelUrl: "trade/tblTradeInventory/importExcel",
|
|
|
|
importExcelUrlBoh: 'trade/tblTradeInventory/importExcelBoh',
|
|
|
|
updateBoh: '/trade/tblTradeInventory/updateBoh'
|
|
|
|
|
|
|
|
},
|
|
|
|
dictOptions:{},
|
|
...
|
...
|
@@ -569,8 +663,8 @@ |
|
|
|
model2: {
|
|
|
|
|
|
|
|
},
|
|
|
|
meterialCode:'',
|
|
|
|
meterialReview:'',
|
|
|
|
materialCode:'',
|
|
|
|
materialReview:'',
|
|
|
|
unit:'',
|
|
|
|
brand:'',
|
|
|
|
width:896,
|
|
...
|
...
|
@@ -581,6 +675,7 @@ |
|
|
|
visibleInfo:false,
|
|
|
|
visibleInfoIn:false,
|
|
|
|
visibleInfoOut:false,
|
|
|
|
visibleBoh:false,
|
|
|
|
disableSubmit: false,
|
|
|
|
title: '入库',
|
|
|
|
titleOut: '出库',
|
|
...
|
...
|
@@ -593,9 +688,9 @@ |
|
|
|
sm: { span: 16 },
|
|
|
|
},
|
|
|
|
validatorRules: {
|
|
|
|
meterialCode: [{ required: true, message: '请输入物料编码!' },],
|
|
|
|
materialCode: [{ required: true, message: '请输入物料编码!' },],
|
|
|
|
hth: [{ required: true, message: '请输入合同/订单号!' },],
|
|
|
|
meterialReview: [{ required: true, message: '请输入物料长描述!' },],
|
|
|
|
materialReview: [{ required: true, message: '请输入物料长描述!' },],
|
|
|
|
wldh: [{ required: true, message: '请输入物流单号!' },],
|
|
|
|
unit: [{ required: true, message: '请输入单位!' },],
|
|
|
|
// iszt: [{ required: true, message: '请选择是否在途!' },],
|
|
...
|
...
|
@@ -606,9 +701,9 @@ |
|
|
|
operator: [{ required: true, message: '请输入采购员!' },],
|
|
|
|
},
|
|
|
|
validatorOutRules: {
|
|
|
|
meterialCode: [{ required: true, message: '请输入物料编码!' },],
|
|
|
|
materialCode: [{ required: true, message: '请输入物料编码!' },],
|
|
|
|
expressDeliveryNumber: [{ required: true, message: '请输入供应商合同号/订单号!' },],
|
|
|
|
meterialReview: [{ required: true, message: '请输入物料长描述!' },],
|
|
|
|
materialReview: [{ required: true, message: '请输入物料长描述!' },],
|
|
|
|
deliveryContractNumber: [{ required: true, message: '请输入中标合同编号!' },],
|
|
|
|
unit: [{ required: true, message: '请输入单位!' },],
|
|
|
|
demandUnit: [{ required: true, message: '请输入需求单位!' },],
|
|
...
|
...
|
@@ -631,6 +726,9 @@ |
|
|
|
importExcelUrl: function(){
|
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
|
|
|
|
},
|
|
|
|
importExcelUrlBoh: function(){
|
|
|
|
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrlBoh}`;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
reSeach() {
|
|
...
|
...
|
@@ -647,7 +745,7 @@ |
|
|
|
searchHth(){
|
|
|
|
getAction(this.url.searchHth,{
|
|
|
|
hth: this.model.hth,
|
|
|
|
wlbm: this.model.meterialCode
|
|
|
|
wlbm: this.model.materialCode
|
|
|
|
}).then(res=>{
|
|
|
|
if (res.success){
|
|
|
|
if (res.result.sl == null || res.result.supplier == null || res.result.wldh == null){
|
|
...
|
...
|
@@ -672,15 +770,22 @@ |
|
|
|
handleInventoryDefective(){
|
|
|
|
this.visibleDefective = true;
|
|
|
|
},
|
|
|
|
updateInventoryBoh(recode){
|
|
|
|
console.log("..............",recode)
|
|
|
|
this.model2= {}
|
|
|
|
this.model2 = recode;
|
|
|
|
this.model2.materialDescription = recode.materialReview;
|
|
|
|
this.visibleBoh = true;
|
|
|
|
},
|
|
|
|
handleInventoryInfo(recode){
|
|
|
|
this.meterialCode = recode.meterialCode;
|
|
|
|
this.materialCode = recode.materialCode;
|
|
|
|
this.visibleInfo = true;
|
|
|
|
},
|
|
|
|
handleInventoryInfoIn(recode){
|
|
|
|
this.model = {}
|
|
|
|
console.log(recode)
|
|
|
|
this.model.meterialCode = recode.meterialCode;
|
|
|
|
this.model.meterialReview = recode.meterialReview;
|
|
|
|
this.model.materialCode = recode.materialCode;
|
|
|
|
this.model.materialReview = recode.materialReview;
|
|
|
|
this.model.unit = recode.unit;
|
|
|
|
this.model.brand = recode.brand;
|
|
|
|
this.visibleInfoIn = true;
|
|
...
|
...
|
@@ -688,8 +793,8 @@ |
|
|
|
handleInventoryInfoOut(recode){
|
|
|
|
this.model2= {}
|
|
|
|
console.log("..............",recode)
|
|
|
|
this.model2.meterialCode = recode.meterialCode;
|
|
|
|
this.model2.meterialReview = recode.meterialReview;
|
|
|
|
this.model2.materialCode = recode.materialCode;
|
|
|
|
this.model2.materialReview = recode.materialReview;
|
|
|
|
this.model2.unit = recode.unit;
|
|
|
|
this.model2.brand = recode.brand;
|
|
|
|
this.visibleInfoOut = true;
|
|
...
|
...
|
@@ -709,8 +814,8 @@ |
|
|
|
},
|
|
|
|
// 出库页面确认
|
|
|
|
handleOkInfoOut(){
|
|
|
|
this.model2.materialCode = this.model2.meterialCode
|
|
|
|
this.model2.materialDescription = this.model2.meterialReview
|
|
|
|
this.model2.materialCode = this.model2.materialCode
|
|
|
|
this.model2.materialDescription = this.model2.materialReview
|
|
|
|
this.model2.measurementUnit = this.model2.unit
|
|
|
|
postAction(this.url.out,this.model2).then(res=>{
|
|
|
|
this.reSeach();
|
|
...
|
...
|
@@ -726,16 +831,33 @@ |
|
|
|
handleCancelInfoOut(){
|
|
|
|
this.reSeach();
|
|
|
|
this.visibleInfoOut = false
|
|
|
|
},
|
|
|
|
handleOkBohInfo(){
|
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
|
if (valid){
|
|
|
|
postAction(this.url.updateBoh,this.model2).then(res=>{
|
|
|
|
this.reSeach();
|
|
|
|
if (res.success){
|
|
|
|
this.$message.success("更新成功")
|
|
|
|
}else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
,
|
|
|
|
})
|
|
|
|
console.log("提交表单内容")
|
|
|
|
this.visibleBoh = false
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
handleCancelBoh(){
|
|
|
|
this.visibleBoh = false;
|
|
|
|
this.model2 = {}
|
|
|
|
},
|
|
|
|
handleOkInfoIn(){
|
|
|
|
this.$refs.form.validate((valid) => {
|
|
|
|
if (valid){
|
|
|
|
postAction(this.url.store,{
|
|
|
|
materialCode: this.model.meterialCode, //物料编码
|
|
|
|
materialDescription: this.model.meterialReview, //长描述
|
|
|
|
materialCode: this.model.materialCode, //物料编码
|
|
|
|
materialDescription: this.model.materialReview, //长描述
|
|
|
|
measurementUnit: this.model.unit, //单位
|
|
|
|
brand: this.model.brand,//品牌
|
|
|
|
hth: this.model.hth, //合同号
|
|
...
|
...
|
@@ -783,8 +905,8 @@ |
|
|
|
},
|
|
|
|
getSuperFieldList(){
|
|
|
|
let fieldList=[];
|
|
|
|
fieldList.push({type:'string',value:'meterialCode',text:'物料编码',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'meterialReview',text:'物料长描述',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'materialCode',text:'物料编码',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'materialReview',text:'物料长描述',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'unit',text:'单位',dictCode:''})
|
|
|
|
fieldList.push({type:'string',value:'brand',text:'品牌',dictCode:''})
|
|
|
|
fieldList.push({type:'int',value:'actualInventory',text:'实际库存量',dictCode:''})
|
...
|
...
|
|