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
392adac1
Commit
392adac1
authored
Jun 11, 2023
by
我在何方
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into dev
parents
67ed1d4a
f30e6be1
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
706 additions
and
39 deletions
+706
-39
index.vue
src/components/CustomerFollow/index.vue
+5
-1
makeLadingBill.vue
src/views/ecw/box/ladingBill/makeLadingBill.vue
+1
-1
packaging-type.vue
src/views/ecw/channel/componrnts/packaging-type.vue
+12
-9
edit.vue
src/views/ecw/channel/edit.vue
+7
-2
query.vue
src/views/ecw/customer/query.vue
+1
-1
index.vue
src/views/ecw/order/stocking/index.vue
+22
-5
index.vue
src/views/ecw/product/index.vue
+82
-16
product-dialog.vue
src/views/ecw/product/product-dialog.vue
+515
-0
index.vue
src/views/ecw/productPrice/index.vue
+61
-4
No files found.
src/components/CustomerFollow/index.vue
View file @
392adac1
...
@@ -141,6 +141,10 @@ export default {
...
@@ -141,6 +141,10 @@ export default {
*/
*/
id
:
Number
,
id
:
Number
,
customerId
:
Number
,
customerId
:
Number
,
customerQuery
:{
type
:
Boolean
,
default
:
false
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -237,7 +241,7 @@ export default {
...
@@ -237,7 +241,7 @@ export default {
this
.
$refs
.
dictMethod
.
changeValue
(
this
.
customerFollow
.
form
.
followMethod
);
this
.
$refs
.
dictMethod
.
changeValue
(
this
.
customerFollow
.
form
.
followMethod
);
},
},
getCustomerFollowList
()
{
getCustomerFollowList
()
{
if
(
this
.
$route
.
name
===
'
customerQuery
'
){
if
(
this
.
customerQuery
){
getCustomerFollowPage
({
customerId
:
this
.
customerId
,
pageNo
:
this
.
pageNo
,
pageSize
:
this
.
pageSize
}).
then
(
r
=>
{
getCustomerFollowPage
({
customerId
:
this
.
customerId
,
pageNo
:
this
.
pageNo
,
pageSize
:
this
.
pageSize
}).
then
(
r
=>
{
this
.
customerFollowList
=
r
.
data
.
list
;
this
.
customerFollowList
=
r
.
data
.
list
;
this
.
total
=
r
.
data
.
total
;
this
.
total
=
r
.
data
.
total
;
...
...
src/views/ecw/box/ladingBill/makeLadingBill.vue
View file @
392adac1
...
@@ -201,7 +201,7 @@ export default {
...
@@ -201,7 +201,7 @@ export default {
/* doc.save("a4.pdf");
/* doc.save("a4.pdf");
return Promise.reject() */
return Promise.reject() */
let
form
=
new
FormData
()
let
form
=
new
FormData
()
let
file
=
this
.
currRow
.
orderNo
+
'
-
'
+
orderData
.
marks
+
'
.pdf
'
//this.selfNo + '-' + this.currRow.tidanNo + '.pdf'
let
file
=
this
.
selfNo
+
"
-
"
+
this
.
currRow
.
tidanNo
+
'
'
+
orderData
.
marks
+
'
.pdf
'
//this.selfNo + '-' + this.currRow.tidanNo + '.pdf'
form
.
append
(
'
file
'
,
new
File
([
doc
.
output
(
'
arraybuffer
'
)],
file
,
{
type
:
'
application/pdf
'
}))
form
.
append
(
'
file
'
,
new
File
([
doc
.
output
(
'
arraybuffer
'
)],
file
,
{
type
:
'
application/pdf
'
}))
form
.
append
(
'
path
'
,
`admin/shipment/
${
this
.
selfNo
}
/pdf/
${
file
}
`
)
// 最前面不能有/,否则返回的url会有两个/
form
.
append
(
'
path
'
,
`admin/shipment/
${
this
.
selfNo
}
/pdf/
${
file
}
`
)
// 最前面不能有/,否则返回的url会有两个/
...
...
src/views/ecw/channel/componrnts/packaging-type.vue
View file @
392adac1
<
template
>
<
template
>
<div>
<div>
<el-row
type=
"flex"
align=
"align"
:gutter=
"10"
>
<el-row
type=
"flex"
align=
"align"
:gutter=
"10"
>
<el-col
:span=
"
3
"
>
空运订单重量上限(kg)
</el-col>
<el-col
:span=
"
6
"
>
空运订单重量上限(kg)
</el-col>
<el-col
:span=
"6"
><el-input
v-model=
"value1.airWeightLimit"
></el-input></el-col>
<el-col
:span=
"6"
><el-input
v-model=
"value1.airWeightLimit"
></el-input></el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<slot></slot>
<slot></slot>
</el-col>
</el-col>
</el-row>
</el-row>
<h1>
空运清关费
</h1>
<h1>
空运清关费
</h1>
<div
v-for=
"(item ,index) in value1
.channelPriceStepClearanceList
"
>
<div
v-for=
"(item ,index) in value1
[keyArr]
"
>
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
第
{{
index
+
1
}}
阶梯定价方案:
第
{{
index
+
1
}}
阶梯定价方案:
...
@@ -58,7 +58,11 @@ export default {
...
@@ -58,7 +58,11 @@ export default {
props
:{
props
:{
value
:{
value
:{
type
:
Object
,
type
:
Object
,
default
:()
=>
({
channelPriceStepClearanceList
:[]})
default
:()
=>
({})
},
keyArr
:{
type
:
String
,
default
:
'
channelPriceStepClearanceList
'
}
}
},
},
name
:
"
packaging-type
"
,
name
:
"
packaging-type
"
,
...
@@ -74,16 +78,14 @@ export default {
...
@@ -74,16 +78,14 @@ export default {
value1
:{
value1
:{
airWeightLimit
:
undefined
,
airWeightLimit
:
undefined
,
packagingTypes
:
undefined
,
packagingTypes
:
undefined
,
channelPriceStepClearanceList
:[],
},
},
}
}
},
},
mounted
()
{
mounted
()
{
this
.
value1
=
this
.
value
this
.
value1
=
this
.
value
console
.
log
(
this
.
value1
,
'
value1
'
)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
this
.
value1
.
channelPriceStepClearanceList
.
length
===
0
){
if
(
this
.
value1
[
this
.
keyArr
]
&&
this
.
value1
[
this
.
keyArr
]
.
length
===
0
){
this
.
addInterval
()
this
.
addInterval
()
}
}
})
})
...
@@ -100,11 +102,12 @@ export default {
...
@@ -100,11 +102,12 @@ export default {
"
startNum
"
:
''
,
"
startNum
"
:
''
,
"
weightUnit
"
:
''
"
weightUnit
"
:
''
}
}
this
.
value1
.
channelPriceStepClearanceList
.
push
(
p
)
this
.
value1
[
this
.
keyArr
]
.
push
(
p
)
this
.
$forceUpdate
();
},
},
deleteFn
(
index
){
deleteFn
(
index
){
this
.
value1
.
channelPriceStepClearanceList
.
splice
(
index
,
1
)
this
.
value1
[
this
.
keyArr
].
splice
(
index
,
1
)
this
.
$forceUpdate
();
}
}
},
},
watch
:{
watch
:{
...
...
src/views/ecw/channel/edit.vue
View file @
392adac1
...
@@ -225,6 +225,9 @@ export default {
...
@@ -225,6 +225,9 @@ export default {
if
(
this
.
$route
.
query
.
id
)
{
if
(
this
.
$route
.
query
.
id
)
{
getChannel
(
this
.
$route
.
query
.
id
).
then
((
res
)
=>
{
getChannel
(
this
.
$route
.
query
.
id
).
then
((
res
)
=>
{
this
.
$set
(
this
,
'
form
'
,
{...
res
.
data
})
this
.
$set
(
this
,
'
form
'
,
{...
res
.
data
})
if
(
!
this
.
form
.
channelPackagingList
!==
null
){
this
.
form
.
channelPackagingList
=
[];
}
this
.
form
.
attrId
=
this
.
form
.
attrId
.
split
(
'
,
'
).
map
(
i
=>
+
i
)
this
.
form
.
attrId
=
this
.
form
.
attrId
.
split
(
'
,
'
).
map
(
i
=>
+
i
)
this
.
form
.
channelPackagingList
.
forEach
(
item
=>
{
this
.
form
.
channelPackagingList
.
forEach
(
item
=>
{
item
.
packagingTypes
=
item
.
packagingTypes
.
split
(
'
,
'
)
||
[]
item
.
packagingTypes
=
item
.
packagingTypes
.
split
(
'
,
'
)
||
[]
...
@@ -268,14 +271,16 @@ export default {
...
@@ -268,14 +271,16 @@ export default {
this
.
form
.
channelPackagingList
[
index
]
=
{
airWeightLimit
:
undefined
,
packagingTypes
:[],
channelPriceStepClearanceList
:[],}
this
.
form
.
channelPackagingList
[
index
]
=
{
airWeightLimit
:
undefined
,
packagingTypes
:[],
channelPriceStepClearanceList
:[],}
}
}
item
.
channelPriceStepClearanceList
.
forEach
((
itemm
,
indexx
)
=>
{
item
.
channelPriceStepClearanceList
.
forEach
((
itemm
,
indexx
)
=>
{
let
p
=
{
"
channelId
"
:
''
,
let
p
=
{
"
channelId
"
:
''
,
"
clearancePrice
"
:
''
,
"
clearancePrice
"
:
''
,
"
clearancePriceUnit
"
:
''
,
"
clearancePriceUnit
"
:
''
,
"
clearanceVolumeUnit
"
:
''
,
"
clearanceVolumeUnit
"
:
''
,
"
endNum
"
:
''
,
"
endNum
"
:
''
,
"
packagingId
"
:
''
,
"
packagingId
"
:
''
,
"
startNum
"
:
''
,
"
startNum
"
:
''
,
"
weightUnit
"
:
''
}
"
weightUnit
"
:
''
}
if
(
!
this
.
form
.
channelPackagingList
[
index
].
channelPriceStepClearanceList
[
indexx
]){
if
(
!
this
.
form
.
channelPackagingList
[
index
].
channelPriceStepClearanceList
[
indexx
]){
this
.
form
.
channelPackagingList
[
index
].
channelPriceStepClearanceList
[
indexx
]
=
p
;
this
.
form
.
channelPackagingList
[
index
].
channelPriceStepClearanceList
[
indexx
]
=
p
;
}
}
...
...
src/views/ecw/customer/query.vue
View file @
392adac1
...
@@ -303,7 +303,7 @@
...
@@ -303,7 +303,7 @@
<
pagination
@
pagination
=
"
getInfoListOfferPage
"
:
page
.
sync
=
"
infoListOfferFrom.pageNo
"
:
limit
.
sync
=
"
infoListOfferFrom.pageSize
"
:
total
=
"
infoListOfferTotal
"
><
/pagination
>
<
pagination
@
pagination
=
"
getInfoListOfferPage
"
:
page
.
sync
=
"
infoListOfferFrom.pageNo
"
:
limit
.
sync
=
"
infoListOfferFrom.pageSize
"
:
total
=
"
infoListOfferTotal
"
><
/pagination
>
<
/el-tab-pane
>
<
/el-tab-pane
>
<
el
-
tab
-
pane
name
=
"
follow
"
:
label
=
"
$t('跟进')
"
>
<
el
-
tab
-
pane
name
=
"
follow
"
:
label
=
"
$t('跟进')
"
>
<
customer
-
follow
ref
=
"
customerFollow
"
:
id
=
"
id
"
:
customer
-
id
=
"
id
"
><
/customer-follow
>
<
customer
-
follow
customerQuery
ref
=
"
customerFollow
"
:
id
=
"
id
"
:
customer
-
id
=
"
id
"
><
/customer-follow
>
<
/el-tab-pane
>
<
/el-tab-pane
>
<
el
-
tab
-
pane
name
=
"
complain
"
:
label
=
"
$t('客户投诉')
"
>
<
el
-
tab
-
pane
name
=
"
complain
"
:
label
=
"
$t('客户投诉')
"
>
<
customer
-
complaint
ref
=
"
customerComplaint
"
:
customer
-
id
=
"
id
"
hidden
-
search
><
/customer-complaint
>
<
customer
-
complaint
ref
=
"
customerComplaint
"
:
customer
-
id
=
"
id
"
hidden
-
search
><
/customer-complaint
>
...
...
src/views/ecw/order/stocking/index.vue
View file @
392adac1
...
@@ -85,8 +85,10 @@
...
@@ -85,8 +85,10 @@
prop=
"address"
prop=
"address"
:label=
"$t('操作')"
>
:label=
"$t('操作')"
>
<
template
v-slot=
"{ row, column, $index }"
>
<
template
v-slot=
"{ row, column, $index }"
>
<el-button
v-if=
"row.packStatus == 1"
size=
"mini"
type=
"warning"
@
click=
"noNeedPack(row)"
>
{{
$t
(
'
无需打包
'
)
}}
</el-button>
<template
v-if=
"wareItemPackStatus(row.orderItemId) == 1"
>
<el-button
v-if=
"row.packStatus == 1"
size=
"mini"
type=
"primary"
@
click=
"package(row, $t('打包'))"
>
{{
$t
(
'
打包
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"warning"
@
click=
"noNeedPack(row)"
>
{{
$t
(
'
无需打包
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"package(row, $t('打包'))"
>
{{
$t
(
'
打包
'
)
}}
</el-button>
</
template
>
<el-button
v-else
size=
"mini"
type=
"primary"
@
click=
"package(row, $t('修改打包'))"
>
{{$t('修改打包')}}
</el-button>
<el-button
v-else
size=
"mini"
type=
"primary"
@
click=
"package(row, $t('修改打包'))"
>
{{$t('修改打包')}}
</el-button>
</template>
</template>
</el-table-column>
</el-table-column>
...
@@ -159,7 +161,7 @@
...
@@ -159,7 +161,7 @@
:order-item-b=
"packageWarehouseItem"
:order-item-b=
"packageWarehouseItem"
:title=
"packageTitle"
:title=
"packageTitle"
v-if=
"!!packageOrderItem"
v-if=
"!!packageOrderItem"
@
close=
"
packageOrderItem=null;packageOrderItem=null
"
@
close=
"
onPackageClose
"
></package>
></package>
</div>
</div>
</template>
</template>
...
@@ -313,13 +315,23 @@ export default {
...
@@ -313,13 +315,23 @@ export default {
},
},
// 完成备货
// 完成备货
async
handleSubmit
()
{
async
handleSubmit
()
{
// TODO 判断是否有未完成打包
let
unpackProds
=
[]
this
.
orderItemList
.
forEach
(
item
=>
{
if
(
item
.
packStatus
==
1
){
unpackProds
.
push
(
this
.
$l
(
item
,
'
prodTitle
'
))
}
})
if
(
unpackProds
.
length
){
return
this
.
$alert
(
`商品
${
unpackProds
.
join
(
'
,
'
)}
未完成打包,无法完成备货`
,
this
.
$t
(
'
提示
'
))
}
let
form
=
{...
this
.
form
}
let
form
=
{...
this
.
form
}
form
.
orderId
=
this
.
orderId
form
.
orderId
=
this
.
orderId
form
.
manualExceptionType
=
form
.
manualExceptionType
.
join
(
'
,
'
)
form
.
manualExceptionType
=
form
.
manualExceptionType
.
join
(
'
,
'
)
finishStock
(
form
).
then
(
res
=>
{
finishStock
(
form
).
then
(
res
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
))
return
this
.
$alert
(
this
.
$t
(
'
操作成功
'
))
}).
then
(()
=>
{
this
.
$tab
.
closePage
()
})
})
},
},
// 显示打包弹层
// 显示打包弹层
...
@@ -334,6 +346,11 @@ export default {
...
@@ -334,6 +346,11 @@ export default {
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
))
this
.
$message
.
success
(
this
.
$t
(
'
操作成功
'
))
})
})
},
},
onPackageClose
(){
this
.
packageOrderItem
=
null
;
this
.
packageOrderItem
=
null
;
this
.
getOrderItemList
()
}
},
},
watch
:
{
watch
:
{
/*orderSpecialNeeds(val){
/*orderSpecialNeeds(val){
...
...
src/views/ecw/product/index.vue
View file @
392adac1
...
@@ -130,8 +130,8 @@
...
@@ -130,8 +130,8 @@
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.pageNo"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"queryParams.pageNo"
:limit.sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
<!-- 对话框(添加 / 修改) -->
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"
5
50px"
append-to-body
>
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"
8
50px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
>
<el-form
v-if=
"open"
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"110px"
>
<el-form-item
:label=
"$t('商品类型')"
prop=
"typeId"
>
<el-form-item
:label=
"$t('商品类型')"
prop=
"typeId"
>
<el-select
v-model=
"form.typeId"
:placeholder=
"$t('选择商品类型')"
clearable
>
<el-select
v-model=
"form.typeId"
:placeholder=
"$t('选择商品类型')"
clearable
>
<el-option
v-for=
"types in typeList"
:key=
"types.id"
:label=
"types.titleZh"
:value=
"types.id"
/>
<el-option
v-for=
"types in typeList"
:key=
"types.id"
:label=
"types.titleZh"
:value=
"types.id"
/>
...
@@ -148,15 +148,6 @@
...
@@ -148,15 +148,6 @@
<el-form-item
:label=
"$t('商品图片')"
prop=
"img"
>
<el-form-item
:label=
"$t('商品图片')"
prop=
"img"
>
<image-upload
v-model=
"form.imgs"
/>
<image-upload
v-model=
"form.imgs"
/>
<!-- <el-col :span="8">
<el-input v-model="form.imgs" :placeholder="$t('请上传图片')" disabled />
</el-col> -->
<!-- <el-upload action="#" :http-request="requestUpload" :show-file-list="false" :before-upload="beforeUpload">
<el-button size="small">{{ $t('上传图片') }}<i class="el-icon-upload el-icon--right"></i>
</el-button>
</el-upload> -->
</el-form-item>
</el-form-item>
<el-form-item
prop=
"auditStatus"
:label=
"$t('是否审核')"
>
<el-form-item
prop=
"auditStatus"
:label=
"$t('是否审核')"
>
...
@@ -224,9 +215,6 @@
...
@@ -224,9 +215,6 @@
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('可参与优惠')"
>
<el-form-item
:label=
"$t('可参与优惠')"
>
<!-- <el-select multiple v-model="form.couponlds" size="5" style="min-width: 300px; border:1px solid #DCDFE6; border-radius:4px">-->
<!-- <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>-->
<div
style=
"width: 300px;height: 400px;border: 1px solid;overflow-y: auto"
>
<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"
:key=
"item.couponId"
>
<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"
:key=
"item.couponId"
>
<div>
<div>
...
@@ -236,12 +224,26 @@
...
@@ -236,12 +224,26 @@
</div>
</div>
</div>
</div>
</el-form-item>
</el-form-item>
<packaging-type
key-arr=
"priceStepClearanceList"
v-model=
"form"
>
<el-button
@
click=
"visible = true; open = false;"
type=
"text"
>
选择空运模板
</el-button>
</packaging-type>
<p
v-if=
"lineNum"
>
<span>
复制模板线路价格:{{lineNum}}个
</span>
<span
style=
"color: #0a84ff;cursor: pointer;"
>
查看《#选择空运商品模板名称#》路线价格
</span>
</p>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
{{$t('确定')}}
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
{{$t('确定')}}
</el-button>
<el-button
@
click=
"cancel"
>
{{$t('取消')}}
</el-button>
<el-button
@
click=
"cancel"
>
{{$t('取消')}}
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
:visible.sync=
"visible"
>
<product-dialog
@
copyLine=
"copyLine"
></product-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -261,14 +263,19 @@ import {DICT_TYPE, getDictDatas} from '@/utils/dict';
...
@@ -261,14 +263,19 @@ import {DICT_TYPE, getDictDatas} from '@/utils/dict';
import
{
AuditStatusEnum
,
CommonStatusEnum
}
from
'
@/utils/constants
'
;
import
{
AuditStatusEnum
,
CommonStatusEnum
}
from
'
@/utils/constants
'
;
import
{
uploadFile
}
from
"
@/api/infra/file
"
;
import
{
uploadFile
}
from
"
@/api/infra/file
"
;
import
ImageUpload
from
'
@/components/ImageUpload
'
import
ImageUpload
from
'
@/components/ImageUpload
'
import
PackagingType
from
"
@/views/ecw/channel/componrnts/packaging-type.vue
"
;
import
ProductDialog
from
"
@/views/ecw/product/product-dialog.vue
"
;
export
default
{
export
default
{
name
:
"
EcwProductIndex
"
,
name
:
"
EcwProductIndex
"
,
components
:
{
components
:
{
ProductDialog
,
PackagingType
,
ImageUpload
ImageUpload
},
},
data
()
{
data
()
{
return
{
return
{
visible
:
false
,
// 选中数组
// 选中数组
ids
:
[],
ids
:
[],
// 非单个禁用
// 非单个禁用
...
@@ -313,7 +320,9 @@ export default {
...
@@ -313,7 +320,9 @@ export default {
status
:
null
,
status
:
null
,
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{
},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
typeId
:
[{
required
:
true
,
message
:
this
.
$t
(
"
商品类型不能为空
"
),
trigger
:
"
change
"
}],
typeId
:
[{
required
:
true
,
message
:
this
.
$t
(
"
商品类型不能为空
"
),
trigger
:
"
change
"
}],
...
@@ -335,7 +344,8 @@ export default {
...
@@ -335,7 +344,8 @@ export default {
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
:[],
preferentialList
:[],
exceptionProductId
:
0
//新增商品异常传的id
exceptionProductId
:
0
,
//新增商品异常传的id
lineNum
:
0
};
};
},
},
...
@@ -403,6 +413,51 @@ export default {
...
@@ -403,6 +413,51 @@ export default {
},
},
methods
:
{
methods
:
{
copyLine
(
val
,
bol
){
let
copy
=
()
=>
{
this
.
form
.
airWeightLimit
=
val
.
airWeightLimit
;
val
.
priceStepClearanceList
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
form
.
priceStepClearanceList
[
index
]){
this
.
form
.
priceStepClearanceList
[
index
].
clearancePrice
=
item
.
clearancePrice
this
.
form
.
priceStepClearanceList
[
index
].
clearancePriceUnit
=
item
.
clearancePriceUnit
this
.
form
.
priceStepClearanceList
[
index
].
clearanceVolumeUnit
=
item
.
clearanceVolumeUnit
}
else
{
let
p
=
{
"
channelId
"
:
''
,
"
clearancePrice
"
:
item
.
clearancePrice
,
"
clearancePriceUnit
"
:
item
.
clearancePriceUnit
,
"
clearanceVolumeUnit
"
:
item
.
clearanceVolumeUnit
,
"
endNum
"
:
''
,
"
packagingId
"
:
''
,
"
startNum
"
:
''
,
"
weightUnit
"
:
''
}
this
.
form
.
priceStepClearanceList
.
push
(
p
)
}
})
}
this
.
visible
=
false
;
if
(
bol
){
this
.
$confirm
(
`请确认是否要将#
${
this
.
$l
(
val
,
'
title
'
)}
#的所有路线价格复制到当前商品#
${
this
.
$l
(
this
.
form
,
'
title
'
)}
#中?`
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
this
.
form
.
priceLineCount
=
val
.
id
;
this
.
lineNum
=
val
.
priceStepClearanceCount
;
this
.
form
.
priceLineCount
=
val
.
id
;
this
.
isCopyProductPriceTemplate
=
true
;
copy
()
this
.
open
=
true
;
}).
catch
(()
=>
{
this
.
open
=
true
;
});
}
else
{
this
.
open
=
true
;
copy
()
}
this
.
$forceUpdate
()
},
/** 获取产品属性列表 */
/** 获取产品属性列表 */
getAttrList
()
{
getAttrList
()
{
getProductAttrList
().
then
(
response
=>
{
getProductAttrList
().
then
(
response
=>
{
...
@@ -477,7 +532,12 @@ export default {
...
@@ -477,7 +532,12 @@ export default {
requirements
:
0
,
requirements
:
0
,
needBook
:
0
,
needBook
:
0
,
couponIds
:[],
couponIds
:[],
airWeightLimit
:
undefined
,
priceStepClearanceList
:[],
isCopyProductPriceTemplate
:
false
,
productTemplateId
:
undefined
,
};
};
this
.
lineNum
=
0
this
.
resetForm
(
"
form
"
);
this
.
resetForm
(
"
form
"
);
},
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
...
@@ -511,6 +571,7 @@ export default {
...
@@ -511,6 +571,7 @@ export default {
const
id
=
row
.
id
;
const
id
=
row
.
id
;
getProduct
(
id
).
then
(
response
=>
{
getProduct
(
id
).
then
(
response
=>
{
this
.
form
=
{...
response
.
data
,
couponIds
:[]};
this
.
form
=
{...
response
.
data
,
couponIds
:[]};
this
.
form
.
channelPriceStepClearanceList
=
this
.
form
.
priceStepClearanceList
;
let
attrArray
=
this
.
form
.
attrId
?
this
.
form
.
attrId
.
split
(
'
,
'
):[];
let
attrArray
=
this
.
form
.
attrId
?
this
.
form
.
attrId
.
split
(
'
,
'
):[];
for
(
let
index
in
attrArray
)
{
for
(
let
index
in
attrArray
)
{
let
value
=
attrArray
[
index
];
let
value
=
attrArray
[
index
];
...
@@ -540,9 +601,14 @@ export default {
...
@@ -540,9 +601,14 @@ 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
)
{
this
.
form
.
priceStepClearanceList
.
forEach
(
i
=>
{
i
.
productId
=
this
.
form
.
id
})
if
(
this
.
exceptionProductId
){
if
(
this
.
exceptionProductId
){
this
.
form
.
productId
=
this
.
exceptionProductId
this
.
form
.
productId
=
this
.
exceptionProductId
this
.
form
.
status
=
0
this
.
form
.
status
=
0
}
else
{
this
.
form
.
productId
=
this
.
form
.
id
}
}
updateProduct
(
this
.
form
).
then
(
response
=>
{
updateProduct
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
));
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
));
...
...
src/views/ecw/product/product-dialog.vue
0 → 100644
View file @
392adac1
This diff is collapsed.
Click to expand it.
src/views/ecw/productPrice/index.vue
View file @
392adac1
...
@@ -169,6 +169,7 @@
...
@@ -169,6 +169,7 @@
{{
$t
(
'
全包价
'
)
}}
:{{
getCurrencySymbol
(
scope
.
row
.
priceStepList
[
0
].
allPriceUnit
)
+
scope
.
row
.
priceStepList
[
0
].
allPrice
}}
&
nbsp
;
{{
$t
(
'
全包价
'
)
}}
:{{
getCurrencySymbol
(
scope
.
row
.
priceStepList
[
0
].
allPriceUnit
)
+
scope
.
row
.
priceStepList
[
0
].
allPrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
scope
.
row
.
priceStepList
[
0
].
allPriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
priceStepList
[
0
].
allVolumeUnit
)
}}
{{
getCurrencyTitle
(
scope
.
row
.
priceStepList
[
0
].
allPriceUnit
)
+
'
/
'
+
getUnitTitle
(
scope
.
row
.
priceStepList
[
0
].
allVolumeUnit
)
}}
<
/div
>
<
/div
>
<
el
-
button
type
=
"
text
"
@
click
=
"
showMoreStepPriceItem=scope.row
"
>
{{
$t
(
'
查看更多
'
)
}}
<
/el-button
>
<
/template
>
<
/template
>
<
template
v
-
else
>
<
template
v
-
else
>
<
div
v
-
if
=
"
scope.row.priceType == 0
"
>
<
div
v
-
if
=
"
scope.row.priceType == 0
"
>
...
@@ -238,6 +239,60 @@
...
@@ -238,6 +239,60 @@
<
pagination
v
-
show
=
"
total > 0
"
:
total
=
"
total
"
:
page
.
sync
=
"
queryParams.pageNo
"
:
limit
.
sync
=
"
queryParams.pageSize
"
<
pagination
v
-
show
=
"
total > 0
"
:
total
=
"
total
"
:
page
.
sync
=
"
queryParams.pageNo
"
:
limit
.
sync
=
"
queryParams.pageSize
"
@
pagination
=
"
getList
"
/>
@
pagination
=
"
getList
"
/>
<
el
-
dialog
:
visible
=
"
!!showMoreStepPriceItem
"
:
before
-
close
=
"
closeMoreStepPrice
"
:
title
=
"
$t('查看阶梯价')
"
>
<
el
-
row
:
gutter
=
"
20
"
v
-
if
=
"
showMoreStepPriceItem
"
>
<
el
-
col
:
span
=
"
12
"
>
<
div
v
-
for
=
"
(item, index) in showMoreStepPriceItem.priceStepList
"
>
<
div
class
=
"
page-title
"
>
{{
$t
(
"
第{no
}
阶梯({start
}
~{end
}
{weightUnit
}
)
"
,
{
no
:
index
+
1
,
start
:
item
.
startNum
,
end
:
item
.
endNum
,
weightUnit
:
getUnitTitle
(
item
.
weightUnit
),
}
)
}}
<
/div
>
<
div
v
-
if
=
"
showMoreStepPriceItem.priceType == 0
"
>
{{
$t
(
'
运费
'
)
}}
:{{
getCurrencySymbol
(
item
.
transportPriceUnit
)
+
item
.
transportPrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
item
.
transportPriceUnit
)
+
'
/
'
+
getUnitTitle
(
item
.
transportVolumeUnit
)
}}
<
br
/>
<
template
v
-
if
=
"
[3,4].indexOf(+showMoreStepPriceItem.warehouseLineDO.transportType) > -1
"
>
<!--
空运的清关费单独显示
-->
<
/template
>
<
template
v
-
else
>
<!--
海运的清关费
-->
{{
$t
(
'
清关费
'
)
}}
:{{
getCurrencySymbol
(
item
.
clearancePriceUnit
)
+
item
.
clearancePrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
item
.
clearancePriceUnit
)
+
'
/
'
+
getUnitTitle
(
item
.
clearanceVolumeUnit
)
}}
<
/template
>
<
/div
>
<
div
v
-
if
=
"
showMoreStepPriceItem.priceType == 1
"
>
{{
$t
(
'
全包价
'
)
}}
:{{
getCurrencySymbol
(
item
.
allPriceUnit
)
+
item
.
allPrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
item
.
allPriceUnit
)
+
'
/
'
+
getUnitTitle
(
item
.
allVolumeUnit
)
}}
<
/div
>
<
/div
>
<
/el-col
>
<!--
空运的清关费单独显示
-->
<
el
-
col
:
span
=
"
12
"
v
-
if
=
"
[3,4].indexOf(+showMoreStepPriceItem.warehouseLineDO.transportType) > -1
"
>
<
template
v
-
if
=
"
showMoreStepPriceItem.clearPriceStepList.length
"
>
<
div
v
-
for
=
"
(item, index) in showMoreStepPriceItem.clearPriceStepList
"
>
<
div
class
=
"
page-title
"
>
{{
$t
(
"
第{no
}
阶梯({start
}
~{end
}
{weightUnit
}
)
"
,
{
no
:
index
+
1
,
start
:
item
.
startNum
,
end
:
item
.
endNum
,
weightUnit
:
getUnitTitle
(
item
.
weightUnit
),
}
)
}}
<
/div
>
{{
$t
(
'
清关费
'
)
}}
:{{
getCurrencySymbol
(
item
.
clearancePriceUnit
)
+
item
.
clearancePrice
}}
&
nbsp
;
{{
getCurrencyTitle
(
item
.
clearancePriceUnit
)
+
'
/
'
+
getUnitTitle
(
item
.
clearanceVolumeUnit
)
}}
<
/div
>
<
/template
>
<
template
v
-
else
>
{{
$t
(
'
暂无清关费设置
'
)
}}
<
/template
>
<
/el-col
>
<
/el-row
>
<
/el-dialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -296,9 +351,6 @@ export default {
...
@@ -296,9 +351,6 @@ export default {
routeParams
:{
}
,
//路线搜索条件
routeParams
:{
}
,
//路线搜索条件
isUpdate
:
false
,
//更新操作
isUpdate
:
false
,
//更新操作
//货柜位置
locationList
:[],
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 导出遮罩层
// 导出遮罩层
...
@@ -353,7 +405,8 @@ export default {
...
@@ -353,7 +405,8 @@ export default {
/* advanceStatusDictDatas: getDictDatas(DICT_TYPE.ADVANCE_STATUS), */
/* advanceStatusDictDatas: getDictDatas(DICT_TYPE.ADVANCE_STATUS), */
AuditStatusEnum
:
AuditStatusEnum
,
AuditStatusEnum
:
AuditStatusEnum
,
locationList
:
getDictDatas
(
DICT_TYPE
.
ECW_CONTAINER_LOCATION
),
locationList
:
getDictDatas
(
DICT_TYPE
.
ECW_CONTAINER_LOCATION
),
// 查看更多阶梯价
showMoreStepPriceItem
:
null
}
;
}
;
}
,
}
,
...
@@ -824,6 +877,10 @@ export default {
...
@@ -824,6 +877,10 @@ export default {
copyTemplate
(
row
){
copyTemplate
(
row
){
// 跳转到批量设置页面,并填充数据
// 跳转到批量设置页面,并填充数据
this
.
$router
.
push
(
`../../lineProject/batch-edit-${row.transportType == 3 || row.transportType == 4 ? 'air' : 'sea'
}
?templateId=${row.id
}
`
)
this
.
$router
.
push
(
`../../lineProject/batch-edit-${row.transportType == 3 || row.transportType == 4 ? 'air' : 'sea'
}
?templateId=${row.id
}
`
)
}
,
// 关闭更多阶梯价格窗口
closeMoreStepPrice
(){
this
.
showMoreStepPriceItem
=
null
}
}
}
}
...
...
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