Pārlūkot izejas kodu

收货地址bug修复

chenrui 3 gadi atpakaļ
vecāks
revīzija
a9feeab9f6

+ 3 - 1
src/views/salesManagement/salesQuery/chooseCustomModal.vue

@@ -29,7 +29,7 @@
             placeholder="请选择支付方式"></v-select>
         </a-form-model-item>
         <a-form-model-item prop="consigneeTel">
-          <span slot="label"><i style="color: red;">*</i> 收货地址</span>
+          <span slot="label">收货地址</span>
           {{ chooseAddr }}
           <a-button type="link" :disabled="!form.buyerSn" id="chooseCustom-chooseAddr" @click="handleChoose">{{ addressVal }} >></a-button>
         </a-form-model-item>
@@ -157,6 +157,8 @@ export default {
       this.form.consigneeName = data.consigneeName
       this.addressId = data.id || undefined
       this.openAddrModal = false
+      // 移除表单项的校验结果
+      this.$refs.ruleForm.clearValidate('consigneeTel')
     },
     verifyFun (id) {
       if (id == this.addressId) {