|
@@ -180,7 +180,7 @@
|
|
|
<el-input
|
|
<el-input
|
|
|
clearable
|
|
clearable
|
|
|
v-model="addForm.supplierName"
|
|
v-model="addForm.supplierName"
|
|
|
- @click.native="handParent"
|
|
|
|
|
|
|
+ @click.native="handParent()"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
readonly
|
|
readonly
|
|
|
/>
|
|
/>
|
|
@@ -332,13 +332,14 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</div></template
|
|
</div></template
|
|
|
> -->
|
|
> -->
|
|
|
- <template v-slot:num="{ row }">
|
|
|
|
|
|
|
+ <template v-slot:num="{ row, $index }">
|
|
|
<div>
|
|
<div>
|
|
|
<el-input
|
|
<el-input
|
|
|
type="text"
|
|
type="text"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
v-model="row.num"
|
|
v-model="row.num"
|
|
|
@input="setValue"
|
|
@input="setValue"
|
|
|
|
|
+ @click.native="addContactName(row, $index)"
|
|
|
>
|
|
>
|
|
|
<template v-if="row.unitName" slot="append">
|
|
<template v-if="row.unitName" slot="append">
|
|
|
<div>{{ row.unitName }}</div>
|
|
<div>{{ row.unitName }}</div>
|
|
@@ -368,7 +369,6 @@
|
|
|
? '17'
|
|
? '17'
|
|
|
: '19'
|
|
: '19'
|
|
|
"
|
|
"
|
|
|
- :code="getCode()"
|
|
|
|
|
ref="parentListRef"
|
|
ref="parentListRef"
|
|
|
@changeParent="changeParent"
|
|
@changeParent="changeParent"
|
|
|
>
|
|
>
|
|
@@ -690,10 +690,21 @@
|
|
|
await this.getOrderDetials(data.id);
|
|
await this.getOrderDetials(data.id);
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
|
},
|
|
},
|
|
|
- handParent() {
|
|
|
|
|
- this.$refs.parentListRef.open();
|
|
|
|
|
|
|
+ handParent(code) {
|
|
|
|
|
+ if (code != '09') {
|
|
|
|
|
+ this.currentIndex = '';
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs.parentListRef.open(code || this.getCode());
|
|
|
},
|
|
},
|
|
|
changeParent(data) {
|
|
changeParent(data) {
|
|
|
|
|
+ if (this.currentIndex || this.currentIndex === 0) {
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.addForm.detailList[this.currentIndex],
|
|
|
|
|
+ 'num',
|
|
|
|
|
+ data.name
|
|
|
|
|
+ );
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
this.addForm.contactName = data.name;
|
|
this.addForm.contactName = data.name;
|
|
|
this.addForm.contactId = data.id;
|
|
this.addForm.contactId = data.id;
|
|
|
this.addForm.supplierName = data.name;
|
|
this.addForm.supplierName = data.name;
|
|
@@ -732,6 +743,12 @@
|
|
|
return '';
|
|
return '';
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ addContactName(row, index) {
|
|
|
|
|
+ if (row.paramValue == '运输单位') {
|
|
|
|
|
+ this.currentIndex = index;
|
|
|
|
|
+ this.handParent('09');
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
// 获取工单详情
|
|
// 获取工单详情
|
|
|
async getOrderDetials(id) {
|
|
async getOrderDetials(id) {
|
|
|
try {
|
|
try {
|