|
|
@@ -69,15 +69,8 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="客户级别:" prop="level">
|
|
|
- <DictSelection
|
|
|
- dictName="供应商级别"
|
|
|
- disabled
|
|
|
- clearable
|
|
|
- v-model="form.contractInfo.level"
|
|
|
- placeholder=" "
|
|
|
- >
|
|
|
- </DictSelection>
|
|
|
+ <el-form-item label="报修地址:" prop="level">
|
|
|
+ <el-input v-model="form.contactAddress" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -128,7 +121,6 @@
|
|
|
>
|
|
|
<el-input
|
|
|
v-model="row.typeDescribe"
|
|
|
-
|
|
|
:disabled="type == 'view'"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -137,14 +129,13 @@
|
|
|
<el-form-item :prop="`tableList.${$index}.useLocation`">
|
|
|
<el-input
|
|
|
v-model="row.useLocation"
|
|
|
-
|
|
|
:disabled="type == 'view'"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
- <template v-slot:attachmentsArray="{ row }">
|
|
|
+ <template v-slot:attachments="{ row }">
|
|
|
<fileMain
|
|
|
- v-model="row.attachmentsArray"
|
|
|
+ v-model="row.attachments"
|
|
|
:type="type == 'view' ? 'view' : 'add'"
|
|
|
></fileMain>
|
|
|
</template>
|
|
|
@@ -191,16 +182,48 @@
|
|
|
v-model="row.contactPhone"
|
|
|
placeholder="请输入"
|
|
|
:disabled="type == 'view'"
|
|
|
- maxlength="50"
|
|
|
></el-input>
|
|
|
</template>
|
|
|
-
|
|
|
+ <template v-slot:post="{ row }">
|
|
|
+ <el-input
|
|
|
+ v-model="row.post"
|
|
|
+ placeholder="请输入"
|
|
|
+ :disabled="type == 'view'"
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
+ <template v-slot:telephone="{ row }">
|
|
|
+ <el-input
|
|
|
+ v-model="row.telephone"
|
|
|
+ placeholder="请输入"
|
|
|
+ :disabled="type == 'view'"
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
+ <template v-slot:email="{ row }">
|
|
|
+ <el-input
|
|
|
+ v-model="row.email"
|
|
|
+ placeholder="请输入"
|
|
|
+ :disabled="type == 'view'"
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
+ <template v-slot:wechat="{ row }">
|
|
|
+ <el-input
|
|
|
+ v-model="row.wechat"
|
|
|
+ placeholder="请输入"
|
|
|
+ :disabled="type == 'view'"
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
+ <template v-slot:deptName="{ row }">
|
|
|
+ <el-input
|
|
|
+ v-model="row.deptName"
|
|
|
+ placeholder="请输入"
|
|
|
+ :disabled="type == 'view'"
|
|
|
+ ></el-input>
|
|
|
+ </template>
|
|
|
<template v-slot:remark="{ row }">
|
|
|
<el-input
|
|
|
v-model="row.remark"
|
|
|
placeholder="请输入"
|
|
|
:disabled="type == 'view'"
|
|
|
- maxlength="50"
|
|
|
></el-input>
|
|
|
</template>
|
|
|
</ele-pro-table>
|
|
|
@@ -258,7 +281,37 @@
|
|
|
slot: 'contactPhone',
|
|
|
align: 'center'
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '电话',
|
|
|
+ prop: 'telephone',
|
|
|
+ slot: 'telephone',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
|
|
|
+ {
|
|
|
+ label: '微信号',
|
|
|
+ prop: 'wechat',
|
|
|
+ slot: 'wechat',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '邮箱',
|
|
|
+ prop: 'email',
|
|
|
+ slot: 'email',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '部门',
|
|
|
+ prop: 'deptName',
|
|
|
+ slot: 'deptName',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '职务',
|
|
|
+ prop: 'post',
|
|
|
+ slot: 'post',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
{
|
|
|
label: '备注',
|
|
|
prop: 'remark',
|
|
|
@@ -330,7 +383,7 @@
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
|
formatter: (_row, _column, cellValue) => {
|
|
|
- return _row.warrantyStatus==1?'质保期外':"质保期内"
|
|
|
+ return _row.warrantyStatus == 1 ? '质保期外' : '质保期内';
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -371,14 +424,14 @@
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
- {
|
|
|
- prop: 'useLocation',
|
|
|
- label: '使用地点',
|
|
|
- align: 'center',
|
|
|
- slot: 'useLocation',
|
|
|
- showOverflowTooltip: true,
|
|
|
- width: 200
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // prop: 'useLocation',
|
|
|
+ // label: '使用地点',
|
|
|
+ // align: 'center',
|
|
|
+ // slot: 'useLocation',
|
|
|
+ // showOverflowTooltip: true,
|
|
|
+ // width: 200
|
|
|
+ // },
|
|
|
{
|
|
|
prop: 'type',
|
|
|
slot: 'type',
|
|
|
@@ -396,8 +449,8 @@
|
|
|
width: 400
|
|
|
},
|
|
|
{
|
|
|
- prop: 'attachmentsArray',
|
|
|
- slot: 'attachmentsArray',
|
|
|
+ prop: 'attachments',
|
|
|
+ slot: 'attachments',
|
|
|
label: '附件',
|
|
|
align: 'center',
|
|
|
width: 120
|
|
|
@@ -413,8 +466,10 @@
|
|
|
this.$set(this.form, 'orderCode', res.orderCode);
|
|
|
this.$set(this.form, 'orderId', res.orderId);
|
|
|
this.$set(this.form, 'contactInfoVOS', res.contactInfoVOS);
|
|
|
-
|
|
|
- this.contactDetail(res.contactId);
|
|
|
+ if (res.contactAddress) {
|
|
|
+ this.$set(this.form, 'contactAddress', res.contactAddress);
|
|
|
+ }
|
|
|
+ this.contactDetail(res.contactId, 'init');
|
|
|
},
|
|
|
getValue() {
|
|
|
return this.form;
|
|
|
@@ -429,15 +484,37 @@
|
|
|
this.contactDetail(res.id);
|
|
|
},
|
|
|
//客户回调
|
|
|
- async contactDetail(id) {
|
|
|
+ async contactDetail(id, type) {
|
|
|
if (!id) {
|
|
|
this.contractInfo = {};
|
|
|
return;
|
|
|
}
|
|
|
- let { base } = await contactDetail(id);
|
|
|
+ let { base, other, linkList } = await contactDetail(id);
|
|
|
base.contactName = base.name;
|
|
|
- base.level = base.level && base.level + '';
|
|
|
+ let addressName = '';
|
|
|
+ if (other.addressName) {
|
|
|
+ addressName += other.addressName;
|
|
|
+ }
|
|
|
+ if (other.address) {
|
|
|
+ addressName += other.address;
|
|
|
+ }
|
|
|
+
|
|
|
this.$set(this.form, 'contractInfo', base);
|
|
|
+
|
|
|
+ if (type != 'init') {
|
|
|
+ this.$set(this.form, 'contactAddress', addressName);
|
|
|
+ this.$set(
|
|
|
+ this.form,
|
|
|
+ 'contactInfoVOS',
|
|
|
+ linkList.map((item) => {
|
|
|
+ item['contactName'] = item.linkName;
|
|
|
+ item['contactPhone'] = item.mobilePhone;
|
|
|
+ item['telephone'] = item.phone;
|
|
|
+ return item;
|
|
|
+ })
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
// this.contractInfo = base;
|
|
|
},
|
|
|
//发货单选择
|