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
01e36148
Commit
01e36148
authored
Nov 03, 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
3611021c
02a6bd11
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
60 additions
and
54 deletions
+60
-54
index.vue
src/components/ProductsSelector/index.vue
+7
-2
dict.js
src/utils/dict.js
+1
-0
costForm.vue
src/views/ecw/box/costForm.vue
+8
-1
indexSeaAir.vue
src/views/ecw/box/indexSeaAir.vue
+1
-0
index.vue
src/views/ecw/box/ladingBill/index.vue
+3
-0
makeLadingBill.vue
src/views/ecw/box/ladingBill/makeLadingBill.vue
+2
-1
regError.vue
src/views/ecw/box/regError.vue
+8
-1
ApprovalDetail.vue
src/views/ecw/order/components/ApprovalDetail.vue
+6
-6
edit.vue
src/views/ecw/order/edit.vue
+20
-38
index.vue
src/views/ecw/order/index.vue
+1
-2
index.vue
src/views/ecw/order/special/index.vue
+1
-1
index.vue
src/views/system/role/index.vue
+2
-2
No files found.
src/components/ProductsSelector/index.vue
View file @
01e36148
...
@@ -96,8 +96,10 @@ export default {
...
@@ -96,8 +96,10 @@ export default {
isAllProduct
(
isAllProduct
){
isAllProduct
(
isAllProduct
){
this
.
$emit
(
'
setall
'
,
isAllProduct
)
this
.
$emit
(
'
setall
'
,
isAllProduct
)
}
,
}
,
defaultIds
(){
defaultIds
(
newValue
,
oldValue
){
this
.
loadDefaultProds
()
if
(
!
oldValue
||
!
oldValue
.
length
){
this
.
loadDefaultProds
()
}
}
,
}
,
isall
(
isall
){
isall
(
isall
){
this
.
isAllProduct
=
isall
this
.
isAllProduct
=
isall
...
@@ -119,6 +121,9 @@ export default {
...
@@ -119,6 +121,9 @@ export default {
this.isAllProduct = true
this.isAllProduct = true
}
, */
}
, */
loadDefaultProds
(){
loadDefaultProds
(){
if
(
!
this
.
defaultIds
||
!
this
.
defaultIds
.
length
){
return
false
}
getProductList
({
ids
:
this
.
defaultIds
.
join
(
'
,
'
)
}
).
then
(
res
=>
{
getProductList
({
ids
:
this
.
defaultIds
.
join
(
'
,
'
)
}
).
then
(
res
=>
{
res
.
data
.
forEach
(
item
=>
{
res
.
data
.
forEach
(
item
=>
{
this
.
choose
(
item
)
this
.
choose
(
item
)
...
...
src/utils/dict.js
View file @
01e36148
...
@@ -198,6 +198,7 @@ export const DICT_TYPE = {
...
@@ -198,6 +198,7 @@ export const DICT_TYPE = {
BOX_SHIPPING_PRICE_UNIT
:
'
shipping_price_unit
'
,
// 金额单位
BOX_SHIPPING_PRICE_UNIT
:
'
shipping_price_unit
'
,
// 金额单位
BOX_SHIPPING_TICKET_EXCEPTION
:
'
shipping_ticket_exception
'
,
// 票异常
BOX_SHIPPING_TICKET_EXCEPTION
:
'
shipping_ticket_exception
'
,
// 票异常
BOX_SHIPPING_PROCESS
:
'
shipping_process
'
,
// 海运出货流程
BOX_SHIPPING_PROCESS
:
'
shipping_process
'
,
// 海运出货流程
BOX_SEA_AIR
:
'
shipping_process_sea_air
'
,
// 海空联运流程流程
BOX_SHIPPING_BRAND_TYPE
:
'
shipping_brand_type
'
,
// 出货品牌类型
BOX_SHIPPING_BRAND_TYPE
:
'
shipping_brand_type
'
,
// 出货品牌类型
BOX_SHIPPING_NOTICE_TYPE
:
'
shipping_notice_type
'
,
// 出货通知类型
BOX_SHIPPING_NOTICE_TYPE
:
'
shipping_notice_type
'
,
// 出货通知类型
BOX_ORDER_SHIPMENT_STATE
:
'
order_shipment_state
'
BOX_ORDER_SHIPMENT_STATE
:
'
order_shipment_state
'
...
...
src/views/ecw/box/costForm.vue
View file @
01e36148
...
@@ -3,9 +3,12 @@
...
@@ -3,9 +3,12 @@
<el-form
ref=
"costForm"
:model=
"costObj"
:rules=
"rules"
label-width=
"80px"
>
<el-form
ref=
"costForm"
:model=
"costObj"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
:label=
"$t('操作步骤')"
prop=
"opStepType"
>
<el-form-item
:label=
"$t('操作步骤')"
prop=
"opStepType"
>
<el-select
v-model=
"costObj.opStepType"
:placeholder=
"$t('请选择操作步骤')"
>
<el-select
v-
if=
"flag=='sea'"
v-
model=
"costObj.opStepType"
:placeholder=
"$t('请选择操作步骤')"
>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PROCESS)"
:key=
"type.value"
:label=
"$l(type, 'label')"
:value=
"type.value"
></el-option>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PROCESS)"
:key=
"type.value"
:label=
"$l(type, 'label')"
:value=
"type.value"
></el-option>
</el-select>
</el-select>
<el-select
v-if=
"flag=='seaAir'"
v-model=
"costObj.opStepType"
:placeholder=
"$t('请选择操作步骤')"
>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SEA_AIR)"
:key=
"type.value"
:label=
"$l(type, 'label')"
:value=
"type.value"
></el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('费用类型')"
prop=
"costType"
>
<el-form-item
:label=
"$t('费用类型')"
prop=
"costType"
>
...
@@ -67,6 +70,7 @@ export default {
...
@@ -67,6 +70,7 @@ export default {
price
:
[{
required
:
true
,
message
:
this
.
$t
(
"
金额不能为空
"
),
trigger
:
"
blur
"
}],
price
:
[{
required
:
true
,
message
:
this
.
$t
(
"
金额不能为空
"
),
trigger
:
"
blur
"
}],
priceUnit
:
[{
required
:
true
,
message
:
this
.
$t
(
"
金额单位不能为空
"
),
trigger
:
"
blur
"
}]
priceUnit
:
[{
required
:
true
,
message
:
this
.
$t
(
"
金额单位不能为空
"
),
trigger
:
"
blur
"
}]
},
},
flag
:
'
sea
'
};
};
},
},
created
()
{
created
()
{
...
@@ -80,6 +84,9 @@ export default {
...
@@ -80,6 +84,9 @@ export default {
getCurrencyList
().
then
((
res
)
=>
{
getCurrencyList
().
then
((
res
)
=>
{
this
.
currencyList
=
res
.
data
??
[];
this
.
currencyList
=
res
.
data
??
[];
});
});
if
(
this
.
$attrs
.
shipmentObj
.
bosType
==
'
seaAir
'
){
this
.
flag
=
'
seaAir
'
;
}
},
},
methods
:
{
methods
:
{
submit
()
{
submit
()
{
...
...
src/views/ecw/box/indexSeaAir.vue
View file @
01e36148
...
@@ -621,6 +621,7 @@ export default {
...
@@ -621,6 +621,7 @@ export default {
}
}
if
([
"
editLadingBill
"
,
"
cost
"
,
"
error
"
].
includes
(
command
))
{
if
([
"
editLadingBill
"
,
"
cost
"
,
"
error
"
].
includes
(
command
))
{
this
.
currRow
=
row
;
this
.
currRow
=
row
;
this
.
currRow
.
bosType
=
'
seaAir
'
this
.
$set
(
this
.
dialogCfg
,
"
dialogType
"
,
command
);
this
.
$set
(
this
.
dialogCfg
,
"
dialogType
"
,
command
);
this
.
$set
(
this
.
dialogCfg
,
"
width
"
,
"
600px
"
);
this
.
$set
(
this
.
dialogCfg
,
"
width
"
,
"
600px
"
);
this
.
$set
(
this
.
dialogCfg
,
"
open
"
,
true
);
this
.
$set
(
this
.
dialogCfg
,
"
open
"
,
true
);
...
...
src/views/ecw/box/ladingBill/index.vue
View file @
01e36148
...
@@ -158,6 +158,9 @@ export default {
...
@@ -158,6 +158,9 @@ export default {
if
(
type
===
"
query
"
)
{
if
(
type
===
"
query
"
)
{
this
.
getBillList
();
this
.
getBillList
();
}
}
if
(
type
===
'
close
'
){
this
.
$emit
(
"
closeDialog
"
);
}
},
},
handleCommand
(
type
,
row
)
{
handleCommand
(
type
,
row
)
{
switch
(
type
)
{
switch
(
type
)
{
...
...
src/views/ecw/box/ladingBill/makeLadingBill.vue
View file @
01e36148
...
@@ -201,6 +201,7 @@ export default {
...
@@ -201,6 +201,7 @@ export default {
this
.
$emit
(
"
closeDialog
"
,
type
);
this
.
$emit
(
"
closeDialog
"
,
type
);
},
},
jumpReviewDetail
()
{
jumpReviewDetail
()
{
this
.
close
(
'
close
'
)
const
{
bpmProcessId
}
=
this
.
currData
;
const
{
bpmProcessId
}
=
this
.
currData
;
toReviewDetail
.
apply
(
this
,
[
bpmProcessId
]);
toReviewDetail
.
apply
(
this
,
[
bpmProcessId
]);
},
},
...
@@ -249,6 +250,6 @@ export default {
...
@@ -249,6 +250,6 @@ export default {
::v-deep
.el-dialog__body
{
::v-deep
.el-dialog__body
{
padding-top
:
0
;
padding-top
:
0
;
}
}
}
}
</
style
>
</
style
>
src/views/ecw/box/regError.vue
View file @
01e36148
...
@@ -2,9 +2,12 @@
...
@@ -2,9 +2,12 @@
<div
class=
"shippingSea-dialog"
>
<div
class=
"shippingSea-dialog"
>
<el-form
ref=
"errorForm"
:model=
"errorObj"
label-width=
"140px"
>
<el-form
ref=
"errorForm"
:model=
"errorObj"
label-width=
"140px"
>
<el-form-item
:label=
"$t('操作步骤')"
>
<el-form-item
:label=
"$t('操作步骤')"
>
<el-select
v-model=
"errorObj.opStep"
:placeholder=
"$t('请选择操作步骤')"
>
<el-select
v-
if=
"flag=='sea'"
v-
model=
"errorObj.opStep"
:placeholder=
"$t('请选择操作步骤')"
>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PROCESS)"
:key=
"type.value"
:label=
"$l(type, 'label')"
:value=
"type.value"
></el-option>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SHIPPING_PROCESS)"
:key=
"type.value"
:label=
"$l(type, 'label')"
:value=
"type.value"
></el-option>
</el-select>
</el-select>
<el-select
v-if=
"flag=='seaAir'"
v-model=
"errorObj.opStep"
:placeholder=
"$t('请选择操作步骤')"
>
<el-option
v-for=
"type in this.getDictDatas(DICT_TYPE.BOX_SEA_AIR)"
:key=
"type.value"
:label=
"$l(type, 'label')"
:value=
"type.value"
></el-option>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('票异常')"
>
<el-form-item
:label=
"$t('票异常')"
>
<el-select
v-model=
"errorObj.billAbnId"
:placeholder=
"$t('请选择票异常')"
>
<el-select
v-model=
"errorObj.billAbnId"
:placeholder=
"$t('请选择票异常')"
>
...
@@ -63,11 +66,15 @@ export default {
...
@@ -63,11 +66,15 @@ export default {
label
:
this
.
$t
(
"
否
"
),
label
:
this
.
$t
(
"
否
"
),
},
},
],
],
flag
:
'
sea
'
};
};
},
},
created
()
{
created
()
{
const
{
currNode
}
=
this
.
$attrs
;
const
{
currNode
}
=
this
.
$attrs
;
this
.
errorObj
=
{
opStep
:
currNode
?.
dataKey
??
undefined
};
this
.
errorObj
=
{
opStep
:
currNode
?.
dataKey
??
undefined
};
if
(
this
.
$attrs
.
shipmentObj
.
bosType
==
'
seaAir
'
){
this
.
flag
=
'
seaAir
'
;
}
},
},
methods
:
{
methods
:
{
/** 提交 */
/** 提交 */
...
...
src/views/ecw/order/components/ApprovalDetail.vue
View file @
01e36148
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<el-descriptions-item
:label=
"$t('运输方式')"
>
<el-descriptions-item
:label=
"$t('运输方式')"
>
<dict-tag
class=
"mr-10"
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"order.transportId"
/>
<dict-tag
class=
"mr-10"
:type=
"DICT_TYPE.ECW_TRANSPORT_TYPE"
:value=
"order.transportId"
/>
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('出货
方式
')"
>
<el-descriptions-item
:label=
"$t('出货
渠道
')"
>
{{
channel
?
channel
.
nameZh
:
'
/
'
}}
{{
channel
?
channel
.
nameZh
:
'
/
'
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('订单状态')"
>
<el-descriptions-item
:label=
"$t('订单状态')"
>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<el-descriptions-item
:label=
"$t('目的仓')"
:span=
"2"
>
<el-descriptions-item
:label=
"$t('目的仓')"
:span=
"2"
>
{{
order
.
logisticsInfoDto
.
destAddressZh
}}
{{
order
.
logisticsInfoDto
.
destAddressZh
}}
</el-descriptions-item>
</el-descriptions-item>
<!-- 优惠申请 -->
<!-- 优惠申请 -->
<el-descriptions-item
:label=
"$t('申请理由')"
v-if=
"type == 1 || type == 2"
:span=
"4"
>
<el-descriptions-item
:label=
"$t('申请理由')"
v-if=
"type == 1 || type == 2"
:span=
"4"
>
<div
class=
"bold"
>
<div
class=
"bold"
>
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
newType
:
getDictDataLabel
(
DICT_TYPE
.
COMMISSION_TYPE
,
detail
.
commissionType
),
newType
:
getDictDataLabel
(
DICT_TYPE
.
COMMISSION_TYPE
,
detail
.
commissionType
),
}
)
}}
}
)
}}
<
/div
>
<
/div
>
<
div
>
<
div
>
{{
$t
(
'
原运费
'
)
}}
:
{{
detail
.
orgFreight
}}
{{
currencyMap
[
detail
.
freightCurrency
]
}}
/
{{
unitMap
[
detail
.
freightVolume
]
}}
{{
$t
(
'
原运费
'
)
}}
:
{{
detail
.
orgFreight
}}
{{
currencyMap
[
detail
.
freightCurrency
]
}}
/
{{
unitMap
[
detail
.
freightVolume
]
}}
<
/div
>
<
/div
>
...
@@ -90,7 +90,7 @@ import {getChannel} from '@/api/ecw/channel'
...
@@ -90,7 +90,7 @@ import {getChannel} from '@/api/ecw/channel'
import
{
getUnitList
}
from
"
@/api/ecw/unit
"
import
{
getUnitList
}
from
"
@/api/ecw/unit
"
import
{
getCurrencyList
}
from
'
@/api/ecw/currency
'
import
{
getCurrencyList
}
from
'
@/api/ecw/currency
'
import
Decimal
from
'
decimal.js
'
import
Decimal
from
'
decimal.js
'
/*
/*
type含义
type含义
优惠申请 1
优惠申请 1
管理优惠 2
管理优惠 2
...
@@ -187,7 +187,7 @@ export default {
...
@@ -187,7 +187,7 @@ export default {
getChannel
(
this
.
order
.
channelId
).
then
(
res
=>
{
getChannel
(
this
.
order
.
channelId
).
then
(
res
=>
{
this
.
channel
=
res
.
data
this
.
channel
=
res
.
data
}
)
}
)
}
,
/*
}
,
/*
getBillOfLandingInProcessing(){
getBillOfLandingInProcessing(){
getBillOfLandingInProcessing({orderId: this.detail.orderId
}
).then(res => {
getBillOfLandingInProcessing({orderId: this.detail.orderId
}
).then(res => {
console.log(res)
console.log(res)
...
@@ -207,4 +207,4 @@ export default {
...
@@ -207,4 +207,4 @@ export default {
.
bold
{
.
bold
{
font
-
weight
:
bold
;
font
-
weight
:
bold
;
}
}
<
/style>
<
/style
>
\ No newline at end of file
src/views/ecw/order/edit.vue
View file @
01e36148
...
@@ -84,9 +84,7 @@
...
@@ -84,9 +84,7 @@
<el-input
:value=
"selectedRouter ? $l(selectedRouter, 'startTitle') + ' > ' + $l(selectedRouter, 'destTitle') : ''"
disabled
:placeholder=
"$t('请在右侧选择线路')"
></el-input>
<el-input
:value=
"selectedRouter ? $l(selectedRouter, 'startTitle') + ' > ' + $l(selectedRouter, 'destTitle') : ''"
disabled
:placeholder=
"$t('请在右侧选择线路')"
></el-input>
</el-form-item>
</el-form-item>
<select
size=
"5"
v-model=
"form.lineId"
style=
"min-width: 300px; border:1px solid #DCDFE6; border-radius:4px"
:disabled=
"inWarehouse"
>
<select
size=
"5"
v-model=
"form.lineId"
style=
"min-width: 300px; border:1px solid #DCDFE6; border-radius:4px"
:disabled=
"inWarehouse"
>
<template
v-for=
"item in routerList"
>
<option
v-for=
"item in routerList"
:value=
"item.id"
:key=
"item.id"
>
{{
$l
(
item
,
'
startTitle
'
)
}}
>>
{{
$l
(
item
,
'
destTitle
'
)
}}
</option>
<option
:value=
"item.id"
:key=
"item.id"
>
{{
$l
(
item
,
'
startTitle
'
)
}}
>>
{{
$l
(
item
,
'
destTitle
'
)
}}
</option>
</
template
>
</select>
</select>
</div>
</div>
</el-card>
</el-card>
...
@@ -120,7 +118,7 @@
...
@@ -120,7 +118,7 @@
@
change=
"onProductChange(scope.row, $event)"
@
change=
"onProductChange(scope.row, $event)"
:disabled=
"!canAddProduct || !productEditable"
:disabled=
"!canAddProduct || !productEditable"
@
focus=
"scope.row.updated = true"
@
focus=
"scope.row.updated = true"
/>
/>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -137,14 +135,9 @@
...
@@ -137,14 +135,9 @@
:disabled=
"!canAddProduct || !productEditable"
/>
:disabled=
"!canAddProduct || !productEditable"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<!-- <el-table-column label="商品类型" width="160px">
<template slot-scope="{row}">
<selector disabled v-model="row.goodsType" :options="productAttrList" label-field="attrName" value-field="id"></selector>
</template>
</el-table-column> -->
<el-table-column
:label=
"$t('品牌')"
width=
"100px"
>
<el-table-column
:label=
"$t('品牌')"
width=
"100px"
>
<
template
slot=
"header"
slot-scope=
"scope"
>
<
template
slot=
"header"
>
{{
$t
(
'
品牌
'
)
}}
<span
class=
"red"
>
*
</span>
{{
$t
(
'
品牌
'
)
}}
<span
class=
"red"
>
*
</span>
</
template
>
</
template
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -160,7 +153,7 @@
...
@@ -160,7 +153,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('件数')"
width=
"90px"
>
<el-table-column
:label=
"$t('件数')"
width=
"90px"
>
<
template
slot=
"header"
slot-scope=
"scope"
>
<
template
slot=
"header"
>
{{
$t
(
'
件数
'
)
}}
<span
class=
"red"
>
*
</span>
{{
$t
(
'
件数
'
)
}}
<span
class=
"red"
>
*
</span>
</
template
>
</
template
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
...
@@ -180,29 +173,29 @@
...
@@ -180,29 +173,29 @@
<el-input
v-model=
"row.quantity"
@
keyup.native=
"checkPositiveInterge(row, 'quantity')"
:disabled=
"!canAddProduct || !productEditable"
/>
<el-input
v-model=
"row.quantity"
@
keyup.native=
"checkPositiveInterge(row, 'quantity')"
:disabled=
"!canAddProduct || !productEditable"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('总体积') + '(m³)'"
width=
"1
0
0px"
>
<el-table-column
:label=
"$t('总体积') + '(m³)'"
width=
"1
2
0px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-form-item
label=
""
<el-form-item
label=
""
:prop=
"`orderItemVOList.$
{scope.$index}.volume`"
:prop=
"`orderItemVOList.$
{scope.$index}.volume`"
:rules="[
:rules="[
{
type: 'number', min: 0
, message: $t('体积错误'), trigger: 'blur'}
{
validator: validatorPositiveNumber
, message: $t('体积错误'), trigger: 'blur'}
]"
]"
class="mb-0 mr-0"
class="mb-0 mr-0"
>
>
<el-input
v-model
.number
=
"scope.row.volume"
:disabled=
"!canAddProduct || !productEditable"
/>
<el-input
v-model=
"scope.row.volume"
:disabled=
"!canAddProduct || !productEditable"
/>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('总重量') + '(kg)'"
width=
"1
0
0px"
>
<el-table-column
:label=
"$t('总重量') + '(kg)'"
width=
"1
2
0px"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-form-item
label=
""
<el-form-item
label=
""
:prop=
"`orderItemVOList.$
{scope.$index}.weight`"
:prop=
"`orderItemVOList.$
{scope.$index}.weight`"
:rules="[
:rules="[
{
type: 'number', min: 0
, message: $t('重量错误'), trigger: 'blur'}
{
validator: validatorPositiveNumber
, message: $t('重量错误'), trigger: 'blur'}
]"
]"
class="mb-0 mr-0"
class="mb-0 mr-0"
>
>
<el-input
v-model
.number
=
"scope.row.weight"
:disabled=
"!canAddProduct || !productEditable"
/>
<el-input
v-model=
"scope.row.weight"
:disabled=
"!canAddProduct || !productEditable"
/>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -528,13 +521,22 @@ import WorkFlow from '@/components/WorkFlow'
...
@@ -528,13 +521,22 @@ import WorkFlow from '@/components/WorkFlow'
// 缓存默认的表单数据
// 缓存默认的表单数据
let
defaultFormData
=
null
let
defaultFormData
=
null
window
.
Decimal
=
Decimal
window
.
Decimal
=
Decimal
export
default
{
export
default
{
name
:
"
EcwOrderEdit
"
,
name
:
"
EcwOrderEdit
"
,
components
:
{
components
:
{
ProductSelector
,
Selector
,
CustomerContactSelector
,
AreaSelector
,
FileUpload
,
AreaCodeSelector
,
ChooseContactDialog
,
QuickCreateCustomer
,
SupplierSelector
,
WorkFlow
ProductSelector
,
Selector
,
CustomerContactSelector
,
AreaSelector
,
FileUpload
,
AreaCodeSelector
,
ChooseContactDialog
,
QuickCreateCustomer
,
SupplierSelector
,
WorkFlow
},
},
data
()
{
data
()
{
let
validatorPositiveNumber
=
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
)
return
callback
(
new
Error
(
'
请输入数字
'
))
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
{
return
{
validatorPositiveNumber
,
customDraweeList
:
[],
customDraweeList
:
[],
// draweeList: [],
// draweeList: [],
// 遮罩层
// 遮罩层
...
@@ -957,29 +959,9 @@ export default {
...
@@ -957,29 +959,9 @@ export default {
},
},
// 检查正整数
// 检查正整数
checkPositiveInterge
(
row
,
field
){
checkPositiveInterge
(
row
,
field
){
console
.
log
(
'
checkPositiveInterge
'
,
field
,
row
[
field
])
row
[
field
]
=
row
[
field
].
replace
(
/
[^\d]
/g
,
''
)
row
[
field
]
=
row
[
field
].
replace
(
/
[^\d]
/g
,
''
)
},
},
/* // 检查正数
checkPositive(row, field){
if(row.field < 0){
row[field] = 0
}
}, */
/* onFileChoosed(e){
window.choosed = e
console.log('onFileChoosed', e)
const reader = new FileReader();
reader.readAsBinaryString(e.target.files[0]);
reader.onload = function(e) {
const data = e.target.result;
const zzexcel = xlsx.read(data, {
type: 'binary'
})
window.zzexcel = zzexcel
window.tableJson = xlsx.utils.sheet_to_json(zzexcel.Sheets[zzexcel.SheetNames[0]])
}
}, */
onProductChange
(
row
,
product
){
onProductChange
(
row
,
product
){
console
.
log
(
product
)
console
.
log
(
product
)
// 如果是清除商品
// 如果是清除商品
...
...
src/views/ecw/order/index.vue
View file @
01e36148
...
@@ -228,8 +228,7 @@
...
@@ -228,8 +228,7 @@
<!-- 特价 -->
<!-- 特价 -->
<
template
v-if=
"
<
template
v-if=
"
exclude(scope.row.status, [0]) &&
exclude(scope.row.status, [0]) &&
exclude(scope.row.abnormalState, [1 ,99 ,2 ,3 ,4 ,9 ,10 ,11 ,12 ,14]) &&
exclude(scope.row.abnormalState, [1 ,99 ,2 ,3 ,4 ,9 ,10 ,11 ,12 ,14])
exclude(scope.row.shipmentState, [320,322,323])
"
>
"
>
<el-dropdown-item
@
click.native=
"$router.push('/order/special/' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:update']"
>
{{
$t
(
'
特价
'
)
}}
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$router.push('/order/special/' + scope.row.orderId)"
v-hasPermi=
"['ecw:order:update']"
>
{{
$t
(
'
特价
'
)
}}
</el-dropdown-item>
</
template
>
</
template
>
...
...
src/views/ecw/order/special/index.vue
View file @
01e36148
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
<
template
v-slot=
"{row}"
>
<
template
v-slot=
"{row}"
>
<el-button
v-if=
"row.originalSeaFreight"
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"showDiscountItem=row"
>
{{
$t
(
'
优惠申请
'
)
}}
</el-button>
<el-button
v-if=
"row.originalSeaFreight"
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"showDiscountItem=row"
>
{{
$t
(
'
优惠申请
'
)
}}
</el-button>
<el-button
v-if=
"row.originalSeaFreight"
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"showCommissionItem=row"
>
{{
$t
(
'
佣金规则
'
)
}}
</el-button>
<el-button
v-if=
"row.originalSeaFreight"
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:update']"
@
click=
"showCommissionItem=row"
>
{{
$t
(
'
佣金规则
'
)
}}
</el-button>
<el-button
v-if=
"row.originalSeaFreight"
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:
update
']"
@
click=
"showAllowanceItem=row"
>
{{
$t
(
'
管理折扣
'
)
}}
</el-button>
<el-button
v-if=
"row.originalSeaFreight"
size=
"mini"
type=
"text"
v-hasPermi=
"['ecw:order:
discount
']"
@
click=
"showAllowanceItem=row"
>
{{
$t
(
'
管理折扣
'
)
}}
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
...
src/views/system/role/index.vue
View file @
01e36148
...
@@ -396,7 +396,7 @@ export default {
...
@@ -396,7 +396,7 @@ export default {
// 获得角色拥有的菜单集合
// 获得角色拥有的菜单集合
listRoleMenus
(
id
).
then
(
response
=>
{
listRoleMenus
(
id
).
then
(
response
=>
{
// 设置为严格,避免设置父节点自动选中子节点,解决半选中问题
// 设置为严格,避免设置父节点自动选中子节点,解决半选中问题
this
.
form
.
menuCheckStrictly
=
true
//
this.form.menuCheckStrictly = true
// 设置选中
// 设置选中
this
.
$refs
.
menu
.
setCheckedKeys
(
response
.
data
);
this
.
$refs
.
menu
.
setCheckedKeys
(
response
.
data
);
// 设置为非严格,继续使用半选中
// 设置为非严格,继续使用半选中
...
@@ -466,7 +466,7 @@ export default {
...
@@ -466,7 +466,7 @@ export default {
if
(
this
.
form
.
id
!==
undefined
)
{
if
(
this
.
form
.
id
!==
undefined
)
{
assignRoleMenu
({
assignRoleMenu
({
roleId
:
this
.
form
.
id
,
roleId
:
this
.
form
.
id
,
menuIds
:
[...
this
.
$refs
.
menu
.
getCheckedKeys
()
,
...
this
.
$refs
.
menu
.
getHalfCheckedKeys
()]
menuIds
:
[...
this
.
$refs
.
menu
.
getCheckedKeys
()
]
// , ...this.$refs.menu.getHalfCheckedKeys() 不需要半选中的,会在下次回显的时候导致子节点全部被选中
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
openMenu
=
false
;
this
.
openMenu
=
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