Commit 64a29b5f by zhangxw

财务、积分归属需求开发

1 parent 987faaa3
...@@ -114,3 +114,15 @@ export function employeeRegister(data) { ...@@ -114,3 +114,15 @@ export function employeeRegister(data) {
data.method = `${path}staff.register` data.method = `${path}staff.register`
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
// 设置积分归属
export function setIntegralBelongApi(data) {
data.method = `${path}merchant.score.conf.update`
return request(data, "post")
}
// 获取积分归属
export function getIntegralBelongApi(data) {
data.method = `${path}merchant.score.conf.get`
return request(data, "post")
}
...@@ -11,6 +11,10 @@ export const defaultSelectOptions = [ ...@@ -11,6 +11,10 @@ export const defaultSelectOptions = [
{ {
expenseCategoryCalculateType: 3, expenseCategoryCalculateType: 3,
label: "按固定金额" label: "按固定金额"
},
{
expenseCategoryCalculateType: 10,
label: "按固定金额*购买数量"
} }
] ]
...@@ -54,6 +58,10 @@ export const severSelectOptions = [ ...@@ -54,6 +58,10 @@ export const severSelectOptions = [
label: "按固定金额" label: "按固定金额"
}, },
{ {
expenseCategoryCalculateType: 10,
label: "按固定金额*购买数量"
},
{
expenseCategoryCalculateType: 4, expenseCategoryCalculateType: 4,
label: "按园区店总金额比例" label: "按园区店总金额比例"
}, },
...@@ -83,7 +91,8 @@ export const severSelectOptionsLabel = { ...@@ -83,7 +91,8 @@ export const severSelectOptionsLabel = {
5: "按(产值-流量成本-其他费用不包含产品成本))比例", 5: "按(产值-流量成本-其他费用不包含产品成本))比例",
6: "按(产值-流量成本-其他费用包含产品成本)比例", 6: "按(产值-流量成本-其他费用包含产品成本)比例",
8: "按(收入-自定义其他费用)比例", 8: "按(收入-自定义其他费用)比例",
9: "按(收入-其他费用)比例" 9: "按(收入-其他费用)比例",
10: "按固定金额" // (按固定金额*购买数量)方便财务测算处理显示
} }
// 商品来源 // 商品来源
export const goodsSourceList = [ export const goodsSourceList = [
......
...@@ -504,7 +504,9 @@ export const proportionType = { ...@@ -504,7 +504,9 @@ export const proportionType = {
3: "(固定金额)", 3: "(固定金额)",
4: "(产值-流量成本)", 4: "(产值-流量成本)",
5: "(产值-流量成本-其他费用不包含产品成本)", 5: "(产值-流量成本-其他费用不包含产品成本)",
6: "(产值-流量成本-其他费用包含产品成本)" 6: "(产值-流量成本-其他费用包含产品成本)",
8: "(收入-自定义其他费用)",
9: "(收入-其他费用)"
} }
export const targetType = { export const targetType = {
......
...@@ -556,6 +556,13 @@ export const routerName = { ...@@ -556,6 +556,13 @@ export const routerName = {
1: "下架" 1: "下架"
} }
} }
},
{
authId: "9031210",
parentId: "90312",
label: "导出",
category: "Button",
handle: "handleExport"
} }
], ],
component: _import("goods/packageManage/index") component: _import("goods/packageManage/index")
......
...@@ -787,6 +787,12 @@ export const routerName = { ...@@ -787,6 +787,12 @@ export const routerName = {
label: "员工注册码", label: "员工注册码",
handle: "employeeRegistrationCode" handle: "employeeRegistrationCode"
}, },
{
authId: "9061913",
parentId: "90619",
label: "积分归属",
handle: "setPointsAttribution"
},
], ],
component: _import("systemConfig/ShopConfig/index") component: _import("systemConfig/ShopConfig/index")
}, },
......
...@@ -94,7 +94,7 @@ export const routerName = { ...@@ -94,7 +94,7 @@ export const routerName = {
authId: "91403", authId: "91403",
parentId: "91402", parentId: "91402",
cache: false, cache: false,
activePath: "/pointDetail" activePath: "/pointParticulars"
}, },
component: _import("pointManagement/pointDetail") component: _import("pointManagement/pointDetail")
}, },
......
...@@ -306,8 +306,11 @@ ...@@ -306,8 +306,11 @@
<td> <td>
{{ item.targetMerchantId?(item.targetType == 2 ? '-' :item.targetMerchantId):'-' }} {{ item.targetMerchantId?(item.targetType == 2 ? '-' :item.targetMerchantId):'-' }}
</td> </td>
<td> <td v-if="item.expenseCategoryCalculateType == 10">
{{ proportionTypeOpts[item.expenseCategoryCalculateType]?(proportionTypeOpts[item.expenseCategoryCalculateType]+item.expenseCategoryValue+'%' ):'-' }} {{ `按固定金额${item.expenseCategoryValue}元*` }}{{ item.purchaseNum || '' }}
</td>
<td v-else>
{{ proportionTypeOpts[item.expenseCategoryCalculateType]?(proportionTypeOpts[item.expenseCategoryCalculateType]+item.expenseCategoryValue+(item.expenseCategoryCalculateType == 3 ? '元' : '%') ):'-' }}
</td> </td>
<td>{{ item.expenseCategoryResult?('¥ '+item.expenseCategoryResult):'¥0' }}</td> <td>{{ item.expenseCategoryResult?('¥ '+item.expenseCategoryResult):'¥0' }}</td>
</tr> </tr>
......
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
<!-- 批量审核 --> <!-- 批量审核 -->
<auth-button style="display: inline-block;" category="Button" :show-btn-ids="['9031206']" /> <auth-button style="display: inline-block;" category="Button" :show-btn-ids="['9031206']" />
</span> </span>
<!-- 导出 -->
<auth-button category="Button" style="display: inline-block" :show-btn-ids="['9031210']" />
</d2-table-header> </d2-table-header>
<d2-table ref="packageIndexTable" <d2-table ref="packageIndexTable"
:has-num="false" :has-num="false"
...@@ -511,6 +513,21 @@ export default { ...@@ -511,6 +513,21 @@ export default {
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
},
// 导出
handleExport() {
var params = this.searchForm
params.method = 'dj.api.smartcarlife.merchantPackageGoodsInfo.export.Async'
const list = [
...this.dowloadList,
{
name: '套餐列表',
exportParam: JSON.stringify(params),
status: 'waiting',
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: 'dowloadList' })
} }
} }
} }
......
...@@ -304,6 +304,14 @@ export default { ...@@ -304,6 +304,14 @@ export default {
} }
}, },
{ {
label: "积分归属",
width: "100px",
prop: "staffSource",
formatter: (cell) => {
return cell.staffSource == 1 ? '驻店员工' : '门店员工'
}
},
{
label: "订单时间", label: "订单时间",
width: "200px", width: "200px",
formatter: (cell) => { formatter: (cell) => {
......
...@@ -120,6 +120,23 @@ ...@@ -120,6 +120,23 @@
v-if="flagVisible" v-if="flagVisible"
@dialogClose="flagDialogClose" @dialogClose="flagDialogClose"
/> />
<!-- 积分归属 -->
<d2-dialog
:title="'提示'"
:is-visible="setPointsVisible"
@closeDialog="handleCancel"
@confirmDialog="handleConfirmSet"
width="576px">
<el-form :model="pointSetObj" ref="ruleForm" class="points-set-form">
<el-form-item label-width="120px" label="门店积分归属:" prop="type">
<el-radio-group
v-model="pointSetObj.type">
<el-radio :label="0">门店员工</el-radio>
<el-radio :label="1">驻店员工</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
</d2-dialog>
</div> </div>
</template> </template>
...@@ -127,7 +144,7 @@ ...@@ -127,7 +144,7 @@
import { Util, deepClone, downLoadFile } from "@/common/util" import { Util, deepClone, downLoadFile } from "@/common/util"
import { mapActions, mapState, mapMutations } from "vuex" import { mapActions, mapState, mapMutations } from "vuex"
import dayjs from "dayjs" import dayjs from "dayjs"
import { shopSettingList, listYqRef, getBrandList } from "@/api/shopConfig.js" import { shopSettingList, listYqRef, getBrandList, setIntegralBelongApi, getIntegralBelongApi } from "@/api/shopConfig.js"
import { import {
merchantOutputValueTargetExport, merchantOutputValueTargetExport,
merchantOutputValueTargetImport merchantOutputValueTargetImport
...@@ -345,7 +362,11 @@ export default { ...@@ -345,7 +362,11 @@ export default {
}, },
qRcodeVisible: false, qRcodeVisible: false,
employeeVisible: false, employeeVisible: false,
flagVisible: false flagVisible: false,
pointSetObj: {
type: null
},
setPointsVisible: false
} }
}, },
computed: { computed: {
...@@ -402,6 +423,39 @@ export default { ...@@ -402,6 +423,39 @@ export default {
}) })
}, },
// 积分归属
setPointsAttribution(row) {
let params = { merchantId: row.merchantId }
this.pointSetObj.merchantId = row.merchantId
getIntegralBelongApi(params).then(res => {
this.pointSetObj.type = res?.scoreSource || 0
this.setPointsVisible = true
})
},
handleCancel() {
this.setPointsVisible = false
},
handleConfirmSet() {
let { type, merchantId } = this.pointSetObj
let params = {
scoreSource: type,
merchantId
}
setIntegralBelongApi(params).then(res => {
this.handleCancel()
this.showSuccessMsgbox()
})
},
showSuccessMsgbox() {
let text = '门店积分归属已配置成功'
this.$confirm(text, '提示', {
confirmButtonText: '知道了',
showCancelButton: false,
type: 'success'
}).then(() => {
})
},
getOptionsList() { getOptionsList() {
this.showFormData.forEach((item, index) => { this.showFormData.forEach((item, index) => {
if (item.type === "select") { if (item.type === "select") {
...@@ -788,4 +842,9 @@ export default { ...@@ -788,4 +842,9 @@ export default {
background: #e8e8ea; background: #e8e8ea;
} }
} }
.points-set-form{
display: flex;
align-items: center;
justify-content: center;
}
</style> </style>
...@@ -211,6 +211,7 @@ ...@@ -211,6 +211,7 @@
<p>按收入比例:以收入*(定义的比例)进行费用计算;</p> <p>按收入比例:以收入*(定义的比例)进行费用计算;</p>
<p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p> <p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p>
<p>按固定金额:费用=定义的固定金额;</p> <p>按固定金额:费用=定义的固定金额;</p>
<p>按固定金额*购买数量:费用=定义的固定金额*购买数量;</p>
<p> <p>
按(收入-自定义其他费用)比例:以(收入-自定义其他费用)*(定义的比例)进行费用计算,其中自定义其他费用为不包含产品成本的其他费用; 按(收入-自定义其他费用)比例:以(收入-自定义其他费用)*(定义的比例)进行费用计算,其中自定义其他费用为不包含产品成本的其他费用;
</p> </p>
...@@ -299,7 +300,8 @@ ...@@ -299,7 +300,8 @@
slot="suffix" slot="suffix"
v-if=" v-if="
classificationObj.trafficSide[index] classificationObj.trafficSide[index]
.expenseCategoryCalculateType != 3 .expenseCategoryCalculateType != 3 && classificationObj.trafficSide[index]
.expenseCategoryCalculateType != 10
" "
class="suffix" class="suffix"
>%</i >%</i
...@@ -409,7 +411,7 @@ ...@@ -409,7 +411,7 @@
> >
<i <i
slot="suffix" slot="suffix"
v-if="scope.row.expenseCategoryCalculateType != 3" v-if="scope.row.expenseCategoryCalculateType != 3 && scope.row.expenseCategoryCalculateType != 10"
class="suffix" class="suffix"
>%</i >%</i
> >
...@@ -471,6 +473,7 @@ ...@@ -471,6 +473,7 @@
<p>按收入比例:以收入*(定义的比例)进行费用计算;</p> <p>按收入比例:以收入*(定义的比例)进行费用计算;</p>
<p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p> <p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p>
<p>按固定金额:费用=定义的固定金额</p> <p>按固定金额:费用=定义的固定金额</p>
<p>按固定金额*购买数量:费用=定义的固定金额*购买数量</p>
<p> <p>
按园区店总金额比例:以(收入-流量方总分润)*(定义的比例)进行费用计算; 按园区店总金额比例:以(收入-流量方总分润)*(定义的比例)进行费用计算;
</p> </p>
...@@ -568,7 +571,8 @@ ...@@ -568,7 +571,8 @@
slot="suffix" slot="suffix"
v-if=" v-if="
classificationObj.serviceProvider[index] classificationObj.serviceProvider[index]
.expenseCategoryCalculateType != 3 .expenseCategoryCalculateType != 3 && classificationObj.serviceProvider[index]
.expenseCategoryCalculateType != 10
" "
class="suffix" class="suffix"
>%</i >%</i
...@@ -693,7 +697,7 @@ ...@@ -693,7 +697,7 @@
> >
<i <i
slot="suffix" slot="suffix"
v-if="scope.row.expenseCategoryCalculateType != 3" v-if="scope.row.expenseCategoryCalculateType != 3 && scope.row.expenseCategoryCalculateType != 10"
class="suffix" class="suffix"
>%</i >%</i
> >
...@@ -872,6 +876,7 @@ ...@@ -872,6 +876,7 @@
<p>按收入比例:以收入*(定义的比例)进行费用计算;</p> <p>按收入比例:以收入*(定义的比例)进行费用计算;</p>
<p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p> <p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p>
<p>按固定金额:费用=定义的固定金额</p> <p>按固定金额:费用=定义的固定金额</p>
<p>按固定金额*购买数量:费用=定义的固定金额*购买数量</p>
</template> </template>
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</el-tooltip> </el-tooltip>
...@@ -949,7 +954,8 @@ ...@@ -949,7 +954,8 @@
slot="suffix" slot="suffix"
v-if=" v-if="
classificationObj.platformPublic[index] classificationObj.platformPublic[index]
.expenseCategoryCalculateType != 3 .expenseCategoryCalculateType != 3 && classificationObj.platformPublic[index]
.expenseCategoryCalculateType != 10
" "
class="suffix" class="suffix"
>%</i >%</i
...@@ -1059,7 +1065,7 @@ ...@@ -1059,7 +1065,7 @@
> >
<i <i
slot="suffix" slot="suffix"
v-if="scope.row.expenseCategoryCalculateType != 3" v-if="scope.row.expenseCategoryCalculateType != 3 && scope.row.expenseCategoryCalculateType != 10"
class="suffix" class="suffix"
>%</i >%</i
> >
...@@ -1520,7 +1526,7 @@ export default { ...@@ -1520,7 +1526,7 @@ export default {
filerPlaceName(value) { filerPlaceName(value) {
// value? :'' // value? :''
if (!value) return "" if (!value) return ""
return value == 3 ? "请输入金额" : "请输入比例" return value == 3 || value == 10 ? "请输入金额" : "请输入比例"
} }
}, },
watch: { watch: {
......
...@@ -60,8 +60,9 @@ ...@@ -60,8 +60,9 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span> {{ severSelectOptionsLabel[scope.row.expenseCategoryCalculateType] }}</span> <span> {{ severSelectOptionsLabel[scope.row.expenseCategoryCalculateType] }}</span>
<span> {{ scope.row.expenseCategoryValue }}</span> <span> {{ scope.row.expenseCategoryValue }}</span>
<span v-if="scope.row.expenseCategoryCalculateType == 10">*1</span>
<span v-if="scope.row.expenseCategoryValue"> <span v-if="scope.row.expenseCategoryValue">
{{ scope.row.expenseCategoryCalculateType == 3 ? '' : '%' }}</span> {{ scope.row.expenseCategoryCalculateType == 3 || scope.row.expenseCategoryCalculateType == 10 ? '' : '%' }}</span>
<span v-else-if="scope.row.targetType == 4">收入-流量方分润-服务商分润-其他费用({{ <span v-else-if="scope.row.targetType == 4">收入-流量方分润-服务商分润-其他费用({{
rulesTestParams.goodsTypeGroupRule.goodsCostFlag == 'Y' ? '' : '不' }}包含成本)</span> rulesTestParams.goodsTypeGroupRule.goodsCostFlag == 'Y' ? '' : '不' }}包含成本)</span>
<!-- <span v-else-if="scope.row.targetType==4">收入-流量方分润-服务商分润-产品成本-安装成本</span> --> <!-- <span v-else-if="scope.row.targetType==4">收入-流量方分润-服务商分润-产品成本-安装成本</span> -->
...@@ -96,8 +97,9 @@ ...@@ -96,8 +97,9 @@
<div v-for="(childrenITem, num) in scope.row.children" :key="num" class="childrenItem"> --> <div v-for="(childrenITem, num) in scope.row.children" :key="num" class="childrenItem"> -->
<span> {{ severSelectOptionsLabel[scope.row.children.expenseCategoryCalculateType] }}</span> <span> {{ severSelectOptionsLabel[scope.row.children.expenseCategoryCalculateType] }}</span>
<span> {{ scope.row.children.expenseCategoryValue }}</span> <span> {{ scope.row.children.expenseCategoryValue }}</span>
<span v-if="scope.row.children.expenseCategoryCalculateType == 10">*1</span>
<span v-if="scope.row.children.expenseCategoryValue"> <span v-if="scope.row.children.expenseCategoryValue">
{{ scope.row.children.expenseCategoryCalculateType == 3 ? '' : '%' }}</span> {{ scope.row.children.expenseCategoryCalculateType == 3 || scope.row.children.expenseCategoryCalculateType == 10 ? '' : '%' }}</span>
<span v-else-if="scope.row.children.targetType == 4">收入-流量方分润-服务商分润-其他费用({{ <span v-else-if="scope.row.children.targetType == 4">收入-流量方分润-服务商分润-其他费用({{
rulesTestParams.goodsTypeGroupRule.goodsCostFlag == 'Y' ? '' : '不' }}包含成本)</span> rulesTestParams.goodsTypeGroupRule.goodsCostFlag == 'Y' ? '' : '不' }}包含成本)</span>
<span v-else>--</span> <span v-else>--</span>
......
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
<p>按收入比例:以收入*(定义的比例)进行费用计算;</p> <p>按收入比例:以收入*(定义的比例)进行费用计算;</p>
<p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p> <p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p>
<p>按固定金额:费用=定义的固定金额;</p> <p>按固定金额:费用=定义的固定金额;</p>
<p>按固定金额*购买数量:费用=定义的固定金额*购买数量;</p>
<p>按(收入-自定义其他费用)比例:以(收入-自定义其他费用)*(定义的比例)进行费用计算,其中自定义其他费用为不包含产品成本的其他费用;</p> <p>按(收入-自定义其他费用)比例:以(收入-自定义其他费用)*(定义的比例)进行费用计算,其中自定义其他费用为不包含产品成本的其他费用;</p>
<p>按(收入-其他费用)比例:以(收入-其他费用)*(定义的比例)进行费用计算,其中其他费用是包含产品成本的全部其他费用;</p> <p>按(收入-其他费用)比例:以(收入-其他费用)*(定义的比例)进行费用计算,其中其他费用是包含产品成本的全部其他费用;</p>
</template> </template>
...@@ -120,7 +121,8 @@ ...@@ -120,7 +121,8 @@
<el-input v-model="classificationObj.flowCostArr[floweIdx].expenseCategoryValue" <el-input v-model="classificationObj.flowCostArr[floweIdx].expenseCategoryValue"
@input="handleInput($event, 'flowCostArr', classificationObj.flowCostArr[floweIdx].expenseCategoryCalculateType, floweIdx)" @input="handleInput($event, 'flowCostArr', classificationObj.flowCostArr[floweIdx].expenseCategoryCalculateType, floweIdx)"
:placeholder="classificationObj.flowCostArr[floweIdx].expenseCategoryCalculateType | filerPlaceName"> :placeholder="classificationObj.flowCostArr[floweIdx].expenseCategoryCalculateType | filerPlaceName">
<i slot="suffix" v-if="classificationObj.flowCostArr[floweIdx].expenseCategoryCalculateType != 3" class="suffix">%</i> <i slot="suffix" v-if="classificationObj.flowCostArr[floweIdx].expenseCategoryCalculateType != 3 &&
classificationObj.flowCostArr[floweIdx].expenseCategoryCalculateType != 10" class="suffix">%</i>
</el-input> </el-input>
</el-form-item> </el-form-item>
</div> </div>
...@@ -174,7 +176,7 @@ ...@@ -174,7 +176,7 @@
<el-input v-model="scope.row.expenseCategoryValue" <el-input v-model="scope.row.expenseCategoryValue"
style="width: 150px" :placeholder="scope.row.expenseCategoryCalculateType | filerPlaceName" style="width: 150px" :placeholder="scope.row.expenseCategoryCalculateType | filerPlaceName"
@input="handleInput($event, 'flowCostArr', scope.row.expenseCategoryCalculateType, floweIdx, scope.$index)"> @input="handleInput($event, 'flowCostArr', scope.row.expenseCategoryCalculateType, floweIdx, scope.$index)">
<i slot="suffix" v-if="scope.row.expenseCategoryCalculateType != 3" class="suffix">%</i> <i slot="suffix" v-if="scope.row.expenseCategoryCalculateType != 3 && scope.row.expenseCategoryCalculateType != 10" class="suffix">%</i>
</el-input> </el-input>
</el-form-item> </el-form-item>
<span v-else>-</span> <span v-else>-</span>
...@@ -226,6 +228,7 @@ ...@@ -226,6 +228,7 @@
<p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p> <p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p>
<p>按收入比例:以收入*(定义的比例)进行费用计算;</p> <p>按收入比例:以收入*(定义的比例)进行费用计算;</p>
<p>按固定金额:费用=定义的固定金额;</p> <p>按固定金额:费用=定义的固定金额;</p>
<p>按固定金额*购买数量:费用=定义的固定金额*购买数量;</p>
<p>按园区店总金额比例:以(收入-流量方总分润)*(定义的比例)进行费用计算;</p> <p>按园区店总金额比例:以(收入-流量方总分润)*(定义的比例)进行费用计算;</p>
<p>按园区店毛利(不扣除产品成本)比例:以(收入-流量方总分润-其他费用不包含产品成本)*(定义的比例)进行费用计算</p> <p>按园区店毛利(不扣除产品成本)比例:以(收入-流量方总分润-其他费用不包含产品成本)*(定义的比例)进行费用计算</p>
<p>按园区店毛利比例:以(收入-流量方总分润-其他费用包含产品成本)*(定义的比例)进行费用计算</p> <p>按园区店毛利比例:以(收入-流量方总分润-其他费用包含产品成本)*(定义的比例)进行费用计算</p>
...@@ -260,7 +263,8 @@ ...@@ -260,7 +263,8 @@
<el-input v-model="classificationObj.serviceCostArr[serveIdx].expenseCategoryValue" <el-input v-model="classificationObj.serviceCostArr[serveIdx].expenseCategoryValue"
@input="handleInput($event, 'serviceCostArr', classificationObj.serviceCostArr[serveIdx].expenseCategoryCalculateType, serveIdx)" @input="handleInput($event, 'serviceCostArr', classificationObj.serviceCostArr[serveIdx].expenseCategoryCalculateType, serveIdx)"
:placeholder="classificationObj.serviceCostArr[serveIdx].expenseCategoryCalculateType | filerPlaceName"> :placeholder="classificationObj.serviceCostArr[serveIdx].expenseCategoryCalculateType | filerPlaceName">
<i slot="suffix" v-if="classificationObj.serviceCostArr[serveIdx].expenseCategoryCalculateType != 3" class="suffix">%</i> <i slot="suffix" v-if="classificationObj.serviceCostArr[serveIdx].expenseCategoryCalculateType != 3 &&
classificationObj.serviceCostArr[serveIdx].expenseCategoryCalculateType != 10" class="suffix">%</i>
</el-input> </el-input>
</el-form-item> </el-form-item>
</div> </div>
...@@ -315,7 +319,7 @@ ...@@ -315,7 +319,7 @@
<el-input v-model="scope.row.expenseCategoryValue" <el-input v-model="scope.row.expenseCategoryValue"
style="width: 150px" :placeholder="scope.row.expenseCategoryCalculateType | filerPlaceName" style="width: 150px" :placeholder="scope.row.expenseCategoryCalculateType | filerPlaceName"
@input="handleInput($event, 'serviceCostArr', scope.row.expenseCategoryCalculateType, serveIdx, scope.$index)"> @input="handleInput($event, 'serviceCostArr', scope.row.expenseCategoryCalculateType, serveIdx, scope.$index)">
<i slot="suffix" v-if="scope.row.expenseCategoryCalculateType != 3" class="suffix">%</i> <i slot="suffix" v-if="scope.row.expenseCategoryCalculateType != 3 && scope.row.expenseCategoryCalculateType != 10" class="suffix">%</i>
</el-input> </el-input>
</el-form-item> </el-form-item>
<span v-else>-</span> <span v-else>-</span>
...@@ -364,6 +368,7 @@ ...@@ -364,6 +368,7 @@
<p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p> <p>按毛利比例:以毛利*(定义的比例)进行费用计算;</p>
<p>按收入比例:以收入*(定义的比例)进行费用计算;</p> <p>按收入比例:以收入*(定义的比例)进行费用计算;</p>
<p>按固定金额:费用=定义的固定金额;</p> <p>按固定金额:费用=定义的固定金额;</p>
<p>按固定金额*购买数量:费用=定义的固定金额*购买数量;</p>
<p>按园区店总金额比例:以(收入-流量方总分润)*(定义的比例)进行费用计算;</p> <p>按园区店总金额比例:以(收入-流量方总分润)*(定义的比例)进行费用计算;</p>
<p>按园区店毛利(不扣除产品成本)比例:以(收入-流量方总分润-其他费用不包含产品成本)*(定义的比例)进行费用计算</p> <p>按园区店毛利(不扣除产品成本)比例:以(收入-流量方总分润-其他费用不包含产品成本)*(定义的比例)进行费用计算</p>
<p>按园区店毛利比例:以(收入-流量方总分润-其他费用包含产品成本)*(定义的比例)进行费用计算</p> <p>按园区店毛利比例:以(收入-流量方总分润-其他费用包含产品成本)*(定义的比例)进行费用计算</p>
...@@ -398,7 +403,8 @@ ...@@ -398,7 +403,8 @@
<el-input v-model="classificationObj.platformCostArr[platformIdx].expenseCategoryValue" <el-input v-model="classificationObj.platformCostArr[platformIdx].expenseCategoryValue"
@input="handleInput($event, 'platformCostArr', classificationObj.platformCostArr[platformIdx].expenseCategoryCalculateType, platformIdx)" @input="handleInput($event, 'platformCostArr', classificationObj.platformCostArr[platformIdx].expenseCategoryCalculateType, platformIdx)"
:placeholder="classificationObj.platformCostArr[platformIdx].expenseCategoryCalculateType | filerPlaceName"> :placeholder="classificationObj.platformCostArr[platformIdx].expenseCategoryCalculateType | filerPlaceName">
<i slot="suffix" v-if="classificationObj.platformCostArr[platformIdx].expenseCategoryCalculateType != 3" class="suffix">%</i> <i slot="suffix" v-if="classificationObj.platformCostArr[platformIdx].expenseCategoryCalculateType != 3 &&
classificationObj.platformCostArr[platformIdx].expenseCategoryCalculateType != 10" class="suffix">%</i>
</el-input> </el-input>
</el-form-item> </el-form-item>
</div> </div>
...@@ -452,7 +458,7 @@ ...@@ -452,7 +458,7 @@
<el-input v-model="scope.row.expenseCategoryValue" <el-input v-model="scope.row.expenseCategoryValue"
style="width: 150px" :placeholder="scope.row.expenseCategoryCalculateType | filerPlaceName" style="width: 150px" :placeholder="scope.row.expenseCategoryCalculateType | filerPlaceName"
@input="handleInput($event, 'platformCostArr', scope.row.expenseCategoryCalculateType, platformIdx, scope.$index)"> @input="handleInput($event, 'platformCostArr', scope.row.expenseCategoryCalculateType, platformIdx, scope.$index)">
<i slot="suffix" v-if="scope.row.expenseCategoryCalculateType != 3" class="suffix">%</i> <i slot="suffix" v-if="scope.row.expenseCategoryCalculateType != 3 && scope.row.expenseCategoryCalculateType != 10" class="suffix">%</i>
</el-input> </el-input>
</el-form-item> </el-form-item>
<span v-else>-</span> <span v-else>-</span>
...@@ -721,7 +727,7 @@ export default { ...@@ -721,7 +727,7 @@ export default {
filerPlaceName(value) { filerPlaceName(value) {
// value? :'' // value? :''
if (!value) return "" if (!value) return ""
return value == 3 ? "请输入金额" : "请输入比例" return value == 3 || value == 10 ? "请输入金额" : "请输入比例"
} }
}, },
watch: { watch: {
......
...@@ -606,8 +606,11 @@ export default { ...@@ -606,8 +606,11 @@ export default {
case 9: case 9:
res = '按(收入-其他费用):' res = '按(收入-其他费用):'
break break
case 10:
res = `按固定金额${num}元*购买数量`
break
} }
res = res + num + (value == 3 ? '元' : '%') res = value == 10 ? res : (res + num + (value == 3 ? '元' : '%'))
return res return res
}, },
getShop4sDeductChargeFlag(value) { getShop4sDeductChargeFlag(value) {
......
...@@ -387,8 +387,11 @@ export default { ...@@ -387,8 +387,11 @@ export default {
case 9: case 9:
res = '按(收入-其他费用):' res = '按(收入-其他费用):'
break break
case 10:
res = `按固定金额${num}元*购买数量`
break
} }
res = res + num + (value == 3 ? '元' : '%') res = value == 10 ? res : (res + num + (value == 3 ? '元' : '%'))
return res return res
}, },
}, },
......
...@@ -497,8 +497,11 @@ export default { ...@@ -497,8 +497,11 @@ export default {
case 9: case 9:
res = '按(收入-其他费用):' res = '按(收入-其他费用):'
break break
case 10:
res = `按固定金额${num}元*购买数量`
break
} }
res = res + num + (value == 3 ? '元' : '%') res = value == 10 ? res : (res + num + (value == 3 ? '元' : '%'))
return res return res
}, },
getShop4sDeductChargeFlag(value) { getShop4sDeductChargeFlag(value) {
......
...@@ -387,8 +387,11 @@ export default { ...@@ -387,8 +387,11 @@ export default {
case 9: case 9:
res = '按(收入-其他费用):' res = '按(收入-其他费用):'
break break
case 10:
res = `按固定金额${num}元*购买数量`
break
} }
res = res + num + (value == 3 ? '元' : '%') res = value == 10 ? res : (res + num + (value == 3 ? '元' : '%'))
return res return res
}, },
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!