|
|
|
@ -283,8 +283,6 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
orderListError,
|
|
|
|
|
codeList,
|
|
|
|
|
filterOrder,
|
|
|
|
|
deleteByOrderId,
|
|
|
|
|
commitOrder,
|
|
|
|
@ -293,12 +291,10 @@ import {
|
|
|
|
|
import {unitListBykey} from "../../api/warehouse/unit";
|
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
|
import codeDetail from "./errorCode";
|
|
|
|
|
|
|
|
|
|
import ioErrorOrder from "./IOErrorOrder";
|
|
|
|
|
import addOrder from "./addOrder";
|
|
|
|
|
import addHosOrder from "./addHosOrder";
|
|
|
|
|
import store from "../../store";
|
|
|
|
|
import {getBussinessType} from "../../api/basic/bussinessType";
|
|
|
|
|
import {filterAllByUser} from "@/api/basic/invWarehouse";
|
|
|
|
|
import {getLocalJoinByUser} from "@/api/basic/busLocalType";
|
|
|
|
|
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
|
|
|
|
@ -644,12 +640,20 @@ export default {
|
|
|
|
|
orderId: "",
|
|
|
|
|
};
|
|
|
|
|
idQuery.orderId = data;
|
|
|
|
|
console.log(idQuery);
|
|
|
|
|
console.log(this.list);
|
|
|
|
|
commitOrder(idQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success(response.data);
|
|
|
|
|
this.getList();
|
|
|
|
|
for (let i = 0; i < this.list.length; i++) {
|
|
|
|
|
if (idQuery.orderId === this.list[i].id) {
|
|
|
|
|
this.list.splice(i, 1);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
this.$message.success("提交成功");
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|