Commit 82712eff by cwq0219

修改

1 parent da2bf82a
...@@ -1001,6 +1001,8 @@ export default { ...@@ -1001,6 +1001,8 @@ export default {
display: none; display: none;
height: 100%; height: 100%;
position: absolute; position: absolute;
width: 88px;
height: 74px;
left: 0; left: 0;
top: 0; top: 0;
z-index: 2; z-index: 2;
......
...@@ -164,7 +164,7 @@ export default { ...@@ -164,7 +164,7 @@ export default {
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'id', optionId: 'id',
optionLabel: 'goodsTypeName', optionLabel: 'goodsName',
optionsName: 'goodList' optionsName: 'goodList'
}, { }, {
label: '预录员', label: '预录员',
...@@ -212,7 +212,8 @@ export default { ...@@ -212,7 +212,8 @@ export default {
// console.log(res) // console.log(res)
this.baseData.goodList = res || [] this.baseData.goodList = res || []
this.baseData.goodList.forEach(item => { this.baseData.goodList.forEach(item => {
item.goodsTypeName = item.goodsInfo.goodsTypeName // item.goodsTypeName = item.goodsInfo.goodsTypeName
item.goodsName = item.goodsInfo.goodsName
}) })
this.getOptionsList() this.getOptionsList()
}) })
...@@ -330,7 +331,7 @@ export default { ...@@ -330,7 +331,7 @@ export default {
}, },
// 上传文件,转码为base64 // 上传文件,转码为base64
importFile(e) { importFile(e) {
let size = e.target.files[0].size / 1024 / 1024 const size = e.target.files[0].size / 1024 / 1024
if (size < 9) { if (size < 9) {
this.$set(this.fileForm, 'fileName', e.target.files[0].name) this.$set(this.fileForm, 'fileName', e.target.files[0].name)
// // 转码base64 // // 转码base64
......
...@@ -198,10 +198,9 @@ export default { ...@@ -198,10 +198,9 @@ export default {
getGoodsInfoById({ id: this.$route.params.row.id }).then(res => { getGoodsInfoById({ id: this.$route.params.row.id }).then(res => {
// console.log(res) // console.log(res)
var tempIndex = this.editForm.findIndex(i => i.title === '基础商品信息') var tempIndex = this.editForm.findIndex(i => i.title === '基础商品信息')
console.log(tempIndex)
this.editForm[tempIndex].formBlock[0].isDisabled = true this.editForm[tempIndex].formBlock[0].isDisabled = true
this.editData = { this.editData = {
yqMerchantId: this.userInfo.beSuper ? '' : this.userInfo.detail.merchantId, yqMerchantId: this.userInfo.beSuper ? res.yqMerchantId : this.userInfo.detail.merchantId,
id: res.id, id: res.id,
goodsCode: res.goodsCode, goodsCode: res.goodsCode,
goodsName: res.goodsInfo.goodsName, goodsName: res.goodsInfo.goodsName,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!