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
c0d6b3d9
Commit
c0d6b3d9
authored
Oct 13, 2023
by
zhoutong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into dev
parents
d83161e9
16dbb0c8
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
43 additions
and
31 deletions
+43
-31
box.js
src/api/ecw/box.js
+0
-1
product.js
src/api/ecw/product.js
+1
-2
productPrice.js
src/api/ecw/productPrice.js
+0
-1
index.vue
src/components/ProductsSelector/index.vue
+9
-2
selfNoReport.vue
src/views/ecw/financial/selfNoReport.vue
+2
-1
detail.vue
src/views/ecw/order/detail.vue
+1
-1
index.vue
src/views/ecw/product/index.vue
+2
-1
batchEdit.vue
src/views/ecw/productPrice/batchEdit.vue
+17
-14
batchIncrease.vue
src/views/ecw/productPrice/batchIncrease.vue
+3
-2
edit.vue
src/views/ecw/productPrice/edit.vue
+5
-4
index.vue
src/views/ecw/productPrice/index.vue
+3
-2
No files found.
src/api/ecw/box.js
View file @
c0d6b3d9
...
...
@@ -389,7 +389,6 @@ export function exportSettlementExcel(params) {
return
request
({
url
:
"
/shipment/box/export-shipment-summary
"
,
method
:
"
get
"
,
responseType
:
"
blob
"
,
params
,
});
}
src/api/ecw/product.js
View file @
c0d6b3d9
...
...
@@ -66,8 +66,7 @@ export function exportProductExcel(query) {
return
request
({
url
:
'
/ecw/product/export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
params
:
query
})
}
...
...
src/api/ecw/productPrice.js
View file @
c0d6b3d9
...
...
@@ -50,7 +50,6 @@ export function exportProductPriceExcel(query) {
method
:
'
get
'
,
timeout
:
3
*
60
*
1000
,
params
:
query
,
responseType
:
'
blob
'
})
}
...
...
src/components/ProductsSelector/index.vue
View file @
c0d6b3d9
...
...
@@ -27,8 +27,10 @@
</div>
<div
class=
"flex-1 ml-10"
>
<el-card
style=
"height:100%"
>
<div
slot=
"header"
class=
"header"
>
{{
$t
(
'
已选{cnt
}
个产品
'
,
{
cnt
:
isAllProduct
?
total
:
choosedList
.
length
}
)
}}
<div
slot=
"header"
class=
"header flex"
>
<div
class=
"flex-1 flex items-center"
>
{{
$t
(
'
已选{cnt
}
个产品
'
,
{
cnt
:
isAllProduct
?
total
:
choosedList
.
length
}
)
}}
<
/div
>
<
el
-
button
v
-
if
=
"
choosedList.length
"
type
=
"
text
"
@
click
=
"
clearAll
"
>
{{
$t
(
'
全部清除
'
)
}}
<
/el-button
>
<
/div
>
<
div
class
=
"
list
"
>
<
div
class
=
"
item
"
v
-
for
=
"
(choosed) in choosedList
"
:
key
=
"
choosed.id
"
:
data
-
data
=
"
JSON.stringify(choosed)
"
>
...
...
@@ -189,6 +191,11 @@ export default {
this
.
choosedList
.
forEach
((
choosed
,
index
)
=>
{
if
(
choosed
.
id
==
item
.
id
)
this
.
choosedList
.
splice
(
index
,
1
)
}
)
}
,
// 清除全部
async
clearAll
()
{
await
this
.
$confirm
(
this
.
$t
(
'
确定要全部清除么?
'
))
this
.
choosedList
=
[]
}
}
}
...
...
src/views/ecw/financial/selfNoReport.vue
View file @
c0d6b3d9
...
...
@@ -352,7 +352,8 @@ export default {
let
params
=
{...
this
.
queryParams
}
this
.
addBeginAndEndTime
(
params
,
this
.
dateFilter
,
"
JsDate
"
,
false
);
exportSettlementExcel
(
params
).
then
(
res
=>
{
this
.
$download
.
excel
(
res
,
'
shipment-summary.xls
'
);
//this.$download.excel(res, 'shipment-summary.xls');
this
.
$message
.
success
(
this
.
$t
(
'
已加入导出队列,请稍后在下载日志中下载
'
))
}).
finally
(()
=>
{
this
.
exporting
=
false
})
...
...
src/views/ecw/order/detail.vue
View file @
c0d6b3d9
...
...
@@ -238,7 +238,7 @@
</el-tab-pane>
<el-tab-pane
:label=
"$t('订单动态')"
name=
"second"
>
<el-timeline
v-if=
"order.orderTimeVOList && order.orderTimeVOList.length"
:reverse=
"true"
>
<el-timeline-item
v-for=
"(activity, index) in order.orderTimeVOList"
:key=
"index"
:timestamp=
"
activity.timestamp
"
>
<el-timeline-item
v-for=
"(activity, index) in order.orderTimeVOList"
:key=
"index"
:timestamp=
"
parseTime(activity.businessTime)
"
>
{{ $l(activity, 'title') }}
<div>
{{$l(activity, 'remarks')}}
</div>
</el-timeline-item>
...
...
src/views/ecw/product/index.vue
View file @
c0d6b3d9
...
...
@@ -671,7 +671,8 @@ export default {
this
.
exportLoading
=
true
;
return
exportProductExcel
(
params
);
}).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
'
商品.xlsx
'
);
// this.$download.excel(response, '商品.xlsx');
this
.
$message
.
success
(
this
.
$t
(
'
已加入导出队列,请稍后在下载日志中下载
'
))
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{
});
},
...
...
src/views/ecw/productPrice/batchEdit.vue
View file @
c0d6b3d9
...
...
@@ -41,7 +41,7 @@
-
<
el
-
input
v
-
model
=
"
item.endNum
"
type
=
"
number
"
placeholder
=
""
class
=
"
w100
"
><
/el-input
>
/
<
selector
:
disabled
=
"
index > 0
"
@
input
=
"
syncAllUnit
"
v
-
model
=
"
for
m.weightUnit
"
:
options
=
"
unitList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w100
"
/>
<
selector
:
disabled
=
"
index > 0
"
@
input
=
"
syncAllUnit
"
v
-
model
=
"
ite
m.weightUnit
"
:
options
=
"
unitList
"
:
label
-
field
=
"
$l('title')
"
value
-
field
=
"
id
"
defaultable2
class
=
"
w100
"
/>
<
/el-form-item
>
<
el
-
form
-
item
:
label
=
"
$t('默认运费')
"
v
-
if
=
"
form.priceType != 1
"
>
<
inputor
default2
=
"
0
"
v
-
model
.
number
=
"
item.transportPrice
"
type
=
"
number
"
:
placeholder
=
"
$t('整数或者两位小数')
"
class
=
"
w100 mr10
"
/>
...
...
@@ -178,7 +178,7 @@
<
/template
>
<
el
-
form
-
item
:
label
=
"
$t('是否单询')
"
prop
=
"
inquiry
"
>
<
dict
-
selector
:
type
=
"
DICT_TYPE.NEED_ORDER_INQUIRY
"
v
-
model
=
"
form.needOrderInquiry
"
form
-
type
=
"
radio
"
><
/dict-selector
>
<
dict
-
selector
:
type
=
"
DICT_TYPE.NEED_ORDER_INQUIRY
"
v
-
model
=
"
form.needOrderInquiry
"
form
-
type
=
"
radio
"
formatter
=
"
number
"
><
/dict-selector
>
<
/el-form-item
>
<
/el-card
>
<
/el-form
>
...
...
@@ -298,10 +298,16 @@ export default {
getCurrencyList
().
then
(
res
=>
this
.
currencyList
=
res
.
data
)
getUnitList
().
then
(
res
=>
this
.
unitList
=
res
.
data
)
// 如果是复制,则获取数据并填充,先复制,然后填充特需,避免数据的特需不全导致部分不显示
if
(
this
.
$route
.
query
.
templateId
){
await
this
.
getTemplateDetail
(
this
.
$route
.
query
.
templateId
)
}
this
.
$nextTick
(
async
()
=>
{
// 如果是空运,阶梯价格默认为1
if
(
this
.
type
==
'
air
'
){
this
.
$set
(
this
.
form
,
'
stepPrice
'
,
1
)
}
// 如果是复制,则获取数据并填充,先复制,然后填充特需,避免数据的特需不全导致部分不显示
if
(
this
.
$route
.
query
.
templateId
){
await
this
.
getTemplateDetail
(
this
.
$route
.
query
.
templateId
)
}
}
)
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ECW_SPECIAL_REQ_FOR_LINE_PRODUCTS
).
forEach
(
item
=>
{
// 没有的才push,已有的可能是从复制模板携带过来的数据
...
...
@@ -318,12 +324,7 @@ export default {
}
}
)
this
.
$nextTick
(()
=>
{
// 如果是空运,阶梯价格默认为1
if
(
this
.
type
==
'
air
'
){
this
.
$set
(
this
.
form
,
'
stepPrice
'
,
1
)
}
}
)
}
,
methods
:
{
// 获取模板数据(复制的源路线价格信息)
...
...
@@ -355,7 +356,8 @@ export default {
minWeight
,
minWeightUnit
,
needOrderInquiry
,
needBook
needBook
,
needPay
}
=
res
.
data
const
data
=
{
...
...
@@ -375,7 +377,8 @@ export default {
minWeight
,
minWeightUnit
,
needOrderInquiry
,
needBook
needBook
,
needPay
}
// 海运需要填充货柜位置和订单方数上限
if
(
this
.
type
==
'
sea
'
){
...
...
src/views/ecw/productPrice/batchIncrease.vue
View file @
c0d6b3d9
...
...
@@ -271,8 +271,9 @@ export default {
product
:
this
.
isAllProduct
?
this
.
$refs
.
productSelector
.
allTotal
:
this
.
form
.
productIdList
.
length
}))
this
.
loading
=
true
batchAddPrice
(
data
).
then
(
response
=>
{
this
.
$alert
(
this
.
$t
(
"
操作成功
"
));
batchAddPrice
(
data
).
then
(
async
(
response
)
=>
{
await
this
.
$alert
(
this
.
$t
(
"
操作成功
"
));
this
.
$store
.
dispatch
(
"
tagsView/delCurrentView
"
)
})
.
finally
(
res
=>
{
this
.
loading
=
false
...
...
src/views/ecw/productPrice/edit.vue
View file @
c0d6b3d9
...
...
@@ -93,7 +93,7 @@
<div
v-for=
"(item, index) in form.priceStepList"
:key=
"index"
>
<div
style=
"font-size:14px; margin:10px 0"
>
{{
$t
(
'
第{index
}
阶梯定价方案
'
,
{
index
:
index
+
1
}
)
}}
:
<
template
v
-
if
=
"
index == form.priceStepList.length - 1
"
>
<
template
v
-
if
=
"
index == form.priceStepList.length - 1
&& !readonly
"
>
<
el
-
link
type
=
"
primary
"
@
click
.
native
=
"
form.priceStepList.push({
}
)
"
>
{{
$t
(
'
添加区间
'
)
}}
<
/el-link
>
<
el
-
divider
direction
=
"
vertical
"
><
/el-divider
>
<
el
-
link
type
=
"
danger
"
@
click
.
native
=
"
form.priceStepList.splice(index, 1)
"
>
{{
$t
(
'
删除
'
)
}}
<
/el-link
>
...
...
@@ -230,11 +230,11 @@
<
/el-col
>
<
el
-
col
:
span
=
"
12
"
v
-
else
-
if
=
"
readonly && type === 'air'
"
>
<!--
商品清关费
-->
<
h2
>
商品清关费价格
<
/h2
>
<
h2
>
{{
$t
(
'
商品清关费价格
'
)
}}
<
/h2
>
<
packaging
-
type
v
-
if
=
"
product && product.priceStepClearanceList && product.priceStepClearanceList.length
"
:
value
=
"
product
"
key
-
arr
=
"
priceStepClearanceList
"
readonly
/>
<
div
v
-
else
>
未设置清关费
{{
$t
(
'
未设置清关费
'
)
}}
<
/div
>
<
/el-col
>
<
/el-row
>
...
...
@@ -312,7 +312,8 @@
运费:
{{
item
.
transportPrice
}}
{{
currencyMap
[
item
.
transportPriceUnit
]
}}
/
{{
unitMap
[
item
.
transportVolumeUnit
]
}}
<
/div
>
<
div
:
key
=
"
item.specialDictType + '_clearance'
"
class
=
"
pl-10
"
>
<!--
空运没有清关费,
不需要显示
-->
<
div
v
-
if
=
"
type != 'air'
"
:
key
=
"
item.specialDictType + '_clearance'
"
class
=
"
pl-10
"
>
清关费:
{{
item
.
clearancePrice
}}
{{
currencyMap
[
item
.
clearancePriceUnit
]
}}
/
{{
unitMap
[
item
.
clearanceVolumeUnit
]
}}
<
/div
>
...
...
src/views/ecw/productPrice/index.vue
View file @
c0d6b3d9
...
...
@@ -548,7 +548,7 @@ export default {
//
}
// 价格列表 跟 商品的价格列表,有时候商品价格列表的路由变动会导致价格列表也执行此处代码,所以做一个判断排除
// https://zentao.test.jdshangmen.com/bug-view-4928.html
if
(
this
.
$route
.
path
!=
this
.
entryPath
)
return
if
(
this
.
$route
.
path
!=
this
.
entryPath
)
return
let
productId
=
this
.
product
?.
id
if
(
this
.
$route
.
name
===
'
ProductPrice
'
){
...
...
@@ -847,8 +847,9 @@ export default {
this
.
exportLoading
=
true
;
return
exportProductPriceExcel
(
params
);
}
).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
'
路线价格.xlsx
'
);
//
this.$download.excel(response, '路线价格.xlsx');
this
.
exportLoading
=
false
;
this
.
$message
.
success
(
this
.
$t
(
'
已加入导出队列,请稍后在下载日志中下载
'
))
}
).
catch
(()
=>
{
this
.
exportLoading
=
false
;
}
);
...
...
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