Commit b851339c by 前端

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

…ife-system into SAAS+V4.45.0-0926
2 parents 7720e48d 0f9e45fd
......@@ -312,7 +312,7 @@
<td v-else>
{{ proportionTypeOpts[item.expenseCategoryCalculateType]?(proportionTypeOpts[item.expenseCategoryCalculateType]+item.expenseCategoryValue+(item.expenseCategoryCalculateType == 3 ? '元' : '%') ):'-' }}
</td>
<td>{{ item.expenseCategoryResult?('¥ '+item.expenseCategoryResult):'¥0' }}</td>
<td>{{ !item.noData ? (item.expenseCategoryResult?('¥ '+item.expenseCategoryResult):'¥0') : '-' }}</td>
</tr>
</table>
<!-- 审计需求先屏蔽 -->
......@@ -467,6 +467,15 @@ export default {
this.reconciliationData.push(item)
}
})
} else { // 不返回财务分账信息数据,默认展示一条空数据
let _data = {
expenseCategoryName: '流量费',
targetType: 1,
targetMerchantName: res?.orderDivision?.realityShopMerchantName,
targetMerchantId: res?.orderDivision?.realityShopMerchantId,
noData: true
}
this.ledgerData.push(_data)
}
},
......
......@@ -516,8 +516,21 @@ export default {
},
// 导出
handleExport() {
var params = this.searchForm
var params = deepClone(this.searchForm)
params.method = 'dj.api.smartcarlife.merchantPackageGoodsInfo.export.Async'
let [merchantIdList, yqMerchantIdList] = [[], []]
merchantIdList = [params.merchantId] || undefined
yqMerchantIdList = [params.yqMerchantId] || undefined
merchantIdList?.forEach((item, index) => {
const merchantId = `merchantIdList[${index}]`
params[merchantId] = item
})
yqMerchantIdList?.forEach((item, index) => {
const yqMerchantId = `yqMerchantIdList[${index}]`
params[yqMerchantId] = item
})
delete params.merchantIdList
delete params.yqMerchantIdList
const list = [
...this.dowloadList,
{
......
......@@ -37,7 +37,8 @@
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
:filter-list-data="true">
:filter-list-data="true"
@setTableFinishFun="setTableFinishFun">
<div class="material" slot="img" slot-scope="scope">
<img class="pro-img" :src="scope.scope.goodsInfo.thumbUrl">
<span class="good_name">{{ scope.scope.goodsInfo.goodsName }}</span>
......@@ -334,6 +335,11 @@ export default {
resolve()
})
},
setTableFinishFun(data) {
data?.forEach(v => {
if (v.goodsInfo) v.goodsInfo.type = v.goodsInfo.sapCode || ''
})
},
keyDowmGetList() {
this.$refs.productManageTable.refreshTable()
},
......
......@@ -18,8 +18,8 @@
<el-col :span="8">
<el-form-item label="门店员工:" class="halfItem">
{{ detailInfo.staffName ? detailInfo.staffName : "-" }}
{{ detailInfo.staffPhone ? detailInfo.staffPhone : "-" }}
{{ detailInfo.referrerName ? detailInfo.referrerName : "-" }}
{{ detailInfo.referrerPhone ? detailInfo.referrerPhone : "-" }}
</el-form-item></el-col
>
<el-col :span="8">
......
......@@ -134,7 +134,7 @@ export default {
},
{
label: "门店员工",
name: "staffName",
name: "referrerName",
type: "input",
isClear: true
},
......@@ -194,7 +194,7 @@ export default {
],
searchFormSearch: {},
searchForm: {
staffName: "",
referrerName: "",
merchantName: "",
customerName: "",
payTime: [],
......@@ -290,9 +290,9 @@ export default {
{
label: "门店员工",
width: "200px",
prop: "staffName",
prop: "referrerName",
formatter: (cell) => {
return cell.staffName + cell.staffPhone
return `${cell.referrerName || '-'}${cell.referrerPhone || '-'}`
}
},
{
......@@ -300,7 +300,7 @@ export default {
width: "200px",
prop: "transferName",
formatter: (cell) => {
return cell.transferName + cell.transferPhone
return `${cell.transferName || '-'}${cell.transferPhone || '-'}`
}
},
{
......@@ -476,7 +476,7 @@ export default {
handleReset() {
this.searchForm = {
staffName: "",
referrerName: "",
merchantId: "",
customerName: "",
payTime: [],
......
......@@ -251,7 +251,7 @@
classificationObj.trafficSide[index]
.expenseCategoryCalculateType
"
@change="forceUpdate"
@change="($event) => forceUpdate($event, 'trafficSide', index)"
placeholder="请选择分润模式"
>
<el-option
......@@ -364,7 +364,7 @@
>
<el-select
v-model="scope.row.expenseCategoryCalculateType"
@change="forceUpdate"
@change="($event) => forceUpdate($event, 'trafficSide', index, scope.$index)"
placeholder="请选择分润模式"
>
<el-option
......@@ -524,7 +524,7 @@
classificationObj.serviceProvider[index]
.expenseCategoryCalculateType
"
@change="forceUpdate"
@change="($event) => forceUpdate($event, 'serviceProvider', index)"
placeholder="请选择分润模式"
>
<el-option
......@@ -650,7 +650,7 @@
>
<el-select
v-model="scope.row.expenseCategoryCalculateType"
@change="forceUpdate"
@change="($event) => forceUpdate($event, 'serviceProvider', index, scope.$index)"
placeholder="请选择分润模式"
>
<el-option
......@@ -907,6 +907,7 @@
classificationObj.platformPublic[index]
.expenseCategoryCalculateType
"
@change="($event) => forceUpdate($event, 'platformPublic', index)"
placeholder="请选择分润模式"
>
<el-option
......@@ -1018,7 +1019,7 @@
>
<el-select
v-model="scope.row.expenseCategoryCalculateType"
@change="forceUpdate"
@change="($event) => forceUpdate($event, 'platformPublic', index, scope.$index)"
placeholder="请选择分润模式"
>
<el-option
......@@ -1903,7 +1904,7 @@ export default {
console.log(name, "name", type, "type", index, "index")
// const handleName = this.classificationObj[name][index]
// 按金额
if (type == 3) {
if (type == 3 || type == 10) {
// this.classificationObj[name][index].expenseCategoryValue = limitPrice(newValue, this.accountSecondSetForm[name], 10, 2)
valueName.expenseCategoryValue = limitPrice(
newValue,
......@@ -2097,7 +2098,18 @@ export default {
this.handleSelectChange()
// this.classificationObj.expenseCategoryRules = list
},
forceUpdate() {
filterEmpty(data) {
return (data ?? "") === ""
},
forceUpdate(e, name, index, subIndex) {
// e 分润模式, name 分润方, index 主类目下标, subIndex 子类目下标
if (e) {
if (this.filterEmpty(subIndex)) { // 主类目
this.classificationObj[name][index].expenseCategoryValue = ''
} else { // 子类目
this.classificationObj[name][index].children[subIndex].expenseCategoryValue = ''
}
}
this.$forceUpdate() // 强制更新
},
......
......@@ -111,7 +111,7 @@
trigger: 'change'
}]" label-width="260px">
<el-select class="w432" v-model="classificationObj.flowCostArr[floweIdx].expenseCategoryCalculateType"
placeholder="请选择对账模式" @change="forceUpdate">
placeholder="请选择对账模式" @change="($event) => forceUpdate($event, 'flowCostArr', floweIdx)">
<el-option v-for="(item, index) in flowFeeList" :key="index + 'flowFeeList'" :label="item.label"
:value="item.expenseCategoryCalculateType"></el-option>
</el-select>
......@@ -160,7 +160,7 @@
:prop="`flowCostArr[${floweIdx}].children[${scope.$index}].expenseCategoryCalculateType`"
:rules="[{ required: true, message: '请选择对账模式', trigger: 'change' }]">
<el-select v-model="scope.row.expenseCategoryCalculateType"
placeholder="请选择对账模式" @change="forceUpdate">
placeholder="请选择对账模式" @change="($event) => forceUpdate($event, 'flowCostArr', floweIdx, scope.$index)">
<el-option v-for="el in flowFeeList" :key="el.expenseCategoryCalculateType" :label="el.label"
:value="el.expenseCategoryCalculateType" />
</el-select>
......@@ -253,7 +253,7 @@
<el-form-item :prop="'serviceCostArr.' + serveIdx + '.expenseCategoryCalculateType'"
:rules="[{ required: true, message: '请选择对账模式', trigger: 'change' }]" label-width="260px">
<el-select class="w432" v-model="classificationObj.serviceCostArr[serveIdx].expenseCategoryCalculateType"
@change="forceUpdate" placeholder="请选择对账模式">
@change="($event) => forceUpdate($event, 'serviceCostArr', serveIdx)" placeholder="请选择对账模式">
<el-option v-for="(item, index) in serveFeeList" :key="index + 'serveFeeList'" :label="item.label"
:value="item.expenseCategoryCalculateType"></el-option>
</el-select>
......@@ -303,7 +303,7 @@
:prop="`serviceCostArr[${serveIdx}].children[${scope.$index}].expenseCategoryCalculateType`"
:rules="[{ required: true, message: '请选择对账模式', trigger: 'change' }]">
<el-select v-model="scope.row.expenseCategoryCalculateType"
placeholder="请选择对账模式" @change="forceUpdate">
placeholder="请选择对账模式" @change="($event) => forceUpdate($event, 'serviceCostArr', serveIdx, scope.$index)">
<el-option v-for="el in serveFeeList" :key="el.expenseCategoryCalculateType" :label="el.label"
:value="el.expenseCategoryCalculateType" />
</el-select>
......@@ -393,7 +393,7 @@
<el-form-item :prop="'platformCostArr.' + platformIdx + '.expenseCategoryCalculateType'"
:rules="[{ required: true, message: '请选择对账模式', trigger: ['change', 'blur'] }]" label-width="260px">
<el-select class="w432" v-model="classificationObj.platformCostArr[platformIdx].expenseCategoryCalculateType"
placeholder="请选择对账模式" @change="forceUpdate">
placeholder="请选择对账模式" @change="($event) => forceUpdate($event, 'platformCostArr', platformIdx)">
<el-option v-for="(item, index) in platformFeeList" :key="index + 'platformFeeList'" :label="item.label"
:value="item.expenseCategoryCalculateType"></el-option>
</el-select>
......@@ -441,7 +441,7 @@
:prop="`platformCostArr[${platformIdx}].children[${scope.$index}].expenseCategoryCalculateType`"
:rules="[{ required: true, message: '请选择对账模式', trigger: 'change' }]">
<el-select v-model="scope.row.expenseCategoryCalculateType"
placeholder="请选择对账模式" @change="forceUpdate">
placeholder="请选择对账模式" @change="($event) => forceUpdate($event, 'platformCostArr', platformIdx, scope.$index)">
<el-option v-for="el in platformFeeList" :key="el.expenseCategoryCalculateType" :label="el.label"
:value="el.expenseCategoryCalculateType" />
</el-select>
......@@ -873,7 +873,18 @@ export default {
this.$emit('deleteSelectPackageGoodsList', this.classificationObj.packageGoods)
this.classificationObj.packageGoods = []
},
forceUpdate() {
filterEmpty(data) {
return (data ?? "") === ""
},
forceUpdate(e, name, index, subIndex) {
// e 分润模式, name 分润方, index 主类目下标, subIndex 子类目下标
if (e) {
if (this.filterEmpty(subIndex)) { // 主类目
this.classificationObj[name][index].expenseCategoryValue = ''
} else { // 子类目
this.classificationObj[name][index].children[subIndex].expenseCategoryValue = ''
}
}
this.$forceUpdate() // 强制更新
},
handleInput(newValue, name, type, index, ChildrenIndex) {
......@@ -885,7 +896,7 @@ export default {
}
newValue = newValue.replace(/[^\d.]/g, "") // 清除“数字”和“.”以外的字符
// 按金额
if (type == 3) {
if (type == 3 || type == 10) {
valueName.expenseCategoryValue = limitPrice(
newValue,
valueName.expenseCategoryValue,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!