Ver código fonte

代码提交:
0819客户信息List和from表单提交

sunruiqi 2 anos atrás
pai
commit
57231f8622

+ 2 - 2
src/api/sys/WorkClientService.js

@@ -8,9 +8,9 @@ export default class WorkClientService {
       data: param
     })
   }
-  add (param) {
+  save (param) {
     return request({
-      url: '/workClientInfo/workClientInfo/add',
+      url: '/workClientInfo/workClientInfo/save',
       method: 'post',
       data: param
     })

+ 13 - 10
src/views/modules/sys/workClient/WorkClientForm.vue

@@ -364,9 +364,6 @@
   export default {
     data () {
       return {
-        workClientInfo: '',
-        workClientBank: [],
-        workClientLinkman: [],
         radio: 0,
         tableData: [],
         dataList: [],
@@ -392,7 +389,8 @@
           companyUrl: '',
           areaId: '',
           registerAddress: '',
-          address: ''
+          address: '',
+          remarks: ''
         },
         bankInfos: [],
         bankInfo: {
@@ -504,6 +502,7 @@
           areaId: '',
           registerAddress: '',
           address: '',
+          remarks: '',
           bankInfos: [],
           bankInfo: {
             ourBank: '',
@@ -585,16 +584,20 @@
               if (item.id === null || item.id === undefined || item.id === '') {
                 item.url = item.raw.url
               }
-              item.attachmentFlag = 'projectRecords'
+              item.attachmentFlag = 'workClient'
               item.fileSize = item.size
               item.attachmentName = item.name
               this.inputForm.workAttachments.push(item)
             })
-            if (this.inputForm.evaluationReportDateUi === null || this.inputForm.evaluationReportDateUi === undefined || this.inputForm.evaluationReportDateUi === '') {
-              this.inputForm.status = '1'
-            } else {
-              this.inputForm.status = '5'
-            }
+            this.inputForm.workClientBank = []
+            this.bankInfos.forEach((item) => {
+              this.inputForm.workClientBank.push(item)
+            })
+            this.inputForm.workClientLinkman = []
+            this.linkmanInfos.forEach((item) => {
+              this.inputForm.workClientLinkman.push(item)
+            })
+            console.log(this.inputForm)
             this.workClientService.save(this.inputForm).then(({data}) => {
               this.close()
               this.$message.success(data)

+ 1 - 5
src/views/modules/sys/workClient/WorkClientList.vue

@@ -64,11 +64,7 @@
                         <span v-else>{{scope.row.name}}</span>
                     </template>
                 </vxe-column>
-                <vxe-column width="200px"  title="代表方" field="deputy" >
-                  <template slot-scope="scope">
-                    {{ $dictUtils.getDictLabel("representative", scope.row.deputy, '-') }}
-                  </template>
-                </vxe-column>
+                <vxe-column width="200px"  title="代表方" field="deputy" ></vxe-column>
                 <vxe-column width="100px"  title="客户性质" field="companyType" >
                   <template slot-scope="scope">
                     {{ $dictUtils.getDictLabel("customer_nature", scope.row.companyType, '-') }}