[update] 打包项目维护来款、开票修改
This commit is contained in:
@@ -42,12 +42,7 @@
|
||||
bordered
|
||||
rowKey="id"
|
||||
:columns="columns"
|
||||
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
@change="handleTableChange"
|
||||
class="j-table-force-nowrap">
|
||||
|
||||
<!-- 输入-->
|
||||
@@ -68,19 +63,36 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
||||
import JDate from '../../../components/tools/JDate'
|
||||
import { money } from '../../../utils/validate'
|
||||
|
||||
export default {
|
||||
name: 'BatchIncomePaymentModule',
|
||||
components: { JDate },
|
||||
mixins: [JeroListMixin],
|
||||
props: {
|
||||
// 选中的项目
|
||||
tableData: {
|
||||
type: Array,
|
||||
required: false,
|
||||
default: []
|
||||
},
|
||||
visible: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
visible(value) {
|
||||
if (value) {
|
||||
this.open()
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '批量来款',
|
||||
width: 1000,
|
||||
visible: false,
|
||||
confirmLoading: false,
|
||||
form: this.$form.createForm(this),
|
||||
labelCol: {
|
||||
@@ -148,31 +160,8 @@ export default {
|
||||
scopedSlots: { customRender: 'input-text' }
|
||||
}
|
||||
],
|
||||
dataSource: [],
|
||||
inputIncomingAmount: null, // 输入的来款金额
|
||||
dataSource: [
|
||||
{
|
||||
id: 1,
|
||||
chargeProject: '项目名称',
|
||||
receivableAmount: 100,
|
||||
paidAmount: 50,
|
||||
thisIncomingAmount: null,
|
||||
remark: ''
|
||||
}, {
|
||||
id: 2,
|
||||
chargeProject: '项目名称2',
|
||||
receivableAmount: 200,
|
||||
paidAmount: 0,
|
||||
thisIncomingAmount: null,
|
||||
remark: ''
|
||||
}, {
|
||||
id: 3,
|
||||
chargeProject: '项目名称3',
|
||||
receivableAmount: 5000,
|
||||
paidAmount: 0,
|
||||
thisIncomingAmount: null,
|
||||
remark: ''
|
||||
}
|
||||
],
|
||||
disableMixinCreated: true
|
||||
}
|
||||
},
|
||||
@@ -191,11 +180,12 @@ export default {
|
||||
this.close()
|
||||
},
|
||||
open() {
|
||||
this.dataSource = this.tableData
|
||||
console.log(this.dataSource)
|
||||
this.loadData()
|
||||
this.visible = true
|
||||
},
|
||||
close() {
|
||||
this.visible = false
|
||||
this.$emit('update:visible', false)
|
||||
},
|
||||
/**
|
||||
* 来款金额输入失去焦点,进行金额分配
|
||||
@@ -206,6 +196,7 @@ export default {
|
||||
this.inputIncomingAmount = Number(e.target.value)
|
||||
this.clearThisTimeAmount().then(() => {
|
||||
this.calculateThisTimeAmount()
|
||||
this.$forceUpdate()
|
||||
})
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user