+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
@@ -162,7 +193,7 @@ import {filterAllByLoc, filterAllByUser} from "@/api/basic/invWarehouse";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {parseTime} from "@/filtres";
import {getLocalJoinByUser} from "@/api/basic/busLocalType";
-import {stockOrderChange} from "@/api/inout/stockOrder";
+import {stockOrderChange, stockOrderDetail} from "@/api/inout/stockOrder";
export default {
name: "DialogcChangeNewOrder",
@@ -328,6 +359,28 @@ export default {
.catch(() => {
});
},
+ getStockOrderDetailList(orderId) {
+ let query = {
+ orderIdFk: orderId
+ }
+ stockOrderDetail(query)
+ .then((response) => {
+ this.detailLoading = false;
+ this.detailList = response.data.list || [];
+ })
+ .catch(() => {
+ this.detailLoading = false;
+ this.detailList = [];
+ });
+ },
+ deleteOrderDetail(index) {
+ for (let i = 0; i < this.detailList.length; i++) {
+ if (index === i) {
+ this.detailList.splice(index, 1);
+ break
+ }
+ }
+ }
},
created() {
@@ -337,6 +390,7 @@ export default {
}
this.getBusType();
this.getStorage();
+ this.getStockOrderDetailList(this.curRow.id);
}
}
diff --git a/src/views/business/codeReplace.vue b/src/views/business/codeReplace.vue
index 1577cc9..0cc0b16 100644
--- a/src/views/business/codeReplace.vue
+++ b/src/views/business/codeReplace.vue
@@ -11,6 +11,10 @@
>查询
+ 编辑
+
@@ -41,7 +45,7 @@
type="text"
@click.native.stop="replaceCodes(scope.row)"
>
- 删除
+ 减一
@@ -132,11 +136,53 @@
>