Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d05cf180
authored
May 02, 2026
by
Jaxon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(商品上架): 对账配置 - 完善对账配置功能
1 parent
6922268d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
234 additions
and
130 deletions
src/views/goods/shelfProduct/components/profitSharingConfig/components/costAttributionSetting/index.vue
src/views/goods/shelfProduct/components/profitSharingConfig/components/specialCategory/specialCategoryModify.vue
src/views/goods/shelfProduct/components/profitSharingConfig/hooks/index.js
src/views/goods/shelfProduct/components/profitSharingConfig/index.vue
src/views/goods/shelfProduct/components/reconciliationConfig/components/specialCategory/modify.vue
src/views/goods/shelfProduct/components/reconciliationConfig/index.js
src/views/goods/shelfProduct/components/reconciliationConfig/index.vue
src/views/goods/shelfProduct/constant/index.js
src/views/goods/shelfProduct/mixins/categorySelect.js
src/views/goods/shelfProduct/view/modify/index.vue
src/views/goods/shelfProduct/view/table/index.vue
src/views/goods/shelfProduct/components/profitSharingConfig/components/costAttributionSetting/index.vue
View file @
d05cf18
...
@@ -88,6 +88,10 @@ export default {
...
@@ -88,6 +88,10 @@ export default {
type
:
String
,
type
:
String
,
default
:
""
,
default
:
""
,
},
},
shelfType
:
{
type
:
Number
,
default
:
2
,
},
},
},
data
()
{
data
()
{
return
{
return
{
...
...
src/views/goods/shelfProduct/components/profitSharingConfig/components/specialCategory/specialCategoryModify.vue
View file @
d05cf18
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"special-category-modify-wrapper"
>
<div
class=
"special-category-modify-wrapper"
>
<div
v-if=
"form.groupType !== 1"
style=
"display: flex"
>
<div
v-if=
"form.groupType !== 1"
style=
"display: flex"
>
<el-form-item
label=
"分账品类"
<el-form-item
label=
"分账品类"
prop=
"categoryType"
>
prop=
"
specialDetail.
categoryType"
>
<el-select
v-model=
"form.categoryType"
<el-select
v-model=
"form.categoryType"
style=
"width:530px"
style=
"width:530px"
@
change=
"handleCategoryTypeChange"
>
@
change=
"handleCategoryTypeChange"
>
...
@@ -17,12 +17,11 @@
...
@@ -17,12 +17,11 @@
label-width=
"12px"
label-width=
"12px"
prop=
"specialDetail.goodsTypeGroupRelationList"
prop=
"specialDetail.goodsTypeGroupRelationList"
required
>
required
>
<RemoteSelect
v-if=
"form.categoryType === 1"
<RemoteSelect
v-if=
"form.categoryType === 1"
:key=
"form.categoryType"
:key=
"form.categoryType"
v-model=
"form.goodsTypeGroupRelationList"
v-model=
"form.goodsTypeGroupRelationList"
:options
.
sync=
"options.goodsList"
:options
.
sync=
"options.goodsList"
style=
"width:3
5
0px"
style=
"width:3
9
0px"
:immediate=
"true"
:immediate=
"true"
:fetch-api=
"fetchGoodsList"
:fetch-api=
"fetchGoodsList"
:option-props=
"(subItem) =>
{
:option-props=
"(subItem) =>
{
...
@@ -38,14 +37,13 @@
...
@@ -38,14 +37,13 @@
placeholder="请选择商品"
placeholder="请选择商品"
value-key="goodsType">
value-key="goodsType">
</RemoteSelect>
</RemoteSelect>
<RemoteSelect
v-if=
"form.categoryType === 2"
<RemoteSelect
v-if=
"form.categoryType === 2"
:key=
"form.categoryType"
:key=
"form.categoryType"
v-model=
"form.goodsTypeGroupRelationList"
v-model=
"form.goodsTypeGroupRelationList"
:options
.
sync=
"options.upgradeGoods"
:options
.
sync=
"options.upgradeGoods"
style=
"width:3
5
0px"
style=
"width:3
9
0px"
:immediate=
"true"
:immediate=
"true"
:fetch-api=
"
get
UpgradeGoodsList"
:fetch-api=
"
fetch
UpgradeGoodsList"
:option-props=
"(subItem) =>
{
:option-props=
"(subItem) =>
{
return ({
return ({
label: `${subItem.upgradeGoodsName}(${subItem.merchantGoodsCode})`,
label: `${subItem.upgradeGoodsName}(${subItem.merchantGoodsCode})`,
...
@@ -63,7 +61,7 @@
...
@@ -63,7 +61,7 @@
ref=
"packageGoods"
ref=
"packageGoods"
:key=
"form.categoryType"
:key=
"form.categoryType"
v-model=
"form.goodsTypeGroupRelationList"
v-model=
"form.goodsTypeGroupRelationList"
style=
"width:3
5
0px"
style=
"width:3
9
0px"
:options
.
sync=
"options.packageGoods"
:options
.
sync=
"options.packageGoods"
:immediate=
"true"
:immediate=
"true"
:fetch-api=
"getPackagesGoodsList"
:fetch-api=
"getPackagesGoodsList"
...
@@ -75,7 +73,7 @@
...
@@ -75,7 +73,7 @@
value: 'packageCode',
value: 'packageCode',
label: 'packageName',
label: 'packageName',
}"
}"
placeholder="请选择套餐
商品
"
placeholder="请选择套餐"
value-key="packageCode">
value-key="packageCode">
</RemoteSelect>
</RemoteSelect>
</el-form-item>
</el-form-item>
...
@@ -83,12 +81,12 @@
...
@@ -83,12 +81,12 @@
<div
v-for=
"(item, index) in trafficSideExpenseCategoryRules"
<div
v-for=
"(item, index) in trafficSideExpenseCategoryRules"
:key=
"index"
:key=
"index"
class=
"traffic-side"
>
class=
"traffic-side"
>
<div>
<div>
<el-form-item
:label=
"item.expenseCategoryName || item.applicationObjectName"
<el-form-item
:label=
"item.expenseCategoryName || item.applicationObjectName"
style=
"margin-bottom:4px"
:prop=
"getTrafficSideRuleProp(item, 'calculateMode')"
:prop=
"getTrafficSideRuleProp(item, 'calculateMode')"
required
>
required
>
<el-radio-group
v-model=
"item.calculateMode"
style=
"
line-
height:32px"
>
<el-radio-group
v-model=
"item.calculateMode"
style=
"
display:flex;align-items:center;line-height:32px;
height:32px"
>
<el-radio
:label=
"1"
>
<el-radio
:label=
"1"
>
按品类计算
按品类计算
</el-radio>
</el-radio>
...
@@ -112,9 +110,9 @@
...
@@ -112,9 +110,9 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label-width=
"12px"
<el-form-item
label-width=
"12px"
:rules=
"[
{ required: true, message: '请输入分润数额', trigger: '
change
' }]"
:rules=
"[
{ required: true, message: '请输入分润数额', trigger: '
blur
' }]"
:prop="getTrafficSideRuleProp(item, 'expenseCategoryValue')">
:prop="getTrafficSideRuleProp(item, 'expenseCategoryValue')">
<div
style=
"display:flex;width:3
5
0px"
>
<div
style=
"display:flex;width:3
9
0px"
>
<el-input-number
v-model=
"item.expenseCategoryValue"
<el-input-number
v-model=
"item.expenseCategoryValue"
:controls=
"false"
:controls=
"false"
:disabled=
"!item.expenseCategoryCalculateType"
:disabled=
"!item.expenseCategoryCalculateType"
...
@@ -135,12 +133,14 @@
...
@@ -135,12 +133,14 @@
<CostAttributionSetting
v-model=
"owningMerchantDistributionRulesMap"
<CostAttributionSetting
v-model=
"owningMerchantDistributionRulesMap"
prop-prefix=
"owningMerchantDistributionRulesMap"
prop-prefix=
"owningMerchantDistributionRulesMap"
title=
"费用归属设置"
title=
"费用归属设置"
:shelf-type=
"shelfType"
:table-cols=
"tableCols"
:table-cols=
"tableCols"
:table-rows=
"tableRows"
/>
:table-rows=
"tableRows"
/>
<CostAttributionSetting
v-model=
"merchantDistributionRulesMap"
<CostAttributionSetting
v-model=
"merchantDistributionRulesMap"
prop-prefix=
"merchantDistributionRulesMap"
prop-prefix=
"merchantDistributionRulesMap"
title=
"实际分账设置"
title=
"实际分账设置"
:shelf-type=
"shelfType"
:table-cols=
"tableCols"
:table-cols=
"tableCols"
:table-rows=
"tableRows"
/>
:table-rows=
"tableRows"
/>
</div>
</div>
...
@@ -166,6 +166,7 @@ import {
...
@@ -166,6 +166,7 @@ import {
}
from
"@/views/goods/shelfProduct/components/profitSharingConfig/hooks"
;
}
from
"@/views/goods/shelfProduct/components/profitSharingConfig/hooks"
;
import
{
categoryTypeOptions
}
from
"@/views/goods/shelfProduct/constant"
;
import
{
categoryTypeOptions
}
from
"@/views/goods/shelfProduct/constant"
;
import
{
fetchGoodsListHook
,
fetchPackagesGoodsListHook
,
fetchUpgradeGoodsListHook
}
from
"@/views/goods/shelfProduct/hooks/fetchRemoteSelect"
;
import
{
fetchGoodsListHook
,
fetchPackagesGoodsListHook
,
fetchUpgradeGoodsListHook
}
from
"@/views/goods/shelfProduct/hooks/fetchRemoteSelect"
;
// import CategorySelectMixin from "@/views/goods/shelfProduct/mixins/categorySelect";
export
default
{
export
default
{
name
:
""
,
name
:
""
,
...
@@ -173,6 +174,7 @@ export default {
...
@@ -173,6 +174,7 @@ export default {
RemoteSelect
,
RemoteSelect
,
CostAttributionSetting
,
CostAttributionSetting
,
},
},
// mixins: [CategorySelectMixin],
model
:
{
model
:
{
prop
:
"specialDetail"
,
prop
:
"specialDetail"
,
event
:
"update:specialDetail"
,
event
:
"update:specialDetail"
,
...
@@ -365,11 +367,11 @@ export default {
...
@@ -365,11 +367,11 @@ export default {
});
});
if
(
isImmediate
)
{
if
(
isImmediate
)
{
result
.
list
.
push
(...
this
.
form
.
goodsTypeGroupRelationList
);
result
.
list
.
push
(...
this
.
form
.
goodsTypeGroupRelationList
);
result
.
list
=
uniqBy
(
result
.
list
,
"
category
Type"
);
result
.
list
=
uniqBy
(
result
.
list
,
"
goods
Type"
);
}
}
return
result
;
return
result
;
},
},
async
get
UpgradeGoodsList
({
pageQuery
,
isImmediate
})
{
async
fetch
UpgradeGoodsList
({
pageQuery
,
isImmediate
})
{
// 获取其他品类已选择的id
// 获取其他品类已选择的id
if
(
!
this
.
options
.
selectedUpgradeGoods
.
length
)
{
if
(
!
this
.
options
.
selectedUpgradeGoods
.
length
)
{
const
goodsTypeGroupRuleId
=
String
(
this
.
specialDetail
.
id
).
startsWith
(
this
.
prefix
)
?
undefined
:
this
.
specialDetail
.
id
;
const
goodsTypeGroupRuleId
=
String
(
this
.
specialDetail
.
id
).
startsWith
(
this
.
prefix
)
?
undefined
:
this
.
specialDetail
.
id
;
...
...
src/views/goods/shelfProduct/components/profitSharingConfig/hooks/index.js
View file @
d05cf18
...
@@ -116,6 +116,7 @@ export async function getProfitSharingTypeList({ businessCode }) {
...
@@ -116,6 +116,7 @@ export async function getProfitSharingTypeList({ businessCode }) {
export
async
function
getProfitSharingTypeDetail
({
businessCode
,
goodsTypeGroupId
,
baseSceneCode
})
{
export
async
function
getProfitSharingTypeDetail
({
businessCode
,
goodsTypeGroupId
,
baseSceneCode
})
{
const
detail
=
await
getProfitSharingConfigSpecialCategoryDetailApi
({
businessCode
,
goodsTypeGroupId
});
const
detail
=
await
getProfitSharingConfigSpecialCategoryDetailApi
({
businessCode
,
goodsTypeGroupId
});
detail
.
expenseCategoryRuleList
=
await
syncExpenseCategoryRulesToFeeCategoryType
(
baseSceneCode
,
detail
.
expenseCategoryRuleList
);
detail
.
expenseCategoryRuleList
=
await
syncExpenseCategoryRulesToFeeCategoryType
(
baseSceneCode
,
detail
.
expenseCategoryRuleList
);
return
detail
;
return
detail
;
}
}
...
@@ -126,8 +127,7 @@ export async function syncExpenseCategoryRulesToFeeCategoryType(baseSceneCode, e
...
@@ -126,8 +127,7 @@ export async function syncExpenseCategoryRulesToFeeCategoryType(baseSceneCode, e
orderBy
:
2
,
orderBy
:
2
,
pageSize
:
100000
,
pageSize
:
100000
,
});
});
return
list
.
map
((
feeItem
)
=>
{
const
res
=
list
.
map
((
feeItem
,
index
)
=>
{
console
.
log
(
"feeItem"
,
feeItem
.
id
);
feeItem
.
expenseCategoryId
=
feeItem
.
id
;
feeItem
.
expenseCategoryId
=
feeItem
.
id
;
feeItem
.
expenseCategoryName
=
feeItem
.
feeCategoryName
;
feeItem
.
expenseCategoryName
=
feeItem
.
feeCategoryName
;
const
expenseCategory
=
expenseCategoryRuleList
.
find
(
item
=>
feeItem
.
id
===
item
.
expenseCategoryId
);
const
expenseCategory
=
expenseCategoryRuleList
.
find
(
item
=>
feeItem
.
id
===
item
.
expenseCategoryId
);
...
@@ -136,10 +136,10 @@ export async function syncExpenseCategoryRulesToFeeCategoryType(baseSceneCode, e
...
@@ -136,10 +136,10 @@ export async function syncExpenseCategoryRulesToFeeCategoryType(baseSceneCode, e
expenseCategoryName
:
feeItem
.
feeCategoryName
,
expenseCategoryName
:
feeItem
.
feeCategoryName
,
...
expenseCategory
||
{},
...
expenseCategory
||
{},
...
feeItem
,
...
feeItem
,
calculateMode
:
feeItem
.
calculateMode
??
1
,
calculateMode
:
feeItem
.
calculateMode
??
1
,
};
};
});
});
return
res
;
}
}
// 获取 分账配置 基础信息
// 获取 分账配置 基础信息
...
@@ -174,57 +174,43 @@ export async function postProfitSharingBaseDetail({ businessCode, divisionRuleAu
...
@@ -174,57 +174,43 @@ export async function postProfitSharingBaseDetail({ businessCode, divisionRuleAu
}
}
export
function
getTrafficExpenseCategoryRules
(
expenseCategoryRuleList
,
baseSceneCode
)
{
export
function
getTrafficExpenseCategoryRules
(
expenseCategoryRuleList
,
baseSceneCode
)
{
return
expenseCategoryRuleList
.
filter
(
item
=>
getSelectFilterIds
(
baseSceneCode
).
includes
(
item
.
feeCategoryNameI
d
));
return
expenseCategoryRuleList
.
filter
(
item
=>
getSelectFilterIds
(
baseSceneCode
).
includes
(
item
.
i
d
));
}
}
// export function getTrafficColCategoryRules(expenseCategoryRuleList, baseSceneCode) {
// return expenseCategoryRuleList.filter(item => getSelectFilterIds(baseSceneCode).includes(item.feeCategoryNameId));
// }
// 获取表格列
// 获取表格列
export
function
getTableCols
(
baseSceneCode
,
expenseCategoryRules
,
goodsTypeGroupRules
)
{
export
function
getTableCols
(
baseSceneCode
,
expenseCategoryRules
,
goodsTypeGroupRules
)
{
const
filterIdList
=
getTableFilterIds
(
baseSceneCode
);
const
filterIdList
=
getTableFilterIds
(
baseSceneCode
);
const
tableCols
=
cloneDeep
(
expenseCategoryRules
.
filter
(
item
=>
filterIdList
.
includes
(
item
.
feeCategoryNameId
))
||
[]);
return
expenseCategoryRules
.
filter
(
item
=>
filterIdList
.
includes
(
item
.
id
));
if
(
goodsTypeGroupRules
.
virtualAccountCostFlag
===
"Y"
)
{
// if (goodsTypeGroupRules.virtualAccountCostFlag === "Y") {
tableCols
.
push
({
// tableCols.push({
id
:
300
,
// id: 300,
feeCategoryNameId
:
300
,
// feeCategoryNameId: 300,
expenseCategoryId
:
300
,
// expenseCategoryId: 300,
feeCategoryName
:
"虚拟对账成本"
,
// feeCategoryName: "虚拟对账成本",
applicationObjectName
:
"虚拟对账成本"
,
// applicationObjectName: "虚拟对账成本",
applicationObjectType
:
3
,
// applicationObjectType: 3,
});
// });
}
// }
if
(
goodsTypeGroupRules
.
recoveryCostFlag
===
"Y"
)
{
// if (goodsTypeGroupRules.recoveryCostFlag === "Y") {
tableCols
.
push
({
// tableCols.push({
id
:
301
,
// id: 301,
feeCategoryNameId
:
301
,
// feeCategoryNameId: 301,
expenseCategoryId
:
301
,
// expenseCategoryId: 301,
feeCategoryName
:
"回收成本"
,
// feeCategoryName: "回收成本",
applicationObjectName
:
"回收成本"
,
// applicationObjectName: "回收成本",
applicationObjectType
:
3
,
// applicationObjectType: 3,
});
// });
}
// }
if
(
goodsTypeGroupRules
.
djCostFlag
===
"Y"
)
{
// if (goodsTypeGroupRules.djCostFlag === "Y") {
tableCols
.
push
({
// tableCols.push({
id
:
700
,
// id: 700,
feeCategoryNameId
:
700
,
// feeCategoryNameId: 700,
expenseCategoryId
:
700
,
// expenseCategoryId: 700,
feeCategoryName
:
"嘀加成本"
,
// feeCategoryName: "嘀加成本",
applicationObjectName
:
"嘀加成本"
,
// applicationObjectName: "嘀加成本",
applicationObjectType
:
3
,
// applicationObjectType: 3,
});
// });
}
// }
tableCols
.
push
({
id
:
4
,
feeCategoryNameId
:
4
,
expenseCategoryId
:
4
,
feeCategoryName
:
"手续费"
,
applicationObjectName
:
"手续费"
,
applicationObjectType
:
3
,
});
return
uniqBy
(
tableCols
,
"expenseCategoryId"
);
}
}
export
function
getTableRows
({
export
function
getTableRows
({
...
...
src/views/goods/shelfProduct/components/profitSharingConfig/index.vue
View file @
d05cf18
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<!-- 分账配置 -->
<!-- 分账配置 -->
<div
class=
"profit-sharing-config-config edit-page"
>
<div
class=
"profit-sharing-config-config edit-page"
>
<el-form
ref=
"profitSharingFormRef"
<el-form
ref=
"profitSharingFormRef"
class=
"
division-rules
"
class=
"
form-wrapper
"
label-suffix=
":"
label-suffix=
":"
label-width=
"150px"
label-width=
"150px"
size=
"small"
size=
"small"
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
<el-select
v-model=
"tabsActive"
<el-select
v-model=
"tabsActive"
class=
"tab-select"
class=
"tab-select"
size=
"small"
size=
"small"
:disabled=
"isEdit(
) || isSaving(
)"
:disabled=
"isEdit(
editState) || isSaving(editState
)"
:popper-append-to-body=
"false"
:popper-append-to-body=
"false"
placeholder=
"请选择特殊品类"
placeholder=
"请选择特殊品类"
@
change=
"handleSpecialChange($event)"
>
@
change=
"handleSpecialChange($event)"
>
...
@@ -133,11 +133,6 @@
...
@@ -133,11 +133,6 @@
:label=
"item.title"
:label=
"item.title"
:value=
"item.id"
>
:value=
"item.id"
>
<div
class=
"tab-select-options-wrapper"
>
<div
class=
"tab-select-options-wrapper"
>
<span
v-if=
"item.integrity === 'N'"
title=
"该项目有空值"
class=
"el-icon-warning icons"
style=
"color: #EB4E4E;"
>
</span>
<span
class=
"label"
>
<span
class=
"label"
>
{{ item.title }}
{{ item.title }}
</span>
</span>
...
@@ -186,6 +181,7 @@
...
@@ -186,6 +181,7 @@
</div>
</div>
</div>
</div>
<SpecialCategory
v-bind=
"omit(profitSharingForm, ['divisionRuleAutos'])"
<SpecialCategory
v-bind=
"omit(profitSharingForm, ['divisionRuleAutos'])"
:key=
"profitSharingForm.specialDetail.id"
:edit-state=
"editState"
:edit-state=
"editState"
:base-scene-code=
"baseSceneCode"
:base-scene-code=
"baseSceneCode"
:business-code=
"businessCode"
:business-code=
"businessCode"
...
@@ -205,7 +201,7 @@ import { get, omit, pick, uniqBy } from "lodash-es";
...
@@ -205,7 +201,7 @@ import { get, omit, pick, uniqBy } from "lodash-es";
import
{
nanoid
}
from
"nanoid"
;
import
{
nanoid
}
from
"nanoid"
;
import
{
delSpecialCategoryApi
,
postSpecialCategoryApi
}
from
"@/views/goods/shelfProduct/api/index.js"
;
import
{
delSpecialCategoryApi
,
postSpecialCategoryApi
}
from
"@/views/goods/shelfProduct/api/index.js"
;
import
{
realityShopLevelOptions
,
settleTimeOptions
,
VIEW_MODE
}
from
"@/views/goods/shelfProduct/constant/index"
;
import
{
realityShopLevelOptions
,
settleTimeOptions
,
VIEW_MODE
}
from
"@/views/goods/shelfProduct/constant/index"
;
import
{
isBatchPublishMode
,
is
Edit
,
isSingleShopMode
,
isView
}
from
"@/views/goods/shelfProduct/utils/status"
;
import
{
isBatchPublishMode
,
is
SingleShopMode
}
from
"@/views/goods/shelfProduct/utils/status"
;
import
{
validSettleTimeType
}
from
"@/views/goods/shelfProduct/utils/validate.js"
;
import
{
validSettleTimeType
}
from
"@/views/goods/shelfProduct/utils/validate.js"
;
import
Empty
from
"../empty/index.vue"
;
import
Empty
from
"../empty/index.vue"
;
import
FormProvideItemMixin
from
"../formProvider/formItemMixin.js"
;
import
FormProvideItemMixin
from
"../formProvider/formItemMixin.js"
;
...
@@ -275,7 +271,12 @@ export default {
...
@@ -275,7 +271,12 @@ export default {
},
},
},
},
profitSharingFormRules
:
{
profitSharingFormRules
:
{
"specialDetail.categoryType"
:
[
{
required
:
true
,
message
:
"请选择分账品类"
,
trigger
:
"change"
},
],
"specialDetail.goodsTypeGroupRelationList"
:
[
{
required
:
true
,
message
:
"请选择商品/套餐"
,
trigger
:
"change"
},
],
},
},
// 特殊品类值
// 特殊品类值
tabs
:
{
tabs
:
{
...
@@ -319,7 +320,6 @@ export default {
...
@@ -319,7 +320,6 @@ export default {
omit
,
omit
,
isBatchPublishMode
,
isBatchPublishMode
,
isSingleShopMode
,
isSingleShopMode
,
isView
,
validSettleTimeType
,
validSettleTimeType
,
async
initBaseForm
()
{
async
initBaseForm
()
{
const
{
baseDetail
,
divisionRuleAutos
}
=
await
getProfitSharingBaseDetail
({
businessCode
:
this
.
businessCode
});
const
{
baseDetail
,
divisionRuleAutos
}
=
await
getProfitSharingBaseDetail
({
businessCode
:
this
.
businessCode
});
...
@@ -369,7 +369,7 @@ export default {
...
@@ -369,7 +369,7 @@ export default {
return
this
.
profitSharingForm
.
specialDetail
;
return
this
.
profitSharingForm
.
specialDetail
;
},
},
setData
(
cache
)
{
setData
(
cache
)
{
Object
.
assign
(
this
.
profitSharingForm
.
specialDetail
,
cache
);
this
.
$set
(
this
.
profitSharingForm
,
"specialDetail"
,
cache
);
},
},
// 特殊品类切换
// 特殊品类切换
async
handleSpecialChange
(
id
)
{
async
handleSpecialChange
(
id
)
{
...
@@ -377,12 +377,12 @@ export default {
...
@@ -377,12 +377,12 @@ export default {
return
;
return
;
}
}
// 编辑时不可切换
// 编辑时不可切换
if
(
isEdit
(
this
.
editState
))
{
if
(
this
.
isEdit
()
||
this
.
isSaving
(
))
{
return
;
return
;
}
}
// this.withLoading();
// this.withLoading();
await
this
.
withLoading
(
async
()
=>
{
await
this
.
withLoading
(
async
()
=>
{
const
detail
=
await
getProfitSharingTypeDetail
({
businessCode
:
this
.
businessCode
,
goodsTypeGroupId
:
this
.
tabs
.
active
});
const
detail
=
await
getProfitSharingTypeDetail
({
businessCode
:
this
.
businessCode
,
goodsTypeGroupId
:
id
});
this
.
$set
(
this
.
profitSharingForm
,
"specialDetail"
,
detail
);
this
.
$set
(
this
.
profitSharingForm
,
"specialDetail"
,
detail
);
this
.
tabs
.
active
=
id
;
this
.
tabs
.
active
=
id
;
});
});
...
@@ -394,7 +394,7 @@ export default {
...
@@ -394,7 +394,7 @@ export default {
return
;
return
;
}
}
const
isCreate
=
this
.
isCreate
(
rows
.
id
);
const
isCreate
=
this
.
isCreate
(
rows
.
id
);
// 在
这个
操作逻辑里, 不存在新增的数据, 所以直接不处理
// 在
目前的
操作逻辑里, 不存在新增的数据, 所以直接不处理
if
(
isCreate
)
{
if
(
isCreate
)
{
return
;
return
;
}
}
...
@@ -422,16 +422,15 @@ export default {
...
@@ -422,16 +422,15 @@ export default {
// 如果list还有长度, 则取第一
// 如果list还有长度, 则取第一
if
(
this
.
tabs
.
list
&&
this
.
tabs
.
list
.
length
)
{
if
(
this
.
tabs
.
list
&&
this
.
tabs
.
list
.
length
)
{
const
detail
=
await
getProfitSharingTypeDetail
({
businessCode
:
this
.
businessCode
,
goodsTypeGroupId
:
this
.
tabs
Active
});
const
detail
=
await
getProfitSharingTypeDetail
({
businessCode
:
this
.
businessCode
,
goodsTypeGroupId
:
this
.
tabs
.
list
[
0
]?.
id
});
this
.
$set
(
this
.
profitSharingForm
,
"specialDetail"
,
detail
);
this
.
$set
(
this
.
profitSharingForm
,
"specialDetail"
,
detail
);
this
.
tabs
.
active
=
rows
.
id
;
this
.
tabs
.
active
=
detail
.
id
;
return
;
return
;
}
}
// 如果没有长度了 active赋为undefined(清空)
// 如果没有长度了 active赋为undefined(清空)
// 然后清空detail
// 然后清空detail
this
.
tabs
.
active
=
undefined
;
this
.
tabs
.
active
=
undefined
;
this
.
profitSharingForm
.
specialDetail
=
undefined
;
this
.
profitSharingForm
.
specialDetail
=
undefined
;
this
.
$refs
.
remoteSelectRef
.
forceUpdate
();
},
},
// 新增特殊品类
// 新增特殊品类
async
handleAppendSpecialCategory
()
{
async
handleAppendSpecialCategory
()
{
...
@@ -443,7 +442,6 @@ export default {
...
@@ -443,7 +442,6 @@ export default {
this
.
tabs
.
list
.
push
({
this
.
tabs
.
list
.
push
({
id
:
specialId
,
id
:
specialId
,
groupType
:
2
,
groupType
:
2
,
integrity
:
"N"
,
title
:
"特殊品类"
,
title
:
"特殊品类"
,
});
});
this
.
tabs
.
active
=
specialId
;
this
.
tabs
.
active
=
specialId
;
...
@@ -484,6 +482,10 @@ export default {
...
@@ -484,6 +482,10 @@ export default {
// mixin
// mixin
this
.
cancelEdit
();
this
.
cancelEdit
();
},
},
// 校验 - 来自mixin调用
async
validate
()
{
return
await
this
.
$refs
.
profitSharingFormRef
.
validate
();
},
// 保存事件 - 来自mixin调用
// 保存事件 - 来自mixin调用
async
handleSave
({
useMessage
=
true
}
=
{})
{
async
handleSave
({
useMessage
=
true
}
=
{})
{
// mixin
// mixin
...
@@ -497,14 +499,12 @@ export default {
...
@@ -497,14 +499,12 @@ export default {
if
(
id
)
{
if
(
id
)
{
const
detail
=
await
getProfitSharingTypeDetail
({
businessCode
:
this
.
businessCode
,
goodsTypeGroupId
:
id
});
const
detail
=
await
getProfitSharingTypeDetail
({
businessCode
:
this
.
businessCode
,
goodsTypeGroupId
:
id
});
this
.
$set
(
this
.
profitSharingForm
,
"specialDetail"
,
detail
);
this
.
$set
(
this
.
profitSharingForm
,
"specialDetail"
,
detail
);
if
(
isCreate
)
{
if
(
isCreate
)
{
// 空值 新增
const
index
=
this
.
tabs
.
list
.
findIndex
(
item
=>
item
.
id
===
this
.
tabs
.
active
);
const
index
=
this
.
tabs
.
list
.
findIndex
(
item
=>
item
.
id
===
id
);
if
(
index
!==
-
1
)
{
if
(
index
===
-
1
)
{
this
.
tabs
.
list
[
index
].
id
=
id
;
return
;
this
.
tabs
.
active
=
id
;
}
}
// TODO 补充逻辑
}
}
}
}
...
@@ -606,7 +606,7 @@ export default {
...
@@ -606,7 +606,7 @@ export default {
}
}
}
}
}
}
.
division-rules
{
.
form-wrapper
{
::v-deep
.el-form-item
{
::v-deep
.el-form-item
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
&.payment-channel-form-item
{
&.payment-channel-form-item
{
...
...
src/views/goods/shelfProduct/components/reconciliationConfig/components/specialCategory/modify.vue
View file @
d05cf18
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"special-category-modify-wrapper"
>
<div
class=
"special-category-modify-wrapper"
>
<div
v-if=
"form.groupType !== 1"
style=
"display: flex"
>
<div
v-if=
"form.groupType !== 1"
style=
"display: flex"
>
<el-form-item
label=
"分账品类"
<el-form-item
label=
"分账品类"
prop=
"categoryType"
>
prop=
"
specialDetail.
categoryType"
>
<el-select
v-model=
"form.categoryType"
<el-select
v-model=
"form.categoryType"
style=
"width:530px"
style=
"width:530px"
@
change=
"handleCategoryTypeChange"
>
@
change=
"handleCategoryTypeChange"
>
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
:key=
"form.categoryType"
:key=
"form.categoryType"
v-model=
"form.goodsTypeGroupRelationList"
v-model=
"form.goodsTypeGroupRelationList"
:options
.
sync=
"options.goodsList"
:options
.
sync=
"options.goodsList"
style=
"width:3
5
0px"
style=
"width:3
9
0px"
:immediate=
"true"
:immediate=
"true"
:fetch-api=
"fetchGoodsList"
:fetch-api=
"fetchGoodsList"
:option-props=
"(subItem) =>
{
:option-props=
"(subItem) =>
{
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
:key=
"form.categoryType"
:key=
"form.categoryType"
v-model=
"form.goodsTypeGroupRelationList"
v-model=
"form.goodsTypeGroupRelationList"
:options
.
sync=
"options.upgradeGoods"
:options
.
sync=
"options.upgradeGoods"
style=
"width:3
5
0px"
style=
"width:3
9
0px"
:immediate=
"true"
:immediate=
"true"
:fetch-api=
"fetchUpgradeGoodsList"
:fetch-api=
"fetchUpgradeGoodsList"
:option-props=
"(subItem) =>
{
:option-props=
"(subItem) =>
{
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
ref=
"packageGoods"
ref=
"packageGoods"
:key=
"form.categoryType"
:key=
"form.categoryType"
v-model=
"form.goodsTypeGroupRelationList"
v-model=
"form.goodsTypeGroupRelationList"
style=
"width:3
5
0px"
style=
"width:3
9
0px"
:options
.
sync=
"options.packageGoods"
:options
.
sync=
"options.packageGoods"
:immediate=
"true"
:immediate=
"true"
:fetch-api=
"fetchPackagesGoodsList"
:fetch-api=
"fetchPackagesGoodsList"
...
@@ -81,11 +81,13 @@
...
@@ -81,11 +81,13 @@
</el-form-item>
</el-form-item>
</div>
</div>
<template
v-if=
"getGoodsTypeGroupRelationList.length > 0"
>
<template
v-if=
"getGoodsTypeGroupRelationList.length > 0"
>
<div
v-for=
"(
flowItem, flowIndex) in getGoodsTypeGroupRelationList"
:key=
"`$
{flowIndex}temporaryArr
`">
<div
v-for=
"(
item) in getGoodsTypeGroupRelationList"
:key=
"`$
{item.id}
`">
<div
class=
"special-temporary-wrapper"
>
<div
class=
"special-temporary-wrapper"
>
<el-form-item
:label=
"flowItem.feeCategoryName"
<el-form-item
:label=
"item.feeCategoryName"
:rules=
"[
{ required: true, message: '请选择分润模式', trigger: 'change' }]"
:prop="getTrafficSideRuleProp(item, 'calculateMode')"
label-width="154px">
label-width="154px">
<el-radio-group
v-model=
"
flowI
tem.calculateMode"
>
<el-radio-group
v-model=
"
i
tem.calculateMode"
>
<el-radio
:label=
"1"
>
<el-radio
:label=
"1"
>
按品类计算
按品类计算
</el-radio>
</el-radio>
...
@@ -94,50 +96,37 @@
...
@@ -94,50 +96,37 @@
</el-radio>
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<div
class=
"multiple-type
"
>
<div
style=
"display: flex
"
>
<el-form-item
label=
""
<el-form-item
label=
""
:rules=
"[
{ required: true, message: '请选择分润模式', trigger: 'change' }]"
:prop="getTrafficSideRuleProp(item, 'expenseCategoryCalculateType')"
label-width="154px">
label-width="154px">
<el-select
v-model=
"
flowI
tem.expenseCategoryCalculateType"
<el-select
v-model=
"
i
tem.expenseCategoryCalculateType"
class=
"w432
"
style=
"width:530px
"
placeholder=
"请选择对账模式"
>
placeholder=
"请选择对账模式"
>
<span
v-if=
"flowItem.applicationObjectType === 2"
>
<el-option
v-for=
"(option, index) in getExpenseCategoryCalculateTypeOptions(item.applicationObjectType)"
<el-option
v-for=
"(item, index) in options.server"
:key=
"`$
{index}${option.label}`"
:key=
"`$
{index}serveFeeList`"
:label="option.label"
:label="item.label"
:value="option.expenseCategoryCalculateType">
:value="item.expenseCategoryCalculateType">
</el-option>
</span>
<span
v-if=
"flowItem.applicationObjectType === 1"
>
<el-option
v-for=
"(item, index) in options.flow"
:key=
"`$
{index}flowFeeList`"
:label="item.label"
:value="item.expenseCategoryCalculateType">
</el-option>
</el-option>
</span>
<span
v-if=
"flowItem.applicationObjectType === 3"
>
<el-option
v-for=
"(item, index) in options.platform"
:key=
"`$
{index}platformFeeList`"
:label="item.label"
:value="item.expenseCategoryCalculateType">
</el-option>
</span>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"flowItem.expenseCategoryCalculateType"
<el-form-item
v-if=
"item.expenseCategoryCalculateType"
:rules=
"[
{ required: true, message: '请输入分润数额', trigger: 'blur' }]"
:prop="getTrafficSideRuleProp(item, 'expenseCategoryValue')"
label-width="12px">
label-width="12px">
<div
style=
"display:flex;width:390px"
>
<div
style=
"display:flex;width:350px"
>
<el-input-number
v-model=
"item.expenseCategoryValue"
<el-input-number
v-model=
"flowItem.expenseCategoryValue"
style=
"flex:1;"
style=
"flex:1;"
:min=
"0"
:min=
"0"
:max=
"[3, 10].includes(
flowI
tem.expenseCategoryCalculateType) ? 9999999999 : 100"
:max=
"[3, 10].includes(
i
tem.expenseCategoryCalculateType) ? 9999999999 : 100"
:precision=
"2"
:precision=
"2"
:controls=
"false"
:controls=
"false"
:title=
"
flowI
tem.expenseCategoryCalculateType | filerPlaceName"
:title=
"
i
tem.expenseCategoryCalculateType | filerPlaceName"
:placeholder=
"
flowI
tem.expenseCategoryCalculateType | filerPlaceName"
/>
:placeholder=
"
i
tem.expenseCategoryCalculateType | filerPlaceName"
/>
<div
class=
"prefix"
style=
"margin-left:4px"
>
<div
class=
"prefix"
style=
"margin-left:4px"
>
{{
[
3
,
10
].
includes
(
flowI
tem
.
expenseCategoryCalculateType
)
?
'元'
:
'%'
}}
{{
[
3
,
10
].
includes
(
i
tem
.
expenseCategoryCalculateType
)
?
'元'
:
'%'
}}
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -236,6 +225,26 @@ export default {
...
@@ -236,6 +225,26 @@ export default {
},
},
methods
:
{
methods
:
{
getExpenseCategoryCalculateTypeOptions
(
applicationObjectType
)
{
if
(
applicationObjectType
===
1
)
{
return
this
.
options
.
flow
;
}
if
(
applicationObjectType
===
2
)
{
return
this
.
options
.
server
;
}
if
(
applicationObjectType
===
3
)
{
return
this
.
options
.
platform
;
}
return
[];
},
getTrafficSideRuleProp
(
rule
,
field
)
{
const
expenseCategoryRules
=
this
.
specialDetail
?.
expenseCategoryRuleList
||
[];
const
ruleIndex
=
expenseCategoryRules
.
findIndex
(
item
=>
item
===
rule
);
if
(
ruleIndex
<
0
)
{
return
""
;
}
return
`specialDetail.expenseCategoryRuleList.
${
ruleIndex
}
.
${
field
}
`
;
},
handleCategoryTypeChange
()
{
handleCategoryTypeChange
()
{
this
.
form
.
goodsTypeGroupRelationList
=
[];
this
.
form
.
goodsTypeGroupRelationList
=
[];
},
},
...
@@ -255,7 +264,7 @@ export default {
...
@@ -255,7 +264,7 @@ export default {
});
});
if
(
isImmediate
)
{
if
(
isImmediate
)
{
result
.
list
.
push
(...
this
.
form
.
goodsTypeGroupRelationList
);
result
.
list
.
push
(...
this
.
form
.
goodsTypeGroupRelationList
);
result
.
list
=
uniqBy
(
result
.
list
,
"
category
Type"
);
result
.
list
=
uniqBy
(
result
.
list
,
"
goods
Type"
);
}
}
return
result
;
return
result
;
},
},
...
...
src/views/goods/shelfProduct/components/reconciliationConfig/index.js
0 → 100644
View file @
d05cf18
File mode changed
src/views/goods/shelfProduct/components/reconciliationConfig/index.vue
View file @
d05cf18
This diff is collapsed.
Click to expand it.
src/views/goods/shelfProduct/constant/index.js
View file @
d05cf18
...
@@ -47,3 +47,9 @@ export const categoryTypeOptions = [
...
@@ -47,3 +47,9 @@ export const categoryTypeOptions = [
{
label
:
"按具体商品"
,
value
:
2
},
{
label
:
"按具体商品"
,
value
:
2
},
{
label
:
"按具体套餐"
,
value
:
3
},
{
label
:
"按具体套餐"
,
value
:
3
},
];
];
// 开启与关闭
export
const
sunshineOnlineOptions
=
[
{
value
:
"Y"
,
label
:
"开启"
},
{
value
:
"N"
,
label
:
"关闭"
},
];
src/views/goods/shelfProduct/mixins/categorySelect.js
0 → 100644
View file @
d05cf18
import
{
uniqBy
}
from
"lodash-es"
;
import
{
getOtherGoodsItemApi
,
postReconciliationConfigOtherGoodsApi
}
from
"@/views/goods/shelfProduct/api"
;
import
{
fetchGoodsListHook
,
fetchPackagesGoodsListHook
,
fetchUpgradeGoodsListHook
}
from
"@/views/goods/shelfProduct/hooks/fetchRemoteSelect"
;
export
default
{
data
()
{
return
{
// 账务类型
// profitConfig 分账配置
// reconciliationConfig 对账配置
financialType
:
"profitConfig"
,
options
:
{
goodsList
:
[],
upgradeGoods
:
[],
packageGoods
:
[],
// 其他特殊品类下 已选择的商品
selectedGoodsType
:
[],
selectedPackageGoods
:
[],
selectedUpgradeGoods
:
[],
},
};
},
computed
:
{
},
methods
:
{
_getOptionProps
(
subItem
)
{
},
_getFieldName
()
{},
_getValueKey
()
{},
async
fetchUpgradeGoodsList
({
pageQuery
,
isImmediate
})
{
// 获取其他品类已选择的id
if
(
!
this
.
options
.
selectedUpgradeGoods
.
length
)
{
const
goodsTypeGroupRuleId
=
String
(
this
.
specialDetail
.
id
).
startsWith
(
this
.
prefix
)
?
undefined
:
this
.
specialDetail
.
id
;
const
selectedGoods
=
await
getOtherGoodsItemApi
({
goodsTypeGroupRuleId
,
categoryType
:
2
,
businessCode
:
this
.
businessCode
,
});
this
.
options
.
selectedUpgradeGoods
=
selectedGoods
.
map
(
item
=>
item
.
upgradeGoodsId
);
}
const
result
=
await
fetchUpgradeGoodsListHook
({
pageQuery
,
selectedUpgradeGoods
:
this
.
options
.
selectedUpgradeGoods
,
businessCode
:
this
.
businessCode
,
});
if
(
isImmediate
)
{
result
.
list
.
push
(...
this
.
form
.
goodsTypeGroupRelationList
);
result
.
list
=
uniqBy
(
result
.
list
,
"upgradeGoodsId"
);
}
return
result
;
},
},
mounted
()
{
},
};
src/views/goods/shelfProduct/view/modify/index.vue
View file @
d05cf18
...
@@ -2,6 +2,28 @@
...
@@ -2,6 +2,28 @@
<d2-container
v-if=
"step.confirmStep > -1"
<d2-container
v-if=
"step.confirmStep > -1"
v-loading=
"loading"
v-loading=
"loading"
class=
"modify-wrapper"
>
class=
"modify-wrapper"
>
<div
style=
"position:fixed; right:20px; top:50px;color:white;background:#000; opacity:0.3; padding:15px;z-index:999"
>
<div>
business-code:
{{
businessCode
}}
</div>
<div>
当前场景值:
{{
baseSceneCode
}}
</div>
<div
v-if=
"baseSceneCode"
>
当前场景:
{{
sceneTypeOptions
.
find
(
item
=>
item
.
value
===
baseSceneCode
).
label
}}
</div>
<div
v-if=
"baseSceneCode"
>
精品升级:
{{
isQualityUpgrade
(
baseSceneCode
)
}}
</div>
<div
v-if=
"baseSceneCode"
>
会员权益升级:
{{
isMemberRightsUpgrade
(
baseSceneCode
)
}}
</div>
<div
v-if=
"baseSceneCode"
>
sceneType值:
{{
getMemberRightsUpgradeValue
(
baseSceneCode
)
}}
</div>
</div>
<FormProvider
v-if=
"!loading"
<FormProvider
v-if=
"!loading"
ref=
"formProviderRef"
ref=
"formProviderRef"
v-model=
"step.confirmStep"
v-model=
"step.confirmStep"
...
@@ -98,6 +120,8 @@ import {
...
@@ -98,6 +120,8 @@ import {
postShelfProductBaseInfoApi
,
postShelfProductBaseInfoApi
,
putShelfProductUpdateStep
,
putShelfProductUpdateStep
,
}
from
"@/views/goods/shelfProduct/api"
;
}
from
"@/views/goods/shelfProduct/api"
;
import
{
sceneTypeOptions
}
from
"@/views/goods/shelfProduct/constant/index"
;
import
{
getMemberRightsUpgradeValue
,
isMemberRightsUpgrade
,
isQualityUpgrade
}
from
"@/views/goods/shelfProduct/utils/status"
;
import
FormStep
from
"../../components/formProvider/formStep.vue"
;
import
FormStep
from
"../../components/formProvider/formStep.vue"
;
import
FormProvider
from
"../../components/formProvider/index.vue"
;
import
FormProvider
from
"../../components/formProvider/index.vue"
;
import
ProfitMarginTable
from
"../../components/profitMarginTable/index.vue"
;
import
ProfitMarginTable
from
"../../components/profitMarginTable/index.vue"
;
...
@@ -132,13 +156,17 @@ export default {
...
@@ -132,13 +156,17 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
sceneTypeOptions
,
step
:
{
step
:
{
confirmStep
:
0
,
confirmStep
:
3
,
},
},
// 第一步轮训用的 , null || Fn, 为Fn时, 执行即取消轮训
// 第一步轮训用的 , null || Fn, 为Fn时, 执行即取消轮训
polling
:
null
,
polling
:
null
,
// 仅编辑/新增状态下 初始化用
// 仅编辑/新增状态下 初始化用
loading
:
false
,
loading
:
false
,
baseSceneCode
:
undefined
,
businessCode
:
undefined
,
shelfType
:
undefined
,
};
};
},
},
...
@@ -150,10 +178,16 @@ export default {
...
@@ -150,10 +178,16 @@ export default {
return
this
.
$refs
?.
formProviderRef
?.
globalLoading
;
return
this
.
$refs
?.
formProviderRef
?.
globalLoading
;
},
},
},
},
created
()
{
Object
.
assign
(
this
.
$data
,
this
.
$route
.
query
);
},
async
mounted
()
{
async
mounted
()
{
await
this
.
init
();
await
this
.
init
();
},
},
methods
:
{
methods
:
{
getMemberRightsUpgradeValue
,
isMemberRightsUpgrade
,
isQualityUpgrade
,
async
withLoading
(
fn
)
{
async
withLoading
(
fn
)
{
if
(
!
isFunction
(
fn
))
{
if
(
!
isFunction
(
fn
))
{
return
;
return
;
...
@@ -223,8 +257,6 @@ export default {
...
@@ -223,8 +257,6 @@ export default {
const
reqData
=
{
const
reqData
=
{
...
stepFormData
,
...
stepFormData
,
file
:
last
(
fileExt
)
+
"@"
+
arrBase64
,
file
:
last
(
fileExt
)
+
"@"
+
arrBase64
,
merchantId
:
44217741
,
merchantNames
:
"林冲4S店"
,
};
};
if
(
!
reqData
.
businessCode
)
{
if
(
!
reqData
.
businessCode
)
{
delete
reqData
.
businessCode
;
delete
reqData
.
businessCode
;
...
...
src/views/goods/shelfProduct/view/table/index.vue
View file @
d05cf18
...
@@ -120,6 +120,7 @@ export default {
...
@@ -120,6 +120,7 @@ export default {
handleDetail
()
{},
handleDetail
()
{},
// 新增 或 修改
// 新增 或 修改
handleModify
({
operate
,
record
})
{
handleModify
({
operate
,
record
})
{
console
.
log
(
"record"
,
record
);
if
(
operate
===
"create"
)
{
if
(
operate
===
"create"
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"goodsShelfCreate"
,
name
:
"goodsShelfCreate"
,
...
@@ -129,6 +130,11 @@ export default {
...
@@ -129,6 +130,11 @@ export default {
if
(
operate
===
"edit"
)
{
if
(
operate
===
"edit"
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"goodsShelfModify"
,
name
:
"goodsShelfModify"
,
query
:
{
baseSceneCode
:
record
.
baseSceneCode
,
businessCode
:
record
.
businessCode
,
shelfType
:
record
.
shelfType
,
},
});
});
}
}
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment