diff --git a/yxt-as-ui/src/api/maintenance/maintenanceOutbound.js b/yxt-as-ui/src/api/maintenance/maintenanceOutbound.js index f36c1baf26..178a0a52c5 100644 --- a/yxt-as-ui/src/api/maintenance/maintenanceOutbound.js +++ b/yxt-as-ui/src/api/maintenance/maintenanceOutbound.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export default { - // 初始化 + // 选择工单初始化数据 initBill: function(data) { return request({ url: '/as/v1/AsBusrepairInventorybill/init', @@ -36,4 +36,15 @@ export default { }); }, + + // 详情 + 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 index e69de29bb2..215f5d0bc3 100644 --- a/yxt-as-ui/src/api/maintenance/maintenanceReturnBound.js +++ 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/inOutStorage.js b/yxt-as-ui/src/api/storage/inOutStorage.js index fce7a4d454..efd393df55 100644 --- a/yxt-as-ui/src/api/storage/inOutStorage.js +++ b/yxt-as-ui/src/api/storage/inOutStorage.js @@ -31,17 +31,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/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/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/views/maintenance/maintenanceOutbound/index.vue b/yxt-as-ui/src/views/maintenance/maintenanceOutbound/index.vue index bfee50b7e9..223960d840 100644 --- a/yxt-as-ui/src/views/maintenance/maintenanceOutbound/index.vue +++ b/yxt-as-ui/src/views/maintenance/maintenanceOutbound/index.vue @@ -24,22 +24,22 @@ -
* 操作人
+
* 制单人
{{formobj.createByName}}
-
* 操作部门
+
* 制单部门
{{formobj.deptName}}
-
操作日期
- +
制单日期
+ {{ formobj.createTime }}
@@ -75,15 +75,15 @@ -
* 维修工单编号
- +
维修工单编号
+ {{formobj.sourceBillNo}}
-
* 单据日期
- +
单据日期
+ {{formobj.billDate}}
@@ -99,15 +99,15 @@ -
* 工单类型
- +
工单类型
+ {{formobj.billType}}
-
* 科目
- +
科目
+ {{formobj.subject}}
@@ -123,15 +123,15 @@ -
* 客户名称
- +
客户名称
+ {{formobj.customerName}}
-
* 车牌号/车架号
- +
车牌号/车架号
+ {{formobj.vehMark}}/{{formobj.vinNo}}
@@ -194,8 +194,12 @@ - + + + + @@ -289,11 +293,10 @@ }, receivePerList: [], // commodity商品 - commodityKey: 1, commodityLoading: false, commodityQuery: { current: 1, - size: 2, + size: 10, total: 0, params: { name: '', @@ -304,51 +307,27 @@ commodityData: [], rules: { - goodsName: [{ + createByName: [{ required: true, - message: '商品名称不能为空', + message: '制单人不能为空', trigger: 'blur' }], - goodsCode: [{ + deptName: [{ required: true, - message: '商品编码不能为空', + message: '制单部门不能为空', trigger: 'blur' }], - goodsUnitName: [{ + createTime: [{ required: true, - message: '请选择计量单位', - trigger: 'change' - }], - goodsTypeName: [{ - required: true, - message: '请选择商品类别', - trigger: 'change' - }], - brandName: [{ - required: true, - message: '请选择商品品牌', - trigger: 'change' - }], - manufacturerName: [{ - required: true, - message: '请选择商品厂家', - trigger: 'change' - }], - sortNo: [{ - required: true, - message: '商品排序不能为空', - trigger: 'blur' - }], - inventoryAlertUpperLimit: [{ - required: true, - message: '商品上限不能为空', + message: '制单日期不能为空', trigger: 'blur' }], - inventoryAlertLowerLimitt: [{ + warehouseManager: [{ required: true, - message: '商品下限不能为空', - trigger: 'blur' + message: '请选择领料人', + trigger: 'change' }], + } } }, @@ -424,6 +403,38 @@ saveOrUpdate() { console.log('>>>>>>>>>saveOrUpdate', this.formobj) + + if (this.formobj.detailList.length == 0) { + this.$message({ + showClose: true, + type: 'warning', + message: "商品不能为空" + }) + return + } + + for (var i = 0; i < this.formobj.detailList.length; i++) { + var item = this.formobj.detailList[i] + + if (item.goodSpuSid == '') { + this.$message({ + showClose: true, + type: 'warning', + message: "请添加商品" + }) + return + } + + if (Number(item.count) == 0) { + this.$message({ + showClose: true, + type: 'warning', + message: "商品出库数量不能0" + }) + return + } + } + this.$refs['form_obj'].validate((valid) => { if (valid) { @@ -525,7 +536,7 @@ row.warehouseRackSid = value.warehouseRackSid row.warehouseRackCode = value.warehouseRackCode row.outboundCount = value.outboundCount - row.count = 0 + row.count =0 row.amount = 0.00 row.price = value.price row.remarks = '' @@ -554,7 +565,7 @@ "warehouseRackCode": "", "count": 0, "price": '', - 'amount':0.00, + 'amount': 0.00, "outboundCount": 0, "remarks": "" } @@ -569,12 +580,12 @@ this.formobj.detailList.splice(index, 1) }, - commodityComputeYHAndXSJE(row, val) { - console.log("aaa", row); - console.log("aaa", val); + commodityComputeYHAndXSJE(row, val) { + console.log("aaa", row); + console.log("aaa", val); - row.amount = (Number(row.count) * Number(row.price)).toFixed(2) - }, + row.amount = (Number(row.count) * Number(row.price)).toFixed(2) + }, } } diff --git a/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/index.vue b/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/index.vue index 84d6665f85..d71ba344de 100644 --- a/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/index.vue +++ b/yxt-as-ui/src/views/maintenance/maintenanceReturnBound/index.vue @@ -1,368 +1,388 @@ 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/receiptAdd.vue b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue index ce75fa227b..b1459379d3 100644 --- a/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue +++ b/yxt-as-ui/src/views/storage/deliveryNotice/receiptAdd.vue @@ -322,7 +322,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 @@ -657,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/inOutStorage/index.vue b/yxt-as-ui/src/views/storage/inOutStorage/index.vue index 21b4899a77..aa1e7ae16c 100644 --- a/yxt-as-ui/src/views/storage/inOutStorage/index.vue +++ b/yxt-as-ui/src/views/storage/inOutStorage/index.vue @@ -261,7 +261,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/inStorage/inStorageAdd.vue b/yxt-as-ui/src/views/storage/inStorage/inStorageAdd.vue index 9fe634012b..ede18db1d6 100644 --- a/yxt-as-ui/src/views/storage/inStorage/inStorageAdd.vue +++ b/yxt-as-ui/src/views/storage/inStorage/inStorageAdd.vue @@ -919,7 +919,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/maintenanceInOrOutBound/index.vue b/yxt-as-ui/src/views/storage/maintenanceInOrOutBound/index.vue index a82464ac2e..b10db8889d 100644 --- a/yxt-as-ui/src/views/storage/maintenanceInOrOutBound/index.vue +++ b/yxt-as-ui/src/views/storage/maintenanceInOrOutBound/index.vue @@ -9,11 +9,11 @@ - - + + + 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/receivingGoods/receivingGoodsAdd.vue b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue index f3f12bdbb0..8ef21a7aef 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/receivingGoodsAdd.vue @@ -771,7 +771,7 @@ orgPath: window.sessionStorage.getItem('defaultOrgPath'), } - req2.getWarehouses().then((res) => { + req2.getWarehouses(parpams).then((res) => { if (res.success) { this.warehouseList = res.data diff --git a/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue b/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue index 589bf69013..73a3531d18 100644 --- a/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue +++ b/yxt-as-ui/src/views/storage/receivingGoods/upShelfAddRecord.vue @@ -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