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
97ddd548
Commit
97ddd548
authored
Nov 16, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:订单已装柜,未提单制作,修改是否控货,提交时提示“提单已制作,如需修改请联系客服”
parent
19e13b70
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
+22
-9
box.js
src/api/ecw/box.js
+8
-1
PrintLadingBill.vue
src/views/ecw/order/components/PrintLadingBill.vue
+6
-7
edit.vue
src/views/ecw/order/edit.vue
+8
-1
No files found.
src/api/ecw/box.js
View file @
97ddd548
...
...
@@ -214,6 +214,13 @@ export function deleteBillService(id) {
method
:
"
delete
"
,
});
}
// 检查提单状态是否已制作提单
export
function
checkBillOfLadingService
(
orderId
)
{
return
request
({
url
:
"
/shipment/make-bill-of-lading/check/billOfLading/
"
+
orderId
,
method
:
"
post
"
,
});
}
// 获得制作提货单
export
function
getBillService
(
params
)
{
...
...
src/views/ecw/order/components/PrintLadingBill.vue
View file @
97ddd548
...
...
@@ -14,7 +14,6 @@
</
template
>
<
script
>
import
{
parseTime
}
from
'
@/utils/ruoyi
'
import
{
getLadingBill
}
from
'
@/api/ecw/order
'
import
lodop
from
'
@/utils/lodop
'
import
PdfViewer
from
'
@/components/PdfViewer
'
import
FileSaver
from
'
file-saver
'
...
...
src/views/ecw/order/edit.vue
View file @
97ddd548
...
...
@@ -770,6 +770,7 @@ import {getCustomer} from "@/api/ecw/customer";
import
{
debounce
}
from
"
@/utils
"
;
import
{
getOfferSelect
,
getOfferCheck
}
from
"
@/api/ecw/offer
"
import
Template
from
'
@/views/cms/template/index.vue
'
import
{
checkBillOfLadingService
}
from
"
@/api/ecw/box
"
;
// 缓存默认的表单数据
let
makeDefaultFormData
=
()
=>
{
...
...
@@ -1698,6 +1699,12 @@ export default {
}
});
}
},
checkBillOfLading
(){
return
checkBillOfLadingService
(
this
.
form
.
orderId
).
then
((
res
)
=>
{
console
.
log
(
"
检查提单制作状态
"
,
res
.
data
)
return
res
.
data
})
},
/** 提交按钮 */
// type 在新建的时候表示状态,0草稿,2带入仓
...
...
@@ -1778,7 +1785,7 @@ export default {
// 修改的提交
if
(
this
.
form
.
orderId
)
{
if
(
this
.
form
.
tidanNo
)
{
if
(
await
this
.
checkBillOfLading
()
)
{
await
this
.
$confirm
(
this
.
$t
(
'
提单已制作,如需修改请联系客服
'
))
}
let
data
=
Object
.
assign
({},
this
.
form
,
{
...
...
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