1.修改建垛关联ID

2.完善导出功能
master
x_z 3 years ago
parent a7b6469223
commit c2e6520d58

@ -39,3 +39,4 @@ export function importStackOrder(data) {
data: data data: data
}) })
} }

@ -59,7 +59,7 @@ export default {
data() { data() {
return { return {
query: { query: {
code: "", code: null,
orderIdFk: null, orderIdFk: null,
page: 1, page: 1,
limit: 20, limit: 20,
@ -76,7 +76,7 @@ export default {
path: "", path: "",
}); });
this.query = { this.query = {
code: "", code: null,
orderIdFk: this.idQuery.orderIdFk, orderIdFk: this.idQuery.orderIdFk,
page: 1, page: 1,
limit: 20, limit: 20,
@ -84,10 +84,6 @@ export default {
this.getCodeList(); this.getCodeList();
}, },
onSubmit() { onSubmit() {
this.$router.push({
path: "",
query: this.query,
});
this.getCodeList(); this.getCodeList();
}, },
handleSizeChange(val) { handleSizeChange(val) {
@ -137,13 +133,6 @@ export default {
}); });
} }
}, },
filters: {},
mounted() {
document.body.ondrop = function (event) {
event.preventDefault();
event.stopPropagation();
};
},
created() { created() {
// //
this.query.orderIdFk = this.idQuery.orderIdFk; this.query.orderIdFk = this.idQuery.orderIdFk;

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

Loading…
Cancel
Save