From 2610537e28ba340d8d1903a310a5acd18e81ef39 Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Tue, 14 May 2024 16:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=B5=8B=E8=AF=95=E9=81=87?= =?UTF-8?q?=E5=88=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/goods/brand.js | 17 +- yxt-as-ui/src/api/goods/category.js | 13 + yxt-as-ui/src/api/goods/factory.js | 12 + yxt-as-ui/src/api/goods/goods.js | 12 + yxt-as-ui/src/api/goods/unit.js | 11 + yxt-as-ui/src/api/storage/deliveryNotice.js | 10 + yxt-as-ui/src/api/storage/receivingGoods.js | 2 +- yxt-as-ui/src/api/warehouse/goodsShelves.js | 12 + yxt-as-ui/src/api/warehouse/warehouse.js | 27 +- yxt-as-ui/src/api/warehouse/warehouseArea.js | 32 +- .../src/api/warehouse/warehouseAreaType.js | 14 +- .../src/components/uploadFile/uploadImg.vue | 1 + yxt-as-ui/src/router/index.js | 2 +- .../src/views/goods/brands/brandsAdd.vue | 6 + yxt-as-ui/src/views/goods/brands/index.vue | 95 ++-- .../src/views/goods/category/categoryAdd.vue | 42 +- yxt-as-ui/src/views/goods/category/index.vue | 438 +++++++++------ .../src/views/goods/factory/factoryAdd.vue | 13 +- yxt-as-ui/src/views/goods/factory/index.vue | 390 ++++++------- yxt-as-ui/src/views/goods/goods/goodsAdd2.vue | 526 ++++++++++++++++++ .../src/views/goods/goods/goodsInfo2.vue | 335 +++++++++++ yxt-as-ui/src/views/goods/goods/index.vue | 179 ++++-- yxt-as-ui/src/views/goods/unit/index.vue | 104 ++-- yxt-as-ui/src/views/goods/unit/unitAdd.vue | 13 +- .../views/storage/deliveryNotice/index.vue | 6 +- .../storage/deliveryNotice/receiptAdd.vue | 84 ++- .../storage/deliveryNotice/receiptInfo.vue | 54 +- .../receivingGoods/receivingGoodsAdd.vue | 18 +- .../goodsShelves/goodsShelvesAdd.vue | 64 ++- .../views/warehouse/goodsShelves/index.vue | 455 ++++++++------- .../src/views/warehouse/warehouse/index.vue | 423 ++++++++------ .../warehouse/warehouse/warehouseAdd.vue | 330 ++++++----- .../warehouse/warehouse/warehouseInfo.vue | 265 +++++++++ .../views/warehouse/warehouseArea/index.vue | 459 ++++++++------- .../warehouseArea/warehouseAreaAdd.vue | 10 +- .../warehouse/warehouseAreaType/index.vue | 391 ++++++------- .../warehouseAreaTypeAdd.vue | 11 +- 37 files changed, 3391 insertions(+), 1485 deletions(-) create mode 100644 yxt-as-ui/src/views/goods/goods/goodsAdd2.vue create mode 100644 yxt-as-ui/src/views/goods/goods/goodsInfo2.vue create mode 100644 yxt-as-ui/src/views/warehouse/warehouse/warehouseInfo.vue diff --git a/yxt-as-ui/src/api/goods/brand.js b/yxt-as-ui/src/api/goods/brand.js index 169ea82ca7..b1b4546fdf 100644 --- a/yxt-as-ui/src/api/goods/brand.js +++ b/yxt-as-ui/src/api/goods/brand.js @@ -14,7 +14,7 @@ export default { }) }, - // 类别查询 + // 品牌查询 getAllBrand: function(params) { return request({ url: '/yxtbase/apiadmin/base/basegoodsbrand/listAll', @@ -52,4 +52,19 @@ export default { }, + + // 品牌-- 删除 + deleteBySids: function(data) { + return request({ + url: '/yxtbase/apiadmin/base/basegoodsbrand/delBySids', + method: 'DELETE', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + + } diff --git a/yxt-as-ui/src/api/goods/category.js b/yxt-as-ui/src/api/goods/category.js index 4c4156f338..bdf5d958d6 100644 --- a/yxt-as-ui/src/api/goods/category.js +++ b/yxt-as-ui/src/api/goods/category.js @@ -58,4 +58,17 @@ export default { }, + + // 类别-- 删除 + deleteBySids: function(data) { + return request({ + url: '/yxtbase/apiadmin/base/basegoodstype/delBySids', + method: 'DELETE', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + } diff --git a/yxt-as-ui/src/api/goods/factory.js b/yxt-as-ui/src/api/goods/factory.js index 71facdeb5b..51b5174603 100644 --- a/yxt-as-ui/src/api/goods/factory.js +++ b/yxt-as-ui/src/api/goods/factory.js @@ -50,5 +50,17 @@ export default { }); }, + // 厂家-- 删除 + deleteBySids: function(data) { + return request({ + url: '/yxtbase/apiadmin/base/basemanufacturer/delBySids', + method: 'DELETE', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + } diff --git a/yxt-as-ui/src/api/goods/goods.js b/yxt-as-ui/src/api/goods/goods.js index 1dd709d78d..4af8b77831 100644 --- a/yxt-as-ui/src/api/goods/goods.js +++ b/yxt-as-ui/src/api/goods/goods.js @@ -42,4 +42,16 @@ export default { }, + // 商品-- 删除 + deleteBySids: function(data) { + return request({ + url: '/yxtbase/apiadmin/base/basegoodsspu/delBySids', + method: 'DELETE', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + } diff --git a/yxt-as-ui/src/api/goods/unit.js b/yxt-as-ui/src/api/goods/unit.js index 732f5d9f27..b3ed2b060b 100644 --- a/yxt-as-ui/src/api/goods/unit.js +++ b/yxt-as-ui/src/api/goods/unit.js @@ -51,5 +51,16 @@ export default { }); }, + // 单位-- 删除 + deleteBySids: function(data) { + return request({ + url: '/yxtbase/apiadmin/base/basegoodsunit/delBySids', + method: 'DELETE', + data: 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 9034309b71..e585c69b28 100644 --- a/yxt-as-ui/src/api/storage/deliveryNotice.js +++ b/yxt-as-ui/src/api/storage/deliveryNotice.js @@ -51,4 +51,14 @@ export default { }); }, + // 选择供应商 + choiceSupplier: function(params) { + return request({ + url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo', + method: 'post', + data: params, + }) + }, + + } diff --git a/yxt-as-ui/src/api/storage/receivingGoods.js b/yxt-as-ui/src/api/storage/receivingGoods.js index cc6e999c85..40e9ac02a1 100644 --- a/yxt-as-ui/src/api/storage/receivingGoods.js +++ b/yxt-as-ui/src/api/storage/receivingGoods.js @@ -67,7 +67,7 @@ export default { // 选择供应商 choiceSupplier: function(params) { return request({ - url: '/wms/apiadmin/base/basesupplierinfo/choiceSupplierInfo', + url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo', method: 'post', data: params, }) diff --git a/yxt-as-ui/src/api/warehouse/goodsShelves.js b/yxt-as-ui/src/api/warehouse/goodsShelves.js index c7b64fa867..7e312d35a1 100644 --- a/yxt-as-ui/src/api/warehouse/goodsShelves.js +++ b/yxt-as-ui/src/api/warehouse/goodsShelves.js @@ -44,4 +44,16 @@ export default { }, + // 库位-- 删除 + deleteBySids: function(data) { + return request({ + url: '/wms/apiadmin/base/wmswarehouserack/delBySids', + method: 'DELETE', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + } diff --git a/yxt-as-ui/src/api/warehouse/warehouse.js b/yxt-as-ui/src/api/warehouse/warehouse.js index 875d9917ee..b6b15ee20d 100644 --- a/yxt-as-ui/src/api/warehouse/warehouse.js +++ b/yxt-as-ui/src/api/warehouse/warehouse.js @@ -8,7 +8,9 @@ export default { url: '/wms/apiadmin/base/wmswarehouseinfo/listPage', method: 'post', data: params, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }) }, @@ -25,10 +27,10 @@ export default { // 修改是否可用状态 - updateIsEnable: function(sid,isEnable) { - return request({ - url: '/wms/apiadmin/base/wmswarehouseinfo/updateStatus/'+sid+"/"+isEnable - }); + updateIsEnable: function(sid, isEnable) { + return request({ + url: '/wms/apiadmin/base/wmswarehouseinfo/updateStatus/' + sid + "/" + isEnable + }); }, @@ -38,7 +40,9 @@ export default { url: '/wms/apiadmin/base/wmswarehouseinfo/saveOrUpdate', method: 'post', data: data, - headers: { 'Content-Type': 'application/json' } + headers: { + 'Content-Type': 'application/json' + } }); }, @@ -50,5 +54,16 @@ export default { }); }, + // 仓库-- 删除 + deleteBySids: function(data) { + return request({ + url: '/wms/apiadmin/base/wmswarehouseinfo/delBySids', + method: 'DELETE', + data: 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 9a9f2c477b..809d310c92 100644 --- a/yxt-as-ui/src/api/warehouse/warehouseArea.js +++ b/yxt-as-ui/src/api/warehouse/warehouseArea.js @@ -26,11 +26,23 @@ export default { }, + // 根据仓库sid查询库区 + getAllWarehouseareaBysid: function(params) { + return request({ + url: '/wms/apiadmin/base/wmswarehousearea/selectAll?ckSid='+params, + method: 'get', + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 修改是否可用状态 - updateIsEnable: function(sid,isEnable) { - return request({ - url: '/wms/apiadmin/base/wmswarehousearea/updateIsEnable/'+sid+"/"+isEnable - }); + updateIsEnable: function(sid, isEnable) { + return request({ + url: '/wms/apiadmin/base/wmswarehousearea/updateIsEnable/' + sid + "/" + isEnable + }); }, @@ -55,4 +67,16 @@ export default { }, + // 库区-- 删除 + deleteBySids: function(data) { + return request({ + url: '/wms/apiadmin/base/wmswarehouseinfo/delBySids', + method: 'DELETE', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + } diff --git a/yxt-as-ui/src/api/warehouse/warehouseAreaType.js b/yxt-as-ui/src/api/warehouse/warehouseAreaType.js index f147b7ea4e..a106b6606a 100644 --- a/yxt-as-ui/src/api/warehouse/warehouseAreaType.js +++ b/yxt-as-ui/src/api/warehouse/warehouseAreaType.js @@ -15,7 +15,7 @@ export default { }) }, - // 库位查询 + // 库去类型查询 getAllWarehouseareatype: function(params) { return request({ url: '/wms/apiadmin/base/wmswarehouseareatype/listAll', @@ -55,6 +55,18 @@ export default { }); }, + // 库区类型-- 删除 + deleteBySids: function(data) { + return request({ + url: '/wms/apiadmin/base/wmswarehouseareatype/delBySids', + method: 'DELETE', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + } diff --git a/yxt-as-ui/src/components/uploadFile/uploadImg.vue b/yxt-as-ui/src/components/uploadFile/uploadImg.vue index 0b256516d6..384d5207da 100644 --- a/yxt-as-ui/src/components/uploadFile/uploadImg.vue +++ b/yxt-as-ui/src/components/uploadFile/uploadImg.vue @@ -147,6 +147,7 @@ export default { imgFiles.push(o.url) }) this.$emit('fileChange', this.files) + this.$emit('change', this.files) }, handleRemove(file, fileList) { console.log('file:' + JSON.stringify(file)) diff --git a/yxt-as-ui/src/router/index.js b/yxt-as-ui/src/router/index.js index 38ea46bfe1..3fdca81e6a 100644 --- a/yxt-as-ui/src/router/index.js +++ b/yxt-as-ui/src/router/index.js @@ -171,7 +171,7 @@ export const constantRoutes = [{ path: '/unit/index', component: () => import('@/views/goods/unit/index.vue'), name: 'Unit', - meta: { title: '单位管理', noCache: true } + meta: { title: '计量单位', noCache: true } } ] }, diff --git a/yxt-as-ui/src/views/goods/brands/brandsAdd.vue b/yxt-as-ui/src/views/goods/brands/brandsAdd.vue index 526e4c6beb..fe7f30f1ac 100644 --- a/yxt-as-ui/src/views/goods/brands/brandsAdd.vue +++ b/yxt-as-ui/src/views/goods/brands/brandsAdd.vue @@ -88,6 +88,9 @@ remarks: '', letter: '', image: "", + useOrgSid: window.sessionStorage.getItem('departmentSid'), + createOrgSid: window.sessionStorage.getItem('orgSid'), + userSid: window.sessionStorage.getItem('userSid'), }, hideUploadBtn: false, @@ -140,6 +143,9 @@ remarks: '', letter: '', image: "", + useOrgSid: window.sessionStorage.getItem('departmentSid'), + createOrgSid: window.sessionStorage.getItem('orgSid'), + userSid: window.sessionStorage.getItem('userSid'), } this.$emit('doback') }, diff --git a/yxt-as-ui/src/views/goods/brands/index.vue b/yxt-as-ui/src/views/goods/brands/index.vue index a63f06b1aa..b9176ff028 100644 --- a/yxt-as-ui/src/views/goods/brands/index.vue +++ b/yxt-as-ui/src/views/goods/brands/index.vue @@ -27,10 +27,11 @@
- - + + - + diff --git a/yxt-as-ui/src/views/goods/goods/goodsAdd2.vue b/yxt-as-ui/src/views/goods/goods/goodsAdd2.vue new file mode 100644 index 0000000000..2fc6337c6a --- /dev/null +++ b/yxt-as-ui/src/views/goods/goods/goodsAdd2.vue @@ -0,0 +1,526 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/goods/goodsInfo2.vue b/yxt-as-ui/src/views/goods/goods/goodsInfo2.vue new file mode 100644 index 0000000000..e120205426 --- /dev/null +++ b/yxt-as-ui/src/views/goods/goods/goodsInfo2.vue @@ -0,0 +1,335 @@ +template> +
+ +
+ +
商品信息
+ +
+ 保存 + 关闭 +
+ + +
+ +
+ + +
+
基础信息
+
+ + + +
商品名称
+ + {{formobj.goodsName}} + +
+ + +
商品编码
+ + {{formobj.goodsCode}} + +
+ + +
商品条形码
+ + {{formobj.barCode}} + +
+ +
商品拼音缩写
+ + {{formobj.goodsPY}} + +
+ +
+ + + + +
商品单位
+ + {{formobj.goodsUnitName}} + +
+ + +
商品类别
+ + {{formobj.typeName}} + +
+ + +
规格
+ + {{formobj.shelfLife}} + +
+ + +
保质期(天)
+ + {{formobj.shelfLife}} + +
+ +
+ + + + +
商品品牌
+ + {{formobj.brandName}} + +
+ + +
商品厂家
+ + {{formobj.manufacturerName}} + +
+ + +
原厂标志
+ + + + + + +
+ +
+ + + + +
商品排序
+ + {{formobj.sortNo}} + +
+ + +
商品备注
+ + {{formobj.remarks}} + +
+ +
+ + + + +
库存上限
+ + {{formobj.externalCode}} + +
+ + +
库存下限
+ + {{formobj.nationalStandardCode}} + +
+ +
+ + + + +
锁定销售定价
+ + + + + + +
+ + +
销售底价
+ + {{formobj.nationalStandardCode}} + +
+ + +
三包价格
+ + {{formobj.externalCode}} + +
+ + +
首保价格
+ + {{formobj.nationalStandardCode}} + +
+ +
+ + + + +
规格图片
+ + + +
+ +
+ +
+ +
+ +
+ + + + diff --git a/yxt-as-ui/src/views/goods/goods/index.vue b/yxt-as-ui/src/views/goods/goods/index.vue index a1d9415088..01de6cd1d3 100644 --- a/yxt-as-ui/src/views/goods/goods/index.vue +++ b/yxt-as-ui/src/views/goods/goods/index.vue @@ -9,9 +9,37 @@
@@ -37,21 +44,22 @@
- - + + - + - - - + + + @@ -62,14 +70,8 @@
- +
@@ -80,165 +82,242 @@ diff --git a/yxt-as-ui/src/views/warehouse/warehouse/index.vue b/yxt-as-ui/src/views/warehouse/warehouse/index.vue index 9a4851724f..304474b587 100644 --- a/yxt-as-ui/src/views/warehouse/warehouse/index.vue +++ b/yxt-as-ui/src/views/warehouse/warehouse/index.vue @@ -12,21 +12,17 @@ + + + + + +
- 查询 - 重置 + 查询 + 重置
@@ -37,12 +33,14 @@
- - + + @@ -57,7 +55,7 @@ - +
@@ -65,183 +63,242 @@
- +
+ diff --git a/yxt-as-ui/src/views/warehouse/warehouse/warehouseAdd.vue b/yxt-as-ui/src/views/warehouse/warehouse/warehouseAdd.vue index 7331b206f2..ee181ec874 100644 --- a/yxt-as-ui/src/views/warehouse/warehouse/warehouseAdd.vue +++ b/yxt-as-ui/src/views/warehouse/warehouse/warehouseAdd.vue @@ -15,67 +15,150 @@
- -
- 仓库名称: - -
-
- 仓库编码: - -
-
- 仓库联系人: - -
-
- 手机号码: - -
-
- 仓库主管: - -
-
- 联系电话: - -
- -
- 占地面积: - -
-
- 仓库经度: - -
-
- 仓库纬度: - -
-
- 具体地址: - -
-
- 使用状态: - - 正常 - 停用 - - -
-
- 仓库排序: - -
-
- 仓库备注: - -
-
+ + + + + +
仓库编码
+ + + +
+ + +
仓库名称
+ + + +
+ +
+ + + + +
仓库类型
+ + + + + + +
+ + +
仓库面积
+ + + +
+ + +
仓库管理员
+ + + +
+ +
+ + + + +
仓库地址
+ + + +
+ +
+ + + + +
经度
+ + + +
+ + +
纬度
+ + + +
+ +
+ + + + +
联系人
+ + + +
+ + +
手机号码
+ + + +
+ + +
联系电话
+ + + +
+ +
+ + + + +
排序
+ + + +
+ + +
使用状态
+ + + 正常 + 停用 + + +
+ +
+ + + + +
备注
+ + + +
+ +
+ +
@@ -84,6 +167,9 @@ - diff --git a/yxt-as-ui/src/views/warehouse/warehouse/warehouseInfo.vue b/yxt-as-ui/src/views/warehouse/warehouse/warehouseInfo.vue new file mode 100644 index 0000000000..4426d60327 --- /dev/null +++ b/yxt-as-ui/src/views/warehouse/warehouse/warehouseInfo.vue @@ -0,0 +1,265 @@ + + + + diff --git a/yxt-as-ui/src/views/warehouse/warehouseArea/index.vue b/yxt-as-ui/src/views/warehouse/warehouseArea/index.vue index 8f81b6f152..b0b55bea9f 100644 --- a/yxt-as-ui/src/views/warehouse/warehouseArea/index.vue +++ b/yxt-as-ui/src/views/warehouse/warehouseArea/index.vue @@ -12,21 +12,29 @@ + + + + + + + + + + + + + +
- 查询 - 重置 + 查询 + 重置
@@ -37,21 +45,22 @@
- - + + - + - - - + + + @@ -64,14 +73,8 @@
- +
@@ -82,165 +85,245 @@ diff --git a/yxt-as-ui/src/views/warehouse/warehouseArea/warehouseAreaAdd.vue b/yxt-as-ui/src/views/warehouse/warehouseArea/warehouseAreaAdd.vue index 775b3823e2..e04dd2db98 100644 --- a/yxt-as-ui/src/views/warehouse/warehouseArea/warehouseAreaAdd.vue +++ b/yxt-as-ui/src/views/warehouse/warehouseArea/warehouseAreaAdd.vue @@ -80,7 +80,10 @@ warehouseName: '', warehouseSid: '', areaTypeSid: "", - areaTypeName: "" + areaTypeName: "", + useOrgSid: window.sessionStorage.getItem('departmentSid'), + createOrgSid: window.sessionStorage.getItem('orgSid'), + userSid: window.sessionStorage.getItem('userSid'), }, warehouseList: [], @@ -129,7 +132,10 @@ unit: '', remarks: '', areaTypeSid: "", - areaTypeName: "" + areaTypeName: "", + useOrgSid: window.sessionStorage.getItem('departmentSid'), + createOrgSid: window.sessionStorage.getItem('orgSid'), + userSid: window.sessionStorage.getItem('userSid'), } this.$emit('doback') diff --git a/yxt-as-ui/src/views/warehouse/warehouseAreaType/index.vue b/yxt-as-ui/src/views/warehouse/warehouseAreaType/index.vue index aded094c30..e9d37774df 100644 --- a/yxt-as-ui/src/views/warehouse/warehouseAreaType/index.vue +++ b/yxt-as-ui/src/views/warehouse/warehouseAreaType/index.vue @@ -15,18 +15,8 @@
- 查询 - 重置 + 查询 + 重置
@@ -37,21 +27,22 @@
- - + + - + - - - + + + @@ -61,14 +52,8 @@
- +
@@ -79,165 +64,195 @@ diff --git a/yxt-as-ui/src/views/warehouse/warehouseAreaType/warehouseAreaTypeAdd.vue b/yxt-as-ui/src/views/warehouse/warehouseAreaType/warehouseAreaTypeAdd.vue index 40249cb071..cb7d41f3d4 100644 --- a/yxt-as-ui/src/views/warehouse/warehouseAreaType/warehouseAreaTypeAdd.vue +++ b/yxt-as-ui/src/views/warehouse/warehouseAreaType/warehouseAreaTypeAdd.vue @@ -44,6 +44,9 @@ sid: '', warehouseAreaTypeName: '', remarks: '', + useOrgSid: window.sessionStorage.getItem('departmentSid'), + createOrgSid: window.sessionStorage.getItem('orgSid'), + userSid: window.sessionStorage.getItem('userSid'), }, } @@ -70,8 +73,12 @@ handleReturn(isreload) { if (isreload === 'true') this.$emit('reloadlist') this.formobj = { - sid: '', - remarks: '', + sid: '', + warehouseAreaTypeName: '', + remarks: '', + useOrgSid: window.sessionStorage.getItem('departmentSid'), + createOrgSid: window.sessionStorage.getItem('orgSid'), + userSid: window.sessionStorage.getItem('userSid'), } this.$emit('doback') },