diff --git a/public/config.json b/public/config.json index 07fe4ff..7ca6b5f 100644 --- a/public/config.json +++ b/public/config.json @@ -1,6 +1,6 @@ { "UDI_SYNC_SERVER_IP": "http://192.168.0.109:9995/", - "BASE_URL":"http://139.9.178.73:8080/UDI_WMS_MC/", - "SERVER_IP": "http://139.9.178.73:8080/", + "BASE_URL":"http://192.168.0.109:9991/", + "SERVER_IP": "http://192.168.0.109:9991/", "WEBSOCKET_URL": "ws://192.168.0.109:9991/UDI_WMS_MC/api/websocket/" } diff --git a/src/api/basic/busOriginType.js b/src/api/basic/busOriginType.js index 2f7e707..b061532 100644 --- a/src/api/basic/busOriginType.js +++ b/src/api/basic/busOriginType.js @@ -30,3 +30,10 @@ export function downloadBussinessType(query) { data: query }); } +export function getOriginJoinBusType(query) { + return axios({ + url: "/udiwms/originBusType/filterJoin", + method: "get", + params: query + }); +} diff --git a/src/api/basic/companyProductRelevance.js b/src/api/basic/companyProductRelevance.js index a281b21..b5aecc5 100644 --- a/src/api/basic/companyProductRelevance.js +++ b/src/api/basic/companyProductRelevance.js @@ -19,9 +19,26 @@ export function insertFilter(query) { ); } +export function insertCompanyProductRelevance(query) { + return axios( + { + url: "/sale/info/insertCompanyProductRelevance", + method: "post", + data: query + } + ); +} - +export function deleteCompanyProductRelevance(query) { + return axios( + { + url: "/sale/info/deleteCompanyProductRelevance", + method: "post", + data: query + } + ); +} diff --git a/src/api/thrsys/thrOrderReceive.js b/src/api/thrsys/thrOrderReceive.js new file mode 100644 index 0000000..ac7680f --- /dev/null +++ b/src/api/thrsys/thrOrderReceive.js @@ -0,0 +1,9 @@ +import axios from "@/utils/axios"; + +export function inserThrOrderWeb(query) { + return axios({ + url: "/udiwms/thrsys/order/insertWeb", + method: "post", + data: query + }); +} diff --git a/src/router/index.js b/src/router/index.js index 6548e20..1f7b78a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -97,7 +97,8 @@ import UdiInfoDonwloadSmp from "../views/basic/UdiInfoDonwloadSmp.vue"; import thrOrderExportSmp from "../views/thrsys/ThrOrderExportSmp.vue"; import thrProductsExportSmp from "../views/thrsys/ThrProductsExportSmp.vue"; import thrCorpsExportSmp from "../views/thrsys/ThrCorpsExportSmp.vue"; - +import receiveOrderNew from "../views/thrsys/ThrOrdedrReceiveAdd.vue"; +import receiveOrderSearch from "../views/thrsys/ThrOrdedrReceiveSearch.vue"; import thrInvWarehouse from "@/views/thrsys/ThrInvWarehouse"; import syncConfig from "../views/thrsys/SysUdimsConfig.vue"; @@ -336,7 +337,34 @@ export const asyncRouterMap = [ // authRule: ["inout/ioErrorOrder"] // } // }, + { + path: "/receiveOrder", + component: Empty, + name: "耗材领用管理", + redirect: "/receiveOrder/receiveOrderNew", + meta: { + authRule: ["receiveOrder"] + }, + children: [ + { + path: "receiveOrderNew", + component: receiveOrderNew, + name: "新增领用单据", + meta: { + authRule: ["stock/receiveOrderNew"] + } + }, + { + path: "receiveOrderSearch", + component: receiveOrderSearch, + name: "领用单查询", + meta: { + authRule: ["stock/receiveOrderSearch"] + } + }, + ] + }, { path: "/inoutOrder", diff --git a/src/views/basic/UdiInfoManageSp.vue b/src/views/basic/UdiInfoManageSp.vue index f1a078a..31063d2 100644 --- a/src/views/basic/UdiInfoManageSp.vue +++ b/src/views/basic/UdiInfoManageSp.vue @@ -5,7 +5,7 @@ {{ item.name }} @@ -68,6 +68,13 @@ 查询 + 选入产品 + 锁定 - + @@ -696,12 +710,31 @@ @closeUdi="closeUdi" > + + + + + + + + @@ -718,9 +751,9 @@ import { } from "../../api/basic/udiRelevance"; import {selectSysParamByKey} from "../../api/param/systemParamConfig"; import {filterByUuid, filterCompany} from "../../api/basic/udiInfo"; -import {filterCompanyProductRelevance} from "../../api/basic/companyProductRelevance"; +import {filterCompanyProductRelevance, deleteCompanyProductRelevance} from "../../api/basic/companyProductRelevance"; import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain" - +import selectProduct from "./basicCompanyProductsImport"; import selectUdi from "./UdiInfoRelevance.vue"; import selectErp from "./UdiInfoselectErpUdi"; import selectLocalUdi from "./UdiInfoSelectLocalUdi"; @@ -742,6 +775,7 @@ export default { thrPiId: null, filterType: null, companyName: null, + unitFk: null, }, fromOptions: [], editQuery: null, @@ -776,6 +810,7 @@ export default { cpmctymc: null, ggxh: null }, + selectProductVisible: false, multipleSelection: [], editDialogVisible: false, //详情 selectUdiDialogVisible: false, //关联选入 @@ -784,7 +819,7 @@ export default { selectVersionVisible: false, isUseDyCheck: false, lockStatusMap: {"1": "未提交", "2": "已提交", "3": "已锁定"}, - loading:false, + loading: false, }; }, @@ -798,7 +833,8 @@ export default { unionCode: null, udiCode: null, ylqxzcrbarmc: "", - cpmctymc: "", thrPiId: null, + cpmctymc: "", + thrPiId: null, nameCode: "", ggxh: null, page: 1, @@ -808,6 +844,10 @@ export default { this.getList(); }, getList() { + if (this.$isBlank(this.filterQuery.unitFk)) { + this.$message.error("请先选择供应商!"); + return; + } this.loading = true; filterCompanyProductRelevance(this.filterQuery) .then((response) => { @@ -1026,6 +1066,37 @@ export default { }, + deleteClick(row) { + this.$confirm("是否删除?", "提示", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }).then(() => { + this.productLoading = true; + let tquery = { + id: row.id, + }; + deleteCompanyProductRelevance(tquery) + .then((response) => { + this.productLoading = false; + if (response.code === 20000) { + this.getList(); + this.$message({ + type: "success", + message: "删除成功!", + }); + } else { + this.$message.error(response.message); + } + }) + .catch(() => { + this.productLoading = false; + }); + }).catch(() => { + }); + }, + + lockProducts(status) { let selectData = this.multipleSelection; let postQuery = { @@ -1112,6 +1183,7 @@ export default { this.selectErpDialogVisible = false; this.selectLocalVisible = false; this.selectVersionVisible = false; + this.selectProductVisible = false; }, onAddSubmit() { if (this.checked == true) { @@ -1179,7 +1251,7 @@ export default { }, findMethod(query) { - console.log(query); + this.fromOptions = []; let cQuery = { key: query, page: 1, @@ -1192,25 +1264,34 @@ export default { }) .catch(() => { this.loading = false; - this.options = []; + this.fromOptions = []; }); }, + selectProduct() { + this.selectProductVisible = true; + }, - }, + } + , mounted() { - }, + } + , components: { selectUdi, selectErp, selectLocalUdi, - }, + selectProduct + } + , created() { - this.getList(); + // this.getList(); this.selectSysParam(); this.getSysFilter(); this.findMethod(); - }, -}; + } + , +} +; diff --git a/src/views/thrsys/ThrOrdedrReceiveAdd.vue b/src/views/thrsys/ThrOrdedrReceiveAdd.vue new file mode 100644 index 0000000..5c8cd91 --- /dev/null +++ b/src/views/thrsys/ThrOrdedrReceiveAdd.vue @@ -0,0 +1,496 @@ + + + + diff --git a/src/views/thrsys/ThrOrdedrReceiveSearch.vue b/src/views/thrsys/ThrOrdedrReceiveSearch.vue new file mode 100644 index 0000000..e5278bb --- /dev/null +++ b/src/views/thrsys/ThrOrdedrReceiveSearch.vue @@ -0,0 +1,499 @@ + + + + diff --git a/src/views/thrsys/thrOrderNew.vue b/src/views/thrsys/thrOrderNew.vue new file mode 100644 index 0000000..07a017f --- /dev/null +++ b/src/views/thrsys/thrOrderNew.vue @@ -0,0 +1,1114 @@ + + + + + + +