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