Browse Source

2023-04-27

master
guoxing 2 years ago
parent
commit
8372b9b178
  1. 28
      supervise-customer-ui/src/api/supervise/commodityFile.js
  2. 1
      supervise-customer-ui/src/layout/components/Sidebar/index.vue
  3. 2
      supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfo.vue
  4. 2
      supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfoAdd.vue
  5. 2
      supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfo.vue
  6. 2
      supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfoAdd.vue
  7. 43
      supervise-customer-ui/src/views/supervise/commodityFile/commodity/commodityManagementInfoAdd.vue

28
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删除一条或多条记录 // 商品档案 通过sid删除一条或多条记录
CommoditydelBySids: function(sid) { CommoditydelBySids: function(sid) {
return request({ return request({

1
supervise-customer-ui/src/layout/components/Sidebar/index.vue

@ -84,6 +84,7 @@
this.YongHuid = response.data this.YongHuid = response.data
this.params.userSid = this.YongHuid.sid this.params.userSid = this.YongHuid.sid
getrolemenus(this.params).then((res) => { getrolemenus(this.params).then((res) => {
console.log('res', res)
const userRoles = this.resRouter(res.data) const userRoles = this.resRouter(res.data)
userRoles.push({ userRoles.push({
path: '*', path: '*',

2
supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfo.vue

@ -238,7 +238,7 @@
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}) })
req.brandDelBySids(row.sid).then((resp) => { req.brandDelBySids(row.id).then((resp) => {
loading.close() loading.close()
if (resp.success) { if (resp.success) {
this.$message({ this.$message({

2
supervise-customer-ui/src/views/supervise/commodityFile/brand/brandManagementInfoAdd.vue

@ -76,7 +76,7 @@
}, },
showEdit(row) { showEdit(row) {
req.brandFetchBySid(row.sid) req.brandFetchBySid(row.id)
.then(resp => { .then(resp => {
if (resp.success) { if (resp.success) {
this.formobj = resp.data this.formobj = resp.data

2
supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfo.vue

@ -235,7 +235,7 @@
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}) })
req.classDelBySids(row.sid).then((resp) => { req.classDelBySids(row.id).then((resp) => {
loading.close() loading.close()
if (resp.success) { if (resp.success) {
this.$message({ this.$message({

2
supervise-customer-ui/src/views/supervise/commodityFile/classification/classManagementInfoAdd.vue

@ -76,7 +76,7 @@
}, },
showEdit(row) { showEdit(row) {
req.classFetchBySid(row.sid) req.classFetchBySid(row.id)
.then(resp => { .then(resp => {
if (resp.success) { if (resp.success) {
this.formobj = resp.data this.formobj = resp.data

43
supervise-customer-ui/src/views/supervise/commodityFile/commodity/commodityManagementInfoAdd.vue

@ -104,17 +104,36 @@
} }
], ],
formobj: { formobj: {
name:"", name: "",
code:"", code: "",
brand :"", brand: "",
category :"", category: "",
newestPurchasePrice:"", newestPurchasePrice: "",
secondCode:"" secondCode: ""
} }
} }
}, },
created() {
this.categoryList()
this.brandList()
},
methods: { 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() { showAdd() {
}, },
@ -214,12 +233,12 @@
handleReturn(isreload) { handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist') if (isreload === 'true') this.$emit('reloadlist')
this.formobj = { this.formobj = {
name:"", name: "",
code:"", code: "",
brand :"", brand: "",
category :"", category: "",
newestPurchasePrice:"", newestPurchasePrice: "",
secondCode:"" secondCode: ""
} }
this.$emit('doback') this.$emit('doback')

Loading…
Cancel
Save