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/maintenance/maintenanceOutbound.js b/yxt-as-ui/src/api/maintenance/maintenanceOutbound.js new file mode 100644 index 0000000000..178a0a52c5 --- /dev/null +++ b/yxt-as-ui/src/api/maintenance/maintenanceOutbound.js @@ -0,0 +1,50 @@ +import request from '@/utils/request' + +export default { + + // 选择工单初始化数据 + initBill: function(data) { + return request({ + url: '/as/v1/AsBusrepairInventorybill/init', + method: 'get', + params: data + }); + }, + + + // 查询分页列表 + getGoodsListPage: function(params) { + return request({ + url: '/wms/apiadmin/WmsOutBill/getInventoryList', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 新增、保存 + saveBill: function(data) { + return request({ + url: '/as/v1/AsBusrepairInventorybill/outBill', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + + + // 详情 + detailsBill: function(data) { + return request({ + url: '/as/v1/AsBusrepairInventorybill/details', + method: 'get', + params: data + }); + }, + + +} diff --git a/yxt-as-ui/src/api/maintenance/maintenanceReturnBound.js b/yxt-as-ui/src/api/maintenance/maintenanceReturnBound.js new file mode 100644 index 0000000000..215f5d0bc3 --- /dev/null +++ b/yxt-as-ui/src/api/maintenance/maintenanceReturnBound.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' + +export default { + + // 选择工单初始化数据 + initBill: function(data) { + return request({ + url: '/as/v1/AsBusrepairInventorybill/init', + method: 'get', + params: data + }); + }, + + + // 查询分页列表 + getGoodsListPage: function(params) { + return request({ + url: '/wms/apiadmin/WmsOutBill/getInventoryList', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 新增、保存 + saveBill: function(data) { + return request({ + url: '/as/v1/AsBusrepairInventorybill/quitBill', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }); + }, + + + // 详情 + detailsBill: function(data) { + return request({ + url: '/as/v1/AsBusrepairInventorybill/details', + method: 'get', + params: data + }); + }, + +} diff --git a/yxt-as-ui/src/api/storage/allocation.js b/yxt-as-ui/src/api/storage/allocation.js index 1bdada1657..35883a698a 100644 --- a/yxt-as-ui/src/api/storage/allocation.js +++ b/yxt-as-ui/src/api/storage/allocation.js @@ -44,9 +44,13 @@ export default { // 查询所有仓库 getWarehouses: function(params) { return request({ - url: '/wms/apiadmin/base/wmswarehouseinfo/selectAll', - method: 'get' - }) + url: '/wms/apiadmin/base/wmswarehouseinfo/listAll', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) }, @@ -55,7 +59,7 @@ export default { return request({ url: '/wms/apiadmin/base/wmswarehousearea/selectAll', method: 'get', - data: data, + params: data, 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..efd393df55 100644 --- a/yxt-as-ui/src/api/storage/inOutStorage.js +++ b/yxt-as-ui/src/api/storage/inOutStorage.js @@ -27,29 +27,26 @@ export default { }); }, - // 选择供应商 - choiceSupplier: function(params) { - return request({ - url: '/wms/apiadmin/base/basesupplierinfo/choiceSupplierInfo', - method: 'post', - data: params, - }) - }, // 查询所有仓库 getWarehouses: function(params) { return request({ - url: '/wms/apiadmin/base/wmswarehouseinfo/selectAll', - method: 'get' + url: '/wms/apiadmin/base/wmswarehouseinfo/listAll', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } }) }, // 根据仓库查询库位 getWarehouseareas: function(data) { return request({ - url: '/wms/apiadmin/base/wmswarehousearea/selectAll', - method: 'get', - data: data, + url: '/wms/apiadmin/base/wmswarehousearea/selectAll', + method: 'get', + params: data, + headers: { 'Content-Type': 'application/json' } }); }, } diff --git a/yxt-as-ui/src/api/storage/maintenanceInOrOutBound.js b/yxt-as-ui/src/api/storage/maintenanceInOrOutBound.js new file mode 100644 index 0000000000..f6f41d6ddb --- /dev/null +++ b/yxt-as-ui/src/api/storage/maintenanceInOrOutBound.js @@ -0,0 +1,17 @@ +import request from '@/utils/request' + +export default { + +// 查询分页列表 + listPage: function(params) { + return request({ + url: '/as/v1/AsBusrepairInventorybill/pageList', + method: 'post', + data: params, + headers: { 'Content-Type': 'application/json' } + }) + }, + + + +} diff --git a/yxt-as-ui/src/api/storage/oldPartsInAndOutStorage.js b/yxt-as-ui/src/api/storage/oldPartsInAndOutStorage.js index de107221d9..2df214b95d 100644 --- a/yxt-as-ui/src/api/storage/oldPartsInAndOutStorage.js +++ b/yxt-as-ui/src/api/storage/oldPartsInAndOutStorage.js @@ -39,17 +39,22 @@ export default { // 查询所有仓库 getWarehouses: function(params) { return request({ - url: '/wms/apiadmin/base/wmswarehouseinfo/selectAll', - method: 'get' - }) + url: '/wms/apiadmin/base/wmswarehouseinfo/listAll', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) }, // 根据仓库查询库位 getWarehouseareas: function(data) { return request({ - url: '/wms/apiadmin/base/wmswarehousearea/selectAll', - method: 'get', - data: data, + url: '/wms/apiadmin/base/wmswarehousearea/selectAll', + method: 'get', + params: data, + headers: { 'Content-Type': 'application/json' } }); }, diff --git a/yxt-as-ui/src/api/storage/oldPartsInvertory.js b/yxt-as-ui/src/api/storage/oldPartsInvertory.js index 1d55dac802..64fdd01e6b 100644 --- a/yxt-as-ui/src/api/storage/oldPartsInvertory.js +++ b/yxt-as-ui/src/api/storage/oldPartsInvertory.js @@ -61,17 +61,22 @@ export default { // 查询所有仓库 getWarehouses: function(params) { return request({ - url: '/wms/apiadmin/base/wmswarehouseinfo/selectAll', - method: 'get' + url: '/wms/apiadmin/base/wmswarehouseinfo/listAll', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } }) }, // 根据仓库查询库位 getWarehouseareas: function(data) { return request({ - url: '/wms/apiadmin/base/wmswarehousearea/selectAll', - method: 'get', - data: data, + url: '/wms/apiadmin/base/wmswarehousearea/selectAll', + method: 'get', + params: data, + headers: { 'Content-Type': 'application/json' } }); }, 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/api/warehouse/warehouseArea.js b/yxt-as-ui/src/api/warehouse/warehouseArea.js index a47db53428..08e52db09c 100644 --- a/yxt-as-ui/src/api/warehouse/warehouseArea.js +++ b/yxt-as-ui/src/api/warehouse/warehouseArea.js @@ -30,11 +30,10 @@ export default { // 根据仓库sid查询库区 getAllWarehouseareaBysid: function(params) { return request({ - url: '/wms/apiadmin/base/wmswarehousearea/selectAll?ckSid='+params, - method: 'get', - headers: { - 'Content-Type': 'application/json' - } + url: '/wms/apiadmin/base/wmswarehousearea/selectAll', + method: 'get', + params: data, + headers: { 'Content-Type': 'application/json' } }) }, 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..223960d840 --- /dev/null +++ b/yxt-as-ui/src/views/maintenance/maintenanceOutbound/index.vue @@ -0,0 +1,632 @@ + + + + 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..1141cc140a --- /dev/null +++ b/yxt-as-ui/src/views/maintenance/maintenanceOutbound/relation/chooseproducts.vue @@ -0,0 +1,205 @@ + + + + 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..d71ba344de --- /dev/null +++ b/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/index.vue @@ -0,0 +1,549 @@ + + + + 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..1141cc140a --- /dev/null +++ b/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/relation/chooseproducts.vue @@ -0,0 +1,205 @@ + + + + diff --git a/yxt-as-ui/src/views/operation/claimbilling/claimbilling.vue b/yxt-as-ui/src/views/operation/claimbilling/claimbilling.vue index 8ea4dacaf3..192a62683c 100644 --- a/yxt-as-ui/src/views/operation/claimbilling/claimbilling.vue +++ b/yxt-as-ui/src/views/operation/claimbilling/claimbilling.vue @@ -13,7 +13,7 @@ - + @@ -46,7 +46,7 @@
-
索赔单开票申请申请列表
+
索赔单开票申请列表
@@ -68,7 +68,7 @@ - + @@ -159,7 +159,7 @@ export default { total: 0, params: { useOrgName: '', - createDeptName: '', + deptName: '', createByName: '', billNo: '', createTimeStart: '', @@ -280,7 +280,7 @@ export default { total: 0, params: { useOrgName: '', - createDeptName: '', + deptName: '', createByName: '', billNo: '', createTimeStart: '', diff --git a/yxt-as-ui/src/views/operation/claimbilling/claimbillingAdd.vue b/yxt-as-ui/src/views/operation/claimbilling/claimbillingAdd.vue index 1c6e5c2e92..3eb72afbca 100644 --- a/yxt-as-ui/src/views/operation/claimbilling/claimbillingAdd.vue +++ b/yxt-as-ui/src/views/operation/claimbilling/claimbillingAdd.vue @@ -15,7 +15,7 @@
申请部门
- {{ formobj.createDeptName }} + {{ formobj.deptName }}
申请人
@@ -141,8 +141,8 @@ export default { billNo: '', createByName: '', createBySid: '', - createDeptName: '', - createDeptSid: '', + deptName: '', + deptSid: '', createOrgSid: '', createTime: '', detailList: [], @@ -217,8 +217,8 @@ export default { }) this.formobj.createByName = window.sessionStorage.getItem('name') this.formobj.createBySid = window.sessionStorage.getItem('userSid') - this.formobj.createDeptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) - this.formobj.createDeptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) + this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) + this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) var nowDate = new Date() var date = { year: nowDate.getFullYear(), @@ -375,8 +375,8 @@ export default { billNo: '', createByName: '', createBySid: '', - createDeptName: '', - createDeptSid: '', + deptName: '', + deptSid: '', createOrgSid: '', createTime: '', detailList: [], diff --git a/yxt-as-ui/src/views/operation/claimbilling/claimbillingInfo.vue b/yxt-as-ui/src/views/operation/claimbilling/claimbillingInfo.vue index 0d835f9b54..84f6649bd9 100644 --- a/yxt-as-ui/src/views/operation/claimbilling/claimbillingInfo.vue +++ b/yxt-as-ui/src/views/operation/claimbilling/claimbillingInfo.vue @@ -12,7 +12,7 @@
申请部门
- {{ formobj.createDeptName }} + {{ formobj.deptName }}
申请人
@@ -84,8 +84,8 @@ export default { billNo: '', createByName: '', createBySid: '', - createDeptName: '', - createDeptSid: '', + deptName: '', + deptSid: '', createOrgSid: '', createTime: '', detailList: [], @@ -137,8 +137,8 @@ export default { billNo: '', createByName: '', createBySid: '', - createDeptName: '', - createDeptSid: '', + deptName: '', + deptSid: '', createOrgSid: '', createTime: '', detailList: [], diff --git a/yxt-as-ui/src/views/operation/preregistration/preregistrationAdd.vue b/yxt-as-ui/src/views/operation/preregistration/preregistrationAdd.vue index da6b73d1c7..50859f596b 100644 --- a/yxt-as-ui/src/views/operation/preregistration/preregistrationAdd.vue +++ b/yxt-as-ui/src/views/operation/preregistration/preregistrationAdd.vue @@ -20,7 +20,7 @@
制单部门
- {{ formobj.createDept }} + {{ formobj.deptName }}
制单日期
@@ -209,8 +209,8 @@ export default { vinNo: '', trackLog: '', trackLogs: [], - createDeptSid: '', - createDept: '', + deptSid: '', + deptName: '', customerOrg: '', userSid: '' }, @@ -255,8 +255,8 @@ export default { this.formobj.createByName = window.sessionStorage.getItem('name') this.formobj.createBySid = window.sessionStorage.getItem('userSid') this.formobj.userSid = window.sessionStorage.getItem('userSid') - this.formobj.createDept = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) - this.formobj.createDeptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) + this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) + this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) var nowDate = new Date() var date = { year: nowDate.getFullYear(), @@ -498,8 +498,8 @@ export default { vinNo: '', trackLog: '', trackLogs: [], - createDeptSid: '', - createDept: '', + deptSid: '', + deptName: '', customerOrg: '', userSid: '' } diff --git a/yxt-as-ui/src/views/operation/preregistration/preregistrationInfo.vue b/yxt-as-ui/src/views/operation/preregistration/preregistrationInfo.vue index 0affb36750..d29781e82b 100644 --- a/yxt-as-ui/src/views/operation/preregistration/preregistrationInfo.vue +++ b/yxt-as-ui/src/views/operation/preregistration/preregistrationInfo.vue @@ -16,7 +16,7 @@
制单部门
- {{ formobj.createDept }} + {{ formobj.deptName }}
制单日期
@@ -117,8 +117,8 @@ export default { vinNo: '', trackLog: '', trackLogs: [], - createDeptSid: '', - createDept: '', + deptSid: '', + deptName: '', customerOrg: '', userSid: '' } @@ -163,8 +163,8 @@ export default { vinNo: '', trackLog: '', trackLogs: [], - createDeptSid: '', - createDept: '', + deptSid: '', + deptName: '', customerOrg: '', userSid: '' } diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue index 95e02a7d1d..b796423a4d 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue @@ -21,7 +21,7 @@
制单部门
- {{ formobj.dept }} + {{ formobj.deptName }}
制单日期
@@ -632,7 +632,7 @@ export default { orgPath: '', createBySid: '', deptSid: '', - dept: '', + deptName: '', operatorSid: '', nodeCode: '', settleVo: { @@ -806,7 +806,7 @@ export default { this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath') this.formobj.createByName = window.sessionStorage.getItem('name') this.formobj.createBySid = window.sessionStorage.getItem('userSid') - this.formobj.dept = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) + this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) var nowDate = new Date() var date = { @@ -1209,7 +1209,7 @@ export default { orgPath: '', createBySid: '', deptSid: '', - dept: '', + deptName: '', operatorSid: '', nodeCode: '', settleVo: { diff --git a/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue b/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue index b20b61750b..c779196378 100644 --- a/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue +++ b/yxt-as-ui/src/views/operation/repairbill/repairbillInfo.vue @@ -17,7 +17,7 @@
制单部门
- {{ formobj.dept }} + {{ formobj.deptName }}
制单日期
@@ -369,7 +369,7 @@ export default { orgPath: '', createBySid: '', deptSid: '', - dept: '', + deptName: '', operatorSid: '', nodeCode: '', settleVo: { @@ -546,7 +546,7 @@ export default { orgPath: '', createBySid: '', deptSid: '', - dept: '', + deptName: '', operatorSid: '', nodeCode: '', settleVo: { diff --git a/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue b/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue index ff63852646..c4b60d434f 100644 --- a/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue +++ b/yxt-as-ui/src/views/storage/allocation/allocationAdd.vue @@ -235,7 +235,10 @@ }, getWarehouseList() { - req.getWarehouses().then((res) => { + var parpams = { + orgPath: window.sessionStorage.getItem('defaultOrgPath'), + } + req.getWarehouses(parpams).then((res) => { if (res.success) { this.warehouseList = res.data 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..b1459379d3 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,25 +292,40 @@ }, 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) => { + var parpams = { + orgPath: window.sessionStorage.getItem('defaultOrgPath'), + } + req2.getWarehouses(parpams).then((res) => { if (res.success) { this.warehouseList = res.data @@ -635,7 +660,7 @@ this.$refs['form_obj'].clearValidate() }) - this.getWarehouseList() + // this.getWarehouseList() this.getsupplierLust() // this.getOrgPathSid() var params = { 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..aa1e7ae16c 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/maintenanceInOrOutBound.js' + import ButtonBar from '@/components/ButtonBar' + import Pagination from '@/components/pagination' + import pageye from '@/components/pagination/pageye' + import divOutInfo from './maintenanceOutboundInfo.vue' + import divReturnInfo from './maintenanceReturnBoundInfo.vue' + export default { + components: { + ButtonBar, + Pagination, + pageye, + divOutInfo, + divReturnInfo + }, + 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 + }) + }, + + // 序号 + 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() + }, - \ No newline at end of file + 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: '请至少选择一条记录进行操作' + }) + } + }, + + showResult(row) { + + if (row.busTypeValue == '维修出库') { + this.viewState = 2 + this.$refs['divOutInfo'].showAdd(row) + } + if (row.busTypeValue == '维修退库') { + this.viewState = 3 + this.$refs['divReturnInfo'].showAdd(row) + } + + }, + 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/maintenanceInOrOutBound/maintenanceOutboundInfo.vue b/yxt-as-ui/src/views/storage/maintenanceInOrOutBound/maintenanceOutboundInfo.vue new file mode 100644 index 0000000000..9a4983ec4f --- /dev/null +++ b/yxt-as-ui/src/views/storage/maintenanceInOrOutBound/maintenanceOutboundInfo.vue @@ -0,0 +1,276 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/maintenanceInOrOutBound/maintenanceReturnBoundInfo.vue b/yxt-as-ui/src/views/storage/maintenanceInOrOutBound/maintenanceReturnBoundInfo.vue new file mode 100644 index 0000000000..f2305bde53 --- /dev/null +++ b/yxt-as-ui/src/views/storage/maintenanceInOrOutBound/maintenanceReturnBoundInfo.vue @@ -0,0 +1,272 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/oldPartsInAndOutStorage/index.vue b/yxt-as-ui/src/views/storage/oldPartsInAndOutStorage/index.vue index 227441122c..fcdd4dac82 100644 --- a/yxt-as-ui/src/views/storage/oldPartsInAndOutStorage/index.vue +++ b/yxt-as-ui/src/views/storage/oldPartsInAndOutStorage/index.vue @@ -390,7 +390,10 @@ }) }, getWarehouseList() { - req.getWarehouses().then((res) => { + var parpams = { + orgPath: window.sessionStorage.getItem('defaultOrgPath'), + } + req.getWarehouses(parpams).then((res) => { if (res.success) { this.warehouseList = res.data diff --git a/yxt-as-ui/src/views/storage/oldPartsInvertory/index.vue b/yxt-as-ui/src/views/storage/oldPartsInvertory/index.vue index 0975301087..255ab7fa0d 100644 --- a/yxt-as-ui/src/views/storage/oldPartsInvertory/index.vue +++ b/yxt-as-ui/src/views/storage/oldPartsInvertory/index.vue @@ -383,7 +383,10 @@ }) }, getWarehouseList() { - req.getWarehouses().then((res) => { + var parpams = { + orgPath: window.sessionStorage.getItem('defaultOrgPath'), + } + req.getWarehouses(parpams).then((res) => { if (res.success) { this.warehouseList = res.data 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..73a3531d18 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 @@
-
+ +
制单人
@@ -334,7 +334,10 @@ }, getWarehouseList() { - req2.getWarehouses().then((res) => { + var parpams = { + orgPath: window.sessionStorage.getItem('defaultOrgPath'), + } + req2.getWarehouses(parpams).then((res) => { if (res.success) { this.warehouseList = res.data diff --git a/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue b/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue index 05b2a19aad..1331e88bd1 100644 --- a/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue +++ b/yxt-as-ui/src/views/storage/upShelf/upShelfAdd.vue @@ -341,7 +341,10 @@ }, getWarehouseList() { - req2.getWarehouses().then((res) => { + var parpams = { + orgPath: window.sessionStorage.getItem('defaultOrgPath'), + } + req2.getWarehouses(parpams).then((res) => { if (res.success) { this.warehouseList = res.data 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 @@