Commit da03f99b by chenwq

加loading,加注释

1 parent 11b55242
......@@ -270,6 +270,7 @@ export default {
attr: 'paymentTime',
type: 'time'
}],
// 用于标记表头字段是否可以编辑(唯一标识:source + FieldCode)
trafficSourceEditList: [
'ORDERplatformMerchantId',
'ORDERshopDivisionMoney',
......@@ -629,6 +630,7 @@ export default {
)
},
// 用于处理修改过的主订单(标记修改过的主订单),并放入tableModifyList中,调测算/提交接口时,作为updatedOrders传给后端。
dealModify(rowIndex, source, field) {
const orderCode = this.tableList[rowIndex].ORDER.orderCode
const isExitIdx = this.tableModifyList.findIndex(item => item.orderCode == orderCode)
......@@ -668,7 +670,7 @@ export default {
this.billCompute(rowIndex, source, field, true)
},
// 用户修改-删除
// 用户修改-删除(用于标记用户删除的主订单),并放入tableDeleteList中,调测算/提交接口时,作为excludeBillOrderCodes传给后端。
modifyDelete(orderCode) {
const isExitIdx = this.tableModifyList.findIndex(item => item.orderCode == orderCode)
if (isExitIdx != -1) {
......@@ -841,6 +843,7 @@ export default {
})
},
// 处理动态表头信息,并将该列字段的特有属性写入,方便对表格里面的项做处理
dealTable() {
this.tableHeader = []
const moduleList = [...new Set(this.tmplFieldsList.map(item => item.moduleName))]
......@@ -907,6 +910,7 @@ export default {
},
// 处理表格里面的数据,需结合表头这个字段的特有属性进行处理
dealTableData() {
this.tableList = []
let serialNo = 0
......@@ -959,13 +963,14 @@ export default {
console.log(this.originalOrderList, 'this.originalOrderList----')
console.log(this.tableList, 'this.tableList---')
},
// 判断表头字段是否可以批量编辑
judgeImgShow(obj) {
const editList = this[this.billTypeStr + 'SourceEditList']
const source = this.tmplFieldsList[obj.$index].extInfo.source
const fieldCode = this.tmplFieldsList[obj.$index].fieldCode
return editList.includes(source + fieldCode)
},
// 验证表单
// 批量修改弹窗 - 验证表单
batchValidateForm() {
const value = this.batchForm[this.headObj.fieldCode]
this.dialogErrors = {};
......@@ -1057,6 +1062,7 @@ export default {
}
this.handelBatchVisible()
},
// 表格的合计字段,根据后端来的数据写入
getSummaries(param) {
const { columns, data } = param;
const sums = [];
......
......@@ -2,7 +2,7 @@
<template>
<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-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-radio-group v-model="infoForm.merchantType" @change="changeType">
<el-radio label="2">
......@@ -102,6 +102,7 @@ export default {
}
}
return {
loading: false,
// 判断是否是模版模式
isTmpl: false,
localTmplList: deepClone(localTmplList),
......@@ -257,6 +258,7 @@ export default {
...mapActions('d2admin/user', ['actionSetDownloadList']),
selectMerchant() {
var params = {}
this.loading = true
params.currentPage = 1
params.pageSize = 10000
var merchantTypeList = []
......@@ -271,6 +273,8 @@ export default {
getMerchantPageSearch(params).then(res => {
this.baseData.merchantList = res.list
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!