瀏覽代碼

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

cgp 1 周之前
父節點
當前提交
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: {
         realName: "",
         phone: "",
+        noEncryptPhone: "",
         provinceId: null,
         cityId: null,
         districtId: null,
@@ -1847,6 +1848,14 @@ export default {
       });
     },
     handleCreateOrder(row) {
+      //调用获取详情接口进行回填
+      getCustomer(row.id).then((res) => {
+        if (res.data.noEncryptPhone==null){
+          alert("回填号码异常,请手动填写");
+        }else {
+          this.createOrderForm.phone=res.data.noEncryptPhone;
+        }
+      });
       this.createOrderReset();
       this.createOrder.open = true;
       this.createOrderForm.companyCustomerId = row.id;