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 1e89c1ec
authored
Jun 27, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
支付方式新增
1 parent
bf56c09c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
244 additions
and
405 deletions
src/common/constants.js
src/components/d2-dialog/index.vue
src/components/d2-form/index.vue
src/layout/header-aside/components/header-user/index.vue
src/views/goods/coupons/selectedShowTable.vue
src/views/goods/coupons/storeList.vue
src/views/goods/d2-form/index.vue
src/views/goods/d2-form/relateStoreTable.vue
src/views/goods/d2-form/specRelateStoreTable.vue
src/views/goods/editCommodity.vue
src/views/goods/grounding/editGrounding.vue
src/views/goods/grounding/groundingDetail.vue
src/views/orderManage/crowdfunding.vue
src/views/purchase/procurementReview.vue
src/views/systemConfig/ShopConfig/personnelManagement.vue
src/views/systemConfig/merchant/components/merchantChoose.vue
src/views/systemConfig/merchant/financialRules/oldFiles/stepOne.vue
src/views/systemConfig/merchant/setDetail.vue
src/views/systemConfig/serviceManage/editService.vue
src/common/constants.js
View file @
1e89c1e
...
@@ -242,13 +242,18 @@ export const payTypeList = [
...
@@ -242,13 +242,18 @@ export const payTypeList = [
{
{
confId
:
"4"
,
confId
:
"4"
,
confLabel
:
"支付宝支付"
confLabel
:
"支付宝支付"
},
{
confId
:
"5"
,
confLabel
:
"嘀加收款"
}
}
]
]
export
const
payType
=
{
export
const
payType
=
{
1
:
"微信支付"
,
1
:
"微信支付"
,
2
:
"4S店支付"
,
2
:
"4S店支付"
,
3
:
"POS机收款"
,
3
:
"POS机收款"
,
4
:
"支付宝支付"
4
:
"支付宝支付"
,
5
:
"嘀加收款"
}
}
// 订单类型
// 订单类型
...
@@ -631,24 +636,24 @@ export const procureModeList = [
...
@@ -631,24 +636,24 @@ export const procureModeList = [
{
confId
:
2
,
confName
:
"批发"
},
{
confId
:
2
,
confName
:
"批发"
},
{
confId
:
3
,
confName
:
"代销"
}
{
confId
:
3
,
confName
:
"代销"
}
]
]
//开店审核 申请状态
//
开店审核 申请状态
export
const
applyStatus
=
[
export
const
applyStatus
=
[
{
confId
:
1
,
confName
:
"待审核"
},
{
confId
:
1
,
confName
:
"待审核"
},
{
confId
:
2
,
confName
:
"已审核"
},
{
confId
:
2
,
confName
:
"已审核"
},
{
confId
:
3
,
confName
:
"已驳回"
}
{
confId
:
3
,
confName
:
"已驳回"
}
]
]
//店面配置 业务性质
//
店面配置 业务性质
export
const
businessNature
=
[
export
const
businessNature
=
[
{
confId
:
1
,
confName
:
"直营渠道"
},
{
confId
:
1
,
confName
:
"直营渠道"
},
{
confId
:
2
,
confName
:
"直营4S店"
}
{
confId
:
2
,
confName
:
"直营4S店"
}
]
]
//店面配置 门店类型
//
店面配置 门店类型
export
const
storeType
=
[
export
const
storeType
=
[
{
confId
:
1
,
confName
:
"嘀加"
},
{
confId
:
1
,
confName
:
"嘀加"
},
{
confId
:
2
,
confName
:
"广汇"
},
{
confId
:
2
,
confName
:
"广汇"
},
{
confId
:
3
,
confName
:
"直营"
}
{
confId
:
3
,
confName
:
"直营"
}
]
]
//店面配置 部署场景
//
店面配置 部署场景
export
const
sceneForShop
=
[
export
const
sceneForShop
=
[
{
confId
:
1
,
confValue
:
"1.1精品升级"
},
{
confId
:
1
,
confValue
:
"1.1精品升级"
},
{
confId
:
4
,
confValue
:
"1.2次新车升配"
},
{
confId
:
4
,
confValue
:
"1.2次新车升配"
},
...
@@ -656,12 +661,12 @@ export const sceneForShop = [
...
@@ -656,12 +661,12 @@ export const sceneForShop = [
{
confId
:
0
,
confValue
:
"2.1会员权益/升级"
},
{
confId
:
0
,
confValue
:
"2.1会员权益/升级"
},
{
confId
:
2
,
confValue
:
"2.2续保膨胀金"
}
{
confId
:
2
,
confValue
:
"2.2续保膨胀金"
}
]
]
//店面配置 员工类型
//
店面配置 员工类型
export
const
staffBusinessType
=
[
export
const
staffBusinessType
=
[
{
confId
:
0
,
confValue
:
"驻店人员"
},
{
confId
:
0
,
confValue
:
"驻店人员"
},
{
confId
:
1
,
confValue
:
"门店销售"
}
{
confId
:
1
,
confValue
:
"门店销售"
}
]
]
//店面配置 人员设置列表-部署场景
//
店面配置 人员设置列表-部署场景
export
const
sceneForPerson
=
[
export
const
sceneForPerson
=
[
{
confId
:
"1"
,
confValue
:
"1.1"
},
{
confId
:
"1"
,
confValue
:
"1.1"
},
{
confId
:
"4"
,
confValue
:
"1.2"
},
{
confId
:
"4"
,
confValue
:
"1.2"
},
...
...
src/components/d2-dialog/index.vue
View file @
1e89c1e
<!-- 弹窗 -->
<!-- 弹窗 -->
<
template
>
<
template
>
<div>
<div>
<el-dialog
<el-dialog
:title=
"title"
:visible
.
sync=
"isVisible"
:show-close=
"showClose"
:before-close=
"handleClose"
:title=
"title"
:close-on-click-modal=
"false"
:width=
"width"
>
:visible
.
sync=
"isVisible"
:show-close=
"showClose"
:before-close=
"handleClose"
:close-on-click-modal=
"false"
:width=
"width"
>
<span
slot=
"title"
>
<span
slot=
"title"
>
{{
title
}}
{{
title
}}
<span
class=
"dialog-sub-title"
>
<span
class=
"dialog-sub-title"
>
...
@@ -18,12 +12,8 @@
...
@@ -18,12 +12,8 @@
<slot
/>
<slot
/>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<slot
name=
"btn-start"
/>
<slot
name=
"btn-start"
/>
<el-button
<el-button
type=
"primary"
v-if=
"isShowFooter"
@
click=
"handleConfirm"
type=
"primary"
:loading=
"$store.state.d2admin.loading.value"
>
v-if=
"isShowFooter"
@
click=
"handleConfirm"
:loading=
"$store.state.d2admin.loading.value"
>
{{
btnOkLabel
}}
{{
btnOkLabel
}}
</el-button>
</el-button>
<el-button
v-if=
"!noCancel"
@
click=
"handleClose"
>
取消
</el-button>
<el-button
v-if=
"!noCancel"
@
click=
"handleClose"
>
取消
</el-button>
...
...
src/components/d2-form/index.vue
View file @
1e89c1e
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</span>
</span>
</span>
</span>
<div
<div
:style=
"
{'width': i.headImg ? 'calc(100% - 220px)' : '100%', 'display': 'inline-block'}">
:style=
"
{'width': i.headImg ? 'calc(100% - 220px)' : '100%', 'display': 'inline-block'}">
<div
v-for=
"(item, index) in i.formBlock"
<div
v-for=
"(item, index) in i.formBlock"
:key=
"index"
:key=
"index"
:style=
"
{'width': i.width || '100%', 'display': 'inline-block'}">
:style=
"
{'width': i.width || '100%', 'display': 'inline-block'}">
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
{{
item
.
btnTxt
}}
{{
item
.
btnTxt
}}
</el-button>
</el-button>
<span>
已为该商品组合分配
<span
<span>
已为该商品组合分配
<span
class=
"relate-btn-txt"
>
{{
formData
[
item
.
name
]
?
formData
[
item
.
name
].
length
:
0
}}
</span>
家可见店铺
</span>
class=
"relate-btn-txt"
>
{{
formData
[
item
.
name
]
?
formData
[
item
.
name
].
length
:
0
}}
</span>
家可见店铺
</span>
</div>
</div>
<el-table
:data=
"formData[item.name]"
<el-table
:data=
"formData[item.name]"
style=
"width: 690px"
style=
"width: 690px"
...
@@ -212,7 +212,7 @@
...
@@ -212,7 +212,7 @@
添加绑定
添加绑定
</el-button>
</el-button>
<span>
已将基础商品绑定
<span
<span>
已将基础商品绑定
<span
class=
"relate-btn-txt"
>
{{
formData
[
item
.
name
]
?
formData
[
item
.
name
].
length
:
0
}}
</span>
件升级商品
</span>
class=
"relate-btn-txt"
>
{{
formData
[
item
.
name
]
?
formData
[
item
.
name
].
length
:
0
}}
</span>
件升级商品
</span>
</div>
</div>
<div
v-for=
"(subItem, subIndex) in formData[item.name]"
<div
v-for=
"(subItem, subIndex) in formData[item.name]"
:key=
"subIndex"
:key=
"subIndex"
...
@@ -232,7 +232,7 @@
...
@@ -232,7 +232,7 @@
<div
class=
"pro-price-block"
>
<div
class=
"pro-price-block"
>
<p>
建议升级价格:
<span
class=
"pro-price"
>
{{
subItem
.
upgradePrice
}}
</span>
元
</p>
<p>
建议升级价格:
<span
class=
"pro-price"
>
{{
subItem
.
upgradePrice
}}
</span>
元
</p>
<p
v-show=
"warrantyProList.includes(subItem.goodsType)"
>
质保年限:
<span
<p
v-show=
"warrantyProList.includes(subItem.goodsType)"
>
质保年限:
<span
class=
"pro-price"
>
{{
subItem
.
warrantyPeriod
?
(
subItem
.
warrantyPeriod
+
'年'
)
:
'无'
}}
</span>
class=
"pro-price"
>
{{
subItem
.
warrantyPeriod
?
(
subItem
.
warrantyPeriod
+
'年'
)
:
'无'
}}
</span>
</p>
</p>
</div>
</div>
</div>
</div>
...
@@ -250,7 +250,7 @@
...
@@ -250,7 +250,7 @@
+
+
</div>
</div>
<span
<span
class=
"number"
>
{{
formData
[
item
.
name
].
length
}}
/
{{
item
.
maxPhotoNum
}}
</span>
class=
"number"
>
{{
formData
[
item
.
name
].
length
}}
/
{{
item
.
maxPhotoNum
}}
</span>
<input
type=
"file"
<input
type=
"file"
name=
"thumbUrl"
name=
"thumbUrl"
:id=
"item.name + 'file'"
:id=
"item.name + 'file'"
...
@@ -289,7 +289,7 @@
...
@@ -289,7 +289,7 @@
+
+
</div>
</div>
<span
<span
class=
"number"
>
{{
formData
[
item
.
name
].
length
}}
/
{{
item
.
maxPhotoNum
}}
</span>
class=
"number"
>
{{
formData
[
item
.
name
].
length
}}
/
{{
item
.
maxPhotoNum
}}
</span>
<input
type=
"file"
<input
type=
"file"
style=
"opacity: 0"
style=
"opacity: 0"
:id=
"item.name + 'file'"
:id=
"item.name + 'file'"
...
@@ -786,7 +786,7 @@ export default {
...
@@ -786,7 +786,7 @@ export default {
this
.
profitOldVal
.
splice
(
index
,
1
)
this
.
profitOldVal
.
splice
(
index
,
1
)
}
}
this
.
judgeIsDisable
()
this
.
judgeIsDisable
()
})
})
.
catch
(()
=>
{
})
},
},
// 图片
// 图片
handleImgChange
(
e
,
targetItem
,
subIndex
=
0
)
{
handleImgChange
(
e
,
targetItem
,
subIndex
=
0
)
{
...
...
src/layout/header-aside/components/header-user/index.vue
View file @
1e89c1e
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<!--
<p
class=
"bg-blue-500 text-5xl"
>
111111
</p>
-->
<!--
<p
class=
"bg-blue-500 text-5xl"
>
111111
</p>
-->
<i
class=
"el-icon-s-tools"
style=
"marginRight:20px;cursor:pointer"
v-if=
"userInfo.beSuper"
@
click=
"setTitle"
/>
<i
class=
"el-icon-s-tools"
style=
"marginRight:20px;cursor:pointer"
v-if=
"userInfo.beSuper"
@
click=
"setTitle"
/>
<el-popover
ref=
"popover1"
placement=
"top-start"
width=
"400"
@
show=
"redPotShow = false"
popper-class=
"popper"
<el-popover
ref=
"popover1"
placement=
"top-start"
width=
"400"
@
show=
"redPotShow = false"
popper-class=
"popper"
v-model=
"visible"
trigger=
"hover"
>
v-model=
"visible"
trigger=
"hover"
>
<p
class=
"title"
>
<p
class=
"title"
>
导出和导入任务
导出和导入任务
</p>
</p>
...
@@ -415,7 +415,7 @@ export default {
...
@@ -415,7 +415,7 @@ export default {
}
}
}
,
0
)
}
,
0
)
}
}
}
)
}
)
.
catch
(()
=>
{
}
)
}
,
}
,
async
logOut
()
{
async
logOut
()
{
this
.
$confirm
(
'确认退出?'
,
'退出'
,
{
this
.
$confirm
(
'确认退出?'
,
'退出'
,
{
...
@@ -426,7 +426,7 @@ export default {
...
@@ -426,7 +426,7 @@ export default {
this
.
$router
.
push
(
'/login'
)
this
.
$router
.
push
(
'/login'
)
await
this
.
logout
()
await
this
.
logout
()
await
this
.
$StoreReset
.
call
(
this
.
$store
)
// 重置 store
await
this
.
$StoreReset
.
call
(
this
.
$store
)
// 重置 store
}
)
}
)
.
catch
(()
=>
{
}
)
}
,
}
,
async
getInfo
()
{
async
getInfo
()
{
this
.
info
=
await
this
.
load
()
this
.
info
=
await
this
.
load
()
...
...
src/views/goods/coupons/selectedShowTable.vue
View file @
1e89c1e
<!-- 被选中门店展示 -->
<!-- 被选中门店展示 -->
<
template
>
<
template
>
<div>
<div>
<el-table
<el-table
:data=
"tableData"
style=
"width: 690px"
border
class=
"store-table"
>
:data=
"tableData"
<el-table-column
label=
"序号"
align=
"center"
type=
"index"
width=
"64px"
/>
style=
"width: 690px"
<el-table-column
prop=
"yqMerchantName"
label=
"园区店名称"
align=
"center"
/>
border
<el-table-column
prop=
"merchantName"
label=
"4S店名称"
align=
"center"
/>
class=
"store-table"
>
<el-table-column
prop=
"merchantId"
label=
"商户编号"
align=
"center"
/>
<el-table-column
<el-table-column
prop=
"userType"
label=
"商户类型"
align=
"center"
>
label=
"序号"
align=
"center"
type=
"index"
width=
"64px"
/>
<el-table-column
prop=
"yqMerchantName"
label=
"园区店名称"
align=
"center"
/>
<el-table-column
prop=
"merchantName"
label=
"4S店名称"
align=
"center"
/>
<el-table-column
prop=
"merchantId"
label=
"商户编号"
align=
"center"
/>
<el-table-column
prop=
"userType"
label=
"商户类型"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
{{
baseData
[
scope
.
row
.
channelType
===
2
?
'ghUserTypeList'
:
'userTypeList'
][
scope
.
row
.
userType
]
}}
</span>
<span>
{{
baseData
[
scope
.
row
.
channelType
===
2
?
'ghUserTypeList'
:
'userTypeList'
][
scope
.
row
.
userType
]
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"删除"
align=
"center"
>
label=
"删除"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
class=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
type=
"text"
/>
class=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
type=
"text"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"券码数量(张)"
align=
"center"
width=
"160px"
>
label=
"券码数量(张)"
align=
"center"
width=
"160px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<slot
<slot
name=
"num"
:scope=
"
{ row: scope.row, index: scope.$index }" />
name=
"num"
:scope=
"
{row: scope.row, index: scope.$index}" />
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -90,11 +60,12 @@ export default {
...
@@ -90,11 +60,12 @@ export default {
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$emit
(
'handleTableStoreDelete'
,
row
)
this
.
$emit
(
'handleTableStoreDelete'
,
row
)
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
></
style
>
</
style
>
src/views/goods/coupons/storeList.vue
View file @
1e89c1e
<!-- 发券宝 - 店里列表 -->
<!-- 发券宝 - 店里列表 -->
<
template
>
<
template
>
<div
class=
"coupons"
>
<div
class=
"coupons"
>
<d2-table
ref=
"couponsTable"
<d2-table
ref=
"couponsTable"
:has-num=
"false"
:base-data=
"baseData"
:sort-obj=
"sortObj"
:has-num=
"false"
:search-form=
"searchFormSearch"
:head-search-form=
"searchForm"
:table-params=
"tableParams"
:base-data=
"baseData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
@
handleTableHeadChange=
"handleTableHeadChange"
>
:sort-obj=
"sortObj"
<template
slot=
"auth-button"
slot-scope=
"scope"
>
:search-form=
"searchFormSearch"
:head-search-form=
"searchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
@
handleTableHeadChange=
"handleTableHeadChange"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
>
<auth-button
:data=
"scope.scope"
/>
<auth-button
:data=
"scope.scope"
/>
</
template
>
</
template
>
</d2-table>
</d2-table>
<edit-coupons-dialog
:coupons-visible=
"couponsVisible"
<edit-coupons-dialog
:coupons-visible=
"couponsVisible"
:coupon-info=
"couponInfo"
@
couponClose=
"couponClose"
/>
:coupon-info=
"couponInfo"
@
couponClose=
"couponClose"
/>
</div>
</div>
</template>
</template>
...
@@ -77,7 +67,7 @@ export default {
...
@@ -77,7 +67,7 @@ export default {
},
{
},
{
label
:
'类型'
,
label
:
'类型'
,
parentProp
:
'couponInfo'
,
parentProp
:
'couponInfo'
,
prop
:
'couponTypeName'
,
prop
:
'couponTypeName'
// optionConfig: {
// optionConfig: {
// searchItemName: 'couponTypeList',
// searchItemName: 'couponTypeList',
// optionId: 'goodsType',
// optionId: 'goodsType',
...
@@ -192,7 +182,7 @@ export default {
...
@@ -192,7 +182,7 @@ export default {
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
searchFormSearch
=
{
this
.
searchFormSearch
=
{
...
this
.
parentSearchForm
,
...
this
.
parentSearchForm
// ...this.searchForm
// ...this.searchForm
}
}
resolve
()
resolve
()
...
@@ -231,6 +221,8 @@ export default {
...
@@ -231,6 +221,8 @@ export default {
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
$refs
.
couponsTable
.
refreshTable
()
this
.
$refs
.
couponsTable
.
refreshTable
()
})
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
},
},
// 删除
// 删除
...
@@ -244,11 +236,12 @@ export default {
...
@@ -244,11 +236,12 @@ export default {
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
$refs
.
couponsTable
.
refreshTable
()
this
.
$refs
.
couponsTable
.
refreshTable
()
})
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
></
style
>
</
style
>
src/views/goods/d2-form/index.vue
View file @
1e89c1e
This diff is collapsed.
Click to expand it.
src/views/goods/d2-form/relateStoreTable.vue
View file @
1e89c1e
<
template
>
<
template
>
<div>
<div>
<el-table
<el-table
:data=
"goodsInfoData.linkMerchants"
style=
"width: 100%"
border
class=
"store-table"
>
:data=
"goodsInfoData.linkMerchants"
<el-table-column
prop=
"merchantName"
label=
"门店名称"
align=
"center"
/>
style=
"width: 100%"
<el-table-column
prop=
"yqMerchantName"
label=
"园区店名称"
align=
"center"
/>
border
<el-table-column
prop=
"warrantyType"
label=
"质保类型"
align=
"center"
width=
"205"
>
class=
"store-table"
>
<el-table-column
prop=
"merchantName"
label=
"门店名称"
align=
"center"
/>
<el-table-column
prop=
"yqMerchantName"
label=
"园区店名称"
align=
"center"
/>
<el-table-column
prop=
"warrantyType"
label=
"质保类型"
align=
"center"
width=
"205"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
<span>
<el-select
<el-select
style=
"width: 90%;"
v-model=
"scope.row.warrantyType"
>
style=
"width: 90%;"
<el-option
v-for=
"item in warrantyTypeList"
:key=
"item.confId"
:label=
"item.confLabel"
v-model=
"scope.row.warrantyType"
>
<el-option
v-for=
"item in warrantyTypeList"
:key=
"item.confId"
:label=
"item.confLabel"
:value=
"item.confId"
/>
:value=
"item.confId"
/>
</el-select>
</el-select>
</span>
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
label=
"删除"
align=
"center"
width=
"90"
>
label=
"删除"
align=
"center"
width=
"90"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
type=
"text"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
type=
"text"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -48,7 +24,7 @@
...
@@ -48,7 +24,7 @@
<
script
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
name
:
'
r
elateProTable'
,
name
:
'
R
elateProTable'
,
props
:
{
props
:
{
warrantyTypeList
:
{
warrantyTypeList
:
{
type
:
Array
,
type
:
Array
,
...
@@ -60,7 +36,7 @@ export default {
...
@@ -60,7 +36,7 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
...
mapGetters
(
'goodsInfoData'
,
{
goodsInfoData
:
'getGoodsInfoData'
})
...
mapGetters
(
'goodsInfoData'
,
{
goodsInfoData
:
'getGoodsInfoData'
})
},
},
methods
:
{
methods
:
{
handleDelete
(
item
)
{
handleDelete
(
item
)
{
...
@@ -70,6 +46,8 @@ export default {
...
@@ -70,6 +46,8 @@ export default {
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$emit
(
'handleDelete'
,
1
,
item
)
this
.
$emit
(
'handleDelete'
,
1
,
item
)
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
}
}
}
...
...
src/views/goods/d2-form/specRelateStoreTable.vue
View file @
1e89c1e
<
template
>
<
template
>
<div>
<div>
<el-table
<el-table
:data=
"goodsInfoData.speciLinkMerchants"
style=
"width: 100%"
border
class=
"store-table"
>
:data=
"goodsInfoData.speciLinkMerchants"
<el-table-column
prop=
"merchantName"
label=
"门店名称"
align=
"center"
/>
style=
"width: 100%"
<el-table-column
prop=
"yqMerchantName"
label=
"园区店名称"
align=
"center"
/>
border
<el-table-column
prop=
"upgradeGoodsList"
label=
"规格"
align=
"center"
>
class=
"store-table"
>
<el-table-column
prop=
"merchantName"
label=
"门店名称"
align=
"center"
/>
<el-table-column
prop=
"yqMerchantName"
label=
"园区店名称"
align=
"center"
/>
<el-table-column
prop=
"upgradeGoodsList"
label=
"规格"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span>
<span>
<span
v-for=
"(item, index) in scope.row.upgradeGoodsList"
<span
v-for=
"(item, index) in scope.row.upgradeGoodsList"
:key=
"index"
>
{{
:key=
"index"
>
{{
item
.
specificationData
.
replace
(
/;~;/g
,
' '
)
}}
<span
item
.
specificationData
.
replace
(
/;~;/g
,
' '
)
}}
<span
v-if=
"index !== scope.row.upgradeGoodsList.length - 1"
>
;
</span></span>
v-if=
"index !== scope.row.upgradeGoodsList.length - 1"
>
;
</span></span>
</span>
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"warrantyType"
<el-table-column
prop=
"warrantyType"
label=
"质保类型"
align=
"center"
width=
"205"
>
label=
"质保类型"
align=
"center"
width=
"205"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
<span>
<el-select
style=
"width: 90%;"
<el-select
style=
"width: 90%;"
v-model=
"scope.row.warrantyType"
>
v-model=
"scope.row.warrantyType"
>
<el-option
v-for=
"item in warrantyTypeList"
:key=
"item.confId"
:label=
"item.confLabel"
<el-option
v-for=
"item in warrantyTypeList"
:value=
"item.confId"
/>
:key=
"item.confId"
:label=
"item.confLabel"
:value=
"item.confId"
/>
</el-select>
</el-select>
</span>
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"删除"
<el-table-column
label=
"删除"
align=
"center"
width=
"90"
>
align=
"center"
width=
"90"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
<el-button
type=
"text"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -52,7 +33,7 @@
...
@@ -52,7 +33,7 @@
<
script
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
name
:
'
s
pecRelateStoreTable'
,
name
:
'
S
pecRelateStoreTable'
,
props
:
{
props
:
{
warrantyTypeList
:
{
warrantyTypeList
:
{
type
:
Array
,
type
:
Array
,
...
@@ -64,7 +45,7 @@ export default {
...
@@ -64,7 +45,7 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
...
mapGetters
(
'goodsInfoData'
,
{
goodsInfoData
:
'getGoodsInfoData'
})
...
mapGetters
(
'goodsInfoData'
,
{
goodsInfoData
:
'getGoodsInfoData'
})
},
},
methods
:
{
methods
:
{
handleDelete
(
item
)
{
handleDelete
(
item
)
{
...
@@ -74,8 +55,10 @@ export default {
...
@@ -74,8 +55,10 @@ export default {
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$emit
(
'handleDelete'
,
2
,
item
)
this
.
$emit
(
'handleDelete'
,
2
,
item
)
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
,
}
}
}
}
}
</
script
>
\ No newline at end of file
\ No newline at end of file
</
script
>
src/views/goods/editCommodity.vue
View file @
1e89c1e
...
@@ -6,29 +6,22 @@
...
@@ -6,29 +6,22 @@
{{
addOrEdit
===
'add'
?
'新增商品'
:
'编辑商品'
}}
{{
addOrEdit
===
'add'
?
'新增商品'
:
'编辑商品'
}}
</p>
</p>
<!-- SPU -->
<!-- SPU -->
<sourceMaterial
<sourceMaterial
:thired-material-list=
"thiredMaterialList"
>
:thiredMaterialList=
"thiredMaterialList"
>
</sourceMaterial>
</sourceMaterial>
<!-- SKU -->
<!-- SKU -->
<specifications
ref=
"specifications-form"
@
checkGoodsInfo=
"checkGoodsInfo"
@
saveAssignByMerchantEvent=
"saveAssignByMerchantEvent"
@
getCopyGoodsInfoData=
"getCopyGoodsInfoData"
></specifications>
<specifications
ref=
"specifications-form"
@
checkGoodsInfo=
"checkGoodsInfo"
@
saveAssignByMerchantEvent=
"saveAssignByMerchantEvent"
@
getCopyGoodsInfoData=
"getCopyGoodsInfoData"
>
</specifications>
<!-- 分配门店 -->
<!-- 分配门店 -->
<distribution
:store-api=
"getMerchantListByScene"
@
checkGoodsInfo=
"checkGoodsInfo"
@
saveAssignByMerchantEvent=
"saveAssignByMerchantEvent"
@
getGoodsInfo=
"getGoodsInfo"
></distribution>
<distribution
:store-api=
"getMerchantListByScene"
@
checkGoodsInfo=
"checkGoodsInfo"
@
saveAssignByMerchantEvent=
"saveAssignByMerchantEvent"
@
getGoodsInfo=
"getGoodsInfo"
></distribution>
<div
style=
"margin-top: 40px;"
>
<div
style=
"margin-top: 40px;"
>
<el-button
<el-button
type=
"primary"
@
click=
"handleUp(1)"
:disabled=
"$store.state.d2admin.loading.value"
class=
"ok-btn"
type=
"primary"
@
click=
"handleUp(1)"
:disabled=
"$store.state.d2admin.loading.value"
class=
"ok-btn"
style=
"marginRight:16px"
>
提交
</el-button>
style=
"marginRight:16px"
>
提交
</el-button>
<el-button
<el-button
class=
"cancel-btn"
@
click=
"handleClose"
>
取消
</el-button>
class=
"cancel-btn"
<el-button
type=
"primary"
@
click=
"handleUp()"
@
click=
"handleClose"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleUp()"
:disabled=
"!$store.state.d2admin.loading.value && (goodsInfoData.status == 1 || goodsInfoData.status == 2)"
:disabled=
"!$store.state.d2admin.loading.value && (goodsInfoData.status == 1 || goodsInfoData.status == 2)"
class=
"ok-btn"
class=
"ok-btn"
style=
"marginLeft:26px"
>
保存
</el-button>
style=
"marginLeft:26px"
>
保存
</el-button>
</div>
</div>
</div>
</div>
</d2-container>
</d2-container>
...
@@ -142,7 +135,7 @@ export default {
...
@@ -142,7 +135,7 @@ export default {
})
})
item
.
children
=
twoChildren
item
.
children
=
twoChildren
})
})
this
.
thiredMaterialList
=
res
this
.
thiredMaterialList
=
res
if
(
showSelect
)
{
if
(
showSelect
)
{
this
.
decorate
(
goodsInfoId
,
res
)
this
.
decorate
(
goodsInfoId
,
res
)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -156,7 +149,7 @@ export default {
...
@@ -156,7 +149,7 @@ export default {
},
},
getGoodsInfo
(
id
,
flag
)
{
getGoodsInfo
(
id
,
flag
)
{
getGoodsInfoById
({
id
:
id
}).
then
(
res
=>
{
getGoodsInfoById
({
id
:
id
}).
then
(
res
=>
{
le
t
specificationDetailList
=
[]
cons
t
specificationDetailList
=
[]
let
objData
=
{}
let
objData
=
{}
res
.
upgradeGoodsMerchantRefList
&&
res
.
upgradeGoodsMerchantRefList
.
forEach
(
val
=>
{
res
.
upgradeGoodsMerchantRefList
&&
res
.
upgradeGoodsMerchantRefList
.
forEach
(
val
=>
{
// 默认质保类型 0质保卡 1质保权益卡
// 默认质保类型 0质保卡 1质保权益卡
...
@@ -184,7 +177,7 @@ export default {
...
@@ -184,7 +177,7 @@ export default {
val
.
specificationValueList
=
val
.
goodsSpecificationValueList
||
[]
val
.
specificationValueList
=
val
.
goodsSpecificationValueList
||
[]
specificationDetailList
.
push
(
val
)
specificationDetailList
.
push
(
val
)
})
})
let
selectedPositions
=
res
.
goodsInfo
?.
goodsPositionList
?.
map
((
val
)
=>
{
return
val
.
position
})
||
[]
const
selectedPositions
=
res
.
goodsInfo
?.
goodsPositionList
?.
map
((
val
)
=>
{
return
val
.
position
})
||
[]
objData
=
{
objData
=
{
supplierName
:
res
.
goodsInfo
.
supplierName
,
supplierName
:
res
.
goodsInfo
.
supplierName
,
sceneName
:
res
.
goodsInfo
.
sceneName
,
sceneName
:
res
.
goodsInfo
.
sceneName
,
...
@@ -216,10 +209,10 @@ export default {
...
@@ -216,10 +209,10 @@ export default {
supplierCode
:
res
.
goodsInfo
.
supplierCode
supplierCode
:
res
.
goodsInfo
.
supplierCode
}
}
this
.
copyGoodsCode
=
deepClone
(
res
.
goodsInfo
.
goodsCode
),
this
.
copyGoodsCode
=
deepClone
(
res
.
goodsInfo
.
goodsCode
),
this
.
setUpdateGoodsInfo
(
objData
)
this
.
setUpdateGoodsInfo
(
objData
)
if
(
this
.
show
)
{
if
(
this
.
show
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
res
.
goodsSpecificationNameList
.
length
>
1
)
this
.
$refs
[
'specifications-form'
]?.
$refs
[
'multipleSpecificationFormRef'
]
.
changeSpecs
()
if
(
res
.
goodsSpecificationNameList
.
length
>
1
)
this
.
$refs
[
'specifications-form'
]?.
$refs
.
multipleSpecificationFormRef
.
changeSpecs
()
})
})
}
}
if
(
flag
)
{
// 首次进入编辑页面
if
(
flag
)
{
// 首次进入编辑页面
...
@@ -230,14 +223,14 @@ export default {
...
@@ -230,14 +223,14 @@ export default {
})
})
},
},
decorate
(
goodsInfoId
,
treeData
)
{
decorate
(
goodsInfoId
,
treeData
)
{
le
t
arr
=
this
.
changeDetSelect
(
cons
t
arr
=
this
.
changeDetSelect
(
goodsInfoId
,
goodsInfoId
,
treeData
treeData
)
)
this
.
setUpdateGoodsInfo
({
goodsId
:
arr
})
this
.
setUpdateGoodsInfo
({
goodsId
:
arr
})
},
},
changeDetSelect
(
key
,
treeData
)
{
changeDetSelect
(
key
,
treeData
)
{
le
t
arr
=
[]
// 在递归时操作的数组
cons
t
arr
=
[]
// 在递归时操作的数组
let
returnArr
=
[]
// 存放结果的数组
let
returnArr
=
[]
// 存放结果的数组
let
depth
=
0
// 定义全局层级
let
depth
=
0
// 定义全局层级
// 定义递归函数
// 定义递归函数
...
@@ -272,6 +265,8 @@ export default {
...
@@ -272,6 +265,8 @@ export default {
this
.
close
({
tagName
:
'/commodity'
})
this
.
close
({
tagName
:
'/commodity'
})
this
.
$router
.
push
({
name
:
'commodity'
})
this
.
$router
.
push
({
name
:
'commodity'
})
this
.
close
({
tagName
:
'/editCommodity'
})
this
.
close
({
tagName
:
'/editCommodity'
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
}
},
},
...
@@ -299,7 +294,7 @@ export default {
...
@@ -299,7 +294,7 @@ export default {
},
},
checkGoodsInfo
(
num
,
callback
)
{
checkGoodsInfo
(
num
,
callback
)
{
// 根据规格类型赋值进行校验判断
// 根据规格类型赋值进行校验判断
le
t
confirmShopData
=
this
.
goodsInfoData
.
specificationType
==
1
?
deepClone
(
this
.
goodsInfoData
.
goodsSpecificationSingleList
)
:
deepClone
(
this
.
goodsInfoData
.
goodsSpecificationList
)
cons
t
confirmShopData
=
this
.
goodsInfoData
.
specificationType
==
1
?
deepClone
(
this
.
goodsInfoData
.
goodsSpecificationSingleList
)
:
deepClone
(
this
.
goodsInfoData
.
goodsSpecificationList
)
// num 1提交 3关联门店
// num 1提交 3关联门店
if
(
!
this
.
goodsInfoData
.
goodsCode
)
{
if
(
!
this
.
goodsInfoData
.
goodsCode
)
{
this
.
$message
({
this
.
$message
({
...
@@ -322,7 +317,7 @@ export default {
...
@@ -322,7 +317,7 @@ export default {
})
})
return
document
.
getElementById
(
'specificationDetailList'
).
scrollIntoView
()
return
document
.
getElementById
(
'specificationDetailList'
).
scrollIntoView
()
}
}
le
t
arr
=
confirmShopData
.
map
(
item
=>
{
cons
t
arr
=
confirmShopData
.
map
(
item
=>
{
item
.
shopPriceEmpty
=
true
item
.
shopPriceEmpty
=
true
item
.
shopMinPriceEmpty
=
true
item
.
shopMinPriceEmpty
=
true
item
.
upgradePriceEmpty
=
true
item
.
upgradePriceEmpty
=
true
...
@@ -348,7 +343,7 @@ export default {
...
@@ -348,7 +343,7 @@ export default {
}
}
// 仅分发至单店时,隐藏采购价/卷,无需填写
// 仅分发至单店时,隐藏采购价/卷,无需填写
if
(
this
.
goodsInfoData
.
shoppingMallFlag
===
'0'
)
specialList
.
splice
(
specialList
.
indexOf
(
'purchasePrice'
),
1
)
if
(
this
.
goodsInfoData
.
shoppingMallFlag
===
'0'
)
specialList
.
splice
(
specialList
.
indexOf
(
'purchasePrice'
),
1
)
le
t
requiredList
=
[
'specificationData'
,
'shopPrice'
,
...
specialList
,
'shopMinPrice'
,
'upgradePrice'
]
cons
t
requiredList
=
[
'specificationData'
,
'shopPrice'
,
...
specialList
,
'shopMinPrice'
,
'upgradePrice'
]
// 有设置供应方 且供应方是第三方(除广联直营以外的)
// 有设置供应方 且供应方是第三方(除广联直营以外的)
if
(
this
.
isThirdShop
())
requiredList
.
splice
(
1
,
1
)
if
(
this
.
isThirdShop
())
requiredList
.
splice
(
1
,
1
)
for
(
var
i
=
0
;
i
<
confirmShopData
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
confirmShopData
.
length
;
i
++
)
{
...
@@ -369,7 +364,7 @@ export default {
...
@@ -369,7 +364,7 @@ export default {
}
}
// 删除表单校验新增字段
// 删除表单校验新增字段
for
(
var
i
=
0
;
i
<
confirmShopData
?.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
confirmShopData
?.
length
;
i
++
)
{
le
t
item
=
confirmShopData
[
i
]
cons
t
item
=
confirmShopData
[
i
]
item
.
shopMinPrice
=
item
.
shopMinPrice
&&
parseFloat
(
item
.
shopMinPrice
)
item
.
shopMinPrice
=
item
.
shopMinPrice
&&
parseFloat
(
item
.
shopMinPrice
)
item
.
shopPrice
=
item
.
shopPrice
&&
parseFloat
(
item
.
shopPrice
)
item
.
shopPrice
=
item
.
shopPrice
&&
parseFloat
(
item
.
shopPrice
)
item
.
upgradePrice
=
item
.
upgradePrice
&&
parseFloat
(
item
.
upgradePrice
)
item
.
upgradePrice
=
item
.
upgradePrice
&&
parseFloat
(
item
.
upgradePrice
)
...
@@ -397,6 +392,8 @@ export default {
...
@@ -397,6 +392,8 @@ export default {
// document.getElementById('specificationDetailList').scrollIntoView()
// document.getElementById('specificationDetailList').scrollIntoView()
// 直接做保存
// 直接做保存
this
.
$refs
[
'specifications-form'
].
handleAddConfirm
(
this
.
goodsInfoData
,
this
.
goodsInfoData
.
specificationType
,
false
,
num
)
this
.
$refs
[
'specifications-form'
].
handleAddConfirm
(
this
.
goodsInfoData
,
this
.
goodsInfoData
.
specificationType
,
false
,
num
)
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
}
if
(
num
==
1
)
{
if
(
num
==
1
)
{
...
@@ -416,12 +413,12 @@ export default {
...
@@ -416,12 +413,12 @@ export default {
},
},
// 校验零售价成本价最低价关系
// 校验零售价成本价最低价关系
formatPrice
(
item
)
{
formatPrice
(
item
)
{
return
(
!
this
.
filterEmpty
(
item
.
shopPrice
)
&&
!
this
.
filterEmpty
(
item
.
shopMinPrice
)
&&
Number
(
item
.
shopPrice
)
>
Number
(
item
.
shopMinPrice
))
return
(
!
this
.
filterEmpty
(
item
.
shopPrice
)
&&
!
this
.
filterEmpty
(
item
.
shopMinPrice
)
&&
Number
(
item
.
shopPrice
)
>
Number
(
item
.
shopMinPrice
))
||
||
(
!
this
.
filterEmpty
(
item
.
upgradePrice
)
&&
!
this
.
filterEmpty
(
item
.
shopPrice
)
&&
Number
(
item
.
shopPrice
)
>
Number
(
item
.
upgradePrice
))
(
!
this
.
filterEmpty
(
item
.
upgradePrice
)
&&
!
this
.
filterEmpty
(
item
.
shopPrice
)
&&
Number
(
item
.
shopPrice
)
>
Number
(
item
.
upgradePrice
))
||
||
(
!
this
.
filterEmpty
(
item
.
shopMinPrice
)
&&
!
this
.
filterEmpty
(
item
.
upgradePrice
)
&&
Number
(
item
.
shopMinPrice
)
>
Number
(
item
.
upgradePrice
))
(
!
this
.
filterEmpty
(
item
.
shopMinPrice
)
&&
!
this
.
filterEmpty
(
item
.
upgradePrice
)
&&
Number
(
item
.
shopMinPrice
)
>
Number
(
item
.
upgradePrice
))
},
},
saveAssignByMerchantEvent
(
data
,
isDelete
)
{
saveAssignByMerchantEvent
(
data
,
isDelete
)
{
le
t
flag
=
this
.
goodsInfoData
.
distributionType
==
'1'
cons
t
flag
=
this
.
goodsInfoData
.
distributionType
==
'1'
// flag true按规格保存
// flag true按规格保存
const
copyData
=
deepClone
(
data
)
const
copyData
=
deepClone
(
data
)
const
arrData
=
[]
const
arrData
=
[]
...
@@ -472,6 +469,7 @@ export default {
...
@@ -472,6 +469,7 @@ export default {
.edit-commodity
{
.edit-commodity
{
position
:
relative
;
position
:
relative
;
}
}
.d2-form-block
{
.d2-form-block
{
border-bottom
:
1px
solid
#e7eaec
;
border-bottom
:
1px
solid
#e7eaec
;
padding
:
20px
0px
;
padding
:
20px
0px
;
...
...
src/views/goods/grounding/editGrounding.vue
View file @
1e89c1e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<d2-container
class=
"edit-commodity"
v-loading=
"!show"
>
<d2-container
class=
"edit-commodity"
v-loading=
"!show"
>
<div
class=
""
v-if=
"show"
>
<div
class=
""
v-if=
"show"
>
<grounding-form
ref=
"d2GroundingForm"
:add-or-edit=
"addOrEdit"
:form-ref=
"proFormRef"
:origin-data=
"editData"
<grounding-form
ref=
"d2GroundingForm"
:add-or-edit=
"addOrEdit"
:form-ref=
"proFormRef"
:origin-data=
"editData"
:form-list=
"editForm"
:second
GoodsL
ist=
"secondGoodsList"
@
handleAddConfirm=
"handleAddConfirm"
:form-list=
"editForm"
:second
-goods-l
ist=
"secondGoodsList"
@
handleAddConfirm=
"handleAddConfirm"
@
visibleChange=
"visibleChange"
@
interestsLoadmore=
"interestsLoadmore"
@
remoteMethod=
"remoteMethod"
@
visibleChange=
"visibleChange"
@
interestsLoadmore=
"interestsLoadmore"
@
remoteMethod=
"remoteMethod"
@
handleClose=
"handleAddClose"
></grounding-form>
@
handleClose=
"handleAddClose"
></grounding-form>
</div>
</div>
...
@@ -11,15 +11,14 @@
...
@@ -11,15 +11,14 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
productList
,
baseSupplyModeList
,
upgradeSupplyModeList
}
from
"./constants/data"
import
{
productList
,
baseSupplyModeList
,
upgradeSupplyModeList
}
from
"./constants/data"
import
{
getMerchantGoodsInfo
}
from
'@api/grounding'
import
{
getMerchantGoodsInfo
,
addOrUpdateAPI
,
getAllGoodsList
}
from
'@api/grounding'
import
groundingForm
from
"./components/groundingForm.vue"
import
groundingForm
from
"./components/groundingForm.vue"
import
{
positionTypeList
,
sceneCodeList
}
from
'@/common/constants.js'
import
{
positionTypeList
,
sceneCodeList
}
from
'@/common/constants.js'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
{
addOrUpdateAPI
,
getAllGoodsList
}
from
'@api/grounding'
import
{
baseConfig
}
from
'@/main'
import
{
baseConfig
}
from
'@/main'
export
default
{
export
default
{
name
:
'
e
ditGrounding'
,
name
:
'
E
ditGrounding'
,
components
:
{
components
:
{
groundingForm
groundingForm
},
},
...
@@ -67,7 +66,7 @@ export default {
...
@@ -67,7 +66,7 @@ export default {
},
{
},
{
label
:
'所属分类'
,
label
:
'所属分类'
,
value
:
'goodsTypeName'
value
:
'goodsTypeName'
},
{
},
{
label
:
'商品ID'
,
label
:
'商品ID'
,
value
:
'upgradeCommodityCode'
value
:
'upgradeCommodityCode'
}]
}]
...
@@ -204,7 +203,7 @@ export default {
...
@@ -204,7 +203,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getBaseData
()
this
.
getBaseData
()
le
t
id
=
this
.
$route
.
params
.
id
cons
t
id
=
this
.
$route
.
params
.
id
if
(
!
id
)
{
if
(
!
id
)
{
// 获取全部上架商品
// 获取全部上架商品
this
.
getSelectingList
()
this
.
getSelectingList
()
...
@@ -255,7 +254,7 @@ export default {
...
@@ -255,7 +254,7 @@ export default {
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
copyFormList
=
deepClone
(
this
.
editForm
)
this
.
copyFormList
=
deepClone
(
this
.
editForm
)
this
.
allPages
=
res
.
pages
this
.
allPages
=
res
.
pages
le
t
resArr
=
[]
cons
t
resArr
=
[]
res
.
list
&&
res
.
list
.
forEach
(
val
=>
{
res
.
list
&&
res
.
list
.
forEach
(
val
=>
{
val
.
upgradeGoodsList
.
forEach
(
v
=>
{
val
.
upgradeGoodsList
.
forEach
(
v
=>
{
resArr
.
push
({
resArr
.
push
({
...
@@ -318,8 +317,8 @@ export default {
...
@@ -318,8 +317,8 @@ export default {
},
},
getDetailInfo
(
id
)
{
getDetailInfo
(
id
)
{
getMerchantGoodsInfo
({
id
}).
then
(
res
=>
{
getMerchantGoodsInfo
({
id
}).
then
(
res
=>
{
le
t
productType
=
[]
cons
t
productType
=
[]
le
t
positionNamesArr
=
res
?.
goodsType
==
1
?
deepClone
(
positionTypeList
).
filter
(
val
=>
res
.
upgradeGoods
.
position
==
val
.
position
)
:
[]
cons
t
positionNamesArr
=
res
?.
goodsType
==
1
?
deepClone
(
positionTypeList
).
filter
(
val
=>
res
.
upgradeGoods
.
position
==
val
.
position
)
:
[]
if
(
res
?.
upgradeProductFlag
==
'Y'
)
productType
.
push
(
2
)
if
(
res
?.
upgradeProductFlag
==
'Y'
)
productType
.
push
(
2
)
if
(
res
?.
baseProductFlag
==
'Y'
)
productType
.
push
(
1
)
if
(
res
?.
baseProductFlag
==
'Y'
)
productType
.
push
(
1
)
res
.
productType
=
productType
// 产品类型
res
.
productType
=
productType
// 产品类型
...
@@ -331,11 +330,11 @@ export default {
...
@@ -331,11 +330,11 @@ export default {
res
.
serviceYears
=
res
?.
upgradeGoods
?.
serviceYears
// 服务时间
res
.
serviceYears
=
res
?.
upgradeGoods
?.
serviceYears
// 服务时间
res
.
supplierCode
=
res
?.
goodsInfo
?.
supplierCode
// 供应方code
res
.
supplierCode
=
res
?.
goodsInfo
?.
supplierCode
// 供应方code
res
.
thirdPartyCode
=
res
?.
upgradeGoods
?.
thirdPartyCode
// 第三方编码
res
.
thirdPartyCode
=
res
?.
upgradeGoods
?.
thirdPartyCode
// 第三方编码
res
.
entityCardFlag
=
res
?.
upgradeGoods
?.
entityCardFlag
res
.
entityCardFlag
=
res
?.
upgradeGoods
?.
entityCardFlag
le
t
defaultSelect
=
[{
// 默认选中项 用于回显
cons
t
defaultSelect
=
[{
// 默认选中项 用于回显
confId
:
res
?.
upgradeGoodsId
,
confId
:
res
?.
upgradeGoodsId
,
confNameValue
:
res
?.
upgradeGoodsName
,
confNameValue
:
res
?.
upgradeGoodsName
,
confTypeNameValue
:
`(
${
res
?.
goodsTypeName
}
/ ${res
?
.goodsName} /
$
{
res
?.
upgradeCommodityCode
})
`
,
confTypeNameValue
:
`(
${
res
?.
goodsTypeName
}
/ ${res
?
.goodsName} /
$
{
res
?.
upgradeCommodityCode
})
`
}]
}]
res.voucherList.forEach(val => { // 处理上传进度 默认进度100%
res.voucherList.forEach(val => { // 处理上传进度 默认进度100%
if (val.voucherFileUrl) val.uploadProgress = 100
if (val.voucherFileUrl) val.uploadProgress = 100
...
@@ -356,12 +355,12 @@ export default {
...
@@ -356,12 +355,12 @@ export default {
this
.
close
({
tagName
:
'/editGrounding'
})
this
.
close
({
tagName
:
'/editGrounding'
})
},
},
handleAddConfirm
(
data
)
{
handleAddConfirm
(
data
)
{
le
t
{
num
}
=
data
cons
t
{
num
}
=
data
this
.
confirm
(
num
,
data
)
this
.
confirm
(
num
,
data
)
},
},
confirm
(
num
,
data
)
{
confirm
(
num
,
data
)
{
// 1保存并上架 2存草稿
// 1保存并上架 2存草稿
le
t
formObj
=
{}
cons
t
formObj
=
{}
this
.
editForm
.
forEach
(
val
=>
{
this
.
editForm
.
forEach
(
val
=>
{
val
.
formBlock
.
forEach
(
v
=>
{
val
.
formBlock
.
forEach
(
v
=>
{
if
(
v
.
name
)
formObj
[
v
.
name
]
=
data
[
v
.
name
]
if
(
v
.
name
)
formObj
[
v
.
name
]
=
data
[
v
.
name
]
...
@@ -371,14 +370,14 @@ export default {
...
@@ -371,14 +370,14 @@ export default {
}
}
})
})
})
})
le
t
arr
=
[]
cons
t
arr
=
[]
data
?.
merchantGoodsRefList
?.
forEach
(
val
=>
{
// 上架门店组合数据 防止请求参数过长
data
?.
merchantGoodsRefList
?.
forEach
(
val
=>
{
// 上架门店组合数据 防止请求参数过长
arr
.
push
({
arr
.
push
({
merchantId
:
val
.
merchantId
,
merchantId
:
val
.
merchantId
,
merchantName
:
val
.
merchantName
merchantName
:
val
.
merchantName
})
})
})
})
le
t
fileArr
=
[]
cons
t
fileArr
=
[]
data
?.
voucherList
?.
forEach
(
val
=>
{
// 处理上传凭证数据 删除或取消上传并不会删除数组 只是将url置空
data
?.
voucherList
?.
forEach
(
val
=>
{
// 处理上传凭证数据 删除或取消上传并不会删除数组 只是将url置空
if
(
val
.
voucherFileUrl
)
{
if
(
val
.
voucherFileUrl
)
{
fileArr
.
push
({
fileArr
.
push
({
...
@@ -390,7 +389,7 @@ export default {
...
@@ -390,7 +389,7 @@ export default {
})
})
// 整理上传凭证数据
// 整理上传凭证数据
delete
formObj
?.
productType
delete
formObj
?.
productType
le
t
params
=
{
cons
t
params
=
{
saveDraft
:
num
!==
1
,
saveDraft
:
num
!==
1
,
id
:
data
.
id
,
id
:
data
.
id
,
...
formObj
,
...
formObj
,
...
@@ -422,7 +421,7 @@ export default {
...
@@ -422,7 +421,7 @@ export default {
if
(
obj
===
null
||
obj
===
undefined
||
obj
===
""
)
return
param
if
(
obj
===
null
||
obj
===
undefined
||
obj
===
""
)
return
param
for
(
var
key
in
obj
)
{
for
(
var
key
in
obj
)
{
if
(
obj
[
key
]
!==
null
&&
obj
[
key
]
!==
undefined
&&
obj
[
key
]
!==
""
)
{
if
(
obj
[
key
]
!==
null
&&
obj
[
key
]
!==
undefined
&&
obj
[
key
]
!==
""
)
{
param
[
key
]
=
obj
[
key
]
;
param
[
key
]
=
obj
[
key
]
}
}
}
}
return
param
return
param
...
@@ -440,10 +439,12 @@ export default {
...
@@ -440,10 +439,12 @@ export default {
this
.
close
({
tagName
:
'/grounding'
})
this
.
close
({
tagName
:
'/grounding'
})
this
.
$router
.
push
({
name
:
'grounding'
})
this
.
$router
.
push
({
name
:
'grounding'
})
this
.
close
({
tagName
:
'/grounding'
})
this
.
close
({
tagName
:
'/grounding'
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
}
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
\ No newline at end of file
\ No newline at end of file
<
style
lang=
"scss"
scoped
></
style
>
src/views/goods/grounding/groundingDetail.vue
View file @
1e89c1e
...
@@ -2,28 +2,21 @@
...
@@ -2,28 +2,21 @@
<
template
>
<
template
>
<d2-container
class=
"edit-commodity"
>
<d2-container
class=
"edit-commodity"
>
<div
class=
""
v-if=
"show"
>
<div
class=
""
v-if=
"show"
>
<detail
<detail
ref=
"d2GroundingDetail"
:rules=
"rules"
form-name=
"grounding"
:origin-data=
"editData"
:form-list=
"editForm"
ref=
"d2GroundingDetail"
:product-service-item-list=
"productServiceItemList"
@
handleAddConfirm=
"handleAddConfirm"
:rules=
"rules"
@
handleClose=
"handleAddClose"
></detail>
form-name=
"grounding"
:origin-data=
"editData"
:form-list=
"editForm"
:productServiceItemList=
"productServiceItemList"
@
handleAddConfirm=
"handleAddConfirm"
@
handleClose=
"handleAddClose"
></detail>
</div>
</div>
</d2-container>
</d2-container>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getMerchantGoodsInfo
,
batchReviewAPI
}
from
'@api/grounding'
import
{
getMerchantGoodsInfo
,
batchReviewAPI
}
from
'@api/grounding'
import
detail
from
'./components/detail.vue'
import
detail
from
'./components/detail.vue'
import
{
sceneList
}
from
'@/common/constants.js'
import
{
sceneList
,
positionTypeList
}
from
'@/common/constants.js'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
{
deepClone
,
Util
}
from
'@/common/util'
import
{
deepClone
,
Util
}
from
'@/common/util'
import
{
positionTypeList
}
from
'@/common/constants'
import
{
productList
,
baseSupplyModeList
,
upgradeSupplyModeList
,
crowdUpgradeSupplyModeList
}
from
'./constants/data'
import
{
productList
,
baseSupplyModeList
,
upgradeSupplyModeList
,
crowdUpgradeSupplyModeList
}
from
'./constants/data'
export
default
{
export
default
{
name
:
'
g
roundingDetail'
,
name
:
'
G
roundingDetail'
,
components
:
{
components
:
{
detail
detail
},
},
...
@@ -42,7 +35,7 @@ export default {
...
@@ -42,7 +35,7 @@ export default {
giftCost
:
[{
required
:
true
}],
giftCost
:
[{
required
:
true
}],
recoveryCost
:
[{
required
:
true
}],
recoveryCost
:
[{
required
:
true
}],
virtualAccountCost
:
[{
required
:
true
}],
virtualAccountCost
:
[{
required
:
true
}],
warrantyTypeStr
:
{
required
:
true
}
warrantyTypeStr
:
{
required
:
true
}
},
},
editForm
:
[{
editForm
:
[{
title
:
'商品信息'
,
title
:
'商品信息'
,
...
@@ -76,7 +69,7 @@ export default {
...
@@ -76,7 +69,7 @@ export default {
value
:
'goodsTypeName'
value
:
'goodsTypeName'
},
{
},
{
label
:
'商品ID'
,
label
:
'商品ID'
,
value
:
'upgradeCommodityCode'
value
:
'upgradeCommodityCode'
}]
}]
},
{
},
{
name
:
'goodsAlias'
,
name
:
'goodsAlias'
,
...
@@ -152,7 +145,7 @@ export default {
...
@@ -152,7 +145,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
// 获取商品详情
// 获取商品详情
le
t
id
=
this
.
$route
.
params
.
id
cons
t
id
=
this
.
$route
.
params
.
id
this
.
detailId
=
id
this
.
detailId
=
id
if
(
!
id
)
return
this
.
show
=
true
if
(
!
id
)
return
this
.
show
=
true
this
.
getDetailInfo
(
id
)
this
.
getDetailInfo
(
id
)
...
@@ -164,12 +157,12 @@ export default {
...
@@ -164,12 +157,12 @@ export default {
}),
}),
getDetailInfo
(
id
)
{
getDetailInfo
(
id
)
{
getMerchantGoodsInfo
({
id
}).
then
(
res
=>
{
getMerchantGoodsInfo
({
id
}).
then
(
res
=>
{
le
t
productType
=
[]
cons
t
productType
=
[]
if
(
res
?.
upgradeProductFlag
==
'Y'
)
productType
.
push
(
2
)
if
(
res
?.
upgradeProductFlag
==
'Y'
)
productType
.
push
(
2
)
if
(
res
?.
baseProductFlag
==
'Y'
)
productType
.
push
(
1
)
if
(
res
?.
baseProductFlag
==
'Y'
)
productType
.
push
(
1
)
le
t
productTypeTextArr
=
[]
cons
t
productTypeTextArr
=
[]
// 太阳膜回显 部位
// 太阳膜回显 部位
le
t
positionNamesArr
=
res
?.
goodsType
==
1
?
deepClone
(
positionTypeList
).
filter
(
val
=>
res
.
upgradeGoods
.
position
==
val
.
position
)
:
[]
cons
t
positionNamesArr
=
res
?.
goodsType
==
1
?
deepClone
(
positionTypeList
).
filter
(
val
=>
res
.
upgradeGoods
.
position
==
val
.
position
)
:
[]
// 产品类型
// 产品类型
productList
.
forEach
(
v
=>
{
productList
.
forEach
(
v
=>
{
if
(
productType
.
includes
(
v
.
confId
))
productTypeTextArr
.
push
(
v
.
confName
)
if
(
productType
.
includes
(
v
.
confId
))
productTypeTextArr
.
push
(
v
.
confName
)
...
@@ -236,6 +229,8 @@ export default {
...
@@ -236,6 +229,8 @@ export default {
this
.
close
({
tagName
:
'/grounding'
})
this
.
close
({
tagName
:
'/grounding'
})
this
.
$router
.
push
({
name
:
'grounding'
})
this
.
$router
.
push
({
name
:
'grounding'
})
this
.
close
({
tagName
:
'/grounding'
})
this
.
close
({
tagName
:
'/grounding'
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
}
},
},
...
@@ -245,4 +240,4 @@ export default {
...
@@ -245,4 +240,4 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
\ No newline at end of file
\ No newline at end of file
<
style
lang=
"scss"
scoped
></
style
>
src/views/orderManage/crowdfunding.vue
View file @
1e89c1e
...
@@ -1336,7 +1336,7 @@ export default {
...
@@ -1336,7 +1336,7 @@ export default {
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
handleSearch
()
this
.
handleSearch
()
})
})
}).
catch
(()
=>
{})
}).
catch
(()
=>
{
})
},
},
ruleInfoDialogClose
(
flag
)
{
ruleInfoDialogClose
(
flag
)
{
this
.
ruleInfoVisible
=
!
this
.
ruleInfoVisible
this
.
ruleInfoVisible
=
!
this
.
ruleInfoVisible
...
...
src/views/purchase/procurementReview.vue
View file @
1e89c1e
<!-- 采购审核-运营审核 -->
<!-- 采购审核-运营审核 -->
<
template
>
<
template
>
<d2-container
class=
"container"
>
<d2-container
class=
"container"
>
<div
class=
"header"
<div
class=
"header"
slot=
"header"
>
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
@
handleChangeSelect=
"handleChangeSelect"
<d2-search
ref=
"showSearch"
:form-data=
"showFormData"
>
class=
"show-search"
:search-form=
"searchForm"
@
handleChangeSelect=
"handleChangeSelect"
:form-data=
"showFormData"
>
</d2-search>
</d2-search>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
size=
"small"
type=
"primary"
handle
>
查询
查询
</el-button>
</el-button>
<el-button
size=
"small"
<el-button
size=
"small"
@
click=
"handleReset"
>
@
click=
"handleReset"
>
重置
重置
</el-button>
</el-button>
</div>
</div>
...
@@ -29,31 +21,18 @@
...
@@ -29,31 +21,18 @@
<auth-button
category=
"Button"
/>
<auth-button
category=
"Button"
/>
</span>
</span>
<span>
<span>
<el-button
type=
"primary"
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
size=
"mini"
@
click=
"handleExport"
>
导出
导出
</el-button>
</el-button>
</span>
</span>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"purchasementReviewTable"
<d2-table
ref=
"purchasementReviewTable"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
:search-form=
"tableSearchForm"
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
:table-params=
"tableParams"
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
</d2-table>
</d2-table>
</div>
</div>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
v-if=
"detailVisible"
<rejectDialog
:reject-visible=
"rejectVisible"
v-if=
"rejectVisible"
:params-obj=
"paramsObj"
@
dialogClose=
"dialogClose"
>
:params-obj=
"paramsObj"
></orderDeatilDialog>
<rejectDialog
:reject-visible=
"rejectVisible"
v-if=
"rejectVisible"
:params-obj=
"paramsObj"
@
dialogClose=
"dialogClose"
>
</rejectDialog>
</rejectDialog>
</d2-container>
</d2-container>
</
template
>
</
template
>
...
@@ -371,13 +350,13 @@ export default {
...
@@ -371,13 +350,13 @@ export default {
}).
then
(()
=>
{
}).
then
(()
=>
{
// purchaseOrderCancelOrCheck({
// purchaseOrderCancelOrCheck({
operatorreviewOperatorAudit
({
operatorreviewOperatorAudit
({
orderCode
:
row
.
orderCode
,
orderCode
:
row
.
orderCode
// operateType: 1
// operateType: 1
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
$refs
.
purchasementReviewTable
.
refreshTable
()
this
.
$refs
.
purchasementReviewTable
.
refreshTable
()
})
.
catch
(()
=>
{
})
})
})
})
.
catch
(()
=>
{
})
},
},
// 查看详情
// 查看详情
handleDetail
(
row
)
{
handleDetail
(
row
)
{
...
...
src/views/systemConfig/ShopConfig/personnelManagement.vue
View file @
1e89c1e
...
@@ -2,14 +2,9 @@
...
@@ -2,14 +2,9 @@
<
template
>
<
template
>
<div
style=
"paddingTop:5px;"
>
<div
style=
"paddingTop:5px;"
>
<!--
<d2-container>
-->
<!--
<d2-container>
-->
<div
class=
"header bg"
<div
class=
"header bg"
slot=
"header"
style=
"padding: 10px 20px;"
>
slot=
"header"
<d2-search
ref=
"showSearch"
class=
"show-search"
label-width=
"100px"
:search-form=
"searchForm"
style=
"padding: 10px 20px;"
>
:form-data=
"showFormData"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
labelWidth=
"100px"
:search-form=
"searchForm"
:form-data=
"showFormData"
>
<!--
<div
slot=
"departments"
>
<!--
<div
slot=
"departments"
>
<el-select
v-model=
"searchForm.department"
<el-select
v-model=
"searchForm.department"
filterable
filterable
...
@@ -26,30 +21,19 @@
...
@@ -26,30 +21,19 @@
</el-select>
</el-select>
</div>
-->
</div>
-->
<div
slot=
"sourceMerchant"
>
<div
slot=
"sourceMerchant"
>
<el-select
v-model=
"searchForm.merchantId"
<el-select
v-model=
"searchForm.merchantId"
filterable
remote
reserve-keyword
clearable
placeholder=
"请输入关键字"
filterable
:remote-method=
"remoteMethod_merchant"
:loading=
"loading"
>
remote
<el-option
v-for=
"(opt, optIndex) in baseData.merchantList"
:key=
"optIndex"
reserve-keyword
:label=
"opt.merchantName + ' / ' + opt.merchantNo"
:value=
"opt.id"
>
clearable
placeholder=
"请输入关键字"
:remote-method=
"remoteMethod_merchant"
:loading=
"loading"
>
<el-option
v-for=
"(opt, optIndex) in baseData.merchantList"
:key=
"optIndex"
:label=
"opt.merchantName + ' / ' + opt.merchantNo"
:value=
"opt.id"
>
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</div>
</d2-search>
</d2-search>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
size=
"small"
type=
"primary"
>
查询
查询
</el-button>
</el-button>
<el-button
size=
"small"
<el-button
size=
"small"
@
click=
"handleReset"
>
@
click=
"handleReset"
>
重置
重置
</el-button>
</el-button>
</div>
</div>
...
@@ -58,37 +42,25 @@
...
@@ -58,37 +42,25 @@
<d2-table-header>
<d2-table-header>
<auth-button
category=
"Button"
/>
<auth-button
category=
"Button"
/>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"recordTable"
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
:search-form=
"searchFormSearch"
<template
slot=
"staffLabel"
slot-scope=
"scope"
>
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
<template
slot=
"staffLabel"
slot-scope=
"scope"
>
<span>
<span>
<el-checkbox-group
v-model=
"scope.scope.labelList"
>
<el-checkbox-group
v-model=
"scope.scope.labelList"
>
<el-checkbox
v-for=
"(item, index) in sceneForPerson"
<el-checkbox
v-for=
"(item, index) in sceneForPerson"
:key=
"index"
:label=
"item.confId"
:key=
"index"
@
change=
"changgeCheck(scope.scope)"
>
{{
item
.
confValue
}}
</el-checkbox>
:label=
"item.confId"
@
change=
"changgeCheck(scope.scope)"
>
{{
item
.
confValue
}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</span>
</span>
</
template
>
</
template
>
<auth-button
slot=
"auth-button"
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
slot-scope=
"scope"
:data=
"scope.scope"
/>
</d2-table>
</d2-table>
</div>
</div>
<!-- </d2-container> -->
<!-- </d2-container> -->
<div
class=
"btnCon"
>
<div
class=
"btnCon"
>
<el-button
type=
"primary"
<el-button
type=
"primary"
@
click=
"handleSave"
:disabled=
"$store.state.d2admin.loading.value"
class=
"ok-btn"
>
@
click=
"handleSave"
:disabled=
"$store.state.d2admin.loading.value"
class=
"ok-btn"
>
提交
提交
</el-button>
</el-button>
<el-button
class=
"cancel-btn"
<el-button
class=
"cancel-btn"
@
click=
"handleCancel"
>
@
click=
"handleCancel"
>
取消
取消
</el-button>
</el-button>
</div>
</div>
...
@@ -159,7 +131,7 @@ export default {
...
@@ -159,7 +131,7 @@ export default {
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionLabel
:
'confValue'
,
optionsName
:
'sceneForShop'
optionsName
:
'sceneForShop'
}
,
}
// {
// {
// label: '商户号',
// label: '商户号',
// name: 'partnerMerchantName',
// name: 'partnerMerchantName',
...
@@ -167,7 +139,7 @@ export default {
...
@@ -167,7 +139,7 @@ export default {
// inputType: "number",
// inputType: "number",
// maxlength: '9',
// maxlength: '9',
// isClear: true
// isClear: true
// },
// },
],
],
getListApi
:
findStaffByPage
,
getListApi
:
findStaffByPage
,
tableParams
:
{
tableParams
:
{
...
@@ -201,7 +173,7 @@ export default {
...
@@ -201,7 +173,7 @@ export default {
// 2: '客户'
// 2: '客户'
// }[cellValue.merchantType]
// }[cellValue.merchantType]
// }
// }
// },
// },
{
{
label
:
'来源商户'
,
label
:
'来源商户'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
...
@@ -212,7 +184,7 @@ export default {
...
@@ -212,7 +184,7 @@ export default {
},
{
},
{
label
:
'更新时间'
,
label
:
'更新时间'
,
prop
:
'updatedTime'
,
prop
:
'updatedTime'
,
width
:
'150px'
,
width
:
'150px'
// formatter: (cellValue) => {
// formatter: (cellValue) => {
// return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss') : ''
// return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss') : ''
// }
// }
...
@@ -226,7 +198,7 @@ export default {
...
@@ -226,7 +198,7 @@ export default {
departments
:
[]
departments
:
[]
},
},
loading
:
false
,
loading
:
false
,
checkRowList
:
[]
,
checkRowList
:
[]
}
}
},
},
computed
:
{
computed
:
{
...
@@ -260,7 +232,7 @@ export default {
...
@@ -260,7 +232,7 @@ export default {
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
this
.
searchFormSearch
.
merchantNoList
=
this
.
merchantNoList
this
.
searchFormSearch
.
merchantNoList
=
this
.
merchantNoList
console
.
log
(
'sceneForPerson'
,
this
.
sceneForPerson
)
;
console
.
log
(
'sceneForPerson'
,
this
.
sceneForPerson
)
resolve
()
resolve
()
})
})
},
},
...
@@ -278,23 +250,23 @@ export default {
...
@@ -278,23 +250,23 @@ export default {
}
}
})
})
},
},
//来源商户
//
来源商户
remoteMethod_merchant
(
queryString
)
{
remoteMethod_merchant
(
queryString
)
{
if
(
queryString
)
{
if
(
queryString
)
{
this
.
loading
=
true
this
.
loading
=
true
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
le
t
_params
=
{
channelType
:
1
,
pageNum
:
1
,
pageSize
:
100
,
merchantNoOrName
:
queryString
}
cons
t
_params
=
{
channelType
:
1
,
pageNum
:
1
,
pageSize
:
100
,
merchantNoOrName
:
queryString
}
findMerchantListByPage
(
_params
).
then
(
res
=>
{
findMerchantListByPage
(
_params
).
then
(
res
=>
{
this
.
baseData
.
merchantList
=
res
.
data
||
[]
this
.
baseData
.
merchantList
=
res
.
data
||
[]
console
.
log
(
this
.
baseData
.
merchantList
)
;
console
.
log
(
this
.
baseData
.
merchantList
)
})
})
},
200
)
},
200
)
}
else
{
}
else
{
this
.
baseData
.
merchantList
=
[]
this
.
baseData
.
merchantList
=
[]
}
}
},
},
//部门
//
部门
// remoteMethod_department(queryString) {
// remoteMethod_department(queryString) {
// if (queryString) {
// if (queryString) {
// this.loading = true
// this.loading = true
...
@@ -310,7 +282,7 @@ export default {
...
@@ -310,7 +282,7 @@ export default {
// }
// }
// },
// },
getDepartment
()
{
getDepartment
()
{
le
t
_params
=
{
dictType
:
'staff_department'
,
pageNum
:
1
,
pageSize
:
100
}
cons
t
_params
=
{
dictType
:
'staff_department'
,
pageNum
:
1
,
pageSize
:
100
}
findDictData
(
_params
).
then
(
res
=>
{
findDictData
(
_params
).
then
(
res
=>
{
this
.
baseData
.
departments
=
res
.
data
||
[]
this
.
baseData
.
departments
=
res
.
data
||
[]
this
.
getOptionsList
()
this
.
getOptionsList
()
...
@@ -338,15 +310,15 @@ export default {
...
@@ -338,15 +310,15 @@ export default {
if
(
!
_obj
)
{
if
(
!
_obj
)
{
this
.
checkRowList
.
push
(
row
)
this
.
checkRowList
.
push
(
row
)
}
}
console
.
log
(
this
.
checkRowList
)
;
console
.
log
(
this
.
checkRowList
)
},
},
/**
/**
* 保存信息
* 保存信息
*/
*/
handleSave
()
{
handleSave
()
{
le
t
_params
=
{}
cons
t
_params
=
{}
le
t
_staffList
=
[]
cons
t
_staffList
=
[]
if
(
this
.
checkRowList
.
length
>
0
)
{
if
(
this
.
checkRowList
.
length
>
0
)
{
let
_obj
let
_obj
this
.
checkRowList
.
forEach
(
item
=>
{
this
.
checkRowList
.
forEach
(
item
=>
{
...
@@ -369,6 +341,8 @@ export default {
...
@@ -369,6 +341,8 @@ export default {
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
handleCancel
()
this
.
handleCancel
()
})
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
},
},
handleCancel
()
{
handleCancel
()
{
...
@@ -385,6 +359,7 @@ export default {
...
@@ -385,6 +359,7 @@ export default {
width
:
100%
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
}
}
.bg
{
.bg
{
background
:
#ffffff
;
background
:
#ffffff
;
}
}
...
...
src/views/systemConfig/merchant/components/merchantChoose.vue
View file @
1e89c1e
...
@@ -3,60 +3,36 @@
...
@@ -3,60 +3,36 @@
<div
class=
"tableBox"
>
<div
class=
"tableBox"
>
<span>
<span>
<!--
<el-tag>
{{
showData
[
sourcePage
].
title
}}
</el-tag>
-->
<!--
<el-tag>
{{
showData
[
sourcePage
].
title
}}
</el-tag>
-->
<p
class=
"edit-title"
<p
class=
"edit-title"
style=
"textAlign:center"
>
style=
"textAlign:center"
>
{{
showData
[
sourcePage
].
title
}}
{{
showData
[
sourcePage
].
title
}}
<el-button
type=
"text"
<el-button
type=
"text"
style=
"paddingLeft:20px"
v-if=
"sourcePage == 'serviceStore'"
style=
"paddingLeft:20px"
@
click=
"resetCheck"
>
重新选择
</el-button>
v-if=
"sourcePage == 'serviceStore'"
@
click=
"resetCheck"
>
重新选择
</el-button>
</p>
</p>
</span>
</span>
<div
class=
"checkSpan"
>
<div
class=
"checkSpan"
>
<p
v-for=
"item in selectedDataShow"
>
已选:
<span
<p
v-for=
"item in selectedDataShow"
>
已选:
<span
style=
"paddingRight:20px"
>
{{
item
.
merchantName
}}
</span><span>
{{
style=
"paddingRight:20px"
>
{{
item
.
merchantName
}}
</span><span>
{{
item
.
merchantId
}}
</span>
item
.
merchantId
}}
</span>
</p>
</p>
</div>
</div>
<div
style=
"padding: 10px 50px;"
>
<div
style=
"padding: 10px 50px;"
>
<el-input
v-model=
"merchantIdName"
<el-input
v-model=
"merchantIdName"
placeholder=
"搜索门店内容"
maxlength=
"20"
style=
"width:300px;paddingRight:20px"
/>
placeholder=
"搜索门店内容"
<el-button
size=
"small"
type=
"primary"
@
click=
"searchList"
>
maxlength=
"20"
style=
"width:300px;paddingRight:20px"
/>
<el-button
size=
"small"
type=
"primary"
@
click=
"searchList"
>
查询
查询
</el-button>
</el-button>
</div>
</div>
<el-table
ref=
"seletingTable"
<el-table
ref=
"seletingTable"
:data=
"selectingData"
height=
"464px"
class=
"table"
border
@
select=
"selectFn"
:data=
"selectingData"
@
select-all=
"handleAll"
:header-cell-class-name=
"cellClass"
>
height=
"464px"
class=
"table"
border
@
select=
"selectFn"
@
select-all=
"handleAll"
:header-cell-class-name=
"cellClass"
>
<!-- :selectable="selectable" -->
<!-- :selectable="selectable" -->
<el-table-column
type=
"selection"
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
width=
"55"
<el-table-column
prop=
"merchantName"
align=
"center"
>
align=
"center"
/>
<el-table-column
prop=
"merchantName"
align=
"center"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
<span
style=
"paddingRight:20px"
>
{{
scope
.
row
.
merchantName
}}
</span><span>
{{
scope
.
row
.
merchantNo
}}
</span>
style=
"paddingRight:20px"
>
{{
scope
.
row
.
merchantName
}}
</span><span>
{{
scope
.
row
.
merchantNo
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<el-pagination
v-if=
"sourcePage == '4sStore'"
<el-pagination
v-if=
"sourcePage == '4sStore'"
small
background
@
current-change=
"handleCurrentChange"
small
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
layout=
"total, prev, pager, next"
:total=
"total"
/>
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
:page-size=
"pageSize"
layout=
"total, prev, pager, next"
:total=
"total"
/>
</div>
</div>
</template>
</template>
...
@@ -287,7 +263,7 @@ export default {
...
@@ -287,7 +263,7 @@ export default {
this
.
selectedDataShow
=
[]
this
.
selectedDataShow
=
[]
this
.
$emit
(
'chooseData'
,
this
.
selectedData
)
this
.
$emit
(
'chooseData'
,
this
.
selectedData
)
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
else
{
}
else
{
this
.
$refs
.
seletingTable
.
clearSelection
()
this
.
$refs
.
seletingTable
.
clearSelection
()
...
@@ -314,23 +290,29 @@ export default {
...
@@ -314,23 +290,29 @@ export default {
margin
:
0
auto
20px
!important
;
margin
:
0
auto
20px
!important
;
width
:
98%
;
width
:
98%
;
}
}
.relateStore
.tableCon
{
.relateStore
.tableCon
{
display
:
flex
;
display
:
flex
;
.tableBox
{
.tableBox
{
flex
:
1
;
flex
:
1
;
}
}
}
}
.service-store
.relateStore
.el-table
.cell
,
.service-store
.relateStore
.el-table
.cell
,
.d2-form
.relateStore
.el-table
.cell
{
.d2-form
.relateStore
.el-table
.cell
{
line-height
:
26px
!important
;
line-height
:
26px
!important
;
}
}
.service-store
.relateStore
.el-table--medium
td
,
.service-store
.relateStore
.el-table--medium
td
,
.d2-form
.relateStore
.el-table--medium
td
{
.d2-form
.relateStore
.el-table--medium
td
{
padding
:
6px
8px
!important
;
padding
:
6px
8px
!important
;
}
}
.relateStore
.red
{
.relateStore
.red
{
color
:
red
;
color
:
red
;
}
}
.relateStore
.tip-icon
{
.relateStore
.tip-icon
{
position
:
absolute
;
position
:
absolute
;
display
:
inline-block
;
display
:
inline-block
;
...
...
src/views/systemConfig/merchant/financialRules/oldFiles/stepOne.vue
View file @
1e89c1e
This diff is collapsed.
Click to expand it.
src/views/systemConfig/merchant/setDetail.vue
View file @
1e89c1e
...
@@ -284,7 +284,7 @@ export default {
...
@@ -284,7 +284,7 @@ export default {
}
),
}
),
getRowItem
()
{
getRowItem
()
{
const
info
=
this
.
$route
.
params
?.
info
const
info
=
this
.
$route
.
params
?.
info
this
.
infoForm2
.
signatureSwitch
=
this
.
merchantRow
.
signatureSwitch
||
0
this
.
infoForm2
.
signatureSwitch
=
this
.
merchantRow
?
.
signatureSwitch
||
0
if
(
info
)
{
if
(
info
)
{
this
.
merchantRow
=
info
this
.
merchantRow
=
info
console
.
log
(
"is.merchantRow"
,
this
.
merchantRow
)
console
.
log
(
"is.merchantRow"
,
this
.
merchantRow
)
...
...
src/views/systemConfig/serviceManage/editService.vue
View file @
1e89c1e
<
template
>
<
template
>
<d2-container
class=
"edit_service"
>
<d2-container
class=
"edit_service"
>
<div
class=
"d2-container-content form_class"
>
<div
class=
"d2-container-content form_class"
>
<el-form
label-width=
"120px"
<el-form
label-width=
"120px"
:model=
"detailInfo"
ref=
"editServiceForm"
:rules=
"rules"
>
:model=
"detailInfo"
<el-form-item
label=
"采购模式:"
prop=
"procurementType"
>
ref=
"editServiceForm"
:rules=
"rules"
>
<el-form-item
label=
"采购模式:"
prop=
"procurementType"
>
<el-radio-group
size=
"mini"
v-model=
"detailInfo.procurementType"
>
<el-radio-group
size=
"mini"
v-model=
"detailInfo.procurementType"
>
<el-radio
v-for=
"(subItem, subIdx) in procureModeList"
:key=
"subIdx"
:label=
"subItem.confId"
>
{{
<el-radio
v-for=
"(subItem, subIdx) in procureModeList"
:key=
"subIdx"
:label=
"subItem.confId"
>
{{
subItem
.
confName
}}
</el-radio>
subItem
.
confName
}}
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"发货主体:"
prop=
"shippingEntityId"
>
label=
"发货主体:"
<el-select
v-model=
"detailInfo.shippingEntityId"
class=
"select_class"
placeholder=
"请选择发货主体"
>
prop=
"shippingEntityId"
>
<el-option
v-for=
"(subItem, subIndex) in shippingEntityList"
:key=
"subIndex"
:label=
"subItem.shippingEntity"
<el-select
v-model=
"detailInfo.shippingEntityId"
:value=
"subItem.shippingEntityId"
/>
class=
"select_class"
placeholder=
"请选择发货主体"
>
<el-option
v-for=
"(subItem, subIndex) in shippingEntityList"
:key=
"subIndex"
:label=
"subItem.shippingEntity"
:value=
"subItem.shippingEntityId"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<div
style=
"margin-top: 40px;text-align: center;"
>
<div
style=
"margin-top: 40px;text-align: center;"
>
<el-button
class=
"width_100 cancel-btn"
<el-button
class=
"width_100 cancel-btn"
@
click=
"handleClose"
>
取消
</el-button>
@
click=
"handleClose"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleUp"
:disabled=
"$store.state.d2admin.loading.value"
<el-button
class=
"width_100"
>
提交
</el-button>
type=
"primary"
</div>
@
click=
"handleUp"
:disabled=
"$store.state.d2admin.loading.value"
class=
"width_100"
>
提交
</el-button>
</div>
</d2-container>
</d2-container>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -43,7 +28,7 @@ import { procureModeList } from "@/common/constants"
...
@@ -43,7 +28,7 @@ import { procureModeList } from "@/common/constants"
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
{
getProviderProcurementInfo
,
updateProviderProcurementInfo
,
getShippingEntityInfoAll
}
from
"@api/serviceManage"
import
{
getProviderProcurementInfo
,
updateProviderProcurementInfo
,
getShippingEntityInfoAll
}
from
"@api/serviceManage"
export
default
{
export
default
{
name
:
"
e
ditService"
,
name
:
"
E
ditService"
,
data
()
{
data
()
{
return
{
return
{
procureModeList
,
procureModeList
,
...
@@ -60,7 +45,7 @@ export default {
...
@@ -60,7 +45,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
le
t
{
serviceMerchantId
}
=
this
.
$route
.
params
cons
t
{
serviceMerchantId
}
=
this
.
$route
.
params
this
.
serviceMerchantId
=
serviceMerchantId
this
.
serviceMerchantId
=
serviceMerchantId
// 获取发货主体数据
// 获取发货主体数据
getShippingEntityInfoAll
({}).
then
(
res
=>
{
getShippingEntityInfoAll
({}).
then
(
res
=>
{
...
@@ -74,10 +59,10 @@ export default {
...
@@ -74,10 +59,10 @@ export default {
close
:
'd2admin/page/close'
close
:
'd2admin/page/close'
}),
}),
getInfo
()
{
getInfo
()
{
getProviderProcurementInfo
({
merchantId
:
this
.
serviceMerchantId
}).
then
(
res
=>
{
getProviderProcurementInfo
({
merchantId
:
this
.
serviceMerchantId
}).
then
(
res
=>
{
this
.
detailInfo
=
res
||
{}
this
.
detailInfo
=
res
||
{}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'editServiceForm'
]
.
clearValidate
()
this
.
$refs
.
editServiceForm
.
clearValidate
()
})
})
})
})
},
},
...
@@ -95,14 +80,16 @@ export default {
...
@@ -95,14 +80,16 @@ export default {
this
.
close
({
tagName
:
'/editService'
})
this
.
close
({
tagName
:
'/editService'
})
this
.
$router
.
push
({
name
:
'serviceManage'
})
this
.
$router
.
push
({
name
:
'serviceManage'
})
this
.
close
({
tagName
:
'/serviceManage'
})
this
.
close
({
tagName
:
'/serviceManage'
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
}
},
},
// 保存
// 保存
handleUp
()
{
handleUp
()
{
this
.
$refs
[
'editServiceForm'
]
.
validate
(
valid
=>
{
this
.
$refs
.
editServiceForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
le
t
params
=
{
cons
t
params
=
{
partnerMerchantId
:
this
.
serviceMerchantId
,
partnerMerchantId
:
this
.
serviceMerchantId
,
procurementType
:
this
.
detailInfo
.
procurementType
,
procurementType
:
this
.
detailInfo
.
procurementType
,
shippingEntity
:
this
.
shippingEntityList
.
filter
(
val
=>
val
.
shippingEntityId
==
this
.
detailInfo
.
shippingEntityId
)[
0
]?.
shippingEntity
||
''
,
shippingEntity
:
this
.
shippingEntityList
.
filter
(
val
=>
val
.
shippingEntityId
==
this
.
detailInfo
.
shippingEntityId
)[
0
]?.
shippingEntity
||
''
,
...
@@ -121,15 +108,17 @@ export default {
...
@@ -121,15 +108,17 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.edit_service
{
.edit_service
{
.form_class{
.form_class
{
height
:
calc
(
100vh
-
300px
);
height
:
calc
(
100vh
-
300px
);
}
}
.select_class
{
.select_class
{
width
:
432px
;
width
:
432px
;
}
}
.width_100
{
.width_100
{
width
:
100px
;
width
:
100px
;
}
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
</
style
>
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