Просмотр исходного кода

客户信息表详情增加明文回显

cgp 1 неделя назад
Родитель
Сommit
94c0f73745
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      src/views/qw/companyCustomer/index.vue

+ 9 - 0
src/views/qw/companyCustomer/index.vue

@@ -1347,6 +1347,7 @@ export default {
       createOrderForm: {
       createOrderForm: {
         realName: "",
         realName: "",
         phone: "",
         phone: "",
+        noEncryptPhone: "",
         provinceId: null,
         provinceId: null,
         cityId: null,
         cityId: null,
         districtId: null,
         districtId: null,
@@ -1847,6 +1848,14 @@ export default {
       });
       });
     },
     },
     handleCreateOrder(row) {
     handleCreateOrder(row) {
+      //调用获取详情接口进行回填
+      getCustomer(row.id).then((res) => {
+        if (res.data.noEncryptPhone==null){
+          alert("回填号码异常,请手动填写");
+        }else {
+          this.createOrderForm.phone=res.data.noEncryptPhone;
+        }
+      });
       this.createOrderReset();
       this.createOrderReset();
       this.createOrder.open = true;
       this.createOrder.open = true;
       this.createOrderForm.companyCustomerId = row.id;
       this.createOrderForm.companyCustomerId = row.id;