From cdb53973e994f0df01f21703361a0a6baf277510 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Wed, 29 May 2024 09:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BB=B4=E4=BF=AE=E9=A2=86?= =?UTF-8?q?=E6=96=99=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/Common/dictcommons.js | 12 + yxt-as-ui/src/api/storage/deliveryNotice.js | 11 - yxt-as-ui/src/api/storage/inOutStorage.js | 8 - yxt-as-ui/src/api/storage/receivingGoods.js | 10 - yxt-as-ui/src/router/index.js | 24 + .../src/views/goods/category/categoryAdd.vue | 9 +- .../maintenance/maintenanceOutbound/index.vue | 424 ++++++++++++ .../relation/chooseproducts.vue | 204 ++++++ .../maintenanceReturnBound/index.vue | 523 +++++++++++++++ .../relation/chooseproducts.vue | 164 +++++ .../views/storage/deliveryNotice/index.vue | 4 +- .../storage/deliveryNotice/receiptAdd.vue | 62 +- .../storage/deliveryNotice/receiptInfo.vue | 8 +- .../src/views/storage/inOutStorage/index.vue | 80 ++- .../views/storage/inStorage/inStorageAdd.vue | 51 +- .../storage/maintenanceInOrOutBound/index.vue | 285 +++++++- .../outStorage/relation/chooseproducts.vue | 4 +- .../views/storage/receivingGoods/index.vue | 4 +- .../receivingGoods/receivingGoodsAdd.vue | 632 +++++++++++------- .../receivingGoods/receivingGoodsInfo.vue | 10 +- .../relation/chooseproducts.vue | 164 +++++ .../receivingGoods/upShelfAddRecord.vue | 6 +- .../views/warehouse/goodsShelves/index.vue | 2 +- 23 files changed, 2342 insertions(+), 359 deletions(-) create mode 100644 yxt-as-ui/src/views/maintenance/maintenanceOutbound/index.vue create mode 100644 yxt-as-ui/src/views/maintenance/maintenanceOutbound/relation/chooseproducts.vue create mode 100644 yxt-as-ui/src/views/maintenance/maintenanceReturnBound/index.vue create mode 100644 yxt-as-ui/src/views/maintenance/maintenanceReturnBound/relation/chooseproducts.vue create mode 100644 yxt-as-ui/src/views/storage/receivingGoods/relation/chooseproducts.vue diff --git a/yxt-as-ui/src/api/Common/dictcommons.js b/yxt-as-ui/src/api/Common/dictcommons.js index d12fd243e7..4392f2ae9b 100644 --- a/yxt-as-ui/src/api/Common/dictcommons.js +++ b/yxt-as-ui/src/api/Common/dictcommons.js @@ -170,3 +170,15 @@ export function getInventoryList(params) { } }) } + +// 查询分页列表 -- 维修工单列表 +export function getAsBusrepairBill(params) { + return request({ + url: '/as/v1/AsBusrepairBill/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) +} diff --git a/yxt-as-ui/src/api/storage/deliveryNotice.js b/yxt-as-ui/src/api/storage/deliveryNotice.js index f4ae321592..fc11c9105a 100644 --- a/yxt-as-ui/src/api/storage/deliveryNotice.js +++ b/yxt-as-ui/src/api/storage/deliveryNotice.js @@ -55,16 +55,5 @@ export default { }); }, - // 选择供应商 - choiceSupplier: function(params) { - return request({ - url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo?orgSid=' + params, - method: 'post', - headers: { - 'Content-Type': 'application/json' - } - }) - }, - } diff --git a/yxt-as-ui/src/api/storage/inOutStorage.js b/yxt-as-ui/src/api/storage/inOutStorage.js index 403bc2f28c..fce7a4d454 100644 --- a/yxt-as-ui/src/api/storage/inOutStorage.js +++ b/yxt-as-ui/src/api/storage/inOutStorage.js @@ -27,14 +27,6 @@ export default { }); }, - // 选择供应商 - choiceSupplier: function(params) { - return request({ - url: '/wms/apiadmin/base/basesupplierinfo/choiceSupplierInfo', - method: 'post', - data: params, - }) - }, // 查询所有仓库 getWarehouses: function(params) { diff --git a/yxt-as-ui/src/api/storage/receivingGoods.js b/yxt-as-ui/src/api/storage/receivingGoods.js index 98844b3fb9..89decb2b1b 100644 --- a/yxt-as-ui/src/api/storage/receivingGoods.js +++ b/yxt-as-ui/src/api/storage/receivingGoods.js @@ -73,16 +73,6 @@ export default { }) }, - // 选择供应商 - choiceSupplier: function(params) { - return request({ - url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo?orgSid=' + params, - method: 'post', - headers: { - 'Content-Type': 'application/json' - } - }) - }, deleteBySids: function(data) { diff --git a/yxt-as-ui/src/router/index.js b/yxt-as-ui/src/router/index.js index 9310bc4601..9f409a4e0e 100644 --- a/yxt-as-ui/src/router/index.js +++ b/yxt-as-ui/src/router/index.js @@ -124,6 +124,30 @@ export const constantRoutes = [{ }, ] }, + + { + path: '/maintenance', + component: Layout, + redirect: '/maintenance', + meta: { + title: '维修领料' + }, + children: [ + { + path: '/maintenanceOutbound/index', + component: () => import('@/views/maintenance/maintenanceOutbound/index.vue'), + name: 'MaintenanceOutbound', + meta: { title: '维修出库', noCache: true } + }, + { + path: '/maintenanceReturnBound/index', + component: () => import('@/views/maintenance/maintenanceReturnBound/index.vue'), + name: 'MaintenanceReturnBound', + meta: { title: '维修退库', noCache: true } + }, + ] + }, + { path: '/warehouse', component: Layout, diff --git a/yxt-as-ui/src/views/goods/category/categoryAdd.vue b/yxt-as-ui/src/views/goods/category/categoryAdd.vue index c68304c2de..5ee779c72c 100644 --- a/yxt-as-ui/src/views/goods/category/categoryAdd.vue +++ b/yxt-as-ui/src/views/goods/category/categoryAdd.vue @@ -312,8 +312,15 @@ } this.$emit('doback') }, - showAdd() {}, + showAdd() { + this.$nextTick(() => { + this.$refs['form_obj'].clearValidate() + }) + }, showEdit(row) { + this.$nextTick(() => { + this.$refs['form_obj'].clearValidate() + }) req.initTypes(row.sid) .then(resp => { if (resp.success) { diff --git a/yxt-as-ui/src/views/maintenance/maintenanceOutbound/index.vue b/yxt-as-ui/src/views/maintenance/maintenanceOutbound/index.vue new file mode 100644 index 0000000000..cc5152c388 --- /dev/null +++ b/yxt-as-ui/src/views/maintenance/maintenanceOutbound/index.vue @@ -0,0 +1,424 @@ + + + + diff --git a/yxt-as-ui/src/views/maintenance/maintenanceOutbound/relation/chooseproducts.vue b/yxt-as-ui/src/views/maintenance/maintenanceOutbound/relation/chooseproducts.vue new file mode 100644 index 0000000000..ff3fc82a82 --- /dev/null +++ b/yxt-as-ui/src/views/maintenance/maintenanceOutbound/relation/chooseproducts.vue @@ -0,0 +1,204 @@ + + + + diff --git a/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/index.vue b/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/index.vue new file mode 100644 index 0000000000..7d8446f7d7 --- /dev/null +++ b/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/index.vue @@ -0,0 +1,523 @@ + + + + diff --git a/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/relation/chooseproducts.vue b/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/relation/chooseproducts.vue new file mode 100644 index 0000000000..27e41dbc46 --- /dev/null +++ b/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/relation/chooseproducts.vue @@ -0,0 +1,164 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/deliveryNotice/index.vue b/yxt-as-ui/src/views/storage/deliveryNotice/index.vue index d69bffaff7..8a4d5c4939 100644 --- a/yxt-as-ui/src/views/storage/deliveryNotice/index.vue +++ b/yxt-as-ui/src/views/storage/deliveryNotice/index.vue @@ -20,7 +20,7 @@ format="yyyy-MM-dd" value-format="yyyy-MM-dd" style="width: 200px;"> - + @@ -79,7 +79,7 @@ - + diff --git a/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue index ee8b88129e..ce75fa227b 100644 --- a/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue +++ b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue @@ -17,10 +17,10 @@
-
+ +
制单人
@@ -38,7 +38,7 @@ -
来源单号
+
采购单号
{{ formobj.sourceBillNo }}
@@ -140,8 +140,8 @@ @@ -211,6 +211,7 @@ getCurrentDate } from '@/utils/index.js' import { + choiceSupplierInfo, getOrgSidByPath } from '@/api/Common/dictcommons' @@ -259,7 +260,16 @@ } } }, - created() {}, + created() { + getOrgSidByPath({ + orgPath: window.sessionStorage.getItem('defaultOrgPath') + }).then((res) => { + if (res.success) { + this.formobj.createOrgSid = res.data + this.formobj.useOrgSid = res.data + } + }) + }, methods: { // getOrgPathSid() { // getOrgSidByPath({ @@ -282,22 +292,34 @@ }, getsupplierLust() { - getOrgSidByPath({ - orgPath: window.sessionStorage.getItem('defaultOrgPath') - }).then((res) => { - if (res.success) { - this.formobj.createOrgSid = res.data - this.formobj.useOrgSid = res.data - req.choiceSupplier(res.data).then((resp) => { - if (resp.success) { - this.supplierNameList = resp.data - console.log("aaaaaa", this.supplierNameList); - } - }) - + // getOrgSidByPath({ + // orgPath: window.sessionStorage.getItem('defaultOrgPath') + // }).then((res) => { + // if (res.success) { + // this.formobj.createOrgSid = res.data + // this.formobj.useOrgSid = res.data + // req.choiceSupplierInfo(res.data).then((resp) => { + // if (resp.success) { + // this.supplierNameList = resp.data + // console.log("aaaaaa", this.supplierNameList); + // } + // }) + + // } + // }) + + + choiceSupplierInfo({ + deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage + .getItem('defaultOrgPath').lastIndexOf('/') + 1) + }).then((resp) => { + if (resp.success) { + this.supplierNameList = resp.data + console.log("aaaaaa", this.supplierNameList); } }) + }, getWarehouseList() { req2.getWarehouses().then((res) => { diff --git a/yxt-as-ui/src/views/storage/deliveryNotice/receiptInfo.vue b/yxt-as-ui/src/views/storage/deliveryNotice/receiptInfo.vue index 38658af6ac..70e7e236ec 100644 --- a/yxt-as-ui/src/views/storage/deliveryNotice/receiptInfo.vue +++ b/yxt-as-ui/src/views/storage/deliveryNotice/receiptInfo.vue @@ -15,10 +15,10 @@
-
+ +
单据编号
@@ -37,7 +37,7 @@ -
来源单号
+
采购单号
{{ formobj.sourceBillNo }}
diff --git a/yxt-as-ui/src/views/storage/inOutStorage/index.vue b/yxt-as-ui/src/views/storage/inOutStorage/index.vue index b2212efe41..21b4899a77 100644 --- a/yxt-as-ui/src/views/storage/inOutStorage/index.vue +++ b/yxt-as-ui/src/views/storage/inOutStorage/index.vue @@ -81,21 +81,21 @@ @selection-change="selectionLineChangeHandle"> - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +
@@ -115,6 +115,10 @@ + import req from '@/api/storage/oldPartsInAndOutStorage.js' + import ButtonBar from '@/components/ButtonBar' + import Pagination from '@/components/pagination' + import pageye from '@/components/pagination/pageye' + // import divAdd from './oldPartsInStorageAdd.vue' + // import divInfo from './oldPartsInvertoryInfo.vue' + export default { + components: { + ButtonBar, + Pagination, + pageye, + // divAdd, + // divInfo + }, + data() { + return { + dialogVisible: false, + btndisabled: false, + viewState: 1, // 1、列表 2、添加 3、修改 4、查看 + isSearchShow: false, + searchxianshitit: '显示查询条件', + tableLoading: false, + dataList: [], + btnList: [{ + type: 'success', + size: 'small', + icon: 'export', + btnKey: 'toBuild', + btnLabel: '导出' + }, + { + type: 'info', + size: 'small', + icon: 'cross', + btnKey: 'doClose', + btnLabel: '关闭' + } + ], + queryParams: { + current: 1, + size: 10, + total: 0, + params: { + name: '' + } + }, + sids: [], + selectionList: [], + billStateList: [{ + name: "维修出库", + sid: "0" + }, + { + name: "维修退库", + sid: "1" + } + ], + } + }, + mounted() { + this.$refs['btnbar'].setButtonList(this.btnList) + }, + created() { + this.loadList() + }, + methods: { + + selectionLineChangeHandle(val) { + console.log("val", val); + + this.selectionList = val + const aa = [] + val.forEach(element => { + aa.push(element.sid) + }) + this.sids = aa + + }, + // 搜索条件效果 + clicksearchShow() { + this.isSearchShow = !this.isSearchShow + if (this.isSearchShow) { + this.searchxianshitit = '隐藏查询条件' + } else { + this.searchxianshitit = '显示查询条件' + } + }, + btnHandle(btnKey) { + switch (btnKey) { + case 'doDel': + // this.doDel() + this.toRelevancy() + break + case 'toBuild': + this.toBuild() + break + case 'doClose': + this.doClose() + break + default: + break + } + }, + loadList() { + this.tableLoading = true + req.listPage(this.queryParams).then((resp) => { + this.tableLoading = false + if (resp.success) { + const data = resp.data + this.queryParams.total = data.total + this.dataList = data.records + } else { + // 根据resp.code进行异常情况处理 + this.dataList = [] + this.queryParams.total = 0 + } + }).catch(() => { + this.tableLoading = false + }) + }, - \ No newline at end of file + // 序号 + indexMethod(index) { + var pagestart = (this.queryParams.current - 1) * this.queryParams.size + var pageindex = index + 1 + pagestart + return pageindex + }, + dosearch() { + this.queryParams.current = 1 + this.loadList() + }, + resetQuery() { + this.queryParams = { + current: 1, + size: 10, + total: 0, + params: { + name: '' + } + } + this.loadList() + }, + + toBuild() { + if (this.sids.length > 0) { + const loading = this.$loading({ + lock: true, + text: 'Loading', + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)' + }) + + + req.exportExcel(this.queryParams.params).then((resp) => { + loading.close() + const blob = new Blob([resp], { + type: 'application/vnd.ms-excel' + }) + const fileName = '旧件出入库记录' + '.xls' + const elink = document.createElement('a') + elink.download = fileName + elink.style.display = 'nonde' + elink.href = URL.createObjectURL(blob) + document.body.appendChild(elink) + elink.click() + URL.revokeObjectURL(elink.href) + document.body.removeChild(elink) + }).catch(() => { + loading.close() + }) + } else { + this.$message({ + type: "warning", + showClose: true, + message: '请至少选择一条记录进行操作' + }) + } + }, + + toRelevancy() { + this.viewState = 4 + this.$refs['divinfo'].showAdd() + }, + doClose() { + this.$store.dispatch('tagsView/delView', this.$route) + this.$router.go(-1) + }, + resetState() { + this.viewState = 1 + }, + + } + } + + diff --git a/yxt-as-ui/src/views/storage/outStorage/relation/chooseproducts.vue b/yxt-as-ui/src/views/storage/outStorage/relation/chooseproducts.vue index 27e41dbc46..60ea91c4a2 100644 --- a/yxt-as-ui/src/views/storage/outStorage/relation/chooseproducts.vue +++ b/yxt-as-ui/src/views/storage/outStorage/relation/chooseproducts.vue @@ -56,7 +56,7 @@ + diff --git a/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue b/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue index 54c5d49148..589bf69013 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue @@ -16,10 +16,10 @@
-
+ +
制单人
diff --git a/yxt-as-ui/src/views/warehouse/goodsShelves/index.vue b/yxt-as-ui/src/views/warehouse/goodsShelves/index.vue index e9fefe60dc..7e480d41e9 100644 --- a/yxt-as-ui/src/views/warehouse/goodsShelves/index.vue +++ b/yxt-as-ui/src/views/warehouse/goodsShelves/index.vue @@ -1,7 +1,7 @@