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
6d5c8ddf
Commit
6d5c8ddf
authored
Nov 30, 2022
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
9bac88d4
c92c8d02
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
162 additions
and
41 deletions
+162
-41
ueditor.all.min.js
public/static/plugins/ueditor/ueditor.all.min.js
+2
-2
index.vue
src/components/FileUpload/index.vue
+1
-1
index.vue
src/components/RoutersSelector/index.vue
+4
-4
index.vue
src/components/Ueditor/index.vue
+1
-1
indexSea.vue
src/views/ecw/box/indexSea.vue
+1
-1
indexSeaAir.vue
src/views/ecw/box/indexSeaAir.vue
+1
-1
index.vue
src/views/ecw/box/ladingBill/index.vue
+1
-0
makeLadingBill.vue
src/views/ecw/box/ladingBill/makeLadingBill.vue
+1
-1
edit.vue
src/views/ecw/coupon/edit.vue
+98
-17
query.vue
src/views/ecw/customer/query.vue
+2
-3
detail.vue
src/views/ecw/order/detail.vue
+24
-1
edit.vue
src/views/ecw/order/edit.vue
+4
-0
index.vue
src/views/ecw/order/index.vue
+15
-5
Commission.vue
src/views/ecw/order/special/Commission.vue
+4
-1
index.vue
src/views/ecw/warehouse/index.vue
+3
-3
No files found.
public/static/plugins/ueditor/ueditor.all.min.js
View file @
6d5c8ddf
...
...
@@ -19985,7 +19985,7 @@ UE.plugins['table'] = function () {
"averagedistributerow":1
};
me.ready(function () {
utils.cssRule('table',
/*
utils.cssRule('table',
//选中的td上的样式
'.selectTdClass{background-color:#edf5fa !important}' +
'table.noBorderTable td,table.noBorderTable th,table.noBorderTable caption{border:1px dashed #ddd !important}' +
...
...
@@ -19996,7 +19996,7 @@ UE.plugins['table'] = function () {
'th{border-top:1px solid #BBB;background-color:#F7F7F7;}' +
'table tr.firstRow th{border-top-width:2px;}' +
'.ue-table-interlace-color-single{ background-color: #fcfcfc; } .ue-table-interlace-color-double{ background-color: #f7faff; }' +
'td p{margin:0;padding:0;}', me.document);
'td p{margin:0;padding:0;}', me.document);
*/
var tableCopyList, isFullCol, isFullRow;
//注册del/backspace事件
src/components/FileUpload/index.vue
View file @
6d5c8ddf
...
...
@@ -117,7 +117,7 @@ export default {
if
(
this
.
fileType
)
{
let
fileExtension
=
""
;
if
(
file
.
name
.
lastIndexOf
(
"
.
"
)
>
-
1
)
{
fileExtension
=
file
.
name
.
slice
(
file
.
name
.
lastIndexOf
(
"
.
"
)
+
1
);
fileExtension
=
file
.
name
.
slice
(
file
.
name
.
lastIndexOf
(
"
.
"
)
+
1
)
.
toLowerCase
()
;
}
const
isTypeOk
=
this
.
fileType
.
some
((
type
)
=>
{
if
(
file
.
type
.
indexOf
(
type
)
>
-
1
)
return
true
;
...
...
src/components/RoutersSelector/index.vue
View file @
6d5c8ddf
...
...
@@ -213,10 +213,10 @@ export default {
methods
:{
changeOption
(){
if
(
!
this
.
option
)
return
this
.
importCity
=
+
this
.
option
.
importCity
this
.
exportCity
=
+
this
.
option
.
exportCity
this
.
transportType
=
this
.
option
.
transportId
this
.
channelId
=
+
this
.
option
.
channelId
this
.
importCity
=
+
this
.
option
.
importCity
||
null
this
.
exportCity
=
+
this
.
option
.
exportCity
||
null
this
.
transportType
=
this
.
option
.
transportId
||
null
this
.
channelId
=
+
this
.
option
.
channelId
||
null
},
// 全选、全不选 某个运输方式所有线路
toggleGroupChecker
(
index
,
selected
){
...
...
src/components/Ueditor/index.vue
View file @
6d5c8ddf
...
...
@@ -4,7 +4,7 @@
id=
"editor"
v-model=
"valueSync"
:config=
"ueditorConfig"
style=
"line-height: 20px;
max-width: 600px;
"
style=
"line-height: 20px;"
></vue-ueditor-wrap>
</div>
</
template
>
...
...
src/views/ecw/box/indexSea.vue
View file @
6d5c8ddf
...
...
@@ -124,7 +124,7 @@
<el-dropdown-item
command=
"error"
>
{{
$t
(
'
异常登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"cost"
>
{{
$t
(
'
费用登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"delete"
>
{{
$t
(
'
删除
'
)
}}
</el-dropdown-item>
<el-dropdown-item
:disabled=
"scope.row.ldStatus
<4
2
"
command=
"editLadingBill"
>
{{
$t
(
'
编辑提货单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
:disabled=
"scope.row.ldStatus
<4
6
"
command=
"editLadingBill"
>
{{
$t
(
'
编辑提货单
'
)
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-dropdown
trigger=
"click"
@
command=
"(command)=>handleCommand(scope.row, command)"
>
...
...
src/views/ecw/box/indexSeaAir.vue
View file @
6d5c8ddf
...
...
@@ -226,7 +226,7 @@
<el-dropdown-item
command=
"error"
>
{{
$t
(
'
异常登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"cost"
>
{{
$t
(
'
费用登记
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"delete"
>
{{
$t
(
'
删除
'
)
}}
</el-dropdown-item>
<el-dropdown-item
:disabled=
"scope.row.ldStatus
<4
2
"
command=
"editLadingBill"
>
{{
$t
(
'
编辑提货单
'
)
}}
</el-dropdown-item>
<el-dropdown-item
:disabled=
"scope.row.ldStatus
<4
6
"
command=
"editLadingBill"
>
{{
$t
(
'
编辑提货单
'
)
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-dropdown
trigger=
"click"
@
command=
"(command)=>handleCommand(scope.row, command)"
>
...
...
src/views/ecw/box/ladingBill/index.vue
View file @
6d5c8ddf
...
...
@@ -64,6 +64,7 @@
</
template
>
<
template
v-if=
"scope.row.status === 3"
>
{{
$t
(
'
审核拒绝
'
)
}}
<el-button
type=
"text"
size=
"small"
@
click=
"handleCommand('queryBill',scope.row)"
>
{{
$t
(
'
重新制作
'
)
}}
</el-button>
</
template
>
</template>
</el-table-column>
...
...
src/views/ecw/box/ladingBill/makeLadingBill.vue
View file @
6d5c8ddf
...
...
@@ -24,7 +24,7 @@
</div>
</el-row>
<el-dialog
:title=
"dialogCfg.title"
:visible.sync=
"visible"
width=
"
85
0px"
append-to-body
class=
"shippingSea-dialog"
>
<el-dialog
:title=
"dialogCfg.title"
:visible.sync=
"visible"
width=
"
100
0px"
append-to-body
class=
"shippingSea-dialog"
>
<previewBill
v-if=
"visible"
:contentHtml=
"billContent"
:currRow=
"currRow"
:type=
"dialogCfg.type"
/>
</el-dialog>
</el-row>
...
...
src/views/ecw/coupon/edit.vue
View file @
6d5c8ddf
...
...
@@ -43,10 +43,10 @@
<!--1:优惠卷 2:金额-满减 3:方数-满减 4 折扣 5优惠 6 特价 7区间价-->
<el-form-item
:label=
"$t('优惠券金额')"
v-if=
"form.type == 1"
>
<div
class=
"fee-item"
>
<el-input
v-model=
"form.reduceAmount"
style=
"width:100px"
/>
<el-input
v-model=
"form.reduceAmount"
@
keyup.native=
"checkPositive(form, 'reduceAmount')"
style=
"width:100px"
/>
<selector
v-model=
"form.reduceCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<span>
{{
$t
(
'
满
'
)
}}
</span>
<el-input
type=
"number"
v-model=
"form.cashCondition"
style=
"width:100px"
/>
<el-input
type=
"number"
v-model=
"form.cashCondition"
@
keyup.native=
"checkPositive(form, 'cashCondition')"
style=
"width:100px"
/>
<span>
{{
$t
(
'
使用
'
)
}}
</span>
<span
style=
"color:red"
>
{{
$t
(
'
注意:留空则表示不受满金额限制
'
)
}}
</span>
</div>
...
...
@@ -57,31 +57,31 @@
<div
class=
"fee-item"
v-for=
"(item, index) in fee[1]"
:key=
"index"
>
<template
v-if=
"[1,2,3,4,5].indexOf(form.type) > -1"
>
{{
$t
(
'
满
'
)
}}
<el-input
v-model=
"item.fullAmount"
type=
"number
"
style=
"width:100px"
/>
<el-input
v-model=
"item.fullAmount"
@
keyup.native=
"checkPositive(item, 'fullAmount')
"
style=
"width:100px"
/>
<!--
<el-select
v-model=
"item.fullCurrencyId"
style=
"width:100px"
>
<el-option
v-for=
"item in currencyList"
:key=
"item.id"
:label=
"item.titleZh"
:value=
"item.id"
/>
</el-select>
-->
<selector
v-if=
"[4,5].indexOf(form.type) > -1"
v-model=
"item.fullCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"form.type == 2"
v-model=
"item.combUnit"
:options=
"combUnitList"
label-field=
"label"
value-field=
"value"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"form.type == 2"
v-model=
"item.combUnit"
@
input=
"checkReduceCurrency(item)"
:options=
"combUnitList"
label-field=
"label"
value-field=
"value"
defaultable
style=
"width:100px"
/>
<span
v-if=
"[2].indexOf(form.type) > -1"
>
{{
$t
(
'
减
'
)
}}
</span>
<span
v-if=
"[4].indexOf(form.type) > -1"
>
{{
$t
(
'
折扣率
'
)
}}
</span>
<span
v-if=
"[5].indexOf(form.type) > -1"
>
{{
$t
(
'
收
'
)
}}
</span>
<el-input
v-if=
"[2,3,4].indexOf(form.type) > -1"
type=
"number"
v-model=
"item.reduceAmount
"
style=
"width:100px"
/>
<el-input
v-if=
"[2,3,4].indexOf(form.type) > -1"
v-model=
"item.reduceAmount"
@
keyup.native=
"checkPositive(item, 'reduceAmount')
"
style=
"width:100px"
/>
<selector
v-if=
"[2,3].indexOf(form.type) > -1"
v-model=
"item.reduceCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"[2,3].indexOf(form.type) > -1"
v-model=
"item.reduceCurrencyId"
:
disabled=
"!!item.reduceCurrencyDisabled"
:
options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<span
v-if=
"[4].indexOf(form.type) > -1"
>
%
</span>
</
template
>
<
template
v-if=
"form.type==7"
>
>
<el-input
v-model=
"item.startAmount"
type=
"number
"
style=
"width:100px"
/>
≤
<el-input
v-model=
"item.endAmount"
type=
"number
"
style=
"width:100px"
/>
>
<el-input
v-model=
"item.startAmount"
@
keyup.native=
"checkPositive(item, 'startAmount')
"
style=
"width:100px"
/>
≤
<el-input
v-model=
"item.endAmount"
@
keyup.native=
"checkPositive(item, 'endAmount')
"
style=
"width:100px"
/>
<selector
v-model=
"item.startAndEndCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
{{
$t
(
'
价格
'
)
}}
</
template
>
<el-input
v-if=
"[5,6,7].indexOf(form.type) > -1"
type=
"number
"
v-model=
"item.netReceiptsAmount"
style=
"width:100px"
/>
<el-input
v-if=
"[5,6,7].indexOf(form.type) > -1"
@
keyup.native=
"checkPositive(item, 'netReceiptsAmount')
"
v-model=
"item.netReceiptsAmount"
style=
"width:100px"
/>
<selector
v-if=
"[5,6,7].indexOf(form.type) > -1"
v-model=
"item.netReceiptsCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<
template
v-if=
"form.type == 6"
>
...
...
@@ -91,6 +91,7 @@
<el-button
class=
"el-icon-plus"
size=
"mini"
type=
"primary"
@
click=
"fee[1].push({type:1})"
/>
<el-button
v-if=
"fee[1].length > 1"
class=
"el-icon-minus"
size=
"mini"
type=
"danger"
@
click=
"fee[1].splice(index,1)"
/>
<div
class=
"red-tips"
v-if=
"errTips[1] && errTips[1][index]"
>
{{errTips[1][index]}}
</div>
</div>
</el-form-item>
...
...
@@ -98,8 +99,8 @@
<div
class=
"fee-item"
v-for=
"(item, index) in fee[2]"
:key=
"index"
>
<
template
v-if=
"[1,2,3,4,5].indexOf(form.type) > -1"
>
{{
$t
(
'
满
'
)
}}
<el-input
v-model=
"item.fullAmount"
type=
"number
"
style=
"width:100px"
/>
<selector
v-if=
"[2,4,5].indexOf(form.type) > -1"
v-model=
"item.fullCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<el-input
v-model=
"item.fullAmount"
@
keyup.native=
"checkPositive(item, 'fullAmount')
"
style=
"width:100px"
/>
<selector
v-if=
"[2,4,5].indexOf(form.type) > -1"
v-model=
"item.fullCurrencyId"
@
input=
"syncClearanceCurrency(item)"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"form.type == 3"
v-model=
"item.prodUnit"
:options=
"unitList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<span
v-if=
"[2].indexOf(form.type) > -1"
>
{{
$t
(
'
减
'
)
}}
</span>
...
...
@@ -107,19 +108,19 @@
<span
v-if=
"[5].indexOf(form.type) > -1"
>
{{
$t
(
'
收
'
)
}}
</span>
<el-input
v-if=
"[2,3,4].indexOf(form.type) > -1"
type=
"number
"
v-model=
"item.reduceAmount"
style=
"width:100px"
/>
<el-input
v-if=
"[2,3,4].indexOf(form.type) > -1"
@
keyup.native=
"checkPositive(item, 'reduceAmount')
"
v-model=
"item.reduceAmount"
style=
"width:100px"
/>
<selector
v-if=
"[2,3].indexOf(form.type) > -1"
v-model=
"item.reduceCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<selector
v-if=
"[2,3].indexOf(form.type) > -1"
v-model=
"item.reduceCurrencyId"
:
disabled=
"form.type==2"
:
options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<span
v-if=
"[4].indexOf(form.type) > -1"
>
%
</span>
</
template
>
<
template
v-if=
"form.type==7"
>
>
<el-input
v-model=
"item.startAmount"
type=
"number
"
style=
"width:100px"
/>
≤
<el-input
v-model=
"item.endAmount"
type=
"number
"
style=
"width:100px"
/>
>
<el-input
v-model=
"item.startAmount"
@
keyup.native=
"checkPositive(item, 'startAmount')
"
style=
"width:100px"
/>
≤
<el-input
v-model=
"item.endAmount"
@
keyup.native=
"checkPositive(item, 'endAmount')
"
style=
"width:100px"
/>
<Selector
v-model=
"item.startAndEndCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
{{
$t
(
'
价格
'
)
}}
</
template
>
<el-input
v-if=
"[5,6,7].indexOf(form.type) > -1"
type=
"number
"
v-model=
"item.netReceiptsAmount"
style=
"width:100px"
/>
<el-input
v-if=
"[5,6,7].indexOf(form.type) > -1"
@
keyup.native=
"checkPositive(item, 'netReceiptsAmount')
"
v-model=
"item.netReceiptsAmount"
style=
"width:100px"
/>
<selector
v-if=
"[5,6,7].indexOf(form.type) > -1"
v-model=
"item.netReceiptsCurrencyId"
:options=
"currencyList"
label-field=
"titleZh"
value-field=
"id"
defaultable
style=
"width:100px"
/>
<
template
v-if=
"form.type == 6"
>
...
...
@@ -129,6 +130,7 @@
<el-button
class=
"el-icon-plus"
size=
"mini"
type=
"primary"
@
click=
"fee[2].push({type:2})"
/>
<el-button
v-if=
"fee[2].length > 1"
class=
"el-icon-minus"
size=
"mini"
type=
"danger"
@
click=
"fee[2].splice(index,1)"
/>
<div
class=
"red-tips"
v-if=
"errTips[2] && errTips[1][index]"
>
{{errTips[2][index]}}
</div>
</div>
</el-form-item>
...
...
@@ -257,11 +259,21 @@ import RoutersSelector from '@/components/RoutersSelector'
import
ProductsSelector
from
'
@/components/ProductsSelector
'
import
Editor
from
'
@/components/Editor
'
import
Selector
from
'
@/components/Selector/index
'
export
default
{
name
:
"
CouponEdit
"
,
components
:
{
CustomerContactsSelector
,
RoutersSelector
,
ProductsSelector
,
Editor
,
Selector
},
data
()
{
let
validatorPositiveNumber
=
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
||
value
==
''
)
return
callback
();
if
(
!
Number
(
value
))
return
callback
(
new
Error
(
'
请输入有效数字
'
))
let
reg
=
/
((
^
[
1-9
]\d
*
)
|^0
)(\.\d
*
){0,1}
$/
;
if
(
!
reg
.
test
(
value
))
return
callback
(
new
Error
(
'
请输入有效数字
'
));
callback
();
}
return
{
validatorPositiveNumber
,
// 遮罩层
loading
:
true
,
readonly
:
false
,
...
...
@@ -288,6 +300,7 @@ export default {
2
:
[],
3
:
[]
},
errTips
:
{},
// 跟fee对应的错误提示
isAllProduct
:
false
,
// 是否全部商品
};
},
...
...
@@ -414,7 +427,13 @@ export default {
// this.fee[this.form.costType] = this.form.discountDetailedVOs.filter(item => item.type == this.form.costType)
}
this
.
form
.
discountDetailedVOs
.
forEach
(
item
=>
{
this
.
fee
[
item
.
type
].
push
(
item
)
if
(
item
.
prodUnit
){
item
.
combUnit
=
'
prodUnit_
'
+
item
.
prodUnit
}
else
if
(
item
.
fullCurrencyId
){
item
.
combUnit
=
'
fullCurrencyId_
'
+
item
.
fullCurrencyId
}
this
.
fee
[
item
.
type
].
push
({...
item
})
})
/* if(this.costType != this.form.costType){
console.error(`费用类型冲突,计算出来的类型为${this.costType},接口费用类型为${res.data.costType},类型为${res.data.type}`)
...
...
@@ -449,6 +468,24 @@ export default {
this
.
reset
()
},
methods
:
{
// 满减清关费修改满的货币后需要同步减的货币
syncClearanceCurrency
(
item
){
if
(
this
.
form
.
type
!=
2
)
return
item
.
reduceCurrencyId
=
item
.
fullCurrencyId
},
// 满减活动如果选择的满多少金额减,则在选择满货币后需要同步减的货币,且禁用减的货币修改
checkReduceCurrency
(
item
){
if
(
this
.
form
.
type
==
2
&&
item
.
combUnit
.
split
(
'
_
'
)[
0
]
==
'
fullCurrencyId
'
){
this
.
$set
(
item
,
'
reduceCurrencyDisabled
'
,
true
)
this
.
$set
(
item
,
'
reduceCurrencyId
'
,
+
item
.
combUnit
.
split
(
'
_
'
)[
1
])
return
}
if
(
item
.
reduceCurrencyDisabled
){
this
.
$set
(
item
,
'
reduceCurrencyDisabled
'
,
false
)
}
},
getCouponSelect
(){
getCouponSelect
().
then
(
res
=>
{
this
.
couponList
=
res
.
data
...
...
@@ -493,6 +530,17 @@ export default {
this
.
resetForm
(
"
form
"
);
},
// 检查正数
checkPositive
(
object
,
field
){
const
lastChar
=
object
[
field
].
split
(
''
).
pop
()
object
[
field
]
=
parseFloat
(
object
[
field
])
if
(
!
object
[
field
]
||
object
[
field
]
<
0
)
object
[
field
]
=
''
else
object
[
field
]
=
object
[
field
].
toString
()
// 如果最后一位是.且没有其他点则补上
if
(
object
[
field
]
!=
''
&&
object
[
field
].
indexOf
(
'
.
'
)
==
-
1
&&
lastChar
==
'
.
'
)
object
[
field
]
+=
'
.
'
},
/** 提交按钮 */
submitForm
(
status
=
0
)
{
this
.
$refs
[
"
form
"
].
validate
((
valid
)
=>
{
...
...
@@ -503,13 +551,46 @@ export default {
return
this
.
$message
(
this
.
$t
(
'
暂无费用设置
'
))
}
// 非有优惠券需要把运费和清关费一起提交
this
.
errTips
=
{}
let
discountDetailedVOs
=
this
.
costType
==
3
?
this
.
fee
[
3
]
:
this
.
fee
[
1
].
concat
(
this
.
fee
[
2
]).
filter
(
item
=>
item
.
netReceiptsAmount
||
item
.
fullAmount
)
discountDetailedVOs
.
map
(
item
=>
{
if
(
item
.
combUnit
){
// 满减需要 先删除单位,防止编辑的时候切换单位导致两个同时存在
if
(
this
.
form
.
type
==
2
){
delete
item
.
fullCurrencyId
delete
item
.
prodUnit
}
let
tmp
=
item
.
combUnit
.
split
(
'
_
'
)
item
[
tmp
[
0
]]
=
tmp
[
1
]
}
/* // 满减,折扣 则需要填写 满多少(fullAmount)减多少(reduceAmount)
// 优惠,满多少(fullAmount)收多少(netReceiptsAmount)
// 特价 netReceiptsAmount
// 区间价 startAmount 到 endAmount
const fields = {
2: ['fullAmount', 'reduceAmount'],
3: ['fullAmount', 'netReceiptsAmount'],
4: ['netReceiptsAmount'],
5: ['startAmount', 'endAmount', 'netReceiptsAmount']
}[this.form.type];
let err = false
if(fields){
fields.forEach(field => {
if(!item[field] || +item[field] <= 0){
err = true
this.$message.error((item.type == 1 ? '运费' : '清关费') + '不能为空且大于0')
this.errTips[item.type]
}
})
}
if(err) return false */
})
let
data
=
Object
.
assign
({},
this
.
form
,
{
discountDetailedVOs
})
// 开始时间必填
if
(
!
data
.
startTime
)
data
.
startTime
=
'
2022-01-01 00:00:00
'
...
...
src/views/ecw/customer/query.vue
View file @
6d5c8ddf
...
...
@@ -137,7 +137,7 @@
<
el
-
form
-
item
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
getorderList
"
>
{{
$t
(
'
搜索
'
)
}}
<
/el-button
>
<
el
-
button
type
=
"
primary
"
@
click
=
"
()=>{
queryParams = { rows:10,page:1
}
; getorderList()
queryParams = { rows:10,page:1
}
; getorderList()
;rucangtime = [];
}
"
>
{{
$t
(
'
重置
'
)
}}
<
/el-button
>
<
/el-form-item
>
<
/el-form
>
...
...
@@ -659,8 +659,7 @@ export default {
}
,
//订单
getorderList
(){
infoListOrderPage
({
customerDetailld
:
this
.
id
,...
this
.
queryParams
}
).
then
(
r
=>
{
console
.
log
(
r
)
infoListOrderPage
({
customerDetailId
:
this
.
id
,...
this
.
queryParams
}
).
then
(
r
=>
{
if
(
r
.
code
===
0
){
this
.
orderList
=
r
.
data
.
list
this
.
orderTotal
=
r
.
data
.
total
...
...
src/views/ecw/order/detail.vue
View file @
6d5c8ddf
...
...
@@ -3,7 +3,8 @@
<el-card
class=
"card"
>
<div
slot=
"header"
class=
"card-title"
>
{{
$t
(
'
订单编号
'
)
}}
:
{{
order
.
orderNo
}}
<template
v-if=
"order.containerNumber"
>
-
{{
order
.
containerNumber
}}
</
template
>
<template
v-if=
"order.tidanNo"
>
-
{{
order
.
tidanNo
}}
</
template
>
<
template
v-else-if=
"order.containerNumber"
>
-
{{
order
.
containerNumber
}}
</
template
>
</div>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
v-if=
"order.consignorVO"
>
...
...
@@ -40,6 +41,13 @@
</el-descriptions>
</el-col>
</el-row>
<el-descriptions
class=
"margin-top"
border
:column=
"1"
:labelStyle=
"{width:'150px'}"
>
<el-descriptions-item
:label=
"$t('付款人')"
>
<el-link
v-if=
"order.drawee == 3"
@
click.native=
"showDarweeDialog=true"
type=
"primary"
>
自定义
</el-link>
<dict-tag
v-else
:type=
"DICT_TYPE.DRAWEE"
:value=
"order.drawee"
></dict-tag>
</el-descriptions-item>
</el-descriptions>
</el-card>
<el-card
class=
"card"
>
<el-descriptions
border
:title=
"$t('物流信息')"
:column=
"2"
>
...
...
@@ -244,6 +252,20 @@
<print-warehouse-receipt
v-if=
"showWarehouseReceipt"
:order-id=
"order.orderId"
@
close=
"showWarehouseReceipt=false"
/>
<print-lading-bill
v-if=
"showLadingBill"
:order-id=
"order.orderId"
:transport-type=
"order.transportId"
@
close=
"showLadingBill=false"
/>
<warehouse-detail
:order=
"order"
:orderItemId=
"showWarehouseInItemId"
v-if=
"showWarehouseInItemId"
@
close=
"showWarehouseInItemId=null"
/>
<el-dialog
title=
"付款人"
:visible.sync=
"showDarweeDialog"
v-if=
"order && order.customDraweeVOList"
>
<el-table
:data=
"order.customDraweeVOList"
v-if=
"order.drawee==3"
>
<el-table-column
label=
"费用类型"
prop=
"label"
width=
"200px"
>
<
template
slot-scope=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.ECW_CUSTOM_DRAWEE"
:value=
"row.name"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"付款人"
width=
"300px"
>
<
template
slot-scope=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.DRAWEE"
:value=
"row.value"
/>
</
template
>
</el-table-column>
</el-table>
</el-dialog>
</div>
</template>
...
...
@@ -274,6 +296,7 @@ export default {
},
data
()
{
return
{
showDarweeDialog
:
false
,
// 遮罩层
loading
:
false
,
order
:
null
,
...
...
src/views/ecw/order/edit.vue
View file @
6d5c8ddf
...
...
@@ -881,6 +881,10 @@ export default {
this
.
$set
(
this
.
form
,
'
consigneePhone
'
,
res
.
data
.
consigneeVO
.
phone
)
}
if
(
this
.
form
.
channelId
==
0
){
delete
this
.
form
.
channelId
}
if
(
res
.
data
.
ccIds
){
this
.
ccIdArr
=
res
.
data
.
ccIds
.
split
(
"
,
"
).
filter
(
item
=>
item
&&
item
!=
''
)
}
...
...
src/views/ecw/order/index.vue
View file @
6d5c8ddf
...
...
@@ -172,7 +172,7 @@
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"150px"
>
<el-table-column
:label=
"$t('操作')"
align=
"center"
class-name=
"small-padding fixed-width
actions
"
width=
"150px"
>
<
template
slot-scope=
"scope"
>
<!-- 已删除的订单只需要删除和查看 https://zentao.jdshangmen.com/bug-view-684.html -->
<template
v-if=
"scope.row.status == 88"
>
...
...
@@ -180,7 +180,7 @@
</
template
>
<
template
v-else
>
<!--操作相关的-->
<el-dropdown>
<el-dropdown
v-if=
"exclude(scope.row.inWarehouseState, [204,205,206])"
>
<el-button
type=
"text"
>
{{
$t
(
'
操作
'
)
}}
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<!-- 编辑 -->
...
...
@@ -251,8 +251,8 @@
</el-dropdown-menu>
</el-dropdown>
<
template
v-if=
"scope.row.status != 0 &&
scope.row.inWarehouseState != 206
"
>
<
el-divider
direction=
"vertical"
></el-divider
>
<
template
v-if=
"scope.row.status != 0 &&
[204,205,206].indexOf(scope.row.inWarehouseState) < 0
"
>
<
!--
<el-divider
direction=
"vertical"
></el-divider>
--
>
<!--仓库相关的-->
<el-dropdown>
<el-button
type=
"text"
>
{{
$t
(
'
仓库
'
)
}}
</el-button>
...
...
@@ -321,7 +321,7 @@
</el-dropdown>
</template>
<
el-divider
direction=
"vertical"
v-if=
"scope.row.status != 0"
></el-divider
>
<
!-- <el-divider direction="vertical" v-if="scope.row.status != 0"></el-divider> --
>
<!--打印相关的-->
<el-dropdown
v-if=
"scope.row.status != 0"
>
<el-button
type=
"text"
>
{{$t('打印')}}
</el-button>
...
...
@@ -649,3 +649,13 @@ export default {
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
::v-deep
.actions
{
.el-dropdown
{
margin-right
:
10px
;
&
:
:
last-child
{
margin-right
:
0
;
}
}
}
</
style
>
\ No newline at end of file
src/views/ecw/order/special/Commission.vue
View file @
6d5c8ddf
...
...
@@ -82,7 +82,7 @@
{{
currencyMap
[
form
.
freightCurrency
]
}}
/
{{
unitMap
[
form
.
freightVolume
]
}}
<
/div
>
<
div
v
-
if
=
"
form.commissionType == 3
"
>
{{
$t
(
'
实际佣金返点
'
)
}}
:
{{
form
.
shadeCommissionAmount
+
form
.
lightCommissionAmount
}}
{{
totalCommision
}}
{{
currencyMap
[
form
.
freightCurrency
]
}}
/
{{
unitMap
[
form
.
freightVolume
]
}}
<
/div
>
<
/div
>
...
...
@@ -200,6 +200,9 @@ export default {
salePrice
(){
if
(
!
this
.
originPrice
)
return
0
return
Decimal
(
this
.
originPrice
).
plus
(
parseFloat
(
this
.
form
.
lightCommissionAmount
)
||
0
)
}
,
totalCommision
(){
return
Decimal
(
this
.
form
.
lightCommissionAmount
||
0
).
plus
(
this
.
form
.
shadeCommissionAmount
||
0
)
}
}
,
...
...
src/views/ecw/warehouse/index.vue
View file @
6d5c8ddf
...
...
@@ -307,13 +307,13 @@
</el-dialog>
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"$t('设置路线提单模板')"
:visible.sync=
"templateOpen"
width=
"1
0
00px"
@
close=
"ladingFormClose()"
append-to-body
>
<el-dialog
:title=
"$t('设置路线提单模板')"
:visible.sync=
"templateOpen"
width=
"1
1
00px"
@
close=
"ladingFormClose()"
append-to-body
>
<el-form
ref=
"form"
:model=
"ladingform"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
:label=
"$t('货柜前缀')"
prop=
"prefixCounter"
>
<el-input
v-model=
"ladingform.prefixCounter"
:placeholder=
"$t('请输入货柜前缀')"
/>
</el-form-item>
<el-form-item
:label=
"$t('抬头')"
prop=
"titleZh"
>
<ueditor
v-model=
"ladingform.titleZh"
:min-height=
"192"
/>
<ueditor
v-model=
"ladingform.titleZh"
:min-height=
"192"
style=
"width:960px"
/>
</el-form-item>
<el-card
class=
"box-card"
>
...
...
@@ -363,7 +363,7 @@
</el-card>
<el-form-item
:label=
"$t('条款')"
prop=
"contentZh"
>
<ueditor
v-model=
"ladingform.contentZh"
:min-height=
"192"
/>
<ueditor
v-model=
"ladingform.contentZh"
:min-height=
"192"
style=
"width:960px"
/>
</el-form-item>
<el-form-item
v-if=
"showFlag"
>
...
...
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