diff --git a/supervise-customer-ui/src/api/supervise/commodityFile.js b/supervise-customer-ui/src/api/supervise/commodityFile.js index 5843a3a0..102ca06f 100644 --- a/supervise-customer-ui/src/api/supervise/commodityFile.js +++ b/supervise-customer-ui/src/api/supervise/commodityFile.js @@ -110,6 +110,34 @@ export default { } }) }, + + + // 商品档案 列表字典 + categoryList: function(params) { + return request({ + baseURL: '/api', + url: '/customer/v1/restrictedcategory/categoryList', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + // 商品档案 品牌字典 + brandList: function(params) { + return request({ + baseURL: '/api', + url: '/customer/v1/restrictedbrand/brandList', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 商品档案 通过sid删除一条或多条记录 CommoditydelBySids: function(sid) { return request({ diff --git a/supervise-customer-ui/src/layout/components/Sidebar/index.vue b/supervise-customer-ui/src/layout/components/Sidebar/index.vue index ca588233..0569393a 100644 --- a/supervise-customer-ui/src/layout/components/Sidebar/index.vue +++ b/supervise-customer-ui/src/layout/components/Sidebar/index.vue @@ -84,6 +84,7 @@ this.YongHuid = response.data this.params.userSid = this.YongHuid.sid getrolemenus(this.params).then((res) => { + console.log('res', res) const userRoles = this.resRouter(res.data) userRoles.push({ path: '*', diff --git a/supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfo.vue b/supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfo.vue index 11bb02af..ec4563ff 100644 --- a/supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfo.vue +++ b/supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfo.vue @@ -238,7 +238,7 @@ spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.7)' }) - req.brandDelBySids(row.sid).then((resp) => { + req.brandDelBySids(row.id).then((resp) => { loading.close() if (resp.success) { this.$message({ diff --git a/supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfoAdd.vue b/supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfoAdd.vue index 8ef37312..2eebd606 100644 --- a/supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfoAdd.vue +++ b/supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfoAdd.vue @@ -76,7 +76,7 @@ }, showEdit(row) { - req.brandFetchBySid(row.sid) + req.brandFetchBySid(row.id) .then(resp => { if (resp.success) { this.formobj = resp.data diff --git a/supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfo.vue b/supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfo.vue index 9a57e080..b997db9b 100644 --- a/supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfo.vue +++ b/supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfo.vue @@ -235,7 +235,7 @@ spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.7)' }) - req.classDelBySids(row.sid).then((resp) => { + req.classDelBySids(row.id).then((resp) => { loading.close() if (resp.success) { this.$message({ diff --git a/supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfoAdd.vue b/supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfoAdd.vue index 5c26a515..efa4a910 100644 --- a/supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfoAdd.vue +++ b/supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfoAdd.vue @@ -76,7 +76,7 @@ }, showEdit(row) { - req.classFetchBySid(row.sid) + req.classFetchBySid(row.id) .then(resp => { if (resp.success) { this.formobj = resp.data diff --git a/supervise-customer-ui/src/views/supervise/commodityFile/commodity/commodityManagementInfoAdd.vue b/supervise-customer-ui/src/views/supervise/commodityFile/commodity/commodityManagementInfoAdd.vue index 42333833..949cdddc 100644 --- a/supervise-customer-ui/src/views/supervise/commodityFile/commodity/commodityManagementInfoAdd.vue +++ b/supervise-customer-ui/src/views/supervise/commodityFile/commodity/commodityManagementInfoAdd.vue @@ -104,17 +104,36 @@ } ], formobj: { - name:"", - code:"", - brand :"", - category :"", - newestPurchasePrice:"", - secondCode:"" - + name: "", + code: "", + brand: "", + category: "", + newestPurchasePrice: "", + secondCode: "" + } } }, + created() { + this.categoryList() + this.brandList() + }, methods: { + categoryList() { + req.categoryList().then((res) => { + if (res.success) { + console.log(">>>>>>>>>2222222", res.data)} + this.state_list = res.data + }) + }, + brandList() { + req.brandList().then((res) => { + if (res.success) { + console.log(">>>>>>>>>2222222", res.data) + this.state_list2 = res.data + } + }) + }, showAdd() { }, @@ -214,13 +233,13 @@ handleReturn(isreload) { if (isreload === 'true') this.$emit('reloadlist') this.formobj = { - name:"", - code:"", - brand :"", - category :"", - newestPurchasePrice:"", - secondCode:"" - + name: "", + code: "", + brand: "", + category: "", + newestPurchasePrice: "", + secondCode: "" + } this.$emit('doback') },