From 344f35b60e15d85fd2adaa4593edb8c15101a3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Wed, 30 Jun 2021 00:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=94=B6=E6=AC=BE=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/components/jeecg/JUpload.vue | 867 +++++++++--------- jshERP-web/src/views/bill/PurchaseInList.vue | 10 +- jshERP-web/src/views/bill/SaleOutList.vue | 10 +- .../views/financial/dialog/DebtBillList.vue | 88 +- .../financial/dialog/FinancialDetail.vue | 12 +- .../views/financial/modules/MoneyInModal.vue | 57 +- 6 files changed, 587 insertions(+), 457 deletions(-) diff --git a/jshERP-web/src/components/jeecg/JUpload.vue b/jshERP-web/src/components/jeecg/JUpload.vue index f481212b..796cd517 100644 --- a/jshERP-web/src/components/jeecg/JUpload.vue +++ b/jshERP-web/src/components/jeecg/JUpload.vue @@ -1,434 +1,435 @@ - - - - - \ No newline at end of file diff --git a/jshERP-web/src/views/bill/PurchaseInList.vue b/jshERP-web/src/views/bill/PurchaseInList.vue index 1d524540..b4b13774 100644 --- a/jshERP-web/src/views/bill/PurchaseInList.vue +++ b/jshERP-web/src/views/bill/PurchaseInList.vue @@ -152,8 +152,14 @@ return (record.discountMoney + record.discountLastMoney).toFixed(2); } }, - { title: '优惠后金额', dataIndex: 'discountLastMoney',width:100}, - { title: '付款', dataIndex: 'changeAmount',width:50}, + { title: '优惠后金额', dataIndex: 'discountLastMoney',width:80}, + { title: '付款', dataIndex: 'changeAmount',width:60}, + { title: '欠款', dataIndex: 'debt',width:60, + customRender:function (text,record,index) { + let debt = record.discountLastMoney - record.changeAmount + return debt? debt.toFixed(2):'' + } + }, { title: '操作', dataIndex: 'action', diff --git a/jshERP-web/src/views/bill/SaleOutList.vue b/jshERP-web/src/views/bill/SaleOutList.vue index 658bdcf3..c6076aed 100644 --- a/jshERP-web/src/views/bill/SaleOutList.vue +++ b/jshERP-web/src/views/bill/SaleOutList.vue @@ -152,8 +152,14 @@ return (record.discountMoney + record.discountLastMoney).toFixed(2); } }, - { title: '优惠后金额', dataIndex: 'discountLastMoney',width:100}, - { title: '收款', dataIndex: 'changeAmount',width:50}, + { title: '优惠后金额', dataIndex: 'discountLastMoney',width:80}, + { title: '收款', dataIndex: 'changeAmount',width:60}, + { title: '欠款', dataIndex: 'debt',width:60, + customRender:function (text,record,index) { + let debt = record.discountLastMoney - record.changeAmount + return debt? debt.toFixed(2):'' + } + }, { title: '操作', dataIndex: 'action', diff --git a/jshERP-web/src/views/financial/dialog/DebtBillList.vue b/jshERP-web/src/views/financial/dialog/DebtBillList.vue index ee716b46..a6731f26 100644 --- a/jshERP-web/src/views/financial/dialog/DebtBillList.vue +++ b/jshERP-web/src/views/financial/dialog/DebtBillList.vue @@ -1,13 +1,49 @@ @@ -405,8 +409,10 @@ ], moneyInColumns: [ { title: '销售单据编号',dataIndex: 'billNumber',width: '20%'}, - { title: '金额',dataIndex: 'eachAmount', width: '10%'}, - { title: '备注',dataIndex: 'remark', width: '30%'} + { title: '应收欠款',dataIndex: 'needDebt', width: '10%'}, + { title: '已收欠款',dataIndex: 'finishDebt', width: '10%'}, + { title: '本次收款',dataIndex: 'eachAmount', width: '10%'}, + { title: '备注',dataIndex: 'remark', width: '20%'} ], moneyOutColumns: [ { title: '账户名称',dataIndex: 'accountName',width: '20%'}, diff --git a/jshERP-web/src/views/financial/modules/MoneyInModal.vue b/jshERP-web/src/views/financial/modules/MoneyInModal.vue index e800c0b6..67a24f3f 100644 --- a/jshERP-web/src/views/financial/modules/MoneyInModal.vue +++ b/jshERP-web/src/views/financial/modules/MoneyInModal.vue @@ -49,7 +49,7 @@
- 批量新增 + 新增 清空
@@ -76,6 +76,15 @@
+ + + + + {{ item.name }} + + + + @@ -85,7 +94,12 @@ + + + + + @@ -100,6 +114,8 @@ import { FormTypes } from '@/utils/JEditableTableUtil' import { JEditableTableMixin } from '@/mixins/JEditableTableMixin' import { FinancialModalMixin } from '../mixins/FinancialModalMixin' + import JUpload from '@/components/jeecg/JUpload' + import JEllipsis from '@/components/jeecg/JEllipsis' import JDate from '@/components/jeecg/JDate' import Vue from 'vue' export default { @@ -107,6 +123,8 @@ mixins: [JEditableTableMixin, FinancialModalMixin], components: { DebtBillList, + JUpload, + JEllipsis, JDate }, data () { @@ -118,6 +136,7 @@ addDefaultRowNum: 0, visible: false, model: {}, + fileList:[], labelCol: { xs: { span: 24 }, sm: { span: 8 }, @@ -133,10 +152,12 @@ dataSource: [], columns: [ { title: '销售单据编号',key: 'billNumber',width: '20%', type: FormTypes.input, readonly: true }, - { title: '金额',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}', + { title: '应收欠款',key: 'needDebt', width: '10%', type: FormTypes.inputNumber, statistics: true, readonly: true }, + { title: '已收欠款', key: 'finishDebt', width: '10%', type: FormTypes.inputNumber, statistics: true, readonly: true }, + { title: '本次收款',key: 'eachAmount', width: '10%', type: FormTypes.inputNumber, statistics: true, placeholder: '请选择${title}', validateRules: [{ required: true, message: '${title}不能为空' }] }, - { title: '备注',key: 'remark', width: '30%', type: FormTypes.input, placeholder: '请选择${title}'} + { title: '备注',key: 'remark', width: '20%', type: FormTypes.input, placeholder: '请选择${title}'} ] }, confirmLoading: false, @@ -150,6 +171,11 @@ rules: [ { required: true, message: '请选择经手人!' } ] + }, + accountId:{ + rules: [ + { required: true, message: '请选择收款账户!' } + ] } }, url: { @@ -160,7 +186,7 @@ } }, created () { - this.initDetailAccount() + this.initAccount() }, methods: { //调用完edit()方法之后会自动调用此方法 @@ -170,8 +196,10 @@ } else { this.model.billTime = this.model.billTimeStr this.$nextTick(() => { - this.form.setFieldsValue(pick(this.model,'organId', 'handsPersonId', 'billTime', 'billNo', 'remark', 'changeAmount')) + this.form.setFieldsValue(pick(this.model,'organId', 'handsPersonId', 'billTime', 'billNo', 'remark', + 'accountId','changeAmount')) }); + this.fileList = this.model.fileName // 加载子表数据 let params = { headerId: this.model.id @@ -190,6 +218,9 @@ totalPrice += item.eachAmount-0 } billMain.totalPrice = totalPrice + if(this.fileList && this.fileList.length > 0) { + billMain.fileName = this.fileList + } if(this.model.id){ billMain.id = this.model.id } @@ -199,8 +230,13 @@ } }, handleClickAdd() { - this.$refs.debtBillList.show('出库', '销售', '客户', "0") - this.$refs.debtBillList.title = "选择销售出库" + let organId = this.form.getFieldValue('organId') + if(organId){ + this.$refs.debtBillList.show(organId, '出库', '销售', '客户', "0") + this.$refs.debtBillList.title = "选择销售出库欠款单据" + } else { + this.$message.warning('请选择客户!'); + } }, handleClear() { this.accountTable.dataSource = [] @@ -217,8 +253,11 @@ for(let i=0; i