md
This commit is contained in:
parent
c3835dc1a6
commit
ed92ef8b3a
@ -97,6 +97,14 @@ export function getWaybillDetail(billCode) {
|
||||
})
|
||||
}
|
||||
|
||||
export function getEmisWaybillByBillCode(billCode) {
|
||||
return request({
|
||||
url: '/emis/emisWaybill/getEmisWaybillByBillCode',
|
||||
method: 'get',
|
||||
params: {billCode: billCode}
|
||||
})
|
||||
}
|
||||
|
||||
// 查询运单列表详细
|
||||
export function getEmisWaybill(id) {
|
||||
return request({
|
||||
|
||||
@ -320,7 +320,7 @@
|
||||
</XdTable>
|
||||
|
||||
<div style="text-align: center;margin-bottom: 10px;" v-if="!disabled">
|
||||
<el-button type="primary" @click="handleAddCoPack">确 定</el-button>
|
||||
<el-button type="primary" @click="handleAddCoPack">保存批次</el-button>
|
||||
<el-button @click="handleCancelCo">取 消</el-button>
|
||||
</div>
|
||||
|
||||
@ -335,7 +335,7 @@
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer" style="text-align:center">
|
||||
<el-button type="primary" @click="submitFormBatch">保存批次</el-button>
|
||||
<el-button type="primary" @click="submitFormBatch">确定</el-button>
|
||||
<el-button @click="cancelBatch">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -507,7 +507,7 @@
|
||||
import { listEmisTmsSiteBatch, getTmsGroupBatchNo, getEmisTmsSiteBatch, delEmisTmsSiteBatch, addEmisTmsSiteBatch, updateEmisTmsSiteBatch } from "@/api/emis/emisTmsSiteBatch";
|
||||
import { listEmisTmsSiteBatchDtl, delEmisTmsSiteBatchDtl, addEmisTmsSiteBatchDtl } from "@/api/emis/emisTmsSiteBatchDtl";
|
||||
import { addEmisTmsSiteBatchLoading, listEmisTmsSiteBatchLoading, updateEmisTmsSiteBatchLoading } from "@/api/emis/emisTmsSiteBatchLoading";
|
||||
import { listEmisWaybill, getWaybillDetail } from "@/api/emis/emisWaybill";
|
||||
import { listEmisWaybill, getEmisWaybillByBillCode } from "@/api/emis/emisWaybill";
|
||||
// import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
|
||||
import emisTmsPackForm from '@/views/emis/emisTmsPack/emisTmsPackForm';
|
||||
import elDateAdvPicker from '@/components/DatePickerAdv/elDateAdvPicker';
|
||||
@ -991,6 +991,7 @@ export default {
|
||||
}
|
||||
}
|
||||
this.wayBillData.params.isNeedBatch = 1;
|
||||
this.wayBillData.params.batchType = this.coData.batchType;
|
||||
listEmisWaybill(this.wayBillData).then(response => {
|
||||
this.loading2 = false;
|
||||
if(response.code != 200){
|
||||
@ -1292,7 +1293,16 @@ export default {
|
||||
for(let i = 0; i < bcList.length; i++){
|
||||
let billcode = bcList[i].trim();
|
||||
if(this.emisCoPackDetail.filter(wb => wb.billCode == billcode).length == 0){
|
||||
let billRes = await listEmisWaybill({billCode:billcode});
|
||||
|
||||
let billRes = await listEmisWaybill(
|
||||
{
|
||||
billCode:billcode,
|
||||
params:{
|
||||
isNeedBatch:1,
|
||||
batchType:this.coData.batchType
|
||||
}
|
||||
}
|
||||
);
|
||||
if(!billRes || billRes.code != 200){
|
||||
this.$modal.msgError(billRes && billRes.msg)
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user