fengdong777 2 years ago
parent
commit
8f424e30df
  1. 32
      warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListAdd.vue

32
warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListAdd.vue

@ -52,10 +52,10 @@
<el-form-item prop="supplier" class="trightb_item">
<el-select v-model="purchaseForm.custerSid" placeholder="请选择" >
<el-option
v-for="(supplier,i) in supplierList"
v-for="(custName,i) in custList"
:key="i"
:label="supplier.name"
:value="supplier.id">
:label="custName.enterpriseName"
:value="custName.sid">
</el-option>
</el-select>
</el-form-item>
@ -122,6 +122,11 @@
</el-select>
</template>
</el-table-column>
<el-table-column label="规格(型号)" width="120" prop="proSid" align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.proSid" placeholder="商品品类" clearable></el-input>
</template>
</el-table-column>
<el-table-column label="规格(型号)" width="120" prop="proModel" align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.proModel" placeholder="商品品类" clearable></el-input>
@ -239,14 +244,16 @@
},
clearList() {
this.purchaseForm={
purchaseId: '',
product: '',
barCode: '',
applicationDate:'',
no:'',
creatorName:'',
storehouseName:'',
storeHouseSid:"",
custerName:'',
custerSid:'',
storehouse: '',
status: '',
list:[]
}
},
@ -256,12 +263,15 @@
this.purchaseForm.storehouseName = v.name
}
})
this.supplierList.forEach((v, i) => {
if(v.name == this.purchaseForm.custerSid){
this.purchaseForm.custerName = v.name
this.purchaseForm.custerSid = v.id
}else if(v.id == this.purchaseForm.custerSid){
this.purchaseForm.custerName = v.name
this.custList.forEach((v, i) => {
// if(v.name == this.purchaseForm.custerSid){
// this.purchaseForm.custerName = v.name
// this.purchaseForm.custerSid = v.id
// }else if(v.id == this.purchaseForm.custerSid){
// this.purchaseForm.custerName = v.name
// }
if(v.sid == this.purchaseForm.custerSid){
this.purchaseForm.custerName = v.enterpriseName
}
})
if (this.viewTitle === "【新增】出库订单") return this.addStorehouse();

Loading…
Cancel
Save