Commit 48150d26 by 张立顺

fix bug修复

1 parent 7d73d781
<!-- 管理其他变更明细弹窗 -->
<template>
<d2-dialog title="管理其他变更明细"
:is-visible="manageVisible"
class="manageOtherDialog"
width="70%"
:no-cancel="true"
btn-ok-label="关闭"
@closeDialog="handleClose"
@confirmDialog="handleClose"
:append-to-body="true">
<d2-dialog
title="管理其他变更明细"
:is-visible="manageVisible"
class="manageOtherDialog"
width="70%"
:no-cancel="true"
btn-ok-label="关闭"
@closeDialog="handleClose"
@confirmDialog="handleClose"
:append-to-body="true"
>
<div class="merchantInfo">
<span class="merchantName">{{ info.merchantName }}</span><span
class="merchantId">{{ info.merchantId }}</span>
<span class="merchantYear">{{ statYear + "年" + info.statMonth + "月" }}
<el-button type="primary"
size="small"
icon="el-icon-plus"
@click="addRow"
:disabled="addflag">新增</el-button></span>
<span class="merchantName">{{ info.merchantName }}</span
><span class="merchantId">{{ info.merchantId }}</span>
<span class="merchantYear"
>{{ statYear + "年" + info.statMonth + "月" }}
<el-button
type="primary"
size="small"
icon="el-icon-plus"
@click="addRow"
:disabled="addflag"
>新增</el-button
></span
>
</div>
<div>
<div class="header"
slot="header"></div>
<div class="header" slot="header"></div>
<div class="d2-container-content">
<d2-table ref="recordTable"
:table-data="tableData"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
:has-page="false">
<div slot="otherAmount"
slot-scope="scope">
<d2-table
ref="recordTable"
:table-data="tableData"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn"
:has-page="false"
>
<div slot="otherAmount" slot-scope="scope">
<template v-if="scope.scope.isEdit">
<!-- v-model="tableData[scope.index].otherAmount" -->
<span><el-input v-model="tableData[scope.index].otherAmount"
style="width: 80%"
placeholder="请输入金额"
@input="checkAmount($event, scope)" /></span>
<span
><el-input
v-model="tableData[scope.index].otherAmount"
style="width: 80%"
placeholder="请输入金额"
@input="checkAmount($event, scope)"
/></span>
<!-- {{ scope.index }} -->
</template>
<template v-else>
......@@ -47,18 +57,22 @@
}}</span>
</template>
</div>
<div slot="remark"
slot-scope="scope">
<div slot="remark" slot-scope="scope">
<template v-if="scope.scope.isEdit">
<span><el-input v-model="scope.scope.remark"
style="width: 80%"
placeholder="请输入变更说明"
maxlength="50" /></span>
<span
><el-input
v-model="scope.scope.remark"
style="width: 80%"
placeholder="请输入变更说明"
maxlength="50"
/></span>
</template>
<template v-else>
<el-tooltip class="item"
:content="scope.scope.remark"
placement="right">
<el-tooltip
class="item"
:content="scope.scope.remark"
placement="right"
>
<span>
{{
scope.scope.remark
......@@ -71,16 +85,22 @@
</el-tooltip>
</template>
</div>
<div slot="tableOpt"
slot-scope="scope">
<div slot="tableOpt" slot-scope="scope">
<template v-if="scope.scope.isEdit">
<span><el-button type="text"
@click="add(scope.scope)">保存</el-button><el-button type="text"
@click="cancel(scope.scope)">取消</el-button></span>
<span
><el-button type="text" @click="add(scope.scope)"
>保存</el-button
><el-button type="text" @click="cancel(scope.scope)"
>取消</el-button
></span
>
</template>
<template v-else>
<span><el-button type="text"
@click="del(scope.scope)">删除</el-button></span>
<span
><el-button type="text" @click="del(scope.scope)"
>删除</el-button
></span
>
</template>
</div>
</d2-table>
......@@ -163,7 +183,7 @@ export default {
},
info: {
type: Object,
default: () => { }
default: () => {}
},
statYear: {
type: String,
......@@ -173,7 +193,7 @@ export default {
computed: {},
mounted() {
console.log("info", this.info)
// console.log("info", this.info)
if (this.info) {
this.searchForm.statYearMonth = this.info.statYearMonth
this.searchForm.merchantId = this.info.merchantId
......
<!-- 商品tab组件 -->
<template>
<div>
<el-form
ref="goodFrom"
class="goodFrom d2-container-content"
:model="formData"
:rules="formRules"
label-width="130px"
>
<el-form ref="goodFrom" class="goodFrom d2-container-content" :model="formData" :rules="formRules"
label-width="130px">
<el-form-item label="上架商品:" prop="upgradeGoodsId">
<el-button icon="el-icon-plus" @click="handleSelectGoods"
>选择商品</el-button
>
<el-button icon="el-icon-plus" @click="handleSelectGoods">选择商品</el-button>
</el-form-item>
<el-form-item>
<div class="info_div" v-if="formData.upgradeGoodsId">
......@@ -28,13 +21,10 @@
<el-form-item label="第三方编码:">
{{ formData.upgradeGoods["thirdPartyCode"] || "" }}
</el-form-item>
<el-form-item
label="服务项目:"
v-if="
equitySceneType.includes(formData['goodsType']) &&
!baseConfig.supplierCode.includes(`${formData.supplierCode}`)
"
>
<el-form-item label="服务项目:" v-if="
equitySceneType.includes(formData['goodsType']) &&
!baseConfig.supplierCode.includes(`${formData.supplierCode}`)
">
{{ formData.upgradeGoods["serviceItemNames"] || "" }}
</el-form-item>
<el-form-item label="采购价/件:">
......@@ -61,28 +51,15 @@
<el-row>
<el-col :span="12">
<el-form-item label="商品别名:" prop="goodsAlias">
<el-input
v-model="formData.goodsAlias"
placeholder="请输入商品别名"
maxlength="50"
class="sortInput"
show-word-limit
/>
<el-input v-model="formData.goodsAlias" placeholder="请输入商品别名" maxlength="50" class="sortInput"
show-word-limit />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="业务线:" prop="businessLine">
<el-select
v-model="formData.businessLine"
placeholder="请选择"
class="sortInput"
>
<el-option
v-for="item in businessLineOpt"
:key="item.confId"
:label="item.confValue"
:value="item.confId"
>
<el-select v-model="formData.businessLine" placeholder="请选择" class="sortInput">
<el-option v-for="item in businessLineOpt" :key="item.confId" :label="item.confValue"
:value="item.confId">
</el-option>
</el-select>
</el-form-item>
......@@ -91,52 +68,34 @@
<el-row>
<el-col :span="12">
<el-form-item label="售价/件:" prop="sellPrice">
<el-input
v-model="formData.sellPrice"
@input="sellPrice_handleInput"
placeholder="自动带入产品对应的售价"
class="sortInput"
/>元
<el-input v-model="formData.sellPrice" @input="sellPrice_handleInput" placeholder="自动带入产品对应的售价"
class="sortInput" />元
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="最低售价/件:" prop="minSellPrice">
<el-input
v-model="formData.minSellPrice"
@input="minSellPrice_handleInput"
placeholder="自动带入产品对应的最低售价"
class="sortInput"
/>元
<el-input v-model="formData.minSellPrice" @input="minSellPrice_handleInput" placeholder="自动带入产品对应的最低售价"
class="sortInput" />元
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="嘀加成本/件:" prop="djCost">
<el-input
v-model="formData.djCost"
@input="djCost_handleInput"
placeholder="自动带入产品对应的嘀加成本"
class="sortInput"
disabled
/>元
<el-input v-model="formData.djCost" @input="djCost_handleInput" placeholder="自动带入产品对应的嘀加成本"
class="sortInput" disabled />元
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="第三方成本/件:" prop="thirdPartyCost">
<el-input
v-model="formData.thirdPartyCost"
@input="thirdPartyCost_handleInput"
placeholder="自动带入产品对应的第三方成本"
class="sortInput"
/>元
<el-input v-model="formData.thirdPartyCost" @input="thirdPartyCost_handleInput" placeholder="自动带入产品对应的第三方成本"
class="sortInput" />元
</el-form-item>
</el-col>
</el-row>
<el-form-item label="预估利润率:">
{{
$$(formData.createBusinessProduct, "profitRate")
| filterComputedDataPro
$$(formData.createBusinessProduct, "profitRate") | filterComputedDataPro
}}
<el-button type="text" @click="requestData">测算</el-button>
</el-form-item>
......@@ -146,37 +105,37 @@
<el-form-item label="收入:">
{{
$$(formData.createBusinessProduct, "revenue")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="流量方分润:">
{{
$$(formData.createBusinessProduct, "serviceProviderProfit") +
"元"
$$(formData.createBusinessProduct, "serviceProviderProfit")
| filterComputedData
}}
</el-form-item>
<el-form-item label="服务商分润:">
{{
$$(formData.createBusinessProduct, "trafficShareProfit")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="嘀加收入:">
{{
$$(formData.createBusinessProduct, "djRevenue")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="嘀加成本:">
{{
$$(formData.createBusinessProduct, "djCost")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="管理层激励费:">
{{
$$(formData.createBusinessProduct, "managementIncentiveFee") +
"元"
$$(formData.createBusinessProduct, "managementIncentiveFee")
| filterComputedData
}}
</el-form-item>
<el-form-item label="一线阳光激励费:">
......@@ -198,33 +157,29 @@
<el-form-item label="资源费:">
{{
$$(formData.createBusinessProduct, "resourceFee")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="人力成本:">
{{
$$(formData.createBusinessProduct, "laborCost")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="嘀加毛利:">
{{
$$(formData.createBusinessProduct, "revenue")
| filterComputedData
$$(formData.createBusinessProduct, "djGrossProfit")
| filterComputedData
}}
</el-form-item>
</el-form>
</div>
</el-form-item>
</el-form>
<select-goods-dialog
v-if="selectGoodsVisible"
:select-goods-visible="selectGoodsVisible"
:filter-params="filterParams"
@handleSelectGoodsConfirm="handleSelectGoodsConfirm"
<select-goods-dialog v-if="selectGoodsVisible" :select-goods-visible="selectGoodsVisible"
:filter-params="filterParams" @handleSelectGoodsConfirm="handleSelectGoodsConfirm"
@handleSelectGoodsClose="handleSelectGoodsClose"
:upgrade-goods-id="formData.upgradeGoodsId"
></select-goods-dialog>
:upgrade-goods-id="formData.upgradeGoodsId"></select-goods-dialog>
</div>
</template>
......@@ -236,12 +191,13 @@ import selectGoodsDialog from "../../../components/selectGoodsDialog.vue"
import { baseConfig } from "@/main"
import { filterSpecsStr } from "../../../filterOption"
import { businessLineOpt } from "@/common/constants.js"
import { computeProductProfitDetail } from "@api/shelfManage"
export default {
name: "GoodTab",
props: {
info: {
type: Object,
default: () => {}
default: () => { }
},
tabIdx: {
type: Number,
......@@ -319,10 +275,11 @@ export default {
},
filters: {
filterComputedDataPro(val) {
val ? val + "%" : ""
console.log(val, "filterComputedDataPro")
return val ? val + "%" : ""
},
filterComputedData(val) {
val ? val + "元" : ""
return val ? val + "元" : ""
}
},
components: {
......@@ -333,7 +290,7 @@ export default {
mounted() {
if (this.info) {
console.log("info", this.info)
// console.log("info", this.info)
// this.formData = deepClone(this.info)
this.handleData(this.info)
}
......@@ -350,7 +307,7 @@ export default {
get: "d2admin/base/get",
close: "d2admin/page/close"
}),
async getBaseData() {},
async getBaseData() { },
handleData(goods) {
const _formData = deepClone(goods)
......@@ -392,6 +349,7 @@ export default {
})
.then((res) => {
console.log(res, "res")
this.$message.success('测试结果成功')
this.formData.createBusinessProduct = res
})
.finally((res) => (this.requestDataFlag = false))
......@@ -513,7 +471,7 @@ export default {
}
}
</script>
<style scoped lang="scss" >
<style scoped lang="scss">
.d2-container-content {
background: #ffffff;
}
......@@ -556,6 +514,7 @@ export default {
}
}
}
.sortInput {
width: 500px;
margin-right: 10px;
......
......@@ -201,7 +201,7 @@ export default {
/* 活动标签切换时触发 */
beforeLeave(currentName, oldName) {
console.log("currentName", currentName)
// console.log("currentName", currentName)
// 通过tab标签的切换事件触发增加的函数
// 如果name是add,则调用增加tab的函数
// if (currentName == "add") {
......
<!-- 商品tab组件 -->
<template>
<div>
<el-form
ref="goodFrom"
class="goodFrom d2-container-content"
:model="formData"
:rules="formRules"
label-width="130px"
>
<el-form ref="goodFrom" class="goodFrom d2-container-content" :model="formData" :rules="formRules"
label-width="130px">
<el-form-item>
<div class="info_div" v-if="formData.upgradeGoodsId">
<el-form class="edit-sub-block" label-width="100px" :inline="true">
......@@ -23,13 +18,10 @@
<el-form-item label="第三方编码:">
{{ formData.upgradeGoods["thirdPartyCode"] || "" }}
</el-form-item>
<el-form-item
label="服务项目:"
v-if="
equitySceneType.includes(formData['goodsType']) &&
!baseConfig.supplierCode.includes(`${formData.supplierCode}`)
"
>
<el-form-item label="服务项目:" v-if="
equitySceneType.includes(formData['goodsType']) &&
!baseConfig.supplierCode.includes(`${formData.supplierCode}`)
">
{{ formData.upgradeGoods["serviceItemNames"] || "" }}
</el-form-item>
<el-form-item label="采购价/件:">
......@@ -54,63 +46,36 @@
</div>
</el-form-item>
<el-form-item label="商品别名:" prop="goodsAlias">
<el-input
disabled
v-model="formData.goodsAlias"
placeholder="请输入商品别名"
maxlength="50"
show-word-limit
/>
<el-input disabled v-model="formData.goodsAlias" placeholder="请输入商品别名" maxlength="50" show-word-limit />
</el-form-item>
<el-row>
<el-col :span="12">
<el-form-item label="售价/件:" prop="sellPrice">
<el-input
disabled
v-model="formData.sellPrice"
placeholder="自动带入产品对应的售价"
class="sortInput"
/>元
<el-input disabled v-model="formData.sellPrice" placeholder="自动带入产品对应的售价" class="sortInput" />元
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="最低售价/件:" prop="minSellPrice">
<el-input
disabled
v-model="formData.minSellPrice"
placeholder="自动带入产品对应的最低售价"
class="sortInput"
/>元
<el-input disabled v-model="formData.minSellPrice" placeholder="自动带入产品对应的最低售价" class="sortInput" />元
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="嘀加成本/件:" prop="djCost">
<el-input
disabled
v-model="formData.djCost"
placeholder="自动带入产品对应的嘀加成本"
class="sortInput"
disabled
/>元
<el-input disabled v-model="formData.djCost" placeholder="自动带入产品对应的嘀加成本" class="sortInput" disabled />元
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="第三方成本/件:" prop="thirdPartyCost">
<el-input
disabled
v-model="formData.thirdPartyCost"
placeholder="自动带入产品对应的第三方成本"
class="sortInput"
/>元
<el-input disabled v-model="formData.thirdPartyCost" placeholder="自动带入产品对应的第三方成本" class="sortInput" />元
</el-form-item>
</el-col>
</el-row>
<el-form-item label="预估利润率:">
{{
$$(formData.createBusinessProduct, "profitRate")
| filterComputedDataPro
| filterComputedDataPro
}}
</el-form-item>
<el-form-item>
......@@ -119,37 +84,37 @@
<el-form-item label="收入:">
{{
$$(formData.createBusinessProduct, "revenue")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="流量方分润:">
{{
$$(formData.createBusinessProduct, "serviceProviderProfit") +
"元"
$$(formData.createBusinessProduct, "serviceProviderProfit")
| filterComputedData
}}
</el-form-item>
<el-form-item label="服务商分润:">
{{
$$(formData.createBusinessProduct, "trafficShareProfit")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="嘀加收入:">
{{
$$(formData.createBusinessProduct, "djRevenue")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="嘀加成本:">
{{
$$(formData.createBusinessProduct, "djCost")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="管理层激励费:">
{{
$$(formData.createBusinessProduct, "managementIncentiveFee") +
"元"
$$(formData.createBusinessProduct, "managementIncentiveFee")
| filterComputedData
}}
</el-form-item>
<el-form-item label="一线阳光激励费:">
......@@ -171,19 +136,19 @@
<el-form-item label="资源费:">
{{
$$(formData.createBusinessProduct, "resourceFee")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="人力成本:">
{{
$$(formData.createBusinessProduct, "laborCost")
| filterComputedData
| filterComputedData
}}
</el-form-item>
<el-form-item label="嘀加毛利:">
{{
$$(formData.createBusinessProduct, "trafficShareProfit")
| filterComputedData
$$(formData.createBusinessProduct, "djGrossProfit")
| filterComputedData
}}
</el-form-item>
</el-form>
......@@ -204,7 +169,7 @@ export default {
props: {
info: {
type: Object,
default: () => {}
default: () => { }
},
tabIdx: {
type: Number,
......@@ -275,16 +240,16 @@ export default {
filters: {
filterComputedDataPro(val) {
val ? val + "%" : ""
return val ? val + "%" : ""
},
filterComputedData(val) {
val ? val + "元" : ""
return val ? val + "元" : ""
}
},
mounted() {
if (this.info) {
console.log("info", this.info)
// console.log("info", this.info)
this.formData = deepClone(this.info)
}
},
......@@ -304,7 +269,7 @@ export default {
filterEmpty(data) {
return (data ?? "") === ""
},
async getBaseData() {},
async getBaseData() { },
handleSelectGoods() {
this.selectGoodsVisible = true
......@@ -376,7 +341,7 @@ export default {
}
}
</script>
<style scoped lang="scss" >
<style scoped lang="scss">
.d2-container-content {
background: #ffffff;
}
......@@ -419,6 +384,7 @@ export default {
}
}
}
.sortInput {
width: 500px;
padding-right: 10px;
......
......@@ -509,7 +509,7 @@ export default {
}
)
console.log(this.classificationObj, " this.classificationObj ")
// console.log(this.classificationObj, " this.classificationObj ")
})
},
init4sServiceList() {
......@@ -533,6 +533,7 @@ export default {
id
})
.then((result) => {
console.log(result, "result")
const goodsTypeGroupRules =
result?.merchantSettleDistributeRule.goodsTypeGroupRules
const createBusinessApproveMerchant =
......
......@@ -642,6 +642,7 @@ export default {
id: this.routerInfo.id
}
const res = await merchantSettleDistributeRuleLastRule(params)
console.log(res, "getEffectRule")
if (res) {
const typeList =
res?.merchantReconciliationRule.goodsTypeGroupReconciliationRules
......
......@@ -224,7 +224,7 @@ export default {
/* 活动标签切换时触发 */
beforeLeave(currentName, oldName) {
console.log("currentName", currentName)
// console.log("currentName", currentName)
// 通过tab标签的切换事件触发增加的函数
// 如果name是add,则调用增加tab的函数
// if (currentName == "add") {
......
......@@ -444,7 +444,7 @@ export default {
const list = this.goodsSelectList.filter((item) => {
// item.goodsType
// const flag = selectList.findIndex(el => { return el.goodsType == item.goodsType })
console.log(selectList, "selectList")
// console.log(selectList, "selectList")
if (
selectList.findIndex((el) => {
return el.goodsType == item.goodsType
......@@ -472,7 +472,7 @@ export default {
// 不可选择的商品套餐
disabledPackageGoodsList() {
const selectList = this.classificationObj.packageGoods || []
console.log(selectList, "selectList")
// console.log(selectList, "selectList")
const list = this.selectPackageGoodsList.filter((item) => {
if (
selectList.findIndex((el) => {
......@@ -725,7 +725,7 @@ export default {
},
classificationObjSelect: {
handler(val) {
console.log(val, "🚀")
// console.log(val, "🚀")
this.initList()
},
deep: true,
......@@ -773,7 +773,7 @@ export default {
)
}
console.log(deleteObj, "deleteObj")
// console.log(deleteObj, "deleteObj")
},
clearValidate() {
this.$refs.classification.clearValidate([
......@@ -902,7 +902,7 @@ export default {
// })
// })
let arr = this.copyUpgradeGoodsList.concat(resArr)
console.log(defaultSelect, "defaultSelect")
// console.log(defaultSelect, "defaultSelect")
if (defaultSelect?.length) arr = arr.concat(defaultSelect)
this.copyUpgradeGoodsList = this.unique(arr)
})
......@@ -925,7 +925,7 @@ export default {
merchantIdList: [this.routerInfo.merchantId]
})
.then((res) => {
console.log(res, "merchantPackageGoodsInfoPage")
// console.log(res, "merchantPackageGoodsInfoPage")
this.allPagesPackage = res.pages
const resArr = []
res.list &&
......@@ -987,9 +987,9 @@ export default {
// this.handleInput(newValue,type,ChildrenIndex)
// },
updateCalculateModeType(event, name, index) {
console.log(event, name, index, "event")
// console.log(event, name, index, "event")
const obj = this.classificationObj[name][index]
console.log(obj, "obj")
// console.log(obj, "obj")
if (obj.formType == 2) {
// this.classificationObj[name][index].calculateModeType = event
this.classificationObj[name][index].children = obj.children.map(
......@@ -1007,14 +1007,14 @@ export default {
// 'expenseCategoryValue'
// expenseCategoryValue
// debugger
console.log(name, this.classificationObj[name], "this.classificationObj")
// console.log(name, this.classificationObj[name], "this.classificationObj")
let valueName
if (ChildrenIndex != undefined) {
valueName = this.classificationObj[name][index].children[ChildrenIndex]
} else {
valueName = this.classificationObj[name][index]
}
console.log(valueName, "valueName")
// console.log(valueName, "valueName")
// debugger
// const obj = this.classificationObj[name][index]
// console.log(obj)
......@@ -1022,8 +1022,8 @@ export default {
// // this.$set(this.classificationObj[name], index, obj)
// return
newValue = newValue.replace(/[^\d.]/g, "") // 清除“数字”和“.”以外的字符
console.log(newValue)
console.log(name, "name", type, "type", index, "index")
// console.log(newValue)
// console.log(name, "name", type, "type", index, "index")
// const handleName = this.classificationObj[name][index]
// 按金额
if (type == 3 || type == 10) {
......@@ -1051,7 +1051,7 @@ export default {
if (newValue > 100) newValue = 100
if (newValue < 0) newValue = 0
console.log(newValue)
// console.log(newValue)
valueName.expenseCategoryValue = newValue
// this.$set(this.classificationObj[name][index], 'expenseCategoryValue', newValue)
// console.log(this.classificationObj[name][index].expenseCategoryValue)
......@@ -1117,7 +1117,7 @@ export default {
// console.log('expenseCategoryRules', expenseCategoryRules)
const setList = this.classificationObjSelect
// const list = {}
console.log("setList", this.classificationObjSelect)
// console.log("setList", this.classificationObjSelect)
// 初始化类目
for (const key in setList) {
// console.log('setList[key]', setList[key])
......@@ -1271,7 +1271,7 @@ export default {
this.goodsTypeGroupRules[item] &&
(this.classificationObj[item] = this.goodsTypeGroupRules[item])
})
console.log(this.classificationObj)
// console.log(this.classificationObj)
this.classificationObj = deepClone(this.classificationObj)
// console.log(list)
this.handleSelectChange()
......@@ -1433,7 +1433,7 @@ export default {
item.expenseCategoryId != 701 && item.expenseCategoryId != 1104
)
// debugger
console.log(obj, expenseCategoryRules, "obj")
// console.log(obj, expenseCategoryRules, "obj")
const returnObj = {
expenseCategoryRules,
shop4sDeductChargeFlag: obj.shop4sDeductChargeFlag,
......
......@@ -15,7 +15,7 @@
<td>分账对象/分账类目</td>
<!-- <td>平台方分账金额</td> -->
<td v-for="(item, index) in radioList" :key="index">
{{ item.applicationObjectName||item.expenseCategoryName }}
{{ item.applicationObjectName || item.expenseCategoryName }}
</td>
</tr>
<tr>
......@@ -148,15 +148,20 @@ export default {
arrIdx = [1, 2, 302, 701, 4]
for (const key in obj) {
obj[key].map((item) => {
if (arrIdx.includes(item.id)||arrIdx.includes(item.expenseCategoryId)) {
if (
arrIdx.includes(item.id) ||
arrIdx.includes(item.expenseCategoryId)
) {
list.push(item)
}
})
}
arr = list.filter((item) => {
return arrIdx.includes(item.id)||arrIdx.includes(item.expenseCategoryId)
return (
arrIdx.includes(item.id) || arrIdx.includes(item.expenseCategoryId)
)
})
console.log('list', arr)
// console.log('list', arr)
return arr
}
},
......@@ -192,7 +197,7 @@ export default {
// console.log(this.merchantDistributionRules)
const obj = this.classificationObjSelect
const form = {}
console.log('obj', obj)
// console.log('obj', obj)
for (const key in obj) {
obj[key].map((item) => {
// 数字转字符串
......@@ -213,10 +218,10 @@ export default {
}
// 判断id是否有在选项里面 没有就去掉
this.form = form
console.log(this.form,'this.form')
// console.log(this.form,'this.form')
},
changFormList() {
console.log(this.form,'this.form')
// console.log(this.form,'this.form')
// 判断id是否有在选项里面 没有就去掉
for (const key in this.form) {
const element = this.form[key]
......@@ -350,14 +355,12 @@ export default {
margin-right: 0;
}
.p-b-20 {
padding-bottom: 26px !important;
}
.division-rule ::v-deep {
.division-rule ::v-deep {
.table-block .el-radio__label {
display: none !important;
}
display: none !important;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!