Commit db08dc4b by chenwq

bug修复

1 parent 7959fc72
...@@ -62,6 +62,9 @@ export default { ...@@ -62,6 +62,9 @@ export default {
optionsName: 'tmplTypeList', optionsName: 'tmplTypeList',
handleRadioChange: (val) => { handleRadioChange: (val) => {
this.tmplSelectList = [] this.tmplSelectList = []
setTimeout(() => {
this.$refs.editFormRef.$refs[this.editChildRef].clearValidate("fieldIds")
}, 800)
} }
}, },
{ {
......
<template> <template>
<div> <div>
<d2-dialog title="系统对账单" :is-visible="billVisible" class="privacyDailog" width="80%" @closeDialog="handleClose" @confirmDialog="handleConfirm"> <d2-dialog title="系统对账单" :is-visible="billVisible" class="privacyDailog" width="80%" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="flex">
<div>{{dateStr}}销售对账单</div>
<div>适用对象:{{billTmplInfo.billMerchantName}}</div>
</div>
<el-table v-loading="loading" :data="tableList" style="width: 100%" ref="billMutiTable" show-summary :summary-method="getSummaries" :span-method="arraySpanMethod" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="tableList" style="width: 100%" ref="billMutiTable" show-summary :summary-method="getSummaries" :span-method="arraySpanMethod" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column v-for="(item, idx) in tableHeader" :key="idx" :label="item.moduleName"> <el-table-column v-for="(item, idx) in tableHeader" :key="idx" :label="item.moduleName">
...@@ -66,7 +70,8 @@ ...@@ -66,7 +70,8 @@
<div>总金额:{{total}}元</div> <div>总金额:{{total}}元</div>
</d2-dialog> </d2-dialog>
<!-- 批量輸入 --> <!-- 批量輸入 -->
<d2-dialog :title="'请设置' + headObj.fieldName" :is-visible="batchVisible" class="privacyDailog" width="480px" @closeDialog="handleBatchClose" @confirmDialog="handleBatchConfirm"> <d2-dialog :title="headObj.fieldCode == 'coverReceiverType' ? '备注' : ('批量设置' + headObj.fieldName)" :is-visible="batchVisible" class="privacyDailog" width="480px" @closeDialog="handleBatchClose" @confirmDialog="handleBatchConfirm">
<div class="batch-box">
<!-- 输入框 --> <!-- 输入框 -->
<template v-if="headObj.editType == 'input'"> <template v-if="headObj.editType == 'input'">
<el-input placeholder="请输入" :prefix-icon="headObj.prefixIcon" v-model.trim="batchForm[headObj.fieldCode]" :maxlength="headObj.maxlength" :type="headObj.inputType || 'text'" :style="{ width: headObj.width || defaultWidth }" @input="(e) => maxLengthInput(e)"> <el-input placeholder="请输入" :prefix-icon="headObj.prefixIcon" v-model.trim="batchForm[headObj.fieldCode]" :maxlength="headObj.maxlength" :type="headObj.inputType || 'text'" :style="{ width: headObj.width || defaultWidth }" @input="(e) => maxLengthInput(e)">
...@@ -91,6 +96,10 @@ ...@@ -91,6 +96,10 @@
</el-input> </el-input>
</div> </div>
</div> </div>
<div v-if="headObj.fieldCode == 'coverReceiverType'" class="red-txt">
提示:若按支付方式拆分对账单,切换收款方式,系统自动将该订单切换至对应周期+收款方式的对账单中;若无对账单则在下次生成对应收款方式的对账单时自动加入;
</div>
</div>
</d2-dialog> </d2-dialog>
</div> </div>
</template> </template>
...@@ -121,6 +130,7 @@ export default { ...@@ -121,6 +130,7 @@ export default {
return { return {
loading: false, loading: false,
billTypeStr: 'traffic', billTypeStr: 'traffic',
dateStr: '',
tmplFieldsList: [], tmplFieldsList: [],
tableHeader: [], tableHeader: [],
originalOrderList: [], originalOrderList: [],
...@@ -166,14 +176,28 @@ export default { ...@@ -166,14 +176,28 @@ export default {
attr: 'paymentTime', attr: 'paymentTime',
type: 'time' type: 'time'
}, { }, {
name: '支付方式',
source: 'ORDER',
attr: 'payType',
type: 'select',
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'payTypeList',
}, {
name: '流量方套餐比例', name: '流量方套餐比例',
source: 'PACKAGE', source: 'PACKAGE',
attr: 'trafficFeeCalculateType,trafficFeeCalculateValue', attr: 'trafficFeeCalculateType,trafficFeeCalculateValue',
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'trafficFeeCalculateTypeTxtList',
type: 'selectInput', type: 'selectInput',
}, { }, {
name: '流量方整单比例', name: '流量方整单比例',
source: 'ORDER', source: 'ORDER',
attr: 'trafficFeeCalculateType,trafficFeeCalculateValue', attr: 'trafficFeeCalculateType,trafficFeeCalculateValue',
optionId: 'confId',
optionLabel: 'confLabel',
optionsName: 'trafficFeeCalculateTypeTxtList',
type: 'selectInput', type: 'selectInput',
}], }],
serviceChangeTxtList: [{ serviceChangeTxtList: [{
...@@ -347,6 +371,44 @@ export default { ...@@ -347,6 +371,44 @@ export default {
{ {
confId: 3, confId: 3,
confValue: '按固定金额' confValue: '按固定金额'
}],
trafficFeeCalculateTypeTxtList: [{
confId: 1,
confLabel: '按毛利'
},
{
confId: 2,
confLabel: '按收入'
},
{
confId: 3,
confLabel: '按固定金额'
}, {
confId: 4,
confLabel: '按(产值-流量成本)比例'
},
{
confId: 5,
confLabel: '按(产值-流量成本-其他费用不包含成本)比例'
},
{
confId: 6,
confLabel: '按(产值-流量成本-其他费用包含成本)比例'
}, {
confId: 7,
confLabel: '可扩展兜底'
},
{
confId: 8,
confLabel: '按(收入-自定义其他费用)比例'
},
{
confId: 9,
confLabel: '按(收入-其他费用)比例'
},
{
confId: 10,
confLabel: '按固定金额*购买数量'
}] }]
}, },
defaultWidth: '180px' defaultWidth: '180px'
...@@ -358,6 +420,7 @@ export default { ...@@ -358,6 +420,7 @@ export default {
methods: { methods: {
initComponent() { initComponent() {
this.billTypeStr = this.billTmplInfo.billType == '1' ? 'traffic' : 'service' this.billTypeStr = this.billTmplInfo.billType == '1' ? 'traffic' : 'service'
this.dateStr = Util.dateFormate(this.billTypeStr.startDate, 'YYYY年MM月DD日') + '~' + Util.dateFormate(this.billTypeStr.endDate, 'YYYY年MM月DD日')
console.log(this.billTmplInfo, 'this.billTmplInfo---') console.log(this.billTmplInfo, 'this.billTmplInfo---')
this.tmplFieldsList = JSON.parse(this.billTmplInfo.fieldsJson) this.tmplFieldsList = JSON.parse(this.billTmplInfo.fieldsJson)
console.log(this.tmplFieldsList, 'this.tmplFieldsList---') console.log(this.tmplFieldsList, 'this.tmplFieldsList---')
...@@ -668,7 +731,7 @@ export default { ...@@ -668,7 +731,7 @@ export default {
const source = m.source const source = m.source
const selectField = m.attr.split(',')[0] const selectField = m.attr.split(',')[0]
const inputField = m.attr.split(',')[1] const inputField = m.attr.split(',')[1]
const selectTxt = this.baseData[selectField + 'List'].find(n => n[m.optionId] == item[m.source][selectField])?.[m.optionLabel] const selectTxt = this.baseData[selectField + 'TxtList'].find(n => n[m.optionId] == item[m.source][selectField])?.[m.optionLabel]
item[m.source][selectField] = selectTxt || '' item[m.source][selectField] = selectTxt || ''
} else if (m.type == 'time') { } else if (m.type == 'time') {
item[m.source][m.attr] = item[m.source][m.attr] ? Util.dateFormate(item[m.source][m.attr], 'YYYY-MM-DD HH:mm:ss') : '-' item[m.source][m.attr] = item[m.source][m.attr] ? Util.dateFormate(item[m.source][m.attr], 'YYYY-MM-DD HH:mm:ss') : '-'
...@@ -854,6 +917,10 @@ export default { ...@@ -854,6 +917,10 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.flex {
display: flex;
justify-content: space-between;
}
.el-form-item__error { .el-form-item__error {
color: #f56c6c; color: #f56c6c;
font-size: 12px; font-size: 12px;
...@@ -916,4 +983,12 @@ export default { ...@@ -916,4 +983,12 @@ export default {
padding: 14px; padding: 14px;
text-align: center; text-align: center;
} }
.batch-box {
margin: 10px 36px;
}
.red-txt {
color: #eb4e4e;
font-size: 14px;
margin: 8px 0;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!