diff --git a/src/api/system/invSubWarehouse.js b/src/api/system/invSubWarehouse.js index 9b28217..3540137 100644 --- a/src/api/system/invSubWarehouse.js +++ b/src/api/system/invSubWarehouse.js @@ -29,14 +29,6 @@ export function findByFrom(query) { } -export function filterSubByInv(query) { - return axios({ - url: "/spms/sub/inv/warehouse/findByInv", - method: "get", - params: query - }); -} - export function findByDeptUser(query) { return axios({ diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index 06a10de..a396511 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -556,17 +556,15 @@ export default { this.curRow = response.data; this.orderFormData.billNo = this.curRow.orderId; this.refreshCodesPanel(); + this.$message.error(response.message); this.selectRlTitle = response.message; - this.bindRl(response.data); } else if (response.code == 503) { this.curRow = response.data; this.orderFormData.billNo = this.curRow.orderId; this.refreshCodesPanel(); this.selectUnitTitle = response.message; this.$message.error(response.message); - this.handleUnitClick(response.data); } else if (response.code == 504) { - this.$confirm(response.message, "提示", { confirmButtonText: "确定", cancelButtonText: "忽略", diff --git a/src/views/inout/DialogSelectRl.vue b/src/views/inout/DialogSelectRl.vue index a967488..91569cb 100644 --- a/src/views/inout/DialogSelectRl.vue +++ b/src/views/inout/DialogSelectRl.vue @@ -710,10 +710,10 @@ export default { } , bindId(val) { - + debugger if (this.curRow.code != null || this.type == 1) { this.$emit("selectBindRl", val); - this.$emit("closeBindDialog", true); + // this.$emit("closeBindDialog", true); } else { let query = { id: this.curRow.id, diff --git a/src/views/inout/IOFinishCode.vue b/src/views/inout/IOFinishCode.vue index 11f59a8..511d039 100644 --- a/src/views/inout/IOFinishCode.vue +++ b/src/views/inout/IOFinishCode.vue @@ -138,7 +138,6 @@ export default { }, getCodeList() { - debugger this.loading = true; this.query.orderId = this.idQuery.billNo; findByOrderId(this.query) //查找该单号下的所有条码 diff --git a/src/views/inout/PanelCreateOrderCodes.vue b/src/views/inout/PanelCreateOrderCodes.vue index 1305669..8a3fd24 100644 --- a/src/views/inout/PanelCreateOrderCodes.vue +++ b/src/views/inout/PanelCreateOrderCodes.vue @@ -272,7 +272,7 @@ export default { rowStyle({row, rowIndex}) { let rowBackground = {}; - if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId) ) { + if (!this.$isNotBlank(row.supId) || !this.$isNotBlank(row.relId)) { rowBackground.color = '#f60303'; } return rowBackground; @@ -288,6 +288,7 @@ export default { if (response.code == 20000) { this.$message.success("绑定成功"); this.orderFormData.id = this.curRow.orderId; + this.closeBindDialog(); this.getCodeList(); } else { if (response.code == 503) { @@ -326,7 +327,7 @@ export default { closeBindDialog() { this.selectRlVisible = false; this.dialogTableVisible = false; - // this.refreshPanel(); + this.refreshPanel(); }, closeCodeDialog() { diff --git a/src/views/purchase/purArrival/purArrival.vue b/src/views/purchase/purArrival/purArrival.vue index 4acec13..428bd6d 100644 --- a/src/views/purchase/purArrival/purArrival.vue +++ b/src/views/purchase/purArrival/purArrival.vue @@ -32,7 +32,7 @@ 显示/隐藏搜索栏 重置 查询 - 新增送货单据 + 新增到货单据 @@ -86,6 +86,9 @@ + + + @@ -135,8 +138,8 @@ export default { }, formName: null, formMap: { - add: "新增送货单", - update: "编辑送货单", + add: "新增到货单", + update: "编辑到货单", }, statusMap: { 1: "草稿", diff --git a/src/views/purchase/purArrival/purArrivalEditDialog.vue b/src/views/purchase/purArrival/purArrivalEditDialog.vue index 44f10d1..cea86ce 100644 --- a/src/views/purchase/purArrival/purArrivalEditDialog.vue +++ b/src/views/purchase/purArrival/purArrivalEditDialog.vue @@ -32,7 +32,7 @@ - + + + + + + + + + + + + + + + + + { if (valid) { if (this.codeArray.length < 1) { @@ -333,6 +364,7 @@ export default { }); }, rowChange(val) { + this.tableCountChange(this.currentRow); this.currentRow = val; this.selectedIndex = val.index; }, diff --git a/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue b/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue index 23bb62e..b46ab42 100644 --- a/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue +++ b/src/views/purchase/purDelivery/DialogSelectDeliveryList.vue @@ -1,13 +1,303 @@ + + + + + + + + + + + + + + + + + + + + + 显示/隐藏搜索栏 + 查询 + 确定 + + + + + + + + + {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/purchase/purDelivery/purDelivery.vue b/src/views/purchase/purDelivery/purDelivery.vue index da48f2e..28a93c7 100644 --- a/src/views/purchase/purDelivery/purDelivery.vue +++ b/src/views/purchase/purDelivery/purDelivery.vue @@ -46,9 +46,9 @@ {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - - - + + + diff --git a/src/views/purchase/purDelivery/purDeliveryEditDialog.vue b/src/views/purchase/purDelivery/purDeliveryEditDialog.vue index 4af7795..78cc9a3 100644 --- a/src/views/purchase/purDelivery/purDeliveryEditDialog.vue +++ b/src/views/purchase/purDelivery/purDeliveryEditDialog.vue @@ -18,12 +18,12 @@ @@ -36,10 +36,10 @@ + v-for="item in invCodeList" + :key="item.name" + :label="item.name" + :value="item.code"> {{ item.name }} {{ item.warehouseName }} @@ -134,35 +134,36 @@ @@ -178,7 +179,7 @@ import { selectOrderDetail, updateDetail } from "@/api/purchase/purDelivery"; -import {filterSubByInv} from "@/api/system/invSubWarehouse"; +import {filterSubByInv, findInvByUser} from "@/api/system/invSubWarehouse"; import SelectPlanListDialog from "@/views/purchase/purOrder/DialogSelectOrderList"; @@ -247,7 +248,8 @@ export default { storageList: [], invCodeList: [], invQueryData: {}, - selectApplyVisible: false + selectApplyVisible: false, + customerId:this.$store.getters.customerId, }; }, watch: { @@ -261,9 +263,7 @@ export default { }, methods: { saveOrder(status) { - this.tableCountChange(this.currentRow); - this.$refs["dataForm"].validate(valid => { if (valid) { if (this.codeArray.length < 1) { @@ -276,7 +276,7 @@ export default { return this.$message.error("单据日期不能为空!"); } if (this.formData.invCode == "" || this.formData.invCode == null) { - return this.$message.error("采购仓库不能为空!"); + return this.$message.error("送货仓库不能为空!"); } for (let i = 0; i < this.codeArray.length; i++) { if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") { @@ -312,18 +312,18 @@ export default { type: 1, } inserThrOrderWeb(tQuery) - .then(response => { - this.loading = false; - if (response.code === 20000) { - this.$message.success(tMessage + "成功"); - this.closeDialog(true); - } else { - this.$message.error(response.message); - } - }) - .catch(() => { - this.loading = false; - }) + .then(response => { + this.loading = false; + if (response.code === 20000) { + this.$message.success(tMessage + "成功"); + this.closeDialog(true); + } else { + this.$message.error(response.message); + } + }) + .catch(() => { + this.loading = false; + }) }, selectProductFunction() { this.selectProductVisible = true; @@ -349,17 +349,17 @@ export default { orderIdFk: this.pId } selectOrderDetail(this.query) //查找该单号下的所有条码 - .then((response) => { - console.log(response) - this.codeArray = response.data.list || []; - this.total = response.data.total || 0; - this.loading = false; - }) - .catch(() => { - this.loading = false; - this.list = []; - this.total = 0; - }); + .then((response) => { + console.log(response) + this.codeArray = response.data.list || []; + this.total = response.data.total || 0; + this.loading = false; + }) + .catch(() => { + this.loading = false; + this.list = []; + this.total = 0; + }); }, rowChange(val) { this.tableCountChange(this.currentRow); @@ -400,19 +400,19 @@ export default { let delIds = []; delIds.push(row.id) delOrderDetail(delIds) - .then(response => { - this.detailLoading = false; - if (response.code === 20000) { - this.$message.success(response.data); - // this.getStockOrderDetailList(); - this.codeArray.splice(index, 1); - } else { - this.$message.error(response.message); - } - }) - .catch(() => { - this.detailLoading = false; - }) + .then(response => { + this.detailLoading = false; + if (response.code === 20000) { + this.$message.success(response.data); + // this.getStockOrderDetailList(); + this.codeArray.splice(index, 1); + } else { + this.$message.error(response.message); + } + }) + .catch(() => { + this.detailLoading = false; + }) } else { this.$message.success('删除成功'); this.codeArray.splice(index, 1); @@ -428,32 +428,29 @@ export default { getStockOrderDetailList() { this.loading = true; listOrderDetail(this.query) //查找该单号下的所有条码 - .then((response) => { - console.log(response) - this.codeArray = response.data.list || []; - this.total = response.data.total || 0; - this.loading = false; - }) - .catch(() => { - this.loading = false; - this.list = []; - this.total = 0; - }); + .then((response) => { + console.log(response) + this.codeArray = response.data.list || []; + this.total = response.data.total || 0; + this.loading = false; + }) + .catch(() => { + this.loading = false; + this.list = []; + this.total = 0; + }); }, findSubInvs() { this.invCodeList = []; - let query = { - filter: 3 - }; - filterSubByInv(query) - .then((response) => { - this.invCodeList = response.data || []; - if (this.invCodeList != null && this.invCodeList.length == 1) { - this.formData.invCode = this.invCodeList[0].code; - } - }) - .catch(() => { - }); + findInvByUser() + .then((response) => { + this.invCodeList = response.data || []; + if (this.invCodeList != null && this.invCodeList.length == 1) { + this.formData.invCode = this.invCodeList[0].code; + } + }) + .catch(() => { + }); }, selectApply() { this.selectApplyVisible = true; diff --git a/src/views/purchase/purDelivery/purDeliveryInvoice.vue b/src/views/purchase/purDelivery/purDeliveryInvoice.vue deleted file mode 100644 index 27d746f..0000000 --- a/src/views/purchase/purDelivery/purDeliveryInvoice.vue +++ /dev/null @@ -1,418 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - 显示/隐藏搜索栏 - 重置 - 查询 - - - - - - - - - - {{ parseTime(scope.row.billDate, '{y}-{m}-{d}') }} - - - - - - - - - - {{ statusMap[scope.row.status] }} - - - - - - - - 编辑 - - 删除 - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/purchase/purDelivery/purDeliverySelectProduct.vue b/src/views/purchase/purDelivery/purDeliverySelectProduct.vue index 121dcb2..9204f0d 100644 --- a/src/views/purchase/purDelivery/purDeliverySelectProduct.vue +++ b/src/views/purchase/purDelivery/purDeliverySelectProduct.vue @@ -137,6 +137,10 @@ export default { type: Object, required: true, }, + customerId:{ + type: Object, + required: true, + } }, data() { diff --git a/src/views/supplier/company/basicCompany.vue b/src/views/supplier/company/basicCompany.vue index 8cab9dd..3f42153 100644 --- a/src/views/supplier/company/basicCompany.vue +++ b/src/views/supplier/company/basicCompany.vue @@ -435,7 +435,6 @@ export default { } getCompany(query) .then((response) => { - debugger this.inputQuery = response.data; if(this.inputQuery.auditStatus ==null){ this.inputQuery.auditStatus=0; diff --git a/src/views/system/dept/invRelBusType.vue b/src/views/system/dept/invRelBusType.vue index ed8b4a9..9ecf1bb 100644 --- a/src/views/system/dept/invRelBusType.vue +++ b/src/views/system/dept/invRelBusType.vue @@ -106,7 +106,6 @@ export default { }, onAddSubmit() { - debugger var postRequesty = { invCode: this.inputQuery.code, selectActions: [],