|
|
@ -4,7 +4,9 @@ |
|
|
|
|
|
|
|
<view class="item"> |
|
|
|
<text class="item_text">合同编号:</text> |
|
|
|
<input v-model="formobj.contractNumber" placeholder="" class="item_input" clearable /> |
|
|
|
<uni-data-select style="flex-grow: 1;" v-model="formobj.contractNumber" :localdata="contractNumber" |
|
|
|
@change="contractNumberChange"></uni-data-select> |
|
|
|
<!-- <input v-model="formobj.contractNumber" placeholder="" class="item_input" clearable /> --> |
|
|
|
</view> |
|
|
|
<view class="item"> |
|
|
|
<text class="item_text" style="margin-left: -9px;">供货商名称:</text> |
|
|
@ -46,7 +48,7 @@ |
|
|
|
</view> |
|
|
|
<view class="item"> |
|
|
|
<text class="item_text">收料价值:</text> |
|
|
|
<input v-model="formobj.value" placeholder=""type="number" @input="input2" class="item_input" |
|
|
|
<input v-model="formobj.value" placeholder="" type="number" @input="input2" class="item_input" |
|
|
|
clearable /> |
|
|
|
</view> |
|
|
|
<view class="item"> |
|
|
@ -88,6 +90,8 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
uploadAction: config.baseUrl + "/file/upload", |
|
|
|
contractNumbers: [], |
|
|
|
contractNumber: [], |
|
|
|
supplierLists: [], |
|
|
|
supplierList: [], |
|
|
|
crudeLists: [], |
|
|
@ -97,6 +101,7 @@ |
|
|
|
imgList: [], |
|
|
|
formobj: { |
|
|
|
sid: "", |
|
|
|
contractNumberSid: "", |
|
|
|
contractNumber: "", |
|
|
|
contractSigningDate: "", |
|
|
|
warehousingDate: "", |
|
|
@ -231,6 +236,13 @@ |
|
|
|
this.formobj.warehousingDate = e |
|
|
|
|
|
|
|
}, |
|
|
|
contractNumberChange(e){ |
|
|
|
console.log('e>>>>>', e); |
|
|
|
const choose = this.contractNumbers.filter((item) => item.sid === e) |
|
|
|
console.log(">>>>>>>>>getType", choose[0]) |
|
|
|
this.formobj.procSid =e |
|
|
|
this.formobj.contractNumber = choose[0].supplierName |
|
|
|
}, |
|
|
|
supplierChange(e) { |
|
|
|
console.log('e>>>>>', e); |
|
|
|
const choose = this.supplierLists.filter((item) => item.sid === e) |
|
|
@ -279,6 +291,22 @@ |
|
|
|
// this.queryParams.type = e |
|
|
|
}, |
|
|
|
initData() { |
|
|
|
// 获取采购订单 数据字典 |
|
|
|
this.$api.procurementList({}).then(res => { |
|
|
|
console.log("contractNumber>>>", res); |
|
|
|
// this.resinfo = res |
|
|
|
this.contractNumbers = res |
|
|
|
this.contractNumber = [] |
|
|
|
for (var i = 0; i < this.contractNumbers.length; i++) { |
|
|
|
let item = { |
|
|
|
"value": this.contractNumbers[i].sid, |
|
|
|
"text": this.contractNumbers[i].orderNumber |
|
|
|
} |
|
|
|
this.contractNumber.push(item) |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
// 获取供货商 数据字典 |
|
|
|
this.$api.supplierList({}).then(res => { |
|
|
|
console.log("supplierList>>>", res); |
|
|
|