Browse Source

完善款项确认--收款确认管理

zhanglei
yunuo970428 2 years ago
parent
commit
48a65ee397
  1. 43
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/acknowledgementReceiptAdd.vue

43
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/paymentConfirmation/acknowledgementReceiptAdd.vue

@ -107,7 +107,7 @@
</el-col> </el-col>
<el-col :span="4" class="trightb"> <el-col :span="4" class="trightb">
<el-form-item prop="payAccount"> <el-form-item prop="payAccount">
<el-input v-model="formobj.payAccount" :disabled="forbidden" placeholder="" clearable/> <el-input v-model="formobj.payAccount" :disabled="forbidden" maxlength="4" placeholder="" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" class="tleftb"> <el-col :span="4" class="tleftb">
@ -152,18 +152,18 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="10">
<div> <div>
<div> <div>
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header"> <el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="合同编号:"> <el-form-item label="合同编号:">
<el-input v-model="listQuery.contractNo" placeholder="" style="width: 110px" clearable/> <el-input v-model="listQuery.contractNo" size="mini" placeholder="" style="width: 110px" clearable/>
</el-form-item> </el-form-item>
<el-form-item label="客户名称:"> <el-form-item label="客户名称:">
<el-input v-model="listQuery.customerName" placeholder="" style="width: 100px" clearable/> <el-input v-model="listQuery.customerName" size="mini" placeholder="" style="width: 100px" clearable/>
</el-form-item> </el-form-item>
<el-form-item label="联系电话:"> <el-form-item label="联系电话:">
<el-input v-model="listQuery.customerPhone" placeholder="" style="width: 140px" clearable/> <el-input v-model="listQuery.customerPhone" size="mini" placeholder="" style="width: 140px" clearable/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div style="text-align: center;padding: 5px 0;border: 1px solid #e0e3eb"> <div style="text-align: center;padding: 5px 0;border: 1px solid #e0e3eb">
@ -216,7 +216,7 @@
</el-table> </el-table>
</div> </div>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="14">
<div> <div>
<div> <div>
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header"> <el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
@ -264,12 +264,12 @@
{{ scope.row.currentReceivableMoney }} {{ scope.row.currentReceivableMoney }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="认款金额" align="center" width="95"> <el-table-column label="认款金额" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.subscriptionMoney" @change="changeSubscriptionMoney" placeholder="" clearable/> <el-input v-model="scope.row.subscriptionMoney" @change="changeSubscriptionMoney" placeholder="" clearable/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="认款申请日期" align="center" width="120"> <el-table-column label="认款申请日期" align="center" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-date-picker value-format="yyyy-MM-dd" v-model="scope.row.subscriptionDate" clearable style="width: 140px" type="date" placeholder="请选择"/> <el-date-picker value-format="yyyy-MM-dd" v-model="scope.row.subscriptionDate" clearable style="width: 140px" type="date" placeholder="请选择"/>
</template> </template>
@ -296,6 +296,7 @@ export default {
data() { data() {
return { return {
viewTitle: '', viewTitle: '',
dialogStatus: '',
overduereceivableKey: 0, overduereceivableKey: 0,
selectedreceivableKey: 1, selectedreceivableKey: 1,
receiptBank_list: [], receiptBank_list: [],
@ -350,7 +351,8 @@ export default {
payAccount: [{ required: true, message: '付款账号不能为空', trigger: 'blur' }] payAccount: [{ required: true, message: '付款账号不能为空', trigger: 'blur' }]
}, },
submitdisabled: false, submitdisabled: false,
balance: '' // balance: '', //
balanceCopy: '' // 使()
} }
}, },
methods: { methods: {
@ -426,7 +428,10 @@ export default {
this.formobj.collectionTypeKey = aa.value this.formobj.collectionTypeKey = aa.value
}, },
changeCollectionMoney() { changeCollectionMoney() {
if (this.dialogStatus === '') {
this.balance = this.formobj.collectionMoney this.balance = this.formobj.collectionMoney
this.balanceCopy = this.formobj.collectionMoney
}
}, },
changeSubscriptionMoney() { changeSubscriptionMoney() {
let subscriptionMoney = '0' let subscriptionMoney = '0'
@ -469,7 +474,7 @@ export default {
return u return u
}) })
}) })
this.balance = parseInt(this.balance) - parseInt(resNum) this.balance = parseInt(this.balanceCopy) - parseInt(resNum)
}, },
getlist() { getlist() {
this.listQuery.createBySid = window.sessionStorage.getItem('userSid') this.listQuery.createBySid = window.sessionStorage.getItem('userSid')
@ -508,10 +513,12 @@ export default {
showEdit(row) { showEdit(row) {
this.DataDictionary() this.DataDictionary()
this.viewTitle = '【编辑】收款确认申请' this.viewTitle = '【编辑】收款确认申请'
this.dialogStatus = 'edit'
fetchDetailBySid(row.sid).then(resp => { fetchDetailBySid(row.sid).then(resp => {
if (resp.code === '200') { if (resp.success) {
this.formobj = resp.data this.formobj = resp.data
this.balance = this.formobj.balance this.balance = this.formobj.balance
this.balanceCopy = this.formobj.balance
this.getlist() this.getlist()
this.forbidden = true this.forbidden = true
if (this.formobj.paymentVoucherAppendixs.length > 0) { if (this.formobj.paymentVoucherAppendixs.length > 0) {
@ -622,6 +629,9 @@ export default {
paymentVoucherUrl_list.push(this.formobj.paymentVoucherAppendixs[i].filePath) paymentVoucherUrl_list.push(this.formobj.paymentVoucherAppendixs[i].filePath)
} }
this.formobj.paymentVoucherUrl = paymentVoucherUrl_list.join(',') this.formobj.paymentVoucherUrl = paymentVoucherUrl_list.join(',')
} else {
this.$message({ showClose: true, type: 'error', message: '请上传打款凭证' })
return
} }
if (this.formobj.remittanceConfirmationAppendixs.length > 0) { if (this.formobj.remittanceConfirmationAppendixs.length > 0) {
var remittanceConfirmationUrl_list = [] var remittanceConfirmationUrl_list = []
@ -629,6 +639,13 @@ export default {
remittanceConfirmationUrl_list.push(this.formobj.remittanceConfirmationAppendixs[b].filePath) remittanceConfirmationUrl_list.push(this.formobj.remittanceConfirmationAppendixs[b].filePath)
} }
this.formobj.remittanceConfirmationUrl = remittanceConfirmationUrl_list.join(',') this.formobj.remittanceConfirmationUrl = remittanceConfirmationUrl_list.join(',')
} else {
for (var k = 0; k < this.formobj.finSelectedReceivablesDetaileds.length; k++) {
if (this.formobj.finSelectedReceivablesDetaileds[k].customerName !== this.formobj.payerName) {
this.$message({ showClose: true, type: 'error', message: '请上传汇款确认书' })
return
}
}
} }
this.formobj.userSid = window.sessionStorage.getItem('userSid') this.formobj.userSid = window.sessionStorage.getItem('userSid')
this.$refs['form_obj'].validate((valid) => { this.$refs['form_obj'].validate((valid) => {
@ -638,6 +655,8 @@ export default {
if (resp.success) { if (resp.success) {
this.$message({ showClose: true, type: 'success', message: resp.msg }) this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn('true') this.handleReturn('true')
} else {
this.submitdisabled = false
} }
}).catch(() => { }).catch(() => {
this.submitdisabled = false this.submitdisabled = false
@ -691,6 +710,8 @@ export default {
this.$refs['remittance'].show(this.list2) this.$refs['remittance'].show(this.list2)
}) })
this.balance = '' this.balance = ''
this.balanceCopy = ''
this.dialogStatus = ''
this.$refs['form_obj'].resetFields() this.$refs['form_obj'].resetFields()
this.$emit('doback') this.$emit('doback')
} }

Loading…
Cancel
Save