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. 47
      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删除一条或多条记录
CommoditydelBySids: function(sid) {
return request({

1
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: '*',

2
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({

2
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

2
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({

2
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

47
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')
},

Loading…
Cancel
Save