|
|
|
@ -547,7 +547,7 @@
|
|
|
|
|
<view class="u-p-l-20 u-p-r-20 form-item-box">
|
|
|
|
|
<u-form-item v-if="judgeShow('contractlcommodityList-inventoryUnitId')"
|
|
|
|
|
:required="requiredList['contractlcommodityList-inventoryUnitId']" label="库存单位">
|
|
|
|
|
<u-input v-model="dataForm.contractLCommodityList[i].inventoryUnitId"
|
|
|
|
|
<u-input :value="getProductUnitName(dataForm.contractLCommodityList[i].inventoryUnitId)"
|
|
|
|
|
:disabled="judgeWrite('contractLCommodityList')||judgeWrite('contractlcommodityList-inventoryUnitId')"
|
|
|
|
|
@change="changeData('contractlcommodity-inventoryUnitId',i)" input-align='right'
|
|
|
|
|
clearable placeholder="请输入" :style='{"width":"100%"}' readonly>
|
|
|
|
@ -845,6 +845,7 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
getPopSelect,
|
|
|
|
|
getDictionaryDataSelector,
|
|
|
|
|
getDataInterfaceRes,
|
|
|
|
|
getDefaultCurrentValueUserId,
|
|
|
|
@ -1573,7 +1574,13 @@
|
|
|
|
|
fieldName: "业务线ID",
|
|
|
|
|
id: "R00Zh32",
|
|
|
|
|
required: 0
|
|
|
|
|
}]
|
|
|
|
|
}],
|
|
|
|
|
optionsProductUnit: [],
|
|
|
|
|
listQuery: {
|
|
|
|
|
keyword: "",
|
|
|
|
|
currentPage: 1,
|
|
|
|
|
pageSize: 100000
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad(option) {
|
|
|
|
@ -1745,7 +1752,6 @@
|
|
|
|
|
onReady() {
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
console.log(this.rules)
|
|
|
|
|
this.$refs.dataForm.setRules(this.rules);
|
|
|
|
|
}, 100)
|
|
|
|
|
})
|
|
|
|
@ -1762,6 +1768,35 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getApiProductUnit() {
|
|
|
|
|
let interfaceId = "522684730601111557";
|
|
|
|
|
let query = {
|
|
|
|
|
...this.listQuery
|
|
|
|
|
};
|
|
|
|
|
getPopSelect(interfaceId, query)
|
|
|
|
|
.then(res => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
let optionsProductUnit = [];
|
|
|
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
|
|
|
optionsProductUnit.push({
|
|
|
|
|
fullName: res.data.list[i]["unit_name"],
|
|
|
|
|
id: res.data.list[i]["product_unit_code"]
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.optionsProductUnit = optionsProductUnit;
|
|
|
|
|
this.contractlcommodityprocureUnitOptions = optionsProductUnit;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
getProductUnitName(id) {
|
|
|
|
|
let fArr = this.optionsProductUnit.filter(o1 => {
|
|
|
|
|
return o1.id == id;
|
|
|
|
|
});
|
|
|
|
|
if (fArr.length > 0) {
|
|
|
|
|
return fArr[0]["fullName"];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleAction(index) {
|
|
|
|
|
if (this.actionList[index].id === 'save_add' || this.actionList[index].id === 'save_proceed') {
|
|
|
|
|
this.submitForm(1)
|
|
|
|
@ -1884,6 +1919,7 @@
|
|
|
|
|
this.getcontractlpaymentpaymentNodeOptions()
|
|
|
|
|
this.getcontractlpaymentpaymentMethodOptions()
|
|
|
|
|
this.collapse()
|
|
|
|
|
this.getApiProductUnit()
|
|
|
|
|
},
|
|
|
|
|
dateTime(timeRule, timeType, timeTarget, timeValueData, dataValue) {
|
|
|
|
|
let timeDataValue = null;
|
|
|
|
|