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 {
attr: 'paymentTime',
type: 'time'
}],
// 用于标记表头字段是否可以编辑(唯一标识:source + FieldCode)
trafficSourceEditList: [
'ORDERplatformMerchantId',
'ORDERshopDivisionMoney',
......@@ -321,10 +322,9 @@ export default {
source: 'ORDER',
rule: (value) => {
var errorTxt = ''
const min = 0
const max = 999999
if (value < min || value > max) {
errorTxt = `请输入${min}-${max}的数字`
if (value > max) {
errorTxt = `请输入小于${max}的数字`
} else if (value !== null && value !== undefined && value !== '') {
const decimalPart = String(value).split('.')[1]
if (decimalPart && decimalPart.length > 2) {
......@@ -630,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)
......@@ -669,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) {
......@@ -842,6 +843,7 @@ export default {
})
},
// 处理动态表头信息,并将该列字段的特有属性写入,方便对表格里面的项做处理
dealTable() {
this.tableHeader = []
const moduleList = [...new Set(this.tmplFieldsList.map(item => item.moduleName))]
......@@ -908,6 +910,7 @@ export default {
},
// 处理表格里面的数据,需结合表头这个字段的特有属性进行处理
dealTableData() {
this.tableList = []
let serialNo = 0
......@@ -960,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 = {};
......@@ -1033,8 +1037,10 @@ export default {
}
}
})
orderCodeList.forEach((item, idx) => {
this.dealModify(idx, this.headObj.extInfo.source, this.headObj.fieldCode)
var orders = this.uniqueByProperty(this.multipleSelecList.map(item => item.ORDER), 'orderCode')
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.billCompute()
......@@ -1056,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">
......@@ -87,7 +87,6 @@ import { getMerchantPageSearch } from '@api/publicAccount'
import { getTmplList, getMetaTmpl, getBillTmplAdapter, getShopList } from '@api/accountManage'
import { mapActions, mapState } from 'vuex'
import { localTmplList } from "./constant/baseData"
import { resData } from "./resData"
export default {
name: 'DownloadAccountDialog',
data() {
......@@ -103,6 +102,7 @@ export default {
}
}
return {
loading: false,
// 判断是否是模版模式
isTmpl: false,
localTmplList: deepClone(localTmplList),
......@@ -258,6 +258,7 @@ export default {
...mapActions('d2admin/user', ['actionSetDownloadList']),
selectMerchant() {
var params = {}
this.loading = true
params.currentPage = 1
params.pageSize = 10000
var merchantTypeList = []
......@@ -272,6 +273,8 @@ export default {
getMerchantPageSearch(params).then(res => {
this.baseData.merchantList = res.list
this.infoForm.merchant = []
}).finally(() => {
this.loading = false
})
},
......@@ -488,7 +491,6 @@ export default {
// 系统对账
handleSystemBill() {
// this.$emit('handleBill', { billTmplInfo: resData.data })
this.$refs.accountForm.validate(valid => {
if (valid) {
var params = this.getParams()
......
......@@ -84,14 +84,14 @@
</div>
<div class="itemDiv">
<el-form-item label="银行摘要:"
class="halfItem">
{{ detailInfo.purpose ? detailInfo.purpose : "-" }}
class="halfItem"
:title="detailInfo.purpose">
{{ detailInfo.purpose ? (detailInfo.purpose.length > 20 ? (detailInfo.purpose.slice(0, 20) + '...') : detailInfo.purpose) : '-' }}
</el-form-item>
<el-form-item label="备注:"
class="halfItem">
{{
detailInfo.remark ? detailInfo.remark : "-"
}}
class="halfItem"
:title="detailInfo.remark">
{{ detailInfo.remark ? (detailInfo.remark.length > 20 ? (detailInfo.remark.slice(0, 20) + '...') : detailInfo.remark) : '-' }}
</el-form-item>
</div>
<div class="itemDiv">
......
......@@ -40,6 +40,19 @@
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
: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"
slot-scope="scope">
<span>
......@@ -293,7 +306,8 @@ export default {
}, {
label: '银行摘要',
prop: 'purpose',
width: '200px'
width: '250px',
addHtml: "purposeHtml"
}, {
label: '财资付款状态',
prop: 'nbTransferStatus',
......@@ -304,7 +318,7 @@ export default {
}, {
label: '备注',
prop: 'remark',
width: '200px',
width: '250px',
addHtml: "postScriptHtml"
}, {
label: '回单状态',
......
......@@ -10,7 +10,7 @@
<div class="user-info">
<div>{{ qualityDetailList[currentNum].phoneNumber.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2') }} <span
class="line"></span> {{ qualityDetailList[currentNum].carModel }}</div>
<div class="time">{{ qualityDetailList[currentNum].createdDate }}</div>
<!-- <div class="time">{{ qualityDetailList[currentNum].createdDate }}</div> -->
</div>
<div class="overview">
<div class="item">
......@@ -182,7 +182,7 @@ export default {
this.onPageShow()
},
immediate: true
}
},
},
computed: {
dialogueRef() {
......@@ -228,6 +228,7 @@ export default {
},
//音频暂停
onPause() {
console.log(111, 'onPause')
const {
activeName
} = this
......
......@@ -408,7 +408,10 @@ export default {
},
closeDialog () {
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.isNewQualityVisible = false
this.onPageShow()
......
......@@ -215,7 +215,7 @@ export default {
handleInput(e, key, index, isNameField = false) {
if (key == 'customDeduction') {
if (!isNameField) {
this.$set(this.customDeductionList[index], key, limitPriceForNegative(e))
this.$set(this.customDeductionList[index], key, this.limitPriceForNegative(e))
} else {
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!