|
@@ -140,9 +140,13 @@
|
|
|
<!-- 指定报价协议 -->
|
|
<!-- 指定报价协议 -->
|
|
|
<el-form-item prop="formdata.actionJson[0].agreementId" class="form-item">
|
|
<el-form-item prop="formdata.actionJson[0].agreementId" class="form-item">
|
|
|
<span>指定报价协议:</span>
|
|
<span>指定报价协议:</span>
|
|
|
- <el-select v-model="formData.actionJson[0].agreementId" placeholder="选择报价协议" style="width: 240px" clearable>
|
|
|
|
|
|
|
+ <el-select class="mr-50px" v-model="formData.actionJson[0].agreementId" placeholder="选择报价协议"
|
|
|
|
|
+ style="width: 240px" clearable>
|
|
|
<el-option v-for="item in agreementList" :key="item.id" :label="item.agreementName" :value="item.id" />
|
|
<el-option v-for="item in agreementList" :key="item.id" :label="item.agreementName" :value="item.id" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
|
|
+ <span>是否默认:</span>
|
|
|
|
|
+ <el-switch v-model="formData.isDefault" :active-value="1" :inactive-value="0">
|
|
|
|
|
+ </el-switch>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<!-- 对接人变更方式选择 -->
|
|
<!-- 对接人变更方式选择 -->
|
|
@@ -267,6 +271,7 @@ const formData = ref<{
|
|
|
accountId: string; // 选择账号-账号ID
|
|
accountId: string; // 选择账号-账号ID
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|
|
|
|
|
+ isDefault: number;
|
|
|
}>({
|
|
}>({
|
|
|
actionJson: [
|
|
actionJson: [
|
|
|
{
|
|
{
|
|
@@ -305,6 +310,7 @@ const formData = ref<{
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
|
|
+ isDefault: 0
|
|
|
});
|
|
});
|
|
|
const selectprops = {
|
|
const selectprops = {
|
|
|
value: 'id',
|
|
value: 'id',
|
|
@@ -456,7 +462,7 @@ const getConditionType = (conditionValue: string) => {
|
|
|
|
|
|
|
|
// 条件切换时的处理
|
|
// 条件切换时的处理
|
|
|
const handleConditionChange = (domain: ConditionRow, val: string) => {
|
|
const handleConditionChange = (domain: ConditionRow, val: string) => {
|
|
|
- if(getConditionType(domain.attrCode) === 'radio') domain.min=getOptions(domain.attrCode)[0]?.id + ''
|
|
|
|
|
|
|
+ if (getConditionType(domain.attrCode) === 'radio') domain.min = getOptions(domain.attrCode)[0]?.id + ''
|
|
|
const target = dispatchList.value.find((item: any) => item.attrCode == val)
|
|
const target = dispatchList.value.find((item: any) => item.attrCode == val)
|
|
|
domain.max = null;
|
|
domain.max = null;
|
|
|
domain.operator = "";
|
|
domain.operator = "";
|
|
@@ -588,6 +594,7 @@ const submit = async () => {
|
|
|
actionJson: {
|
|
actionJson: {
|
|
|
agreementId: actionJson[0].agreementId,
|
|
agreementId: actionJson[0].agreementId,
|
|
|
},
|
|
},
|
|
|
|
|
+ isDefault: formData.value.isDefault
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
];
|
|
];
|
|
@@ -602,6 +609,7 @@ const submit = async () => {
|
|
|
? { name: actionJson[1].name, phone: actionJson[1].phone }
|
|
? { name: actionJson[1].name, phone: actionJson[1].phone }
|
|
|
: { accountId: actionJson[1].accountId }),
|
|
: { accountId: actionJson[1].accountId }),
|
|
|
},
|
|
},
|
|
|
|
|
+ isDefault: formData.value.isDefault
|
|
|
}
|
|
}
|
|
|
actions.push(obj)
|
|
actions.push(obj)
|
|
|
}
|
|
}
|
|
@@ -616,6 +624,7 @@ const submit = async () => {
|
|
|
? { name: actionJson[2].name, phone: actionJson[2].phone }
|
|
? { name: actionJson[2].name, phone: actionJson[2].phone }
|
|
|
: { accountId: actionJson[2].accountId }),
|
|
: { accountId: actionJson[2].accountId }),
|
|
|
},
|
|
},
|
|
|
|
|
+ isDefault: formData.value.isDefault
|
|
|
}
|
|
}
|
|
|
actions.push(obj)
|
|
actions.push(obj)
|
|
|
}
|
|
}
|
|
@@ -845,7 +854,7 @@ onMounted(async () => {
|
|
|
baseFormData.actionJson[0].agreementId =
|
|
baseFormData.actionJson[0].agreementId =
|
|
|
agreementAction.actionJson.agreementId;
|
|
agreementAction.actionJson.agreementId;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ baseFormData.isDefault = agreementAction.isDefault
|
|
|
// 回显对接人信息
|
|
// 回显对接人信息
|
|
|
const linkAction = editData.actions.find(
|
|
const linkAction = editData.actions.find(
|
|
|
(action: any) =>
|
|
(action: any) =>
|