Commit da03f99b by chenwq

加loading,加注释

1 parent 11b55242
...@@ -270,6 +270,7 @@ export default { ...@@ -270,6 +270,7 @@ export default {
attr: 'paymentTime', attr: 'paymentTime',
type: 'time' type: 'time'
}], }],
// 用于标记表头字段是否可以编辑(唯一标识:source + FieldCode)
trafficSourceEditList: [ trafficSourceEditList: [
'ORDERplatformMerchantId', 'ORDERplatformMerchantId',
'ORDERshopDivisionMoney', 'ORDERshopDivisionMoney',
...@@ -629,6 +630,7 @@ export default { ...@@ -629,6 +630,7 @@ export default {
) )
}, },
// 用于处理修改过的主订单(标记修改过的主订单),并放入tableModifyList中,调测算/提交接口时,作为updatedOrders传给后端。
dealModify(rowIndex, source, field) { dealModify(rowIndex, source, field) {
const orderCode = this.tableList[rowIndex].ORDER.orderCode const orderCode = this.tableList[rowIndex].ORDER.orderCode
const isExitIdx = this.tableModifyList.findIndex(item => item.orderCode == orderCode) const isExitIdx = this.tableModifyList.findIndex(item => item.orderCode == orderCode)
...@@ -668,7 +670,7 @@ export default { ...@@ -668,7 +670,7 @@ export default {
this.billCompute(rowIndex, source, field, true) this.billCompute(rowIndex, source, field, true)
}, },
// 用户修改-删除 // 用户修改-删除(用于标记用户删除的主订单),并放入tableDeleteList中,调测算/提交接口时,作为excludeBillOrderCodes传给后端。
modifyDelete(orderCode) { modifyDelete(orderCode) {
const isExitIdx = this.tableModifyList.findIndex(item => item.orderCode == orderCode) const isExitIdx = this.tableModifyList.findIndex(item => item.orderCode == orderCode)
if (isExitIdx != -1) { if (isExitIdx != -1) {
...@@ -841,6 +843,7 @@ export default { ...@@ -841,6 +843,7 @@ export default {
}) })
}, },
// 处理动态表头信息,并将该列字段的特有属性写入,方便对表格里面的项做处理
dealTable() { dealTable() {
this.tableHeader = [] this.tableHeader = []
const moduleList = [...new Set(this.tmplFieldsList.map(item => item.moduleName))] const moduleList = [...new Set(this.tmplFieldsList.map(item => item.moduleName))]
...@@ -907,6 +910,7 @@ export default { ...@@ -907,6 +910,7 @@ export default {
}, },
// 处理表格里面的数据,需结合表头这个字段的特有属性进行处理
dealTableData() { dealTableData() {
this.tableList = [] this.tableList = []
let serialNo = 0 let serialNo = 0
...@@ -959,13 +963,14 @@ export default { ...@@ -959,13 +963,14 @@ export default {
console.log(this.originalOrderList, 'this.originalOrderList----') console.log(this.originalOrderList, 'this.originalOrderList----')
console.log(this.tableList, 'this.tableList---') console.log(this.tableList, 'this.tableList---')
}, },
// 判断表头字段是否可以批量编辑
judgeImgShow(obj) { judgeImgShow(obj) {
const editList = this[this.billTypeStr + 'SourceEditList'] const editList = this[this.billTypeStr + 'SourceEditList']
const source = this.tmplFieldsList[obj.$index].extInfo.source const source = this.tmplFieldsList[obj.$index].extInfo.source
const fieldCode = this.tmplFieldsList[obj.$index].fieldCode const fieldCode = this.tmplFieldsList[obj.$index].fieldCode
return editList.includes(source + fieldCode) return editList.includes(source + fieldCode)
}, },
// 验证表单 // 批量修改弹窗 - 验证表单
batchValidateForm() { batchValidateForm() {
const value = this.batchForm[this.headObj.fieldCode] const value = this.batchForm[this.headObj.fieldCode]
this.dialogErrors = {}; this.dialogErrors = {};
...@@ -1057,6 +1062,7 @@ export default { ...@@ -1057,6 +1062,7 @@ export default {
} }
this.handelBatchVisible() this.handelBatchVisible()
}, },
// 表格的合计字段,根据后端来的数据写入
getSummaries(param) { getSummaries(param) {
const { columns, data } = param; const { columns, data } = param;
const sums = []; const sums = [];
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<template> <template>
<d2-dialog title="下载对账单" :is-visible="accountVisible" class="accountDailog" width="688px" btn-ok-label="下载" @closeDialog="handleClose" @confirmDialog="handleAddConfirm"> <d2-dialog title="下载对账单" :is-visible="accountVisible" class="accountDailog" width="688px" btn-ok-label="下载" @closeDialog="handleClose" @confirmDialog="handleAddConfirm">
<el-button v-if="isTmpl" slot="btn-start" type="primary" @click="handleSystemBill">系统对账</el-button> <el-button v-if="isTmpl" slot="btn-start" type="primary" @click="handleSystemBill">系统对账</el-button>
<el-form ref="accountForm" :model="infoForm" :rules="formRules" label-width="120px"> <el-form ref="accountForm" :model="infoForm" :rules="formRules" label-width="120px" v-loading="loading">
<el-form-item label="商户类型:" prop="merchantType"> <el-form-item label="商户类型:" prop="merchantType">
<el-radio-group v-model="infoForm.merchantType" @change="changeType"> <el-radio-group v-model="infoForm.merchantType" @change="changeType">
<el-radio label="2"> <el-radio label="2">
...@@ -102,6 +102,7 @@ export default { ...@@ -102,6 +102,7 @@ export default {
} }
} }
return { return {
loading: false,
// 判断是否是模版模式 // 判断是否是模版模式
isTmpl: false, isTmpl: false,
localTmplList: deepClone(localTmplList), localTmplList: deepClone(localTmplList),
...@@ -257,6 +258,7 @@ export default { ...@@ -257,6 +258,7 @@ export default {
...mapActions('d2admin/user', ['actionSetDownloadList']), ...mapActions('d2admin/user', ['actionSetDownloadList']),
selectMerchant() { selectMerchant() {
var params = {} var params = {}
this.loading = true
params.currentPage = 1 params.currentPage = 1
params.pageSize = 10000 params.pageSize = 10000
var merchantTypeList = [] var merchantTypeList = []
...@@ -271,6 +273,8 @@ export default { ...@@ -271,6 +273,8 @@ export default {
getMerchantPageSearch(params).then(res => { getMerchantPageSearch(params).then(res => {
this.baseData.merchantList = res.list this.baseData.merchantList = res.list
this.infoForm.merchant = [] this.infoForm.merchant = []
}).finally(() => {
this.loading = false
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!