|
|
@@ -164,7 +164,8 @@
|
|
|
<text class="input-label">值</text>
|
|
|
|
|
|
<input class="item-input" v-model="item.num" type="text" placeholder="请输入数量"
|
|
|
- @input="setValue" :disabled="title == '详情'" />
|
|
|
+ @input="setValue" @click.native="addContactName(item,idx)"
|
|
|
+ :disabled="title == '详情'" />
|
|
|
</view>
|
|
|
<view class="item-row-input" v-if="pageName == 'qualityTestRecords'">
|
|
|
<text class="input-label">执行人</text>
|
|
|
@@ -377,6 +378,14 @@
|
|
|
uni.$off("setSelectList");
|
|
|
uni.$on("setSelectList", (data) => {
|
|
|
if (data && data.length > 0) {
|
|
|
+ if (this.currentIndex || this.currentIndex === 0) {
|
|
|
+ this.$set(
|
|
|
+ this.form.detailList[this.currentIndex],
|
|
|
+ 'num',
|
|
|
+ data[0].name
|
|
|
+ );
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.form.contactName = data[0].name;
|
|
|
this.form.contactId = data[0].id;
|
|
|
this.form.supplierName = data[0].name;
|
|
|
@@ -429,14 +438,23 @@
|
|
|
});
|
|
|
this.classificationList = treeList;
|
|
|
},
|
|
|
- selectContactShow(type) {
|
|
|
+ selectContactShow(type, code) {
|
|
|
+ if (code != '09') {
|
|
|
+ this.currentIndex = '';
|
|
|
+ }
|
|
|
uni.navigateTo({
|
|
|
url: "/pages/saleManage/components/selectContact?isAll=" +
|
|
|
false +
|
|
|
"&contactType=" +
|
|
|
- type + '&code=' + this.getCode(),
|
|
|
+ type + '&code=' + (code || this.getCode()),
|
|
|
});
|
|
|
},
|
|
|
+ addContactName(row, index) {
|
|
|
+ if (row.paramValue == '运输单位' || row.paramValue == '收货单位') {
|
|
|
+ this.currentIndex = index;
|
|
|
+ this.selectContactShow(19, '09');
|
|
|
+ }
|
|
|
+ },
|
|
|
confirmProductLine(e) {
|
|
|
this.form.productLineId = e.value[0].value;
|
|
|
this.form.productLineName = e.value[0].label;
|
|
|
@@ -691,6 +709,7 @@
|
|
|
return Promise.all(PromiseAll)
|
|
|
|
|
|
},
|
|
|
+
|
|
|
setValue() {
|
|
|
if (this.title == '报工') {
|
|
|
this.form.detailList.forEach((item, index) => {
|