Commit ab47aaaa authored by 我在何方's avatar 我在何方

Merge branch 'release' of http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator into release

parents 50ce312f 4b18b42b
...@@ -195,14 +195,14 @@ export default { ...@@ -195,14 +195,14 @@ export default {
this.getBillList(); this.getBillList();
} }
}, },
handleCommand(type, row) { async handleCommand(type, row) {
this.handleType = type; this.handleType = type;
switch (type) { switch (type) {
case "previewBill": case "previewBill":
this.getBill(row); this.getBill(row);
break; break;
case "makeBill": case "makeBill":
this.makeBill(row); await this.makeBill(row);
break; break;
case "queryBill": case "queryBill":
this.getBill(row); this.getBill(row);
...@@ -236,9 +236,10 @@ export default { ...@@ -236,9 +236,10 @@ export default {
this.$set(this.dialogCfg, "width", "1200px"); this.$set(this.dialogCfg, "width", "1200px");
this.$set(this.dialogCfg, "visible", true); this.$set(this.dialogCfg, "visible", true);
}, },
makeBill(row) { async makeBill(row) {
let api = this.type != 'air' ? makeBillService : makeAirBillService; let api = this.type != 'air' ? makeBillService : makeAirBillService;
api({ let loading = this.$loading()
await api({
orderId: row.orderId, orderId: row.orderId,
shipmentId: this.shipmentObj.id, shipmentId: this.shipmentObj.id,
}).then((res) => { }).then((res) => {
...@@ -249,6 +250,10 @@ export default { ...@@ -249,6 +250,10 @@ export default {
billContent, billContent,
orderNo: this.currRow.orderNo, orderNo: this.currRow.orderNo,
}; };
}).catch(() => {
throw new Error('制作提单失败')
}).finally(() => {
loading.close()
}); });
}, },
getBill(row) { getBill(row) {
......
...@@ -38,7 +38,11 @@ ...@@ -38,7 +38,11 @@
<el-row style="margin-top: 5px"> <el-row style="margin-top: 5px">
<el-table border :data="pagList" max-height="600px"> <el-table border :data="pagList" max-height="600px">
<el-table-column align="center" :label="$t('序号')" width="50" type="index" /> <el-table-column align="center" :label="$t('序号')" width="50" type="index" />
<el-table-column :label="$t('箱号')" align="center" prop="pkgNum" /> <el-table-column :label="$t('箱号')" align="center" prop="pkgNum">
<template slot-scope="scope">
<el-button type="text" @click="showPageOrder(scope.row)">{{scope.row.pkgNum}}</el-button>
</template>
</el-table-column>
<el-table-column :label="$t('尺寸')" align="center"> <el-table-column :label="$t('尺寸')" align="center">
<template slot-scope="scope"> {{ scope.row.pkgLength }}*{{ scope.row.pkgWidth }}*{{ scope.row.pkgHight }} </template> <template slot-scope="scope"> {{ scope.row.pkgLength }}*{{ scope.row.pkgWidth }}*{{ scope.row.pkgHight }} </template>
</el-table-column> </el-table-column>
...@@ -118,6 +122,16 @@ ...@@ -118,6 +122,16 @@
<print-tag v-if="printdialogVisible" :tagData="tagData" /> <print-tag v-if="printdialogVisible" :tagData="tagData" />
</el-dialog> </el-dialog>
<!-- 查看已装箱订单 -->
<el-dialog :title="showPageTitle" :visible.sync="showPagedialogVisible" :fullscreen="true" :modal-append-to-body="false" append-to-body @close="pkgPageType=0">
<div class="flex">
<el-radio-group v-model="pkgPageType">
<el-radio-button :label="2">{{ $t('已装箱列表') }}</el-radio-button>
</el-radio-group>
</div>
<pkg-page :pkgData="showPkgData" :shipmentObj="shipmentObj" flag="show" @closeDialog="closeDialog" @reload="getList" />
</el-dialog>
<el-row style="margin-top: 15px" class="operate-button"> <el-row style="margin-top: 15px" class="operate-button">
<el-button :disabled="shipmentObj.approvaling" size="small" type="primary" @click="finish">{{ $t('完成') }}</el-button> <el-button :disabled="shipmentObj.approvaling" size="small" type="primary" @click="finish">{{ $t('完成') }}</el-button>
<el-button size="small" @click="$emit('closeDialog')">{{ $t('取消') }}</el-button> <el-button size="small" @click="$emit('closeDialog')">{{ $t('取消') }}</el-button>
...@@ -186,7 +200,10 @@ export default { ...@@ -186,7 +200,10 @@ export default {
printdialogVisible: false, printdialogVisible: false,
tagData: {}, tagData: {},
// 是否显示补单弹层 // 是否显示补单弹层
showPackDialog: false showPackDialog: false,
showPagedialogVisible: false,
showPageTitle: '',
showPkgData: {}
} }
}, },
created() { created() {
...@@ -260,6 +277,11 @@ export default { ...@@ -260,6 +277,11 @@ export default {
this.pkgPageTitle = this.$t('合包箱号: ') + row.pkgNum this.pkgPageTitle = this.$t('合包箱号: ') + row.pkgNum
this.pkgData = row this.pkgData = row
}, },
showPageOrder(row) {
this.showPagedialogVisible = true
this.showPageTitle = this.$t('合包箱号: ') + row.pkgNum
this.showPkgData = row
},
printTag(id) { printTag(id) {
getMergeTagById(id).then(res=>{ getMergeTagById(id).then(res=>{
this.tagData = res.data this.tagData = res.data
......
<template> <template>
<div> <div>
<el-row style="margin-top: 25px"> <el-row style="margin-top: 25px">
<el-row> <el-row v-if="flag == 'edit'">
<el-button size="small" type="primary" @click="removeBatch">{{ $t('批量移出合包') }}</el-button> <el-button size="small" type="primary" @click="removeBatch">{{ $t('批量移出合包') }}</el-button>
<el-button size="small" type="primary" @click="sealBox">{{ $t('封箱') }}</el-button> <el-button size="small" type="primary" @click="sealBox">{{ $t('封箱') }}</el-button>
</el-row> </el-row>
...@@ -137,6 +137,10 @@ export default { ...@@ -137,6 +137,10 @@ export default {
props: { props: {
pkgData: Object, pkgData: Object,
shipmentObj: Object, shipmentObj: Object,
flag: {
type: String,
default: 'edit'
}
}, },
components: { components: {
printTag printTag
......
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