Pārlūkot izejas kodu

fix:发票管理合同校验

ly 10 mēneši atpakaļ
vecāks
revīzija
313bdf90d9
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      src/views/business/invoice/form.vue

+ 4 - 4
src/views/business/invoice/form.vue

@@ -83,9 +83,9 @@
                         <el-col :span="6">
                             <el-form-item label="合同编号:" required>
                                 <el-input tabindex="-1" v-if="editStatus" style="width: 100%" v-model.trim="form.contractNo"
-                                    size="small" type="text" @click="() =>contractChoiceHandler()" placeholder="请选择" :clearable="true">
+                                    size="small" type="text" @click="() =>contractChoiceHandler(this)" placeholder="请选择" :clearable="true">
                                     <template #append>
-                                        <el-button icon="Search" @click="() => contractChoiceHandler()" />
+                                        <el-button icon="Search" @click="() => contractChoiceHandler(this)" />
                                     </template>
                                 </el-input>
                                 <span v-else style="width: 100%">
@@ -651,8 +651,8 @@
             }
         });
     }
-    function contractChoiceHandler() {
-
+    function contractChoiceHandler(input) {
+        form.value.contractNo = null;
         proxy.$refs.contractChoiceRef.open();
     }
     function contractChoiceHandle(info) {