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