Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
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
d15dc9d4
authored
Sep 27, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
订单追踪/已采购订单:生成发货通知单阻塞
parent
15384201
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
25 deletions
src/views/OrderTrack/purAdd.vue
src/views/OrderTrack/purAdd.vue
View file @
d15dc9d4
...
...
@@ -9,7 +9,7 @@
<div
class=
"tip-title"
style=
"margin-top: 0"
>
<p>
基本信息
</p>
</div>
<el-form-item
label=
"物流公司:"
prop=
"shipping_id"
>
<el-form-item
label=
"物流公司:"
>
<el-select
v-model=
"formParam.shipping_id"
placeholder=
"请选择"
prop=
"shipping_id"
>
<el-option
value=
"13"
label=
"联邦快递"
></el-option>
<el-option
value=
"12"
label=
"DHL国际快递"
></el-option>
...
...
@@ -26,10 +26,10 @@
<el-option
value=
"17"
label=
"UPS"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"物流单号:"
prop=
"shipment_number"
>
<el-form-item
label=
"物流单号:"
>
<el-input
v-model=
"formParam.shipment_number"
placeholder=
"请输入物流单号"
></el-input>
</el-form-item>
<el-form-item
label=
"发货时间:"
prop=
"delivery_time"
>
<el-form-item
label=
"发货时间:"
>
<el-date-picker
v-model=
"formParam.delivery_time"
type=
"date"
placeholder=
"请选择发货时间"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOption"
></el-date-picker>
</el-form-item>
<el-form-item
label=
"订货公司:"
>
...
...
@@ -78,28 +78,11 @@ export default {
purOrderDetail
:
{},
//基本信息,发货信息
purchase_uid
:
''
,
multipleSelection
:
[],
//选中的数据
pickerOption
:{
pickerOption
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
<
Date
.
now
()
-
8.64e7
;
}
},
rules
:
{
shipping_id
:
[{
required
:
true
,
message
:
'请选择物流公司'
,
trigger
:
'blur'
}],
shipment_number
:
[{
required
:
true
,
message
:
'请输入物流单号'
,
trigger
:
'blur'
}],
delivery_time
:
[{
required
:
true
,
message
:
'请选择发货时间'
,
trigger
:
'blur'
}]
},
itemlist
:
[],
formParam
:
{
company_id
:
''
,
...
...
@@ -146,9 +129,10 @@ export default {
this
.
multipleSelection
=
val
;
},
submit
(
formName
)
{
var
self
=
this
;
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
this
.
multipleSelection
.
length
!=
1
)
{
if
(
this
.
multipleSelection
.
length
<=
0
)
{
this
.
$message
({
message
:
"请选择发货信息"
,
type
:
'warning'
...
...
@@ -165,9 +149,17 @@ export default {
this
.
formParam
.
itemlist
=
filterArr
;
this
.
$http
(
'POST'
,
"/api/purchase/addSupDelivery"
,
this
.
formParam
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$router
.
push
({
path
:
"/orderTrackGoods"
})
this
.
$message
({
message
:
res
.
msg
,
type
:
'success'
,
duration
:
2000
,
onClose
()
{
document
.
querySelector
(
'.item-boxs a.act .iconfont'
).
click
();
self
.
$router
.
push
({
path
:
"/orderTrackGoods"
})
}
});
}
else
{
this
.
$message
({
message
:
res
.
msg
,
...
...
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