diff --git a/src/api/inout/order.js b/src/api/inout/order.js index 6bbd6b7..7b343c8 100644 --- a/src/api/inout/order.js +++ b/src/api/inout/order.js @@ -368,3 +368,11 @@ export function uploadSpms(query) { } ); } + +export function updateOrderPrintRemark(data) { + return axios({ + url: "/udiwms/inout/order/updateOrderPrintRemark", + method: "post", + data: data + }); +} diff --git a/src/views/business/stockOrderInvSearch.vue b/src/views/business/stockOrderInvSearch.vue index c62018b..79658f2 100644 --- a/src/views/business/stockOrderInvSearch.vue +++ b/src/views/business/stockOrderInvSearch.vue @@ -285,7 +285,7 @@ :closeDialog="closeDialog" :detailList="detailList" :billData="curRow" - + :isShow="true" > diff --git a/src/views/business/stockOrderUpdate.vue b/src/views/business/stockOrderUpdate.vue index cc4a1c0..0d69dbd 100644 --- a/src/views/business/stockOrderUpdate.vue +++ b/src/views/business/stockOrderUpdate.vue @@ -28,8 +28,10 @@ 批量设置销售清单 - 批量设置销售发票第一票 - 批量设置销售发票第二票 + 批量设置销售发票第一票 + + 批量设置销售发票第二票 + import {stockOrderDetail, updateStockOrderDetail, findOrderByStockOrder} from "@/api/inout/stockOrder"; -import {updateOrder} from "@/api/inout/order"; +import {updateOrderPrintRemark} from "@/api/inout/order"; export default { name: "stockOrderEdit", @@ -168,8 +170,8 @@ export default { type: Object, required: true, }, - isShow:{ - flag:true, + isShow: { + flag: true, } }, data() { @@ -336,12 +338,14 @@ export default { updateOrderRemark() { - - - updateOrder(this.orderQuery).then((response) => { + let params = { + id: this.billData.orderIdFk, + printRemark: this.orderQuery.printRemark + } + updateOrderPrintRemark(params).then((response) => { if (response.code == 20000) { this.$message.success("保存成功!"); - this.getByStockOrder(); + // this.getByStockOrder(); } }).catch(() => { }) @@ -349,6 +353,7 @@ export default { }, created() { // this.getByStockOrder(); + this.orderQuery.printRemark = this.billData.printRemark; } } diff --git a/src/views/inventory/addDeviceCollectOrder.vue b/src/views/inventory/addDeviceCollectOrder.vue index 61fb09c..883acfc 100644 --- a/src/views/inventory/addDeviceCollectOrder.vue +++ b/src/views/inventory/addDeviceCollectOrder.vue @@ -391,7 +391,6 @@ export default { this.getAllWarehouse(); this.warehouseChange(); } - this.getList(); } }).catch((error) => { }); diff --git a/src/views/inventory/invMAOrderAudit.vue b/src/views/inventory/invMAOrderAudit.vue index 2a1111e..8b52a74 100644 --- a/src/views/inventory/invMAOrderAudit.vue +++ b/src/views/inventory/invMAOrderAudit.vue @@ -22,6 +22,7 @@ {{ item.name }} - {{ item.code }} + {{ item.invSubStorageName }} @@ -190,6 +191,7 @@ export default { 1: "未审核", 2: "已完成" }, + disableSpace: false, }; }, methods: { @@ -205,6 +207,8 @@ export default { page: 1, limit: 20 }; + this.spaceCodeList = []; + this.disableSpace = true; this.getList(); }, onSubmit() { @@ -260,14 +264,19 @@ export default { invWarehouseChange() { this.filterQuery.invSpaceCode = null; this.spaceCodeList = []; - let params = { - invStorageCode: this.filterQuery.invStorageCode, - invWarehouseCode: this.filterQuery.invWarehouseCode, - status: true - }; - getSpaceCodeList(params).then((res) => { - this.spaceCodeList = res.data || []; - }) + if (isBlank(this.filterQuery.invWarehouseCode)) { + this.disableSpace = true; + } else { + this.disableSpace = false; + let params = { + invStorageCode: this.filterQuery.invStorageCode, + invWarehouseCode: this.filterQuery.invWarehouseCode, + status: true + }; + getSpaceCodeList(params).then((res) => { + this.spaceCodeList = res.data || []; + }) + } }, auditOrder(row) { this.$confirm('请选择审核意见', '提示', { diff --git a/src/views/inventory/invMAOrderCompleted.vue b/src/views/inventory/invMAOrderCompleted.vue index 07a665f..ef1e8b0 100644 --- a/src/views/inventory/invMAOrderCompleted.vue +++ b/src/views/inventory/invMAOrderCompleted.vue @@ -22,6 +22,7 @@ {{ item.name }} - {{ item.code }} + {{ item.invSubStorageName }} @@ -166,6 +167,7 @@ export default { 1: "未审核", 2: "已完成" }, + disableSpace: false, }; }, components: { @@ -184,9 +186,12 @@ export default { page: 1, limit: 20 }; + this.spaceCodeList = []; + this.disableSpace = true; this.getList(); }, onSubmit() { + this.filterQuery.page = 1; this.getList(); }, handleSizeChange(val) { @@ -246,14 +251,19 @@ export default { invWarehouseChange() { this.filterQuery.invSpaceCode = null; this.spaceCodeList = []; - let params = { - invStorageCode: this.filterQuery.invStorageCode, - invWarehouseCode: this.filterQuery.invWarehouseCode, - status: true - }; - getSpaceCodeList(params).then((res) => { - this.spaceCodeList = res.data || []; - }) + if (isBlank(this.filterQuery.invWarehouseCode)) { + this.disableSpace = true; + } else { + this.disableSpace = false; + let params = { + invStorageCode: this.filterQuery.invStorageCode, + invWarehouseCode: this.filterQuery.invWarehouseCode, + status: true + }; + getSpaceCodeList(params).then((res) => { + this.spaceCodeList = res.data || []; + }) + } }, auditOrder(row) { this.$confirm('请选择审核意见', '提示', { diff --git a/src/views/inventory/invMAOrderNew.vue b/src/views/inventory/invMAOrderNew.vue index e6dde81..66ff16d 100644 --- a/src/views/inventory/invMAOrderNew.vue +++ b/src/views/inventory/invMAOrderNew.vue @@ -22,6 +22,7 @@ {{ item.name }} - {{ item.code }} + {{ item.invSubStorageName }} @@ -154,7 +155,8 @@ export default { add: "新增养护记录", edit: "编辑养护记录" }, - maOrder: null + maOrder: null, + disableSpace: false }; }, components: { @@ -173,6 +175,8 @@ export default { page: 1, limit: 20, }; + this.spaceCodeList = []; + this.disableSpace = true; this.getList(); }, onSubmit() { @@ -212,14 +216,19 @@ export default { invWarehouseChange() { this.filterQuery.invSpaceCode = null; this.spaceCodeList = []; - let params = { - invStorageCode: this.filterQuery.invStorageCode, - invWarehouseCode: this.filterQuery.invWarehouseCode, - status: true - }; - getSpaceCodeList(params).then((res) => { - this.spaceCodeList = res.data || []; - }) + if (isBlank(this.filterQuery.invWarehouseCode)) { + this.disableSpace = true; + } else { + this.disableSpace = false; + let params = { + invStorageCode: this.filterQuery.invStorageCode, + invWarehouseCode: this.filterQuery.invWarehouseCode, + status: true + }; + getSpaceCodeList(params).then((res) => { + this.spaceCodeList = res.data || []; + }) + } }, closeDialog() { this.formVisible = false;