Commit f0960263 authored by zhengyi's avatar zhengyi

Merge branch 'pre-release'

parents 1529e887 b503e97d
...@@ -67,6 +67,12 @@ ...@@ -67,6 +67,12 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('关联单')" align="center" prop="hasRelationOrder" width="120">
<template slot-scope="scope">
<el-link type="primary" v-if="scope.row.hasRelationOrder" @click.native="showRelatedOrder(scope.row)">{{ $t('') }}</el-link>
<span v-else>{{ $t('') }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('计划箱数')" align="center" prop="num"> <el-table-column :label="$t('计划箱数')" align="center" prop="num">
<template slot-scope="scope"> <template slot-scope="scope">
{{getTotlContent(scope.row,['num'])}} {{getTotlContent(scope.row,['num'])}}
...@@ -74,7 +80,7 @@ ...@@ -74,7 +80,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('实装箱数')" align="center" prop="installNum"> <el-table-column :label="$t('实装箱数')" align="center" prop="installNum">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.installNum }}{{$t('')}} {{ scope.row.installNum }}{{$t('')}}<span v-if="scope.row.mixStatus === 1">{{$t('混箱')}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('体积')" align="center" prop="volume"> <el-table-column :label="$t('体积')" align="center" prop="volume">
...@@ -237,12 +243,15 @@ ...@@ -237,12 +243,15 @@
<!-- 拆单 --> <!-- 拆单 -->
<splitOrder v-bind="$attrs" v-on="$listeners" :shipmentObj="shipmentObj" v-if="dialogConfig.type === 'splitOrder' && dialogConfig.dialogVisible" :currRow="currRow" @closeDialog2="closeDialog2" /> <splitOrder v-bind="$attrs" v-on="$listeners" :shipmentObj="shipmentObj" v-if="dialogConfig.type === 'splitOrder' && dialogConfig.dialogVisible" :currRow="currRow" @closeDialog2="closeDialog2" />
</el-dialog> </el-dialog>
<!-- 关联单 -->
<realated-order :orderItemId="showRelatedItemId" v-if="showRelatedItemId" @close="showRelatedItemId=null"></realated-order>
</div> </div>
</template> </template>
<script> <script>
import dayjs from "dayjs"; import dayjs from "dayjs";
import supplementOrder from "./supplementOrder.vue"; import supplementOrder from "./supplementOrder.vue";
import RealatedOrder from "../../../shippingSea/nodePage/tally/realatedOrder.vue";
import { getCabinetPage } from "@/api/ecw/cabinet"; import { getCabinetPage } from "@/api/ecw/cabinet";
import { getbox } from "@/api/ecw/box"; import { getbox } from "@/api/ecw/box";
import { import {
...@@ -280,12 +289,14 @@ export default { ...@@ -280,12 +289,14 @@ export default {
supplementOrder, supplementOrder,
splitOrder, splitOrder,
WorkFlow, WorkFlow,
RealatedOrder,
}, },
props: { props: {
shipmentObj: Object, shipmentObj: Object,
}, },
data() { data() {
return { return {
showRelatedItemId: null,
// 表格数据 // 表格数据
listData: [], listData: [],
// 表格数据 // 表格数据
...@@ -524,6 +535,10 @@ export default { ...@@ -524,6 +535,10 @@ export default {
}); });
} }
}, },
// 显示关联单
showRelatedOrder(row) {
this.showRelatedItemId = row.orderId
},
/* 移出 */ /* 移出 */
moveOut(row) { moveOut(row) {
let params = { let params = {
......
...@@ -354,6 +354,7 @@ export default { ...@@ -354,6 +354,7 @@ export default {
createSection({ createSection({
shipmentId: this.$attrs.shipmentObj.id, shipmentId: this.$attrs.shipmentObj.id,
isCover: 1, isCover: 1,
isTally: this.$attrs.shipmentObj.isTally
}).then((res) => { }).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.getSecGoods(); this.getSecGoods();
......
...@@ -132,6 +132,7 @@ ...@@ -132,6 +132,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center" width="160" class-name="small-padding fixed-width" fixed="right"> <el-table-column :label="$t('操作')" align="center" width="160" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="supplementClick('supplementOrder',$t('补单'))">{{$t('补单')}}</el-button>
<el-button :disabled="shipmentObj.approvaling" type="text" size="small" @click="tallyClick('single',scope.row)">{{$t('理货')}}</el-button> <el-button :disabled="shipmentObj.approvaling" type="text" size="small" @click="tallyClick('single',scope.row)">{{$t('理货')}}</el-button>
<el-button :disabled="shipmentObj.approvaling" type="text" size="small" @click="removeClick('single',scope.row)">{{$t('移出')}}</el-button> <el-button :disabled="shipmentObj.approvaling" type="text" size="small" @click="removeClick('single',scope.row)">{{$t('移出')}}</el-button>
<el-button type="text" size="small" @click="currentTurnExceptionOrder=scope.row">{{$t('转异')}}</el-button> <el-button type="text" size="small" @click="currentTurnExceptionOrder=scope.row">{{$t('转异')}}</el-button>
...@@ -149,7 +150,9 @@ ...@@ -149,7 +150,9 @@
</el-row> </el-row>
<!-- 对话框 --> <!-- 对话框 -->
<el-dialog custom-class="shipping-dialog" :title="dialogConfig.title" :visible.sync="dialogConfig.dialogVisible" :fullscreen="dialogConfig.fullscreen" :width="dialogConfig.width" :modal-append-to-body=false append-to-body> <el-dialog custom-class="shipping-dialog" :title="dialogConfig.title" :visible.sync="dialogConfig.dialogVisible" :fullscreen="dialogConfig.fullscreen" :width="dialogConfig.width" :modal-append-to-body=false append-to-body>
<batchTally v-if="dialogConfig.dialogVisible" v-bind="$attrs" @closeDialog="closeDialog" :type="dialogConfig.type" :tallyRows="tallyRows" :shipmentObj="shipmentObj" /> <!-- 补单 -->
<supplementOrder v-if="dialogConfig.type === 'supplementOrder' && dialogConfig.dialogVisible" v-bind="$attrs" :shipmentObj="shipmentObj" @supplementFinish="supplementFinish" />
<batchTally v-if="dialogConfig.type !== 'supplementOrder' && dialogConfig.dialogVisible" v-bind="$attrs" @closeDialog="closeDialog" :type="dialogConfig.type" :tallyRows="tallyRows" :shipmentObj="shipmentObj" />
</el-dialog> </el-dialog>
<warehouse-detail :order="order" :orderItemId="showWarehouseInItemId" v-if="showWarehouseInItemId" @close="showWarehouseInItemId=null" /> <warehouse-detail :order="order" :orderItemId="showWarehouseInItemId" v-if="showWarehouseInItemId" @close="showWarehouseInItemId=null" />
<exception <exception
...@@ -241,6 +244,7 @@ ...@@ -241,6 +244,7 @@
</template> </template>
<script> <script>
import supplementOrder from "../cabinet/supplementOrder.vue";
import batchTally from "./batchTally.vue"; import batchTally from "./batchTally.vue";
import { getTallyList, tallyRemove, tallyCommit, getOrderDetailByBoxNo } from "@/api/ecw/boxSea"; import { getTallyList, tallyRemove, tallyCommit, getOrderDetailByBoxNo } from "@/api/ecw/boxSea";
import { checkInfoSingleCreate, checkInfoBatchCreate, getOrderTagList, checkInfoSingleDelete, checkInfoBatchDelete } from "@/api/ecw/boxAir"; import { checkInfoSingleCreate, checkInfoBatchCreate, getOrderTagList, checkInfoSingleDelete, checkInfoBatchDelete } from "@/api/ecw/boxAir";
...@@ -255,6 +259,7 @@ export default { ...@@ -255,6 +259,7 @@ export default {
inheritAttrs: false, inheritAttrs: false,
components: { components: {
Exception, Exception,
supplementOrder,
batchTally, batchTally,
WarehouseDetail, WarehouseDetail,
RealatedOrder, RealatedOrder,
...@@ -397,6 +402,15 @@ export default { ...@@ -397,6 +402,15 @@ export default {
checkboxSelect(selection) { checkboxSelect(selection) {
this.selectedRows = selection; this.selectedRows = selection;
}, },
/** 点击补单 */
supplementClick(type, title) {
this.shipmentObj.isTally = 1
this.showDialog(type);
},
/* 补单完成 */
supplementFinish() {
this.closeDialog();
},
// 理货点击 // 理货点击
tallyClick(type, data) { tallyClick(type, data) {
if(this.shipmentObj.approvaling){ if(this.shipmentObj.approvaling){
...@@ -486,11 +500,17 @@ export default { ...@@ -486,11 +500,17 @@ export default {
// 打开弹窗 // 打开弹窗
showDialog(type) { showDialog(type) {
switch (type) { switch (type) {
case "supplementOrder":
this.$set(this.dialogConfig, "fullscreen", true);
this.$set(this.dialogConfig, "title", this.$t("补单"));
break;
case "batchTally": case "batchTally":
this.$set(this.dialogConfig, "fullscreen", false);
this.$set(this.dialogConfig, "title", this.$t("批量理货")); this.$set(this.dialogConfig, "title", this.$t("批量理货"));
this.$set(this.dialogConfig, "width", "500px"); this.$set(this.dialogConfig, "width", "500px");
break; break;
case "singleTally": case "singleTally":
this.$set(this.dialogConfig, "fullscreen", false);
this.$set(this.dialogConfig, "title", this.$t("理货确认")); this.$set(this.dialogConfig, "title", this.$t("理货确认"));
this.$set(this.dialogConfig, "width", "500px"); this.$set(this.dialogConfig, "width", "500px");
break; break;
......
...@@ -67,6 +67,12 @@ ...@@ -67,6 +67,12 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('关联单')" align="center" prop="hasRelationOrder" width="120">
<template slot-scope="scope">
<el-link type="primary" v-if="scope.row.hasRelationOrder" @click.native="showRelatedOrder(scope.row)">{{ $t('') }}</el-link>
<span v-else>{{ $t('') }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('计划箱数')" align="center" prop="num"> <el-table-column :label="$t('计划箱数')" align="center" prop="num">
<template slot-scope="scope"> <template slot-scope="scope">
{{getTotlContent(scope.row,['num'])}} {{getTotlContent(scope.row,['num'])}}
...@@ -74,7 +80,7 @@ ...@@ -74,7 +80,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('实装箱数')" align="center" prop="installNum"> <el-table-column :label="$t('实装箱数')" align="center" prop="installNum">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.installNum }}{{$t('')}} {{ scope.row.installNum }}{{$t('')}}<span v-if="scope.row.mixStatus === 1">{{$t('混箱')}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('体积')" align="center" prop="volume"> <el-table-column :label="$t('体积')" align="center" prop="volume">
...@@ -237,12 +243,15 @@ ...@@ -237,12 +243,15 @@
<!-- 拆单 --> <!-- 拆单 -->
<splitOrder v-bind="$attrs" v-on="$listeners" :shipmentObj="shipmentObj" v-if="dialogConfig.type === 'splitOrder' && dialogConfig.dialogVisible" :currRow="currRow" @closeDialog2="closeDialog2" /> <splitOrder v-bind="$attrs" v-on="$listeners" :shipmentObj="shipmentObj" v-if="dialogConfig.type === 'splitOrder' && dialogConfig.dialogVisible" :currRow="currRow" @closeDialog2="closeDialog2" />
</el-dialog> </el-dialog>
<!-- 关联单 -->
<realated-order :orderItemId="showRelatedItemId" v-if="showRelatedItemId" @close="showRelatedItemId=null"></realated-order>
</div> </div>
</template> </template>
<script> <script>
import dayjs from "dayjs"; import dayjs from "dayjs";
import supplementOrder from "./supplementOrder.vue"; import supplementOrder from "./supplementOrder.vue";
import RealatedOrder from "../tally/realatedOrder.vue";
import { getCabinetPage } from "@/api/ecw/cabinet"; import { getCabinetPage } from "@/api/ecw/cabinet";
import { getbox } from "@/api/ecw/box"; import { getbox } from "@/api/ecw/box";
import { import {
...@@ -280,12 +289,14 @@ export default { ...@@ -280,12 +289,14 @@ export default {
supplementOrder, supplementOrder,
splitOrder, splitOrder,
WorkFlow, WorkFlow,
RealatedOrder,
}, },
props: { props: {
shipmentObj: Object, shipmentObj: Object,
}, },
data() { data() {
return { return {
showRelatedItemId: null,
// 表格数据 // 表格数据
listData: [], listData: [],
// 表格数据 // 表格数据
...@@ -524,6 +535,10 @@ export default { ...@@ -524,6 +535,10 @@ export default {
}); });
} }
}, },
// 显示关联单
showRelatedOrder(row) {
this.showRelatedItemId = row.orderId
},
/* 移出 */ /* 移出 */
moveOut(row) { moveOut(row) {
let params = { let params = {
......
...@@ -387,6 +387,7 @@ export default { ...@@ -387,6 +387,7 @@ export default {
createSection({ createSection({
shipmentId: this.$attrs.shipmentObj.id, shipmentId: this.$attrs.shipmentObj.id,
isCover: 1, isCover: 1,
isTally: this.$attrs.shipmentObj.isTally
}).then((res) => { }).then((res) => {
serviceMsg(res, this).then(() => { serviceMsg(res, this).then(() => {
this.getSecGoods(); this.getSecGoods();
......
...@@ -120,6 +120,7 @@ ...@@ -120,6 +120,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center" width="160" class-name="small-padding fixed-width" fixed="right"> <el-table-column :label="$t('操作')" align="center" width="160" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="supplementClick('supplementOrder',scope.row)">{{$t('补单')}}</el-button>
<el-button type="text" size="small" @click="tallyClick('single',scope.row)">{{$t('理货')}}</el-button> <el-button type="text" size="small" @click="tallyClick('single',scope.row)">{{$t('理货')}}</el-button>
<el-button type="text" size="small" @click="removeClick('single',scope.row)">{{$t('移出')}}</el-button> <el-button type="text" size="small" @click="removeClick('single',scope.row)">{{$t('移出')}}</el-button>
</template> </template>
...@@ -136,14 +137,17 @@ ...@@ -136,14 +137,17 @@
</el-row> </el-row>
<!-- 对话框 --> <!-- 对话框 -->
<el-dialog custom-class="shipping-dialog" :title="dialogConfig.title" :visible.sync="dialogConfig.dialogVisible" :fullscreen="dialogConfig.fullscreen" :width="dialogConfig.width" :modal-append-to-body=false append-to-body> <el-dialog custom-class="shipping-dialog" :title="dialogConfig.title" :visible.sync="dialogConfig.dialogVisible" :fullscreen="dialogConfig.fullscreen" :width="dialogConfig.width" :modal-append-to-body=false append-to-body>
<batchTally v-if="dialogConfig.dialogVisible" v-bind="$attrs" @closeDialog="closeDialog" :type="dialogConfig.type" :tallyRows="tallyRows" :shipmentObj="shipmentObj" /> <!-- 补单 -->
<supplementOrder v-if="dialogConfig.type === 'supplementOrder' && dialogConfig.dialogVisible" v-bind="$attrs" :shipmentObj="shipmentObj" @supplementFinish="supplementFinish" />
<batchTally v-if="dialogConfig.type !== 'supplementOrder' && dialogConfig.dialogVisible" v-bind="$attrs" @closeDialog="closeDialog" :type="dialogConfig.type" :tallyRows="tallyRows" :shipmentObj="shipmentObj" />
</el-dialog> </el-dialog>
<warehouse-detail :order="order" :orderItemId="showWarehouseInItemId" v-if="showWarehouseInItemId" @close="showWarehouseInItemId=null" /> <warehouse-detail :order="order" :orderItemId="showWarehouseInItemId" v-if="showWarehouseInItemId" @close="showWarehouseInItemId=null" />
<realated-order :order="order" :orderItemId="showRelatedItemId" v-if="showRelatedItemId" @close="showRelatedItemId=null"></realated-order> <realated-order :orderItemId="showRelatedItemId" v-if="showRelatedItemId" @close="showRelatedItemId=null"></realated-order>
</div> </div>
</template> </template>
<script> <script>
import supplementOrder from "../cabinet/supplementOrder.vue";
import batchTally from "./batchTally.vue"; import batchTally from "./batchTally.vue";
import { getTallyList, tallyRemove, tallyCommit } from "@/api/ecw/boxSea"; import { getTallyList, tallyRemove, tallyCommit } from "@/api/ecw/boxSea";
import { formatDate, serviceMsg } from "../../utils"; import { formatDate, serviceMsg } from "../../utils";
...@@ -155,6 +159,7 @@ export default { ...@@ -155,6 +159,7 @@ export default {
name: "tally", name: "tally",
inheritAttrs: false, inheritAttrs: false,
components: { components: {
supplementOrder,
batchTally, batchTally,
WarehouseDetail, WarehouseDetail,
RealatedOrder, RealatedOrder,
...@@ -253,6 +258,15 @@ export default { ...@@ -253,6 +258,15 @@ export default {
checkboxSelect(selection) { checkboxSelect(selection) {
this.selectedRows = selection; this.selectedRows = selection;
}, },
/** 点击补单 */
supplementClick(type, title) {
this.shipmentObj.isTally = 1
this.showDialog(type);
},
/* 补单完成 */
supplementFinish() {
this.closeDialog();
},
// 理货点击 // 理货点击
tallyClick(type, data) { tallyClick(type, data) {
if (type === "batch") { if (type === "batch") {
...@@ -339,11 +353,17 @@ export default { ...@@ -339,11 +353,17 @@ export default {
// 打开弹窗 // 打开弹窗
showDialog(type) { showDialog(type) {
switch (type) { switch (type) {
case "supplementOrder":
this.$set(this.dialogConfig, "fullscreen", true);
this.$set(this.dialogConfig, "title", this.$t("补单"));
break;
case "batchTally": case "batchTally":
this.$set(this.dialogConfig, "fullscreen", false);
this.$set(this.dialogConfig, "title", this.$t("批量理货")); this.$set(this.dialogConfig, "title", this.$t("批量理货"));
this.$set(this.dialogConfig, "width", "500px"); this.$set(this.dialogConfig, "width", "500px");
break; break;
case "singleTally": case "singleTally":
this.$set(this.dialogConfig, "fullscreen", false);
this.$set(this.dialogConfig, "title", this.$t("理货确认")); this.$set(this.dialogConfig, "title", this.$t("理货确认"));
this.$set(this.dialogConfig, "width", "500px"); this.$set(this.dialogConfig, "width", "500px");
break; break;
......
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