Commit 7a19fefb by 张立顺

Merge branch 'SAAS+V4.54.0-0630' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.54.0-0630
2 parents fe5cb62d ae80efb7
...@@ -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',
...@@ -321,10 +322,9 @@ export default { ...@@ -321,10 +322,9 @@ export default {
source: 'ORDER', source: 'ORDER',
rule: (value) => { rule: (value) => {
var errorTxt = '' var errorTxt = ''
const min = 0
const max = 999999 const max = 999999
if (value < min || value > max) { if (value > max) {
errorTxt = `请输入${min}-${max}的数字` errorTxt = `请输入小于${max}的数字`
} else if (value !== null && value !== undefined && value !== '') { } else if (value !== null && value !== undefined && value !== '') {
const decimalPart = String(value).split('.')[1] const decimalPart = String(value).split('.')[1]
if (decimalPart && decimalPart.length > 2) { if (decimalPart && decimalPart.length > 2) {
...@@ -630,6 +630,7 @@ export default { ...@@ -630,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)
...@@ -669,7 +670,7 @@ export default { ...@@ -669,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) {
...@@ -842,6 +843,7 @@ export default { ...@@ -842,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))]
...@@ -908,6 +910,7 @@ export default { ...@@ -908,6 +910,7 @@ export default {
}, },
// 处理表格里面的数据,需结合表头这个字段的特有属性进行处理
dealTableData() { dealTableData() {
this.tableList = [] this.tableList = []
let serialNo = 0 let serialNo = 0
...@@ -960,13 +963,14 @@ export default { ...@@ -960,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 = {};
...@@ -1033,8 +1037,10 @@ export default { ...@@ -1033,8 +1037,10 @@ export default {
} }
} }
}) })
orderCodeList.forEach((item, idx) => { var orders = this.uniqueByProperty(this.multipleSelecList.map(item => item.ORDER), 'orderCode')
this.dealModify(idx, this.headObj.extInfo.source, this.headObj.fieldCode) orders.forEach((item, idx) => {
const rowIdx = this.tableList.findIndex(k => k.ORDER.orderCode == item.orderCode)
this.dealModify(rowIdx, this.headObj.extInfo.source, this.headObj.fieldCode)
}) })
this.$nextTick(() => { this.$nextTick(() => {
this.billCompute() this.billCompute()
...@@ -1056,6 +1062,7 @@ export default { ...@@ -1056,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">
...@@ -87,7 +87,6 @@ import { getMerchantPageSearch } from '@api/publicAccount' ...@@ -87,7 +87,6 @@ import { getMerchantPageSearch } from '@api/publicAccount'
import { getTmplList, getMetaTmpl, getBillTmplAdapter, getShopList } from '@api/accountManage' import { getTmplList, getMetaTmpl, getBillTmplAdapter, getShopList } from '@api/accountManage'
import { mapActions, mapState } from 'vuex' import { mapActions, mapState } from 'vuex'
import { localTmplList } from "./constant/baseData" import { localTmplList } from "./constant/baseData"
import { resData } from "./resData"
export default { export default {
name: 'DownloadAccountDialog', name: 'DownloadAccountDialog',
data() { data() {
...@@ -103,6 +102,7 @@ export default { ...@@ -103,6 +102,7 @@ export default {
} }
} }
return { return {
loading: false,
// 判断是否是模版模式 // 判断是否是模版模式
isTmpl: false, isTmpl: false,
localTmplList: deepClone(localTmplList), localTmplList: deepClone(localTmplList),
...@@ -258,6 +258,7 @@ export default { ...@@ -258,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 = []
...@@ -272,6 +273,8 @@ export default { ...@@ -272,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
}) })
}, },
...@@ -488,7 +491,6 @@ export default { ...@@ -488,7 +491,6 @@ export default {
// 系统对账 // 系统对账
handleSystemBill() { handleSystemBill() {
// this.$emit('handleBill', { billTmplInfo: resData.data })
this.$refs.accountForm.validate(valid => { this.$refs.accountForm.validate(valid => {
if (valid) { if (valid) {
var params = this.getParams() var params = this.getParams()
......
...@@ -84,14 +84,14 @@ ...@@ -84,14 +84,14 @@
</div> </div>
<div class="itemDiv"> <div class="itemDiv">
<el-form-item label="银行摘要:" <el-form-item label="银行摘要:"
class="halfItem"> class="halfItem"
{{ detailInfo.purpose ? detailInfo.purpose : "-" }} :title="detailInfo.purpose">
{{ detailInfo.purpose ? (detailInfo.purpose.length > 20 ? (detailInfo.purpose.slice(0, 20) + '...') : detailInfo.purpose) : '-' }}
</el-form-item> </el-form-item>
<el-form-item label="备注:" <el-form-item label="备注:"
class="halfItem"> class="halfItem"
{{ :title="detailInfo.remark">
detailInfo.remark ? detailInfo.remark : "-" {{ detailInfo.remark ? (detailInfo.remark.length > 20 ? (detailInfo.remark.slice(0, 20) + '...') : detailInfo.remark) : '-' }}
}}
</el-form-item> </el-form-item>
</div> </div>
<div class="itemDiv"> <div class="itemDiv">
......
...@@ -40,6 +40,19 @@ ...@@ -40,6 +40,19 @@
:table-params="tableParams" :table-params="tableParams"
:before-search-fn="beforeSearchFn" :before-search-fn="beforeSearchFn"
:selectable-fn="selectableFn"> :selectable-fn="selectableFn">
<div slot="purposeHtml"
slot-scope="scope">
<span>
<el-tooltip class="item"
effect="dark"
:content="scope.scope.purpose"
placement="right">
<span>
{{ scope.scope.purpose ? (scope.scope.purpose.length > 15 ? (scope.scope.purpose.slice(0, 15) + '...') : scope.scope.purpose) : '' }}
</span>
</el-tooltip>
</span>
</div>
<div slot="postScriptHtml" <div slot="postScriptHtml"
slot-scope="scope"> slot-scope="scope">
<span> <span>
...@@ -293,7 +306,8 @@ export default { ...@@ -293,7 +306,8 @@ export default {
}, { }, {
label: '银行摘要', label: '银行摘要',
prop: 'purpose', prop: 'purpose',
width: '200px' width: '250px',
addHtml: "purposeHtml"
}, { }, {
label: '财资付款状态', label: '财资付款状态',
prop: 'nbTransferStatus', prop: 'nbTransferStatus',
...@@ -304,7 +318,7 @@ export default { ...@@ -304,7 +318,7 @@ export default {
}, { }, {
label: '备注', label: '备注',
prop: 'remark', prop: 'remark',
width: '200px', width: '250px',
addHtml: "postScriptHtml" addHtml: "postScriptHtml"
}, { }, {
label: '回单状态', label: '回单状态',
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="user-info"> <div class="user-info">
<div>{{ qualityDetailList[currentNum].phoneNumber.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') }} <span <div>{{ qualityDetailList[currentNum].phoneNumber.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') }} <span
class="line"></span> {{ qualityDetailList[currentNum].carModel }}</div> class="line"></span> {{ qualityDetailList[currentNum].carModel }}</div>
<div class="time">{{ qualityDetailList[currentNum].createdDate }}</div> <!-- <div class="time">{{ qualityDetailList[currentNum].createdDate }}</div> -->
</div> </div>
<div class="overview"> <div class="overview">
<div class="item"> <div class="item">
...@@ -182,7 +182,7 @@ export default { ...@@ -182,7 +182,7 @@ export default {
this.onPageShow() this.onPageShow()
}, },
immediate: true immediate: true
} },
}, },
computed: { computed: {
dialogueRef() { dialogueRef() {
...@@ -228,6 +228,7 @@ export default { ...@@ -228,6 +228,7 @@ export default {
}, },
//音频暂停 //音频暂停
onPause() { onPause() {
console.log(111, 'onPause')
const { const {
activeName activeName
} = this } = this
......
...@@ -408,7 +408,10 @@ export default { ...@@ -408,7 +408,10 @@ export default {
}, },
closeDialog () { closeDialog () {
if(this.$refs.qualityDetail) this.$refs.qualityDetail.onPageHide() if(this.$refs.qualityDetail) this.$refs.qualityDetail.onPageHide()
if(this.$refs.newQualityDetail) this.$refs.newQualityDetail.onPageHide() if(this.$refs.newQualityDetail) {
this.$refs.newQualityDetail.onPause()
this.$refs.newQualityDetail.onPageHide()
}
this.isQualityVisible = false this.isQualityVisible = false
this.isNewQualityVisible = false this.isNewQualityVisible = false
this.onPageShow() this.onPageShow()
......
...@@ -215,7 +215,7 @@ export default { ...@@ -215,7 +215,7 @@ export default {
handleInput(e, key, index, isNameField = false) { handleInput(e, key, index, isNameField = false) {
if (key == 'customDeduction') { if (key == 'customDeduction') {
if (!isNameField) { if (!isNameField) {
this.$set(this.customDeductionList[index], key, limitPriceForNegative(e)) this.$set(this.customDeductionList[index], key, this.limitPriceForNegative(e))
} else { } else {
this.$set(this.customDeductionList[index], 'itemName', e) this.$set(this.customDeductionList[index], 'itemName', e)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!