Browse Source

修改客户资料

huangbin 4 years ago
parent
commit
7ef4a719f2

+ 1 - 1
public/config/app.config.json

@@ -1,3 +1,3 @@
 {
-    "apiUrl": "http://103.40.249.127:28280/cfg?key=mtp_20"
+    "apiUrl": "http://218.17.158.45:21001/cfg?key=test_176"
 }

+ 34 - 0
src/views/platinum/platinum_customer_info/compoments/add/index.vue

@@ -23,6 +23,40 @@
             :model="formState"
             :rules="rules">
       <a-row :gutter="24">
+        <a-col :span="24">
+          <a-form-item label="所属机构"
+                       name="areaid">
+            <a-select class="typeSelect"
+                      style="width: 200px"
+                      v-model:value="formState.areaid"
+                      placeholder="请选择所属机构">
+              <a-select-option value="1">
+                个人
+              </a-select-option>
+              <a-select-option value="2">
+                企业
+              </a-select-option>
+            </a-select>
+          </a-form-item>
+        </a-col>
+        <a-col :span="12">
+          <a-form-item label="登录账号"
+                       name="logincode">
+            <a-input class="dialogInput"
+                     v-model:value="formState.logincode"
+                     style="width: 200px"
+                     placeholder="请选择登录账号" />
+          </a-form-item>
+        </a-col>
+        <a-col :span="12">
+          <a-form-item label="登录密码"
+                       name="loginpwd">
+            <a-input class="dialogInput"
+                     v-model:value="formState.loginpwd"
+                     style="width: 200px"
+                     placeholder="请选择登录密码" />
+          </a-form-item>
+        </a-col>
         <a-col :span="12">
           <a-form-item label="客户类型"
                        name="userinfotype">

+ 3 - 0
src/views/platinum/platinum_customer_info/compoments/add/interface.ts

@@ -1,4 +1,7 @@
 export interface FormState {
+    areaid: number | undefined; //所属机构
+    logincode: string // string 登录帐号
+    loginpwd: string  // string 登录密码
     userinfotype: string; //客户类型
     customername: string; //客户名称(企业名称)
     nickname: string; //企业简称

+ 6 - 0
src/views/platinum/platinum_customer_info/compoments/add/setup.ts

@@ -29,6 +29,9 @@ export function handleForm() {
         customername: [{ required: true, message: '请输入企业名称', trigger: 'blur' }],
         nickname: [{ required: true, message: '请输入企业简称', trigger: 'blur' }],
         cardtype: [{ required: true, validator: v_cardtype, trigger: 'change' }],
+        areaid: [{ required: true, message: '请选择所属机构', }],
+        logincode: [{ required: true, message: '请选择登录账号', }],
+        loginpwd: [{ required: true, message: '请选择登录密码', }],
     };
     return { formRef, formState, rules }
 }
@@ -39,6 +42,9 @@ export function handleForm() {
  */
 export function initFormState(): FormState {
     return {
+        areaid: undefined,
+        logincode: '',
+        loginpwd: '',
         userinfotype: '2',
         customername: '',
         nickname: '',

+ 34 - 0
src/views/platinum/platinum_customer_info/compoments/modify/index.vue

@@ -23,6 +23,40 @@
             :model="formState"
             :rules="rules">
       <a-row :gutter="24">
+        <a-col :span="24">
+          <a-form-item label="所属机构"
+                       name="areaid">
+            <a-select class="typeSelect"
+                      style="width: 200px"
+                      v-model:value="formState.areaid"
+                      placeholder="请选择所属机构">
+              <a-select-option value="1">
+                个人
+              </a-select-option>
+              <a-select-option value="2">
+                企业
+              </a-select-option>
+            </a-select>
+          </a-form-item>
+        </a-col>
+        <a-col :span="12">
+          <a-form-item label="登录账号"
+                       name="logincode">
+            <a-input class="dialogInput"
+                     v-model:value="formState.logincode"
+                     style="width: 200px"
+                     placeholder="请选择登录账号" />
+          </a-form-item>
+        </a-col>
+        <a-col :span="12">
+          <a-form-item label="登录密码"
+                       name="loginpwd">
+            <a-input class="dialogInput"
+                     v-model:value="formState.loginpwd"
+                     style="width: 200px"
+                     placeholder="请选择登录密码" />
+          </a-form-item>
+        </a-col>
         <a-col :span="12">
           <a-form-item label="客户类型"
                        name="userinfotype">