diff --git a/yxt-as-ui/src/api/goods/brand.js b/yxt-as-ui/src/api/goods/brand.js index b1b4546fdf..1b293b6961 100644 --- a/yxt-as-ui/src/api/goods/brand.js +++ b/yxt-as-ui/src/api/goods/brand.js @@ -18,7 +18,8 @@ export default { getAllBrand: function(params) { return request({ url: '/yxtbase/apiadmin/base/basegoodsbrand/listAll', - method: 'get' + method: 'get', + data: params, }) }, diff --git a/yxt-as-ui/src/api/goods/category.js b/yxt-as-ui/src/api/goods/category.js index bdf5d958d6..48e502ec03 100644 --- a/yxt-as-ui/src/api/goods/category.js +++ b/yxt-as-ui/src/api/goods/category.js @@ -18,7 +18,8 @@ export default { getAllType: function(params) { return request({ url: '/yxtbase/apiadmin/base/basegoodstype/listAll', - method: 'get' + method: 'get', + data: params, }) }, diff --git a/yxt-as-ui/src/api/goods/factory.js b/yxt-as-ui/src/api/goods/factory.js index 51b5174603..fa9bbf5d03 100644 --- a/yxt-as-ui/src/api/goods/factory.js +++ b/yxt-as-ui/src/api/goods/factory.js @@ -18,7 +18,8 @@ export default { getAllFacturer: function(params) { return request({ url: '/yxtbase/apiadmin/base/basemanufacturer/listAll', - method: 'get' + method: 'get', + data: params, }) }, diff --git a/yxt-as-ui/src/api/goods/unit.js b/yxt-as-ui/src/api/goods/unit.js index b3ed2b060b..eaf2a98246 100644 --- a/yxt-as-ui/src/api/goods/unit.js +++ b/yxt-as-ui/src/api/goods/unit.js @@ -18,7 +18,8 @@ export default { getAllUnit: function(params) { return request({ url: '/yxtbase/apiadmin/base/basegoodsunit/listAll', - method: 'get' + method: 'get', + data: params, }) }, diff --git a/yxt-as-ui/src/api/warehouse/warehouse.js b/yxt-as-ui/src/api/warehouse/warehouse.js index b6b15ee20d..05dd0193ec 100644 --- a/yxt-as-ui/src/api/warehouse/warehouse.js +++ b/yxt-as-ui/src/api/warehouse/warehouse.js @@ -19,6 +19,7 @@ export default { return request({ url: '/wms/apiadmin/base/wmswarehouseinfo/listAll', method: 'get', + data: params, 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 4ff69c1a3a..6be8630a53 100644 --- a/yxt-as-ui/src/api/warehouse/warehouseArea.js +++ b/yxt-as-ui/src/api/warehouse/warehouseArea.js @@ -19,6 +19,7 @@ export default { return request({ url: '/wms/apiadmin/base/wmswarehousearea/listAll', method: 'get', + data: params, 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 a106b6606a..2d017d5d4c 100644 --- a/yxt-as-ui/src/api/warehouse/warehouseAreaType.js +++ b/yxt-as-ui/src/api/warehouse/warehouseAreaType.js @@ -20,6 +20,7 @@ export default { return request({ url: '/wms/apiadmin/base/wmswarehouseareatype/listAll', method: 'get', + data: params, headers: { 'Content-Type': 'application/json' } diff --git a/yxt-as-ui/src/router/index.js b/yxt-as-ui/src/router/index.js index 838b13a27d..67300e3eba 100644 --- a/yxt-as-ui/src/router/index.js +++ b/yxt-as-ui/src/router/index.js @@ -153,7 +153,7 @@ export const constantRoutes = [{ path: '/category/index', component: () => import('@/views/goods/category/index.vue'), name: 'Category', - meta: { title: '类别管理', noCache: true } + meta: { title: '商品类别', noCache: true } }, { path: '/factory/index', diff --git a/yxt-as-ui/src/views/goods/brands/brandsAdd.vue b/yxt-as-ui/src/views/goods/brands/brandsAdd.vue index 9cfee66d1b..1c77572048 100644 --- a/yxt-as-ui/src/views/goods/brands/brandsAdd.vue +++ b/yxt-as-ui/src/views/goods/brands/brandsAdd.vue @@ -17,16 +17,17 @@
- 品牌名称: + * 品牌名称:
- 品牌代码: + * 品牌代码:
- 首字母大写: - + * 首字母大写: +
品牌备注: @@ -58,7 +59,7 @@ bucket="map" :class="{ hide: hideUploadBtn }" :upload-data="{ type: '0001' }" @change="backData" /> --> + :upload-data="{ type: '0001' }" :class="{ hide: hideUploadBtn }" @change="backData" />
@@ -88,10 +89,10 @@ remarks: '', letter: '', image: "", - useOrgSid: window.sessionStorage.getItem('departmentSid'), - orgPath: window.sessionStorage.getItem('defaultOrgPath'), - createOrgSid: window.sessionStorage.getItem('orgSid'), - userSid: window.sessionStorage.getItem('userSid'), + useOrgSid: window.sessionStorage.getItem('departmentSid'), + orgPath: window.sessionStorage.getItem('defaultOrgPath'), + createOrgSid: window.sessionStorage.getItem('orgSid'), + userSid: window.sessionStorage.getItem('userSid'), }, hideUploadBtn: false, @@ -102,8 +103,11 @@ // this.initData() }, methods: { - - backData(value){ + letter(val) { + console.log('letter', val) + this.formobj.letter = val + }, + backData(value) { console.log('imgList', this.imgList) if (this.imgList.length > 0) { @@ -118,6 +122,34 @@ saveOrUpdate() { console.log('>>>>>>>>>saveOrUpdate', this.formobj) + if (this.formobj.brandName == '') { + this.$message({ + showClose: true, + type: 'warning', + message: "品牌名称不能为空" + }) + return + } + + if (this.formobj.brandCode == '') { + this.$message({ + showClose: true, + type: 'warning', + message: "品牌代码不能为空" + }) + return + } + + if (this.formobj.letter == '') { + this.$message({ + showClose: true, + type: 'warning', + message: "首字母大写不能为空" + }) + return + } + + req.saveBrands(this.formobj) .then(resp => { if (resp.success) { @@ -144,10 +176,10 @@ remarks: '', letter: '', image: "", - useOrgSid: window.sessionStorage.getItem('departmentSid'), - orgPath: window.sessionStorage.getItem('defaultOrgPath'), - createOrgSid: window.sessionStorage.getItem('orgSid'), - userSid: window.sessionStorage.getItem('userSid'), + useOrgSid: window.sessionStorage.getItem('departmentSid'), + orgPath: window.sessionStorage.getItem('defaultOrgPath'), + createOrgSid: window.sessionStorage.getItem('orgSid'), + userSid: window.sessionStorage.getItem('userSid'), } this.$emit('doback') }, @@ -206,6 +238,11 @@ flex: 0.8; font-size: 18px; text-align: right; + + .must { + color: #f00; + } + } .item_input { diff --git a/yxt-as-ui/src/views/goods/brands/index.vue b/yxt-as-ui/src/views/goods/brands/index.vue index 00d435e25e..9c683f0358 100644 --- a/yxt-as-ui/src/views/goods/brands/index.vue +++ b/yxt-as-ui/src/views/goods/brands/index.vue @@ -31,12 +31,11 @@ @selection-change="selectionLineChangeHandle"> - + - + -->