Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
13fe9053
Commit
13fe9053
authored
Mar 17, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
解决海运冲突
parents
f5728349
0a1f3df5
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1155 additions
and
24 deletions
+1155
-24
deptTarget.js
src/api/ecw/deptTarget.js
+40
-2
product.js
src/api/ecw/product.js
+8
-1
index.vue
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
+10
-1
allAchievement.vue
src/views/ecw/deptTarget/allAchievement.vue
+492
-0
myDeptTarget.vue
src/views/ecw/deptTarget/myDeptTarget.vue
+479
-0
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+1
-1
prepayDeal.vue
src/views/ecw/order/prepayDeal.vue
+71
-7
index.vue
src/views/ecw/product/index.vue
+54
-12
No files found.
src/api/ecw/deptTarget.js
View file @
13fe9053
...
@@ -9,7 +9,7 @@ export function createDeptTarget(data) {
...
@@ -9,7 +9,7 @@ export function createDeptTarget(data) {
})
})
}
}
// 我的业绩
// 我的
部门
业绩
export
function
myDeptAchievementByPage
(
data
)
{
export
function
myDeptAchievementByPage
(
data
)
{
return
request
({
return
request
({
url
:
'
/sale/dept-target/myDeptAchievementByPage
'
,
url
:
'
/sale/dept-target/myDeptAchievementByPage
'
,
...
@@ -17,7 +17,7 @@ export function myDeptAchievementByPage(data) {
...
@@ -17,7 +17,7 @@ export function myDeptAchievementByPage(data) {
data
:
data
data
:
data
})
})
}
}
// 我的
部门
业绩
// 我的业绩
export
function
myAchievementByPage
(
data
)
{
export
function
myAchievementByPage
(
data
)
{
return
request
({
return
request
({
url
:
'
/sale/dept-target/myAchievementByPage
'
,
url
:
'
/sale/dept-target/myAchievementByPage
'
,
...
@@ -26,6 +26,15 @@ export function myAchievementByPage(data) {
...
@@ -26,6 +26,15 @@ export function myAchievementByPage(data) {
})
})
}
}
// 全部业绩
export
function
allAchievementByPage
(
data
)
{
return
request
({
url
:
'
/sale/dept-target/allAchievementByPage
'
,
method
:
'
post
'
,
data
:
data
})
}
// 更新部门业绩目标设置
// 更新部门业绩目标设置
export
function
updateDeptTarget
(
data
)
{
export
function
updateDeptTarget
(
data
)
{
return
request
({
return
request
({
...
@@ -67,6 +76,15 @@ export function getDeptTargetPage(query) {
...
@@ -67,6 +76,15 @@ export function getDeptTargetPage(query) {
})
})
}
}
// 获得我的部门及以下业绩目标设置分页
export
function
getMyDeptTargetPage
(
query
)
{
return
request
({
url
:
'
/sale/dept-target/deptStatistics/page
'
,
method
:
'
get
'
,
params
:
query
})
}
// 获得个人目标进度分页
// 获得个人目标进度分页
export
function
getPersonTargetPage
(
query
)
{
export
function
getPersonTargetPage
(
query
)
{
return
request
({
return
request
({
...
@@ -85,3 +103,23 @@ export function exportDeptTargetExcel(query) {
...
@@ -85,3 +103,23 @@ export function exportDeptTargetExcel(query) {
responseType
:
'
blob
'
responseType
:
'
blob
'
})
})
}
}
// 导出部门业绩目标设置 Excel
export
function
exportDetailExcel
(
query
)
{
return
request
({
url
:
'
/sale/dept-target/exportDetailExcel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
// 导出部门业绩目标设置 Excel
export
function
exportStatisticsExcel
(
query
)
{
return
request
({
url
:
'
/sale/dept-target/exportStatisticsExcel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
src/api/ecw/product.js
View file @
13fe9053
...
@@ -78,4 +78,11 @@ export function calculationPrice(data){
...
@@ -78,4 +78,11 @@ export function calculationPrice(data){
method
:
'
post
'
,
method
:
'
post
'
,
data
:
data
data
:
data
})
})
}
}
\ No newline at end of file
//新增商品可用优惠信息列表
export
function
product_coupon_newProd
(){
return
request
({
url
:
'
/product/coupon/newProd/list
'
,
method
:
'
get
'
,
})
}
src/views/ecw/box/shippingSea/nodePage/tally/index.vue
View file @
13fe9053
...
@@ -171,7 +171,16 @@ export default {
...
@@ -171,7 +171,16 @@ export default {
});
});
});
});
});
});
this
.
tallyList
=
list
;
let
relist
=
[]
list
.
forEach
(
l
=>
{
let
index
=
relist
.
findIndex
(
i
=>
i
.
orderId
==
l
.
orderId
&&
i
.
positionNo
==
l
.
positionNo
)
if
(
index
==
-
1
){
relist
.
push
(
l
)
}
else
{
relist
[
index
].
warehouseInInfo
.
cartonsNum
=
parseInt
(
relist
[
index
].
warehouseInInfo
.
cartonsNum
)
+
parseInt
(
l
.
warehouseInInfo
.
cartonsNum
)
}
})
this
.
tallyList
=
relist
;
});
});
},
},
// 选中
// 选中
...
...
src/views/ecw/deptTarget/allAchievement.vue
0 → 100644
View file @
13fe9053
This diff is collapsed.
Click to expand it.
src/views/ecw/deptTarget/myDeptTarget.vue
0 → 100644
View file @
13fe9053
This diff is collapsed.
Click to expand it.
src/views/ecw/financial/creatCollection.vue
View file @
13fe9053
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<el-card>
<el-card>
<div
v-if=
"id"
slot=
"header"
class=
"card-title"
>
{{
$t
(
'
修改收款单
'
)
}}
</div>
<div
v-if=
"id"
slot=
"header"
class=
"card-title"
>
{{
$t
(
'
修改收款单
'
)
}}
</div>
<div
v-else
slot=
"header"
class=
"card-title"
>
{{
$t
(
'
新增收款单
'
)
}}
</div>
<div
v-else
slot=
"header"
class=
"card-title"
>
{{
$t
(
'
新增收款单
'
)
}}
</div>
<!--
<el-descriptions
:column=
"3"
border
>
-->
<!--
<el-descriptions
:column=
"3"
border
>
-->
<!--
<el-descriptions-item
>
-->
<!--
<el-descriptions-item
>
-->
<el-form-item
<el-form-item
:label=
"$t('客户')"
:label=
"$t('客户')"
...
...
src/views/ecw/order/prepayDeal.vue
View file @
13fe9053
...
@@ -195,7 +195,49 @@
...
@@ -195,7 +195,49 @@
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('货值')
"
prop
=
"
worth
"
/>
<
el
-
table
-
column
:
label
=
"
$t('货值')
"
prop
=
"
worth
"
/>
<
/el-table
>
<
/el-table
>
<!--
未分配客户经理
-->
<
div
v
-
if
=
"
orderExceptionData.orderExceptionType=='not_customer_service_exception'
"
>
<
el
-
row
:
gutter
=
"
20
"
>
<
el
-
col
:
span
=
"
8
"
v
-
if
=
"
orderData.consignorVO
"
>
<
el
-
descriptions
class
=
"
margin-top
"
border
:
title
=
"
$t('发货人')
"
:
column
=
"
1
"
:
labelStyle
=
"
{width:'150px'
}
"
>
<
el
-
descriptions
-
item
:
label
=
"
$t('发货人')
"
>
{{
orderData
.
consignorVO
.
name
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('发货人电话')
"
>
+
{{
orderData
.
consignorVO
.
countryCode
}}
{{
orderData
.
consignorVO
.
phone
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('发货人邮箱')
"
>
{{
orderData
.
consignorVO
.
email
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('发货人公司名称')
"
>
{{
orderData
.
consignorVO
.
company
}}
<
/el-descriptions-item
>
<
/el-descriptions
>
<
/el-col
>
<
el
-
col
:
span
=
"
16
"
v
-
if
=
"
orderData.consigneeVO
"
>
<
el
-
descriptions
class
=
"
margin-top
"
border
:
title
=
"
$t('收货人')
"
:
column
=
"
2
"
:
labelStyle
=
"
{width:'150px'
}
"
>
<
el
-
descriptions
-
item
:
label
=
"
$t('收货人')
"
>
{{
orderData
.
consigneeVO
.
name
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('收货人电话')
"
>
+
{{
orderData
.
consigneeVO
.
countryCode
}}
{{
orderData
.
consigneeVO
.
phone
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('收货人邮箱')
"
>
{{
orderData
.
consigneeVO
.
email
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('收货人公司名称')
"
>
{{
orderData
.
consigneeVO
.
company
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('收货方式')
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.ECW_HARVEST_METHOD
"
:
value
=
"
orderData.consigneeVO.harvestMethod
"
/>
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('收货地区')
"
>
{{
region
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('收货地址')
"
>
{{
orderData
.
consigneeVO
.
address
}}
<
/el-descriptions-item
>
<
/el-descriptions
>
<
/el-col
>
<
/el-row
>
<
div
class
=
"
link-text
"
>
<
router
-
link
:
to
=
"
{path: '/customer/query/'+orderData.customerId
}
"
class
=
"
link-type
"
>
<
span
>
{{
$t
(
'
归属客户
'
)
}}
:{{
customerData
.
name
||
''
}}
<
/span><span>{{$t
(
'客户编号'
)
}}
:{{ customerData.number||''
}}
</
span
>
<
/router-link
>
<
/div
>
<
/div
>
<
el
-
form
:
model
=
"
handlerParams
"
ref
=
"
queryForms
"
size
=
"
small
"
:
inline
=
"
true
"
label
-
width
=
"
120px
"
class
=
"
card
"
>
<
el
-
form
:
model
=
"
handlerParams
"
ref
=
"
queryForms
"
size
=
"
small
"
:
inline
=
"
true
"
label
-
width
=
"
120px
"
class
=
"
card
"
>
<
el
-
row
v
-
if
=
"
orderExceptionData.orderExceptionType=='order_pay_exception'
"
>
<
el
-
row
v
-
if
=
"
orderExceptionData.orderExceptionType=='order_pay_exception'
"
>
<
el
-
form
-
item
:
label
=
"
$t('订单总金额')+':'
"
>
<
el
-
form
-
item
:
label
=
"
$t('订单总金额')+':'
"
>
...
@@ -273,7 +315,7 @@
...
@@ -273,7 +315,7 @@
<
/template
>
<
/template
>
<
/el-form-item
>
<
/el-form-item
>
<!--
预付异常的备选需要根据接口数据过滤
-->
<!--
预付异常的备选需要根据接口数据过滤
-->
<
el
-
row
v
-
if
=
"
orderExceptionData.orderExceptionType=='order_pay_exception'
"
>
<
el
-
row
v
-
if
=
"
orderExceptionData.orderExceptionType=='order_pay_exception'
||orderExceptionData.orderExceptionType=='not_customer_service_exception'
"
>
<
el
-
form
-
item
:
label
=
"
$t('处理结果')+':'
"
required
>
<
el
-
form
-
item
:
label
=
"
$t('处理结果')+':'
"
required
>
<
el
-
select
v
-
model
=
"
handlerParams.orderExceptionHandlerResult
"
:
placeholder
=
"
$t('请选择')
"
clearable
>
<
el
-
select
v
-
model
=
"
handlerParams.orderExceptionHandlerResult
"
:
placeholder
=
"
$t('请选择')
"
clearable
>
<
template
v
-
for
=
"
dict in getDictDatas(orderExceptionData.orderExceptionType+'_result')
"
>
<
template
v
-
for
=
"
dict in getDictDatas(orderExceptionData.orderExceptionType+'_result')
"
>
...
@@ -289,10 +331,16 @@
...
@@ -289,10 +331,16 @@
<
el
-
option
:
disabled
=
"
dict.value=='pending'
"
:
key
=
"
dict.value
"
:
label
=
"
$l(dict, 'label')
"
:
value
=
"
dict.value
"
/>
<
el
-
option
:
disabled
=
"
dict.value=='pending'
"
:
key
=
"
dict.value
"
:
label
=
"
$l(dict, 'label')
"
:
value
=
"
dict.value
"
/>
<
/template
>
<
/template
>
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-row
>
<
/el-row
>
<
el
-
row
v
-
if
=
"
orderExceptionData.orderExceptionType=='not_customer_service_exception'&&handlerParams.orderExceptionHandlerResult=='allocate'
"
>
<
el
-
form
-
item
:
label
=
"
$t('移交客户经理')+':'
"
required
>
<
el
-
select
v
-
model
=
"
handlerParams.customerService
"
:
placeholder
=
"
$t('请选择客户经理')
"
clearable
>
<
el
-
option
v
-
for
=
"
dict in customerServiceList
"
:
key
=
"
dict.id
"
:
label
=
"
dict.nickname
"
:
value
=
"
dict.id
"
/>
<
/el-select
>
<
/el-form-item
>
<
/el-row
>
<!--
代收货款
时需要填写代收金额
-->
<!--
代收货款
时需要填写代收金额
-->
<
el
-
row
v
-
if
=
"
handlerParams.orderExceptionHandlerResult == 'cod'
"
>
<
el
-
row
v
-
if
=
"
handlerParams.orderExceptionHandlerResult == 'cod'
"
>
<
el
-
form
-
item
:
label
=
"
$t('代收金额')+':'
"
size
=
"
medium
"
required
>
<
el
-
form
-
item
:
label
=
"
$t('代收金额')+':'
"
size
=
"
medium
"
required
>
...
@@ -314,7 +362,7 @@
...
@@ -314,7 +362,7 @@
<
/el-select
>
<
/el-select
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-row
>
<
/el-row
>
<
el
-
row
:
span
=
"
8
"
>
<
el
-
row
:
span
=
"
8
"
v
-
if
=
"
orderExceptionData.orderExceptionType!='not_customer_service_exception'
"
>
<
el
-
form
-
item
:
label
=
"
$t('备注')+':'
"
size
=
"
medium
"
>
<
el
-
form
-
item
:
label
=
"
$t('备注')+':'
"
size
=
"
medium
"
>
<
el
-
input
style
=
"
width: 500px;
"
type
=
"
textarea
"
v
-
model
=
"
handlerParams.orderExceptionHandlerRemark
"
/>
<
el
-
input
style
=
"
width: 500px;
"
type
=
"
textarea
"
v
-
model
=
"
handlerParams.orderExceptionHandlerRemark
"
/>
<
/el-form-item
>
<
/el-form-item
>
...
@@ -393,7 +441,9 @@
...
@@ -393,7 +441,9 @@
import
{
getFirstReceivableListByOrderId
}
from
'
@/api/ecw/financial
'
import
{
getFirstReceivableListByOrderId
}
from
'
@/api/ecw/financial
'
import
WorkFlow
from
'
@/components/WorkFlow
'
import
WorkFlow
from
'
@/components/WorkFlow
'
import
{
listByIds
}
from
'
@/api/ecw/region
'
import
{
listByIds
}
from
'
@/api/ecw/region
'
import
{
listServiceUser
}
from
"
@/api/system/user
"
;
import
{
cancelProcessInstance
}
from
'
@/api/bpm/processInstance
'
import
{
cancelProcessInstance
}
from
'
@/api/bpm/processInstance
'
import
{
getCustomer
}
from
'
@/api/ecw/customer
'
export
default
{
export
default
{
name
:
"
PrepayDeal
"
,
name
:
"
PrepayDeal
"
,
components
:
{
components
:
{
...
@@ -428,7 +478,9 @@
...
@@ -428,7 +478,9 @@
timers
:
""
,
//时间戳
timers
:
""
,
//时间戳
FilePreAll
:[],
// 预览数组
FilePreAll
:[],
// 预览数组
TragetPic
:{
}
,
TragetPic
:{
}
,
region
:
''
region
:
''
,
customerData
:{
}
,
//归属客户
customerServiceList
:[],
//客户经理
}
;
}
;
}
,
}
,
created
()
{
created
()
{
...
@@ -438,6 +490,9 @@
...
@@ -438,6 +490,9 @@
this
.
getList
()
this
.
getList
()
}
}
listServiceUser
().
then
(
r
=>
{
this
.
customerServiceList
=
r
.
data
;
}
)
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
}
,
}
,
watch
:{
watch
:{
...
@@ -491,7 +546,7 @@
...
@@ -491,7 +546,7 @@
that
.
orderExceptionData
=
response
.
data
;
that
.
orderExceptionData
=
response
.
data
;
// that.orderExceptionData.orderExceptionType = 'order_other_exception'
// that.orderExceptionData.orderExceptionType = 'order_other_exception'
// that.orderExceptionData.orderExceptionType = 'order_miss_exception'
// that.orderExceptionData.orderExceptionType = 'order_miss_exception'
// that.orderExceptionData.orderExceptionType = 'order_pay
_exception'
// that.orderExceptionData.orderExceptionType = 'not_customer_service
_exception'
that
.
loading
=
false
;
that
.
loading
=
false
;
that
.
orderId
=
response
.
data
.
orderId
that
.
orderId
=
response
.
data
.
orderId
that
.
getOrderData
()
that
.
getOrderData
()
...
@@ -515,8 +570,16 @@
...
@@ -515,8 +570,16 @@
getOrderData
(){
getOrderData
(){
getOrder
(
this
.
orderId
).
then
(
response
=>
{
getOrder
(
this
.
orderId
).
then
(
response
=>
{
this
.
orderData
=
response
.
data
this
.
orderData
=
response
.
data
if
(
response
.
data
.
customerId
){
this
.
getCustomerData
(
response
.
data
.
customerId
)
}
}
);
}
);
}
,
}
,
getCustomerData
(
id
){
getCustomer
(
id
).
then
(
res
=>
{
this
.
customerData
=
res
.
data
}
)
}
,
getOrderFeeByIdData
(){
getOrderFeeByIdData
(){
getOrderFeeById
({
id
:
this
.
orderId
}
).
then
(
response
=>
{
getOrderFeeById
({
id
:
this
.
orderId
}
).
then
(
response
=>
{
this
.
orderFee
=
response
.
data
this
.
orderFee
=
response
.
data
...
@@ -636,6 +699,7 @@
...
@@ -636,6 +699,7 @@
.
link
-
text
span
{
.
link
-
text
span
{
font
-
size
:
16
px
;
font
-
size
:
16
px
;
font
-
weight
:
600
;
font
-
weight
:
600
;
margin
-
right
:
20
px
;
}
}
.
card
-
title
{
.
card
-
title
{
font
-
size
:
18
px
;
font
-
size
:
18
px
;
...
...
src/views/ecw/product/index.vue
View file @
13fe9053
...
@@ -106,9 +106,9 @@
...
@@ -106,9 +106,9 @@
<el-table-column
:label=
"$t('修改时间')"
align=
"center"
>
<el-table-column
:label=
"$t('修改时间')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
updateTime
)
}}
</span>
<span>
{{
parseTime
(
scope
.
row
.
updateTime
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- <el-table-column prop="status" align="center" :label="$t('状态')" width="120">
<!-- <el-table-column prop="status" align="center" :label="$t('状态')" width="120">
<template slot-scope="scope">
<template slot-scope="scope">
...
@@ -206,11 +206,24 @@
...
@@ -206,11 +206,24 @@
<el-radio
v-model.number=
"form.needBook"
:label=
"1"
>
{{$t('是')}}
</el-radio>
<el-radio
v-model.number=
"form.needBook"
:label=
"1"
>
{{$t('是')}}
</el-radio>
<el-radio
v-model.number=
"form.needBook"
:label=
"0"
>
{{$t('否')}}
</el-radio>
<el-radio
v-model.number=
"form.needBook"
:label=
"0"
>
{{$t('否')}}
</el-radio>
</el-form-item>
</el-form-item>
<!-- <el-form-item :label="$t('可参与优惠活动')" prop="you">
<el-form-item
v-if=
"this.form.id == null "
:label=
"$t('可参与优惠')"
>
<el-select v-model="form.you" :placeholder="$t('可参与优惠活动')" clearable>
<!-- <el-select multiple v-model="form.couponlds" size="5" style="min-width: 300px; border:1px solid #DCDFE6; border-radius:4px">-->
<el-option v-for="packageItem in packagingList" :key="packageItem.value" :label="packageItem.label" :value="packageItem.value" />
<!-- <el-option v-for="item in preferentialList" :value="item.couponId" :label="item.titleZh" :key="item.couponId" :disabled="item.mandatory">{{item.titleZh}}</el-option>-->
</el-select>
<!-- </el-select>-->
</el-form-item> -->
<div
style=
"width: 300px;height: 400px;border: 1px solid;overflow-y: auto"
>
<div
@
click=
"selectMoveAbout(item)"
style=
"display: flex;justify-content: space-between; align-items: center;"
:style=
"{'cursor':item.mandatory ? 'no-drop' : 'pointer' }"
v-for=
"item in preferentialList"
>
<div>
{{$l(item, 'title')}}
</div>
<i
v-if=
"form.couponIds.includes(item.couponId)"
style=
"margin-right: 20px;"
class=
"el-icon-check"
></i>
</div>
</div>
</el-form-item>
<!-- <el-form-item :label="$t('可参与优惠活动')" prop="you">
<el-select v-model="form.you" :placeholder="$t('可参与优惠活动')" clearable>
<el-option v-for="packageItem in packagingList" :key="packageItem.value" :label="packageItem.label" :value="packageItem.value" />
</el-select>
</el-form-item> -->
<el-form-item
:label=
"$t('每日入仓上限')"
prop=
"dayLimit"
v-if=
"form.needBook==1"
>
<el-form-item
:label=
"$t('每日入仓上限')"
prop=
"dayLimit"
v-if=
"form.needBook==1"
>
<el-input
v-model.number=
"form.dayLimit"
type=
"number"
>
<el-input
v-model.number=
"form.dayLimit"
type=
"number"
>
<
template
slot=
"append"
>
{{
$t
(
'
立方米
'
)
}}
</
template
>
<
template
slot=
"append"
>
{{
$t
(
'
立方米
'
)
}}
</
template
>
...
@@ -227,7 +240,15 @@
...
@@ -227,7 +240,15 @@
</template>
</template>
<
script
>
<
script
>
import
{
createProduct
,
updateProduct
,
deleteProduct
,
getProduct
,
getProductPage
,
exportProductExcel
}
from
"
@/api/ecw/product
"
;
import
{
createProduct
,
updateProduct
,
deleteProduct
,
getProduct
,
getProductPage
,
exportProductExcel
,
product_coupon_newProd
}
from
"
@/api/ecw/product
"
;
import
{
getProductAttrList
}
from
"
@/api/ecw/productAttr
"
;
import
{
getProductAttrList
}
from
"
@/api/ecw/productAttr
"
;
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
;
import
{
getProductTypeList
}
from
"
@/api/ecw/productType
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
...
@@ -305,7 +326,8 @@ export default {
...
@@ -305,7 +326,8 @@ export default {
auditStatusDictDatas
:
getDictDatas
(
DICT_TYPE
.
AUDIT_STATUS
),
auditStatusDictDatas
:
getDictDatas
(
DICT_TYPE
.
AUDIT_STATUS
),
materialList
:
getDictDatas
(
DICT_TYPE
.
ECW_PRODUCT_MATERIAL
),
materialList
:
getDictDatas
(
DICT_TYPE
.
ECW_PRODUCT_MATERIAL
),
packagingList
:
getDictDatas
(
DICT_TYPE
.
ECW_PACKAGING_TYPE
),
packagingList
:
getDictDatas
(
DICT_TYPE
.
ECW_PACKAGING_TYPE
),
locationList
:
getDictDatas
(
DICT_TYPE
.
ECW_CONTAINER_LOCATION
)
locationList
:
getDictDatas
(
DICT_TYPE
.
ECW_CONTAINER_LOCATION
),
preferentialList
:[],
};
};
},
},
...
@@ -360,6 +382,10 @@ export default {
...
@@ -360,6 +382,10 @@ export default {
this
.
getAttrList
();
this
.
getAttrList
();
this
.
getTypeList
();
this
.
getTypeList
();
this
.
getList
();
this
.
getList
();
product_coupon_newProd
().
then
(
r
=>
{
this
.
preferentialList
=
r
.
data
this
.
reset
()
})
},
},
methods
:
{
methods
:
{
/** 获取产品属性列表 */
/** 获取产品属性列表 */
...
@@ -433,8 +459,11 @@ export default {
...
@@ -433,8 +459,11 @@ export default {
auditStatus
:
undefined
,
auditStatus
:
undefined
,
status
:
undefined
,
status
:
undefined
,
requirements
:
0
,
requirements
:
0
,
needBook
:
0
needBook
:
0
,
couponIds
:[],
};
};
let
c
=
this
.
preferentialList
.
filter
(
i
=>
i
.
isDefault
).
map
(
i
=>
i
.
couponId
)
this
.
form
.
couponIds
=
c
this
.
resetForm
(
"
form
"
);
this
.
resetForm
(
"
form
"
);
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
...
@@ -485,7 +514,6 @@ export default {
...
@@ -485,7 +514,6 @@ export default {
}
}
//商品特性转字符串
//商品特性转字符串
this
.
form
.
attrId
=
this
.
form
.
attrArray
.
join
(
'
,
'
);
this
.
form
.
attrId
=
this
.
form
.
attrArray
.
join
(
'
,
'
);
// 修改的提交
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
updateProduct
(
this
.
form
).
then
(
response
=>
{
updateProduct
(
this
.
form
).
then
(
response
=>
{
...
@@ -576,7 +604,21 @@ export default {
...
@@ -576,7 +604,21 @@ export default {
ids
:
this
.
ids
ids
:
this
.
ids
}
}
});
});
},
selectMoveAbout
(
val
){
if
(
!
val
.
mandatory
){
let
index
=
this
.
form
.
couponIds
.
findIndex
(
i
=>
val
.
couponId
==
i
)
if
(
index
>=
0
){
this
.
form
.
couponIds
.
splice
(
index
,
1
)
}
else
{
this
.
form
.
couponIds
.
push
(
val
.
couponId
)
}
}
}
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment