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
b8e88441
Commit
b8e88441
authored
Sep 11, 2024
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分bug
parent
0b716b8c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
41 deletions
+93
-41
dict.js
src/utils/dict.js
+5
-0
cargoControl.vue
src/views/ecw/order/cargoControl.vue
+71
-28
index.vue
src/views/ecw/order/index.vue
+17
-13
No files found.
src/utils/dict.js
View file @
b8e88441
...
@@ -208,6 +208,11 @@ export const DICT_TYPE = {
...
@@ -208,6 +208,11 @@ export const DICT_TYPE = {
ECW_AUTH_TYPE
:
"
auth_type
"
,
//品牌授权
ECW_AUTH_TYPE
:
"
auth_type
"
,
//品牌授权
OREER_ITEM_USAGE
:
"
order_item_usage
"
,
//用途
OREER_ITEM_USAGE
:
"
order_item_usage
"
,
//用途
// 放货率查询字段
RELEASE_RATIO_FIELD
:
"
release_ratio_field
"
,
// 提货率查询字段
PICK_RATIO_FIELD
:
"
pick_ratio_field
"
,
NEED_ORDER_INQUIRY
:
"
need_order_inquiry
"
,
// 是否需要単询
NEED_ORDER_INQUIRY
:
"
need_order_inquiry
"
,
// 是否需要単询
EXCEPTION_SELECT_FILED
:
"
exception_select_filed
"
,
EXCEPTION_SELECT_FILED
:
"
exception_select_filed
"
,
ECASH_INIT
:
"
ecash_init
"
,
//e-cash
ECASH_INIT
:
"
ecash_init
"
,
//e-cash
...
...
src/views/ecw/order/cargoControl.vue
View file @
b8e88441
...
@@ -101,19 +101,22 @@
...
@@ -101,19 +101,22 @@
<el-input
v-model=
"queryParams.orderNo"
:placeholder=
"$t('订单编号')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/\s+/g, '')"
/>
<el-input
v-model=
"queryParams.orderNo"
:placeholder=
"$t('订单编号')"
clearable
@
keyup.enter.native=
"handleQuery"
onkeyup=
"this.value=this.value.replace(/\s+/g, '')"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('商品') + ':'"
v-show=
"showSearch"
>
<el-form-item
:label=
"$t('商品') + ':'"
v-show=
"showSearch"
>
<div
style=
"display: flex; width: 100%"
>
<el-input
<dict-selector
v-model.trim=
"prodParam.value"
:type=
"DICT_TYPE.EXCEPTION_SELECT_FILED"
:placeholder=
"$t('请输入商品类型、品名或品牌')"
style=
"width: 90px"
clearable
v-model=
"queryParams.goodsNameKey"
/>
<product-selector
v-model=
"queryParams.goodsName"
style=
"flex: 1"
:clearable=
"true"
@
keyup.enter.native=
"handleQuery"
@
keyup.enter.native=
"handleQuery"
@
input=
"replaceSpace(prodParam, 'value')"
>
<
template
slot=
"prepend"
>
<dict-selector
:type=
"DICT_TYPE.ORDER_QUERY_PROD_FIELD"
defaultable
v-model=
"prodParam.key"
class=
"w-50"
/>
/>
</div>
</
template
>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('控货状态')"
prop=
"isCargoControl"
>
<el-form-item
:label=
"$t('控货状态')"
prop=
"isCargoControl"
>
<dict-selector
v-model=
"queryParams.cargoControlStatusList"
multiple
:type=
"DICT_TYPE.CONTROL_GOODS_STATUS"
clearable
@
change=
"handleQuery"
/>
<dict-selector
v-model=
"queryParams.cargoControlStatusList"
multiple
:type=
"DICT_TYPE.CONTROL_GOODS_STATUS"
clearable
@
change=
"handleQuery"
/>
...
@@ -137,9 +140,9 @@
...
@@ -137,9 +140,9 @@
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
multiple
v-model=
"queryParams.customsTypes"
clearable
@
change=
"handleQuery"
/>
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMS_TYPE"
multiple
v-model=
"queryParams.customsTypes"
clearable
@
change=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('唛头')"
prop=
"marks"
>
<
!--<
el-form-item :label="$t('唛头')" prop="marks">
<el-input v-model="queryParams.marks" :placeholder="$t('唛头')" clearable @keyup.enter.native="handleQuery" />
<el-input v-model="queryParams.marks" :placeholder="$t('唛头')" clearable @keyup.enter.native="handleQuery" />
</el-form-item>
</el-form-item>
-->
<el-form-item
:label=
"$t('备案属性')"
prop=
"productRecords"
v-show=
"showSearch"
>
<el-form-item
:label=
"$t('备案属性')"
prop=
"productRecords"
v-show=
"showSearch"
>
<dict-selector
<dict-selector
:type=
"DICT_TYPE.PRODUCT_RECORD_ATTRIBUTE"
:type=
"DICT_TYPE.PRODUCT_RECORD_ATTRIBUTE"
...
@@ -178,6 +181,24 @@
...
@@ -178,6 +181,24 @@
@
change=
"handleQuery"
@
change=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('放货率')"
v-show=
"showSearch"
>
<el-input
type=
"number"
v-model.trim=
"releaseRatio.value"
:placeholder=
"$t('请输入数字')"
clearable
@
keyup.enter.native=
"handleQuery"
>
<
template
slot=
"prepend"
>
<dict-selector
:type=
"DICT_TYPE.RELEASE_RATIO_FIELD"
defaultable
v-model=
"releaseRatio.key"
class=
"w-50"
/>
</
template
>
</el-input>
</el-form-item>
<el-form-item
:label=
"$t('提货率')"
v-show=
"showSearch"
>
<el-form-item
:label=
"$t('提货率')"
v-show=
"showSearch"
>
<el-input
<el-input
type=
"number"
type=
"number"
...
@@ -188,7 +209,7 @@
...
@@ -188,7 +209,7 @@
>
>
<
template
slot=
"prepend"
>
<
template
slot=
"prepend"
>
<dict-selector
<dict-selector
:type=
"DICT_TYPE.
CUSTOMER_QUERY_NUMBER
_FIELD"
:type=
"DICT_TYPE.
PICK_RATIO
_FIELD"
defaultable
defaultable
v-model=
"pickRatio.key"
v-model=
"pickRatio.key"
class=
"w-50"
class=
"w-50"
...
@@ -255,11 +276,11 @@
...
@@ -255,11 +276,11 @@
{{
row
.
isLimitUpdateConsignee
?
$t
(
'
是
'
)
:
$t
(
'
否
'
)
}}
{{
row
.
isLimitUpdateConsignee
?
$t
(
'
是
'
)
:
$t
(
'
否
'
)
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
:label=
"$t('提单号')"
align=
"center"
prop=
"status"
>
<
!--<
el-table-column :label="$t('提单号')" align="center" prop="status">
<template slot-scope="scope">
<template slot-scope="scope">
{{scope.row.tidanNo}}
{{scope.row.tidanNo}}
</template>
</template>
</el-table-column>
</el-table-column>
-->
<el-table-column
:label=
"$t('放货人')"
align=
"center"
prop=
"sumWeight"
>
<el-table-column
:label=
"$t('放货人')"
align=
"center"
prop=
"sumWeight"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
cargoControlName
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
cargoControlName
}}
</
template
>
</el-table-column>
</el-table-column>
...
@@ -416,6 +437,16 @@ export default {
...
@@ -416,6 +437,16 @@ export default {
key
:
"
numberKey
"
,
key
:
"
numberKey
"
,
value
:
""
,
value
:
""
,
},
},
// 商品搜索条件
prodParam
:
{
key
:
"
prodKey
"
,
value
:
""
,
},
// 放货率
releaseRatio
:{
key
:
'
geReleaseRatio
'
,
value
:
''
},
channelList
:
[],
channelList
:
[],
AddressProvince
:
[],
AddressProvince
:
[],
AddressCity
:
[],
AddressCity
:
[],
...
@@ -424,7 +455,7 @@ export default {
...
@@ -424,7 +455,7 @@ export default {
objectiveId
:
null
,
objectiveId
:
null
,
destWarehouseId
:
null
,
destWarehouseId
:
null
,
pickRatio
:
{
pickRatio
:
{
key
:
"
eqNumberKey
"
,
key
:
"
gePickRatio
"
,
value
:
""
,
value
:
""
,
}
}
};
};
...
@@ -448,7 +479,7 @@ export default {
...
@@ -448,7 +479,7 @@ export default {
timeParams
[
'
begin
'
+
this
.
dateFilterType
]
=
this
.
dateFilter
[
0
]
timeParams
[
'
begin
'
+
this
.
dateFilterType
]
=
this
.
dateFilter
[
0
]
timeParams
[
'
end
'
+
this
.
dateFilterType
]
=
this
.
dateFilter
[
1
]
timeParams
[
'
end
'
+
this
.
dateFilterType
]
=
this
.
dateFilter
[
1
]
}
}
let
queryParams
=
{}
let
queryParams
=
{
...
this
.
queryParams
}
if
(
this
.
noParam
.
value
)
{
if
(
this
.
noParam
.
value
)
{
queryParams
[
this
.
noParam
.
key
]
=
this
.
noParam
.
value
;
queryParams
[
this
.
noParam
.
key
]
=
this
.
noParam
.
value
;
}
}
...
@@ -466,15 +497,20 @@ export default {
...
@@ -466,15 +497,20 @@ export default {
}
}
// 提货率
// 提货率
if
(
this
.
pickRatio
.
value
)
{
if
(
this
.
pickRatio
.
value
)
{
let
key
=
'
eqPickRatio
'
queryParams
[
this
.
pickRatio
.
key
]
=
this
.
pickRatio
.
value
if
(
this
.
pickRatio
.
key
==
'
leNumberKey
'
)
{
}
key
=
'
lePickRatio
'
// 放货率
}
else
if
(
this
.
pickRatio
.
key
==
'
geNumberKey
'
)
{
if
(
this
.
releaseRatio
.
value
)
{
key
=
'
gePickRatio
'
queryParams
[
this
.
releaseRatio
.
key
]
=
this
.
releaseRatio
.
value
}
}
queryParams
[
key
]
=
this
.
pickRatio
.
value
if
(
this
.
prodParam
.
value
){
queryParams
[
this
.
prodParam
.
key
]
=
this
.
prodParam
.
value
}
}
return
Object
.
assign
({},
this
.
queryParams
,
timeParams
,
queryParams
)
if
(
queryParams
.
statusList
?.
length
){
queryParams
.
statusString
=
queryParams
.
statusList
.
join
(
"
,
"
)
delete
queryParams
.
statusList
}
return
Object
.
assign
({},
timeParams
,
queryParams
)
}
}
},
},
watch
:
{
watch
:
{
...
@@ -588,6 +624,9 @@ export default {
...
@@ -588,6 +624,9 @@ export default {
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
resetForm
(
"
queryForm
"
);
this
.
resetForm
(
"
queryForm
"
);
this
.
prodParam
.
value
=
''
this
.
releaseRatio
.
value
=
''
this
.
pickRatio
.
value
=
''
this
.
handleQuery
();
this
.
handleQuery
();
},
},
...
@@ -695,6 +734,10 @@ export default {
...
@@ -695,6 +734,10 @@ export default {
this
.
AddressTown
=
data
;
this
.
AddressTown
=
data
;
})
})
}
}
},
// 自动去除空格
replaceSpace
(
obj
,
field
){
obj
[
field
]
=
obj
[
field
].
replace
(
/
\s
+/g
,
''
);
}
}
}
}
};
};
...
...
src/views/ecw/order/index.vue
View file @
b8e88441
...
@@ -284,8 +284,8 @@
...
@@ -284,8 +284,8 @@
clearable
clearable
@
change=
"handleQuery"
@
change=
"handleQuery"
>
>
<el-option
:label=
"$t('外部仓')"
:value=
"1
"
></el-option>
<el-option
:label=
"$t('外部仓')"
value=
"true
"
></el-option>
<el-option
:label=
"$t('自有仓')"
:value=
"0
"
></el-option>
<el-option
:label=
"$t('自有仓')"
value=
"false
"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -371,7 +371,7 @@
...
@@ -371,7 +371,7 @@
>
>
<
template
slot=
"prepend"
>
<
template
slot=
"prepend"
>
<dict-selector
<dict-selector
:type=
"DICT_TYPE.
CUSTOMER_QUERY_NUMBER
_FIELD"
:type=
"DICT_TYPE.
PICK_RATIO
_FIELD"
defaultable
defaultable
v-model=
"pickRatio.key"
v-model=
"pickRatio.key"
class=
"w-50"
class=
"w-50"
...
@@ -1433,6 +1433,8 @@ export default {
...
@@ -1433,6 +1433,8 @@ export default {
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
packageTypeArr
:
[],
packageTypeArr
:
[],
channelIds
:
[],
goodsTypes
:[]
},
},
warehouseList
:
[],
warehouseList
:
[],
//tradeCityList: [],
//tradeCityList: [],
...
@@ -1483,7 +1485,7 @@ export default {
...
@@ -1483,7 +1485,7 @@ export default {
// 当前操作转异的订单
// 当前操作转异的订单
tureExceptionOrder
:
null
,
tureExceptionOrder
:
null
,
pickRatio
:
{
pickRatio
:
{
key
:
"
eq
NumberKey
"
,
key
:
"
eq
PickRatio
"
,
value
:
""
,
value
:
""
,
}
}
};
};
...
@@ -1732,14 +1734,12 @@ export default {
...
@@ -1732,14 +1734,12 @@ export default {
}
}
// 提货率
// 提货率
if
(
this
.
pickRatio
.
value
)
{
if
(
this
.
pickRatio
.
value
)
{
let
key
=
'
eqPickRatio
'
queryParams
[
this
.
pickRatio
.
key
]
=
this
.
pickRatio
.
value
if
(
this
.
pickRatio
.
key
==
'
leNumberKey
'
)
{
key
=
'
lePickRatio
'
}
else
if
(
this
.
pickRatio
.
key
==
'
geNumberKey
'
)
{
key
=
'
gePickRatio
'
}
}
queryParams
[
key
]
=
this
.
pickRatio
.
value
if
(
queryParams
.
statusList
?.
length
){
queryParams
.
statusString
=
queryParams
.
statusList
.
join
(
"
,
"
)
}
}
delete
queryParams
.
statusList
return
queryParams
;
return
queryParams
;
},
},
/*batchWarehouseAdjustment(){
/*batchWarehouseAdjustment(){
...
@@ -2055,6 +2055,8 @@ export default {
...
@@ -2055,6 +2055,8 @@ export default {
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
page
=
1
;
this
.
queryParams
.
page
=
1
;
this
.
$nextTick
(
this
.
getList
);
this
.
$nextTick
(
this
.
getList
);
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
...
@@ -2063,12 +2065,14 @@ export default {
...
@@ -2063,12 +2065,14 @@ export default {
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
packageTypeArr
:
[],
packageTypeArr
:
[],
channelId
:
''
channelId
:
''
,
goodsTypes
:
[],
channelIds
:
[]
};
};
this
.
destCountryId
=
null
this
.
destCountryId
=
null
this
.
destWarehouseId
=
null
this
.
destWarehouseId
=
null
this
.
objectiveId
=
null
this
.
objectiveId
=
null
this
.
pickRatio
.
value
=
''
this
.
noParam
.
value
=
""
;
this
.
noParam
.
value
=
""
;
this
.
prodParam
.
value
=
""
;
this
.
prodParam
.
value
=
""
;
this
.
dateFilter
=
[];
this
.
dateFilter
=
[];
...
...
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