diff --git a/yxt-as-ui/src/api/Common/Upload.js b/yxt-as-ui/src/api/Common/Upload.js index 6f5f0c578a..2a3a89c243 100644 --- a/yxt-as-ui/src/api/Common/Upload.js +++ b/yxt-as-ui/src/api/Common/Upload.js @@ -1,4 +1,4 @@ import request from '@/utils/request' // 上传图片 -export const uploadFile = '/api/riskcenter/file/upload' +export const uploadFile = '/api/portal/file/upload' diff --git a/yxt-as-ui/src/api/goods/unit.js b/yxt-as-ui/src/api/goods/unit.js index 8795c0b363..732f5d9f27 100644 --- a/yxt-as-ui/src/api/goods/unit.js +++ b/yxt-as-ui/src/api/goods/unit.js @@ -46,7 +46,7 @@ export default { // 初始化 initUnits: function(data) { return request({ - url: '/base/basegoodsunit/initialization/' + data, + url: '/yxtbase/apiadmin/base/basegoodsunit/initialization/' + data, method: 'get' }); }, diff --git a/yxt-as-ui/src/views/goods/brands/brandsAdd.vue b/yxt-as-ui/src/views/goods/brands/brandsAdd.vue index 75c4756677..526e4c6beb 100644 --- a/yxt-as-ui/src/views/goods/brands/brandsAdd.vue +++ b/yxt-as-ui/src/views/goods/brands/brandsAdd.vue @@ -3,7 +3,7 @@
-
商品信息
+
品牌信息
保存 @@ -54,11 +54,11 @@
-->
品牌Logo: - - +
@@ -98,8 +98,8 @@ // this.initData() }, methods: { - backData(value) { - console.log('backData》》》》', value) + + backData(value){ console.log('imgList', this.imgList) if (this.imgList.length > 0) { @@ -107,25 +107,13 @@ } else { this.formobj.image = '' } - this.hideUploadBtn = this.imgList.length != 0 console.log('this.hideUploadBtn', this.hideUploadBtn) }, - backData2(value) { - console.log('backData2》》》》', value) - console.log('imgList2', this.imgList2) - - if (this.imgList2.length > 0) { - this.formobj.bigPic = this.imgList2[0].url - } else { - this.formobj.bigPic = '' - } - this.hideUploadBtn2 = this.imgList2.length != 0 - console.log('this.hideUploadBtn2', this.hideUploadBtn2) - }, saveOrUpdate() { console.log('>>>>>>>>>saveOrUpdate', this.formobj) + req.saveBrands(this.formobj) .then(resp => { if (resp.success) { @@ -144,9 +132,7 @@ handleReturn(isreload) { if (isreload === 'true') this.$emit('reloadlist') this.imgList = [] - this.imgList2 = [] this.hideUploadBtn = true - this.hideUploadBtn2 = true this.formobj = { sid: '', brandName: '', @@ -159,9 +145,7 @@ }, showAdd() { console.log("this.imgList", this.imgList) - console.log("this.imgList2", this.imgList2) this.hideUploadBtn = this.imgList.length != 0 - this.hideUploadBtn2 = this.imgList2.length != 0 }, showEdit(row) { req.initBrands(row.sid) @@ -169,26 +153,18 @@ if (resp.success) { this.formobj = resp.data this.imgList = [] - this.imgList2 = [] if (resp.data.image != '') { this.imgList.push({ url: resp.data.image }) } - if (resp.data.bigPic != '') { - this.imgList2.push({ - url: resp.data.bigPic - }) - } this.hideUploadBtn = this.imgList.length != 0 - this.hideUploadBtn2 = this.imgList2.length != 0 } }) .catch(e => { this.formobj = row this.imgList = [] - this.imgList2 = [] }) }, diff --git a/yxt-as-ui/src/views/goods/goods/goodsAdd.vue b/yxt-as-ui/src/views/goods/goods/goodsAdd.vue index d2bb507b42..70f7dceb86 100644 --- a/yxt-as-ui/src/views/goods/goods/goodsAdd.vue +++ b/yxt-as-ui/src/views/goods/goods/goodsAdd.vue @@ -15,241 +15,329 @@
- -
+ +
基础信息
- - - 商品名称 + + +
商品名称
+ +
- - - + + +
商品简称
+ +
- - - 商品编码 + +
+ + + + +
商品副标题
+ +
- - - + + +
商品拼音缩写
+ +
+
- - - 商品品牌 + + +
商品编码
+ + + +
+ + +
商品条形码
+ +
- - - + + + + +
商品品牌
+ +
- - - 商品类别 - - - - - + + +
商品类别
+ +
+
- - - 商品厂家 - - - - - +
商品厂家
+ +
- - - 厂家货号 - - - - - + + +
厂家货号
+ +
+
- - - 外部编码 + + +
商品单位
+ + + +
- - - + + +
是否上架
+ + + 上架 + 下架 +
- - - 国标码 + +
+ + + + +
外部编码
+ +
- - - +
国标码
+ +
+
- - - 税率 + + +
税率
+ +
- - - + + +
保质期天
+ +
- - - 保质期天 + +
+ + + + +
商品排序
+ +
- - - + + +
商品备注
+ +
+
- - - 商品详细说明 + + +
商品详细说明
+ +
- - - + +
+ + + + +
商品描述
+ +
+
- - - 商品描述 + + +
商品通用规格参数
+ +
- - - + +
+ + + + +
商品特有规格参数
+ +
+
- - -