|
@@ -54,7 +54,7 @@
|
|
|
<!-- 操作按钮 -->
|
|
|
<div class="table-operator">
|
|
|
<div class="flex-center">
|
|
|
- <a-button type="primary" v-if="$hasPermissions('B_fc_new')" @click="handleAdd">调账</a-button>
|
|
|
+ <a-button type="primary" @click="handleAdd">调账</a-button>
|
|
|
<div class="tongji-bar"></div>
|
|
|
</div>
|
|
|
<div></div>
|
|
@@ -85,6 +85,8 @@
|
|
|
</s-table>
|
|
|
</a-spin>
|
|
|
</a-card>
|
|
|
+ <!-- 基础信息 -->
|
|
|
+ <baseModal v-drag :show="baseModal" @cancel="baseModal=false"></baseModal>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -93,14 +95,15 @@ import { commonMixin } from '@/utils/mixin'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import { financeBookQueryPage } from '@/api/financeBook.js'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
+import baseModal from './baseModal.vue'
|
|
|
export default {
|
|
|
name: 'AccountStatementBillList',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { STable, VSelect, rangeDate },
|
|
|
+ components: { STable, VSelect, rangeDate, baseModal },
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
|
- exportLoading: false,
|
|
|
+ baseModal: false,
|
|
|
tableHeight: 0,
|
|
|
queryParam: { // 查询条件
|
|
|
beginDate: '',
|
|
@@ -112,6 +115,7 @@ export default {
|
|
|
creatDate: [], // 创建时间
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
advanced: true,
|
|
|
+ itemSn: null,
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
@@ -142,18 +146,23 @@ export default {
|
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '业务单号', dataIndex: 'payerName', width: '20%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '客户名称', dataIndex: 'payerName', width: '20%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '借方', dataIndex: 'productCost', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? this.toThousands(text, 2) : '--') } },
|
|
|
+ { title: '客户名称', dataIndex: 'payerName1', width: '20%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '借方', dataIndex: 'productCost1', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? this.toThousands(text, 2) : '--') } },
|
|
|
{ title: '贷方', dataIndex: 'productCost', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? this.toThousands(text, 2) : '--') } },
|
|
|
{ title: '备注', dataIndex: 'remarks', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '审核时间', dataIndex: 'statusDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '状态', dataIndex: 'statusDictValue', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '状态', dataIndex: 'statusDictValue1', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'actions' }, width: '8%', align: 'center' }
|
|
|
]
|
|
|
return arr
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 创建时间 change
|
|
|
+ dateChange (date) {
|
|
|
+ this.queryParam.beginDate = date[0] ? date[0] : ''
|
|
|
+ this.queryParam.endDate = date[1] ? date[1] : ''
|
|
|
+ },
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
this.queryParam.beginDate = ''
|
|
@@ -168,7 +177,7 @@ export default {
|
|
|
},
|
|
|
// 调账
|
|
|
handleAdd () {
|
|
|
-
|
|
|
+ this.baseModal = true
|
|
|
},
|
|
|
pageInit () {
|
|
|
const _this = this
|