Commit b6475fed by 张立顺

Merge branch 'dev_v4.11.0' of http://192.168.3.233:8090/glsx-business/dj-car-lif…

…e-system into dev_v4.11.0
2 parents 5b05a657 8de265be
...@@ -17475,6 +17475,11 @@ ...@@ -17475,6 +17475,11 @@
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
"dev": true "dev": true
}, },
"yarn": {
"version": "1.22.19",
"resolved": "https://registry.npmmirror.com/yarn/-/yarn-1.22.19.tgz",
"integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
},
"yorkie": { "yorkie": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmmirror.com/yorkie/-/yorkie-2.0.0.tgz", "resolved": "https://registry.npmmirror.com/yorkie/-/yorkie-2.0.0.tgz",
......
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
"vuex": "^3.0.1", "vuex": "^3.0.1",
"webpack-theme-color-replacer": "^1.4.1", "webpack-theme-color-replacer": "^1.4.1",
"webpack5-svg-sprite-loader": "^5.1.1", "webpack5-svg-sprite-loader": "^5.1.1",
"xlsx": "^0.16.9" "xlsx": "^0.16.9",
"yarn": "^1.22.19"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.16", "@babel/core": "^7.12.16",
......
...@@ -319,6 +319,7 @@ export const Util = { ...@@ -319,6 +319,7 @@ export const Util = {
fieldShow: function (field, show) { fieldShow: function (field, show) {
return field || show return field || show
}, },
// 整数补零显示两位小数
returnFloat: function(num) { returnFloat: function(num) {
num = num.toString(); num = num.toString();
if (num.indexOf(".") != -1) { if (num.indexOf(".") != -1) {
......
...@@ -322,7 +322,7 @@ ...@@ -322,7 +322,7 @@
align="center" /> align="center" />
<el-table-column prop="shopProfitType" <el-table-column prop="shopProfitType"
label="流量方比例" label="流量方比例"
width="100" width="120"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.shopProfitType">按{{ shopProfitTypeOpts[scope.row.shopProfitType] <span v-if="scope.row.shopProfitType">按{{ shopProfitTypeOpts[scope.row.shopProfitType]
...@@ -576,6 +576,7 @@ import downloadAccountDialog from './downloadAccountDialog' ...@@ -576,6 +576,7 @@ import downloadAccountDialog from './downloadAccountDialog'
import warehouseDetail from './warehouseDetail' import warehouseDetail from './warehouseDetail'
import * as echarts from 'echarts' import * as echarts from 'echarts'
import { asyncExportExcel } from '@api/sys.base' import { asyncExportExcel } from '@api/sys.base'
import { returnFloat } from '@/common/util'
export default { export default {
name: 'FinanceList', name: 'FinanceList',
components: { components: {
...@@ -1020,10 +1021,19 @@ export default { ...@@ -1020,10 +1021,19 @@ export default {
'marketingCost', 'marketingCost',
'rewardAndPenaltyCost' 'rewardAndPenaltyCost'
] ]
const rateToFloat = [ // 分润比例整数补零字段
'franchiseeProfitPer',
'shopProfitPer',
'yqProfitPer',
'glProfitPer',
]
for (const key in item) { for (const key in item) {
if (moneyLabels.indexOf(key) > -1) { if (moneyLabels.indexOf(key) > -1) {
item[key] = typeof item[key] === 'number' ? `¥${item[key]}` : '-' item[key] = typeof item[key] === 'number' ? `¥${item[key]}` : '-'
} }
if (rateToFloat.indexOf(key) > -1) {
item[key] = item[key] && returnFloat(item[key])
}
} }
return item return item
}, },
......
...@@ -5,9 +5,8 @@ ...@@ -5,9 +5,8 @@
slot="header"> slot="header">
<d2-search ref="showSearch" <d2-search ref="showSearch"
class="show-search" class="show-search"
:searchForm="searchForm" :search-form="searchForm"
:formData="showFormData"> :form-data="showFormData" />
</d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId"
size="small" size="small"
...@@ -20,16 +19,16 @@ ...@@ -20,16 +19,16 @@
<d2-table-header> <d2-table-header>
<span slot="left"> <span slot="left">
<auth-button category="Button" <auth-button category="Button"
:showBtnIds="['9070301']"></auth-button> :show-btn-ids="['9070301']" />
</span> </span>
<auth-button category="Button" <auth-button category="Button"
:showBtnIds="['9070303']"></auth-button> :show-btn-ids="['9070303']" />
</d2-table-header> </d2-table-header>
<d2-table ref="outputValueTable" <d2-table ref="outputValueTable"
:searchForm="tableSearchForm" :search-form="tableSearchForm"
:tableParams="tableParams" :table-params="tableParams"
:getListApi="getListApi" :get-list-api="getListApi"
:beforeSearchFn="beforeSearchFn"> :before-search-fn="beforeSearchFn">
<div slot="concatType" <div slot="concatType"
slot-scope="scope"> slot-scope="scope">
<p v-if="scope.scope.concatType == 1">督导</p> <p v-if="scope.scope.concatType == 1">督导</p>
...@@ -37,11 +36,11 @@ ...@@ -37,11 +36,11 @@
</div> </div>
<auth-button slot="auth-button" <auth-button slot="auth-button"
slot-scope="scope" slot-scope="scope"
:data="scope.scope"></auth-button> :data="scope.scope" />
</d2-table> </d2-table>
</div> </div>
<d2-dialog :title="'上传文件'" <d2-dialog :title="'上传文件'"
:isVisible="fileVisible" :is-visible="fileVisible"
@closeDialog="handleImport" @closeDialog="handleImport"
@confirmDialog="handleConfirmImport"> @confirmDialog="handleConfirmImport">
<slot> <slot>
...@@ -53,7 +52,7 @@ ...@@ -53,7 +52,7 @@
prop="fileName"> prop="fileName">
<el-col :span="16"> <el-col :span="16">
<el-input readonly <el-input readonly
v-model="fileForm.fileName"></el-input> v-model="fileForm.fileName" />
</el-col> </el-col>
<el-col :span="4" <el-col :span="4"
class="m-l-md"> class="m-l-md">
...@@ -62,7 +61,7 @@ ...@@ -62,7 +61,7 @@
id="fileUpload" id="fileUpload"
class="import-input" class="import-input"
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@change="importFile($event)" /> @change="importFile($event)">
<el-link href="http://img01.glsx.com.cn/upload/salesexcel/企微推送对象导入模板.xlsx" <el-link href="http://img01.glsx.com.cn/upload/salesexcel/企微推送对象导入模板.xlsx"
type="primary" type="primary"
class="import-template" class="import-template"
...@@ -76,7 +75,7 @@ ...@@ -76,7 +75,7 @@
<d2-dialog :title="chooseType" <d2-dialog :title="chooseType"
@closeDialog="handleObject" @closeDialog="handleObject"
@confirmDialog="handleConfirmObject" @confirmDialog="handleConfirmObject"
:isVisible="pushVisible"> :is-visible="pushVisible">
<slot> <slot>
<el-form :model="pushForm" <el-form :model="pushForm"
ref="pushForm" ref="pushForm"
...@@ -92,19 +91,20 @@ ...@@ -92,19 +91,20 @@
<el-option v-for="item in state" <el-option v-for="item in state"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value"></el-option> :value="item.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="商户:" <el-form-item label="商户:"
prop="merchantName"> prop="merchantName">
<el-select v-model="pushForm.merchantName" <el-select v-model="pushForm.merchantName"
clearable clearable
filterable
style="width: 280px;" style="width: 280px;"
placeholder="请选择"> placeholder="请选择">
<el-option v-for="item in changeList" <el-option v-for="item in changeList"
:key="item.merchantId" :key="item.merchantId"
:label="item.merchantName" :label="item.merchantName"
:value="item.merchantName"></el-option> :value="item.merchantName" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="姓名:" <el-form-item label="姓名:"
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<el-input v-model="pushForm.name" <el-input v-model="pushForm.name"
style="width: 280px;" style="width: 280px;"
placeholder="请输入姓名" placeholder="请输入姓名"
clearable></el-input> clearable />
</el-form-item> </el-form-item>
<el-form-item label="手机号:" <el-form-item label="手机号:"
prop="phone" prop="phone"
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<el-input v-model="pushForm.phone" <el-input v-model="pushForm.phone"
style="width: 280px;" style="width: 280px;"
placeholder="请输入手机号" placeholder="请输入手机号"
clearable></el-input> clearable />
</el-form-item> </el-form-item>
</el-form> </el-form>
</slot> </slot>
...@@ -144,7 +144,7 @@ const state = [ ...@@ -144,7 +144,7 @@ const state = [
} }
] ]
export default { export default {
name: 'outputValue', name: 'OutputValue',
data() { data() {
return { return {
state, state,
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
}, },
computed: { computed: {
...mapState({ ...mapState({
'updateList': (state) => state.d2admin.user.updateList updateList: (state) => state.d2admin.user.updateList
}) })
}, },
watch: { watch: {
......
...@@ -423,6 +423,7 @@ export default { ...@@ -423,6 +423,7 @@ export default {
this.getDetail() this.getDetail()
} else { } else {
this.setAccountRule(this.merchantInfo.settleRule) this.setAccountRule(this.merchantInfo.settleRule)
console.log(this.merchantInfo.divisionRule)
this.setDivisionRule(deepClone(this.merchantInfo.divisionRule)) this.setDivisionRule(deepClone(this.merchantInfo.divisionRule))
// const res = Object.assign(this.merchantInfo.settleRule, this.merchantInfo.divisionRule) // const res = Object.assign(this.merchantInfo.settleRule, this.merchantInfo.divisionRule)
// this.setDivisionRule(res) // this.setDivisionRule(res)
...@@ -485,6 +486,10 @@ export default { ...@@ -485,6 +486,10 @@ export default {
if (res) { if (res) {
// console.log('483', deepClone(res.goodsTypeSettleRuleList)) // console.log('483', deepClone(res.goodsTypeSettleRuleList))
// console.log('483', util.deepClone(res.goodsTypeSettleRuleList)) // console.log('483', util.deepClone(res.goodsTypeSettleRuleList))
res.goodsTypeSettleRuleList && res.goodsTypeSettleRuleList.forEach(val => {
if (val.merchantProfitValue) val.merchantProfitValue = returnFloat(val.merchantProfitValue)
if (val.partnerProfitPer) val.partnerProfitPer = returnFloat(val.partnerProfitPer)
})
this.settleRuleList = deepClone(res.goodsTypeSettleRuleList) this.settleRuleList = deepClone(res.goodsTypeSettleRuleList)
// console.log(res.goodsTypeSettleRuleList) // console.log(res.goodsTypeSettleRuleList)
this.merchantInfo.deductChargeFlag = res.deductChargeFlag this.merchantInfo.deductChargeFlag = res.deductChargeFlag
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!