Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9c63edce
authored
Jul 23, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
54c5368b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
pages/arrivalRegister/splitGoods.vue
pages/arrivalRegister/splitGoodsRecord.vue
pages/arrivalRegister/splitGoods.vue
View file @
9c63edce
...
...
@@ -668,38 +668,39 @@
* 匹配规则
*/
ruleChange
()
{
var
upperShipmentNumber
=
this
.
list
[
0
].
shipment_number
;
//选择了其他物流,货品名称按钮
if
(
this
.
index
==
0
||
this
.
index
==
1
)
{
var
shipment_number
=
''
;
//物流单号
if
(
this
.
index
==
0
)
{
//其他物流
var
upperShipmentNumber
=
this
.
searchParams
.
shipment_n
umber
.
toUpperCase
();
// 转换为大写以便不区分大小写比较
upperShipmentNumber
=
upperShipmentN
umber
.
toUpperCase
();
// 转换为大写以便不区分大小写比较
shipment_number
=
this
.
searchParams
.
shipment_number
;
}
if
(
this
.
index
==
1
)
{
//货品名称
var
upperShipmentNumber
=
this
.
searchParams
.
goods_name
.
toUpperCase
();
// 转换为大写以便不区分大小写比较
upperShipmentNumber
=
upperShipmentNumber
.
toUpperCase
();
// 转换为大写以便不区分大小写比较
shipment_number
=
this
.
searchParams
.
goods_name
;
}
if
(
upperShipmentNumber
.
startsWith
(
'SF'
))
{
// A、物流单号为"SF"开头(不区分大小写),则自动选择物流公司为"顺丰速运"
this
.
logistics_company_index
=
this
.
logistics_company
.
findIndex
(
company
=>
company
===
'顺丰速运'
);
this
.
formParams
.
logistics_company
=
'顺丰速运'
;
this
.
logistics_sn
=
shipment_number
;
this
.
logistics_sn
=
shipment_number
+
'\n'
;
}
else
if
(
upperShipmentNumber
.
startsWith
(
'1Z'
))
{
// B、物流单号为"1Z"开头(不区分大小写),则自动选择物流公司为"UPS"
this
.
logistics_company_index
=
this
.
logistics_company
.
findIndex
(
company
=>
company
===
'UPS'
);
this
.
formParams
.
logistics_company
=
'UPS'
;
this
.
logistics_sn
=
shipment_number
;
this
.
logistics_sn
=
shipment_number
+
'\n'
;
}
else
{
//如果未识别到,则不更新物流公司 物流单号也清空
this
.
logistics_sn
=
shipment_number
;
this
.
logistics_sn
=
shipment_number
+
'\n'
;
}
}
else
if
(
this
.
index
==
2
)
{
//选择了fedex弹窗则自动选中联邦快递
this
.
logistics_company_index
=
this
.
logistics_company
.
findIndex
(
company
=>
company
===
'联邦快递'
);;
this
.
formParams
.
logistics_company
=
'联邦快递'
;
this
.
logistics_sn
=
this
.
searchParams
.
shipment_number
;
//注意这里是搜索的fedex 已经截取了的数据
this
.
logistics_sn
=
this
.
searchParams
.
shipment_number
+
'\n'
;
//注意这里是搜索的fedex 已经截取了的数据
}
},
/**
...
...
pages/arrivalRegister/splitGoodsRecord.vue
View file @
9c63edce
...
...
@@ -123,7 +123,7 @@
logistics_company
:
[
{
name
:
'全部'
,
value
:
''
},
{
name
:
'联邦快递'
,
value
:
'联邦快递'
},
{
name
:
'DHL国际快递'
,
value
:
'国际快递'
},
{
name
:
'DHL国际快递'
,
value
:
'
DHL
国际快递'
},
{
name
:
'顺丰速运'
,
value
:
'顺丰速运'
},
{
name
:
'供应商配送'
,
value
:
'供应商配送'
},
{
name
:
'快递送货'
,
value
:
'快递送货'
},
...
...
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