linwenxin 1 yıl önce
ebeveyn
işleme
d93febcde5

+ 63 - 2
src/views/engineeringAuxiliaryParts/projectCollectionManagement/workOrderInfo/index.vue

@@ -12,7 +12,7 @@
         <!-- 收款信息 -->
         <zj-form-module
           v-if="!!id && (formData.status == 'WAIT_PAY' || formData.status == 'PART_PAY' || formData.status == 'PAY')"
-          title="收款信息" :form-data="formData" :form-items="product" label-width="120px" />
+          title="收款信息" :form-data="formData" :form-items="payInfo" label-width="120px" />
       </zj-form-container>
     </zj-page-fill>
     <!-- 操作按钮 -->
@@ -35,6 +35,7 @@ import serviceInfo from './mixins/serviceInfo.js'
 import editTable from "@/components/template/editTable.js"
 import { enginPayDetail, enginPaySave, enginPayConfirm, enginPayPay } from "@/api/projectCollectionManagement.js"
 import ImageUpload from '@/components/file-upload'
+import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
 export default {
   props: {
     id: {
@@ -161,7 +162,66 @@ export default {
             }]
           }
           return []
-        })()
+        })(),
+        {
+          md: 24,
+          isShow: true,
+          name: 'slot-component',
+          formItemAttributes: {
+            label: '收款记录',
+            prop: 'records',
+            rules: []
+          },
+          render: (h, { props, onInput }) => {
+            var { value } = props
+            return (
+              <zj-table
+                columns={[{
+                  columnAttributes: {
+                    label: '收款结果',
+                    prop: 'status'
+                  },
+                  render: (h, { row, column, index }) => {
+                    return <div div style="padding-left:10px">
+                      {({ WAIT: "待审核", WAIT_PAY: "待收款", PART_PAY: "部分收款", PAY: "收款完成", })[row.status]}
+                    </div>
+                  },
+                }, {
+                  columnAttributes: {
+                    label: '收款金额',
+                    prop: 'payAmount'
+                  }
+                }, {
+                  columnAttributes: {
+                    label: '收款凭证',
+                    prop: 'fileUrl'
+                  },
+                  render: (h, { row, column, index }) => {
+                    return <div div style="padding-left:10px">
+                      {row.fileUrl ? <ImageUpload fileList={[{ url: row.fileUrl }]} limit={1} isEdit={false} /> : null}
+                    </div>
+                  },
+                }, {
+                  columnAttributes: {
+                    label: '备注',
+                    prop: 'payRemark'
+                  }
+                }, {
+                  columnAttributes: {
+                    label: '收款人',
+                    prop: 'lastUpdateBy'
+                  }
+                }, {
+                  columnAttributes: {
+                    label: '收款时间',
+                    prop: 'lastUpdateTime'
+                  }
+                },]}
+                table-data={value}
+              />
+            )
+          }
+        },
       ]
     }
   },
@@ -213,6 +273,7 @@ export default {
       this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
         if (valid) {
           enginPayPay({
+            id: this.formData.id,
             "amount": this.formData.amount,
             "fileUrl": this.formData.fileUrl.map(item => item.url).join(","),
             "payRemark": this.formData.payRemark,

+ 1 - 1
src/views/engineeringAuxiliaryParts/projectCollectionManagement/workOrderInfo/mixins/basicInfo.js

@@ -51,7 +51,7 @@ export default {
           formItemAttributes: {
             label: '客户电话2',
             prop: 'customerMobile2',
-            rules: [...required]
+            rules: []
           }
         },
         {