|
@@ -12,7 +12,7 @@
|
|
<!-- 收款信息 -->
|
|
<!-- 收款信息 -->
|
|
<zj-form-module
|
|
<zj-form-module
|
|
v-if="!!id && (formData.status == 'WAIT_PAY' || formData.status == 'PART_PAY' || formData.status == 'PAY')"
|
|
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-form-container>
|
|
</zj-page-fill>
|
|
</zj-page-fill>
|
|
<!-- 操作按钮 -->
|
|
<!-- 操作按钮 -->
|
|
@@ -35,6 +35,7 @@ import serviceInfo from './mixins/serviceInfo.js'
|
|
import editTable from "@/components/template/editTable.js"
|
|
import editTable from "@/components/template/editTable.js"
|
|
import { enginPayDetail, enginPaySave, enginPayConfirm, enginPayPay } from "@/api/projectCollectionManagement.js"
|
|
import { enginPayDetail, enginPaySave, enginPayConfirm, enginPayPay } from "@/api/projectCollectionManagement.js"
|
|
import ImageUpload from '@/components/file-upload'
|
|
import ImageUpload from '@/components/file-upload'
|
|
|
|
+import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
id: {
|
|
id: {
|
|
@@ -161,7 +162,66 @@ export default {
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
return []
|
|
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) => {
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
enginPayPay({
|
|
enginPayPay({
|
|
|
|
+ id: this.formData.id,
|
|
"amount": this.formData.amount,
|
|
"amount": this.formData.amount,
|
|
"fileUrl": this.formData.fileUrl.map(item => item.url).join(","),
|
|
"fileUrl": this.formData.fileUrl.map(item => item.url).join(","),
|
|
"payRemark": this.formData.payRemark,
|
|
"payRemark": this.formData.payRemark,
|