Преглед изворни кода

协议调度增加是否默认功能

祁鹏飞 пре 3 недеља
родитељ
комит
491ec7d86b
1 измењених фајлова са 8 додато и 2 уклоњено
  1. 8 2
      src/views/quoteConfig/dispatch/components/rule.vue

+ 8 - 2
src/views/quoteConfig/dispatch/components/rule.vue

@@ -140,9 +140,13 @@
         <!-- 指定报价协议 -->
         <el-form-item prop="formdata.actionJson[0].agreementId" class="form-item">
           <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-select>
+          <span>是否默认:</span>
+          <el-switch v-model="formData.isDefault" :active-value="1" :inactive-value="0">
+          </el-switch>
         </el-form-item>
 
         <!-- 对接人变更方式选择 -->
@@ -267,6 +271,7 @@ const formData = ref<{
       accountId: string; // 选择账号-账号ID
     }
   ];
+  isDefault: number;
 }>({
   actionJson: [
     {
@@ -305,6 +310,7 @@ const formData = ref<{
       ],
     },
   ],
+  isDefault: 0
 });
 const selectprops = {
   value: 'id',
@@ -456,7 +462,7 @@ const getConditionType = (conditionValue: 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)
   domain.max = null;
   domain.operator = "";