|
|
|
@ -43,13 +43,13 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native="codeDetail(scope.row.orderId)"
|
|
|
|
|
@click.native="codeDetail(scope.row.id)"
|
|
|
|
|
>详情
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
size="small"
|
|
|
|
|
@click.native="exportStackCode(scope.row.orderId)"
|
|
|
|
|
@click.native="exportStackCode(scope.row.id)"
|
|
|
|
|
>导出
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
@ -81,6 +81,7 @@
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="码详情"
|
|
|
|
|
:visible.sync="codeDetailVisible"
|
|
|
|
|
v-if="codeDetailVisible"
|
|
|
|
|
:append-to-body="true"
|
|
|
|
|
width="70%"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
@ -95,6 +96,7 @@
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="导入垛码"
|
|
|
|
|
:visible.sync="importVisible"
|
|
|
|
|
v-if="importVisible"
|
|
|
|
|
:append-to-body="true"
|
|
|
|
|
width="30%"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
@ -116,6 +118,7 @@
|
|
|
|
|
<el-dialog
|
|
|
|
|
:title="formNames[formName]"
|
|
|
|
|
:visible.sync="stackVisible"
|
|
|
|
|
v-if="stackVisible"
|
|
|
|
|
:append-to-body="true"
|
|
|
|
|
width="60%"
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
@ -211,7 +214,13 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {getStackOrderList, deleteStackOrder, updateStack, uploadStack, importStackOrder} from "@/api/production/stackOrder";
|
|
|
|
|
import {
|
|
|
|
|
getStackOrderList,
|
|
|
|
|
deleteStackOrder,
|
|
|
|
|
updateStack,
|
|
|
|
|
uploadStack,
|
|
|
|
|
importStackOrder
|
|
|
|
|
} from "@/api/production/stackOrder";
|
|
|
|
|
import {getStackCodeList, deleteCode, addStackCode} from "@/api/production/stackCode";
|
|
|
|
|
import stackCode from "@/views/production/stackCode";
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
@ -352,7 +361,7 @@ export default {
|
|
|
|
|
code: null
|
|
|
|
|
};
|
|
|
|
|
this.codeQuery = {
|
|
|
|
|
orderIdFk: row.orderId,
|
|
|
|
|
orderIdFk: row.id,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
}
|
|
|
|
@ -413,7 +422,7 @@ export default {
|
|
|
|
|
addStackCode(params).then((res) => {
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
if (isBlank(this.formData.orderId)) {
|
|
|
|
|
this.formData.orderId = res.data.orderIdFk;
|
|
|
|
|
this.formData.orderId = res.data.stackId;
|
|
|
|
|
this.codeQuery.orderIdFk = res.data.orderIdFk;
|
|
|
|
|
}
|
|
|
|
|
this.getStackCodes();
|
|
|
|
@ -482,7 +491,12 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
exportStackCode(orderId) {
|
|
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
orderId: orderId,
|
|
|
|
|
customerId: this.$store.getters.customerId
|
|
|
|
|
};
|
|
|
|
|
window.open(BASE_URL + "/udims/stack/order/exportStackOrder" + "?orderId=" + orderId + "&customerId=" + this.$store.getters.customerId);
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|