Commit 97ddd548 authored by zhengyi's avatar zhengyi

fix:订单已装柜,未提单制作,修改是否控货,提交时提示“提单已制作,如需修改请联系客服”

parent 19e13b70
......@@ -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) {
......
......@@ -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'
......
......@@ -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, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment