pengyh 1 år sedan
förälder
incheckning
20f343e69e

+ 7 - 3
src/views/mallManagement/goods/goodsWarehouse/detail.vue

@@ -10,7 +10,7 @@
 		<el-dialog title="商品详情" :visible.sync="isShowDetail" width="90%" :close-on-click-modal="false" :modal-append-to-body="false" :append-to-body="true">
 			<div style="max-height: 600px;overflow-y: auto;">
 				<el-form ref="formRef" :rules="rules" :model="formData" label-width="110px" size="small" label-position="left">
-					<el-card class="box-card">
+					<el-card class="box-card" id="box">
 						<div slot="header" class="clearfix">
 							<span>基础信息</span>
 						</div>
@@ -270,7 +270,7 @@
 			getList(p, cb) {
 				try {
 					var pam = JSON.parse(JSON.stringify(p))
-					pam.params.push({ 'param': 'a.status', "compare": "=", "value": this.status })
+					pam.params.push({ 'param': 'a.status', "compare": "=", "value": true })
 					cb && cb(pam)
 					return listPageV2(pam)
 				} catch (error) {
@@ -330,7 +330,11 @@
 							vedio: res.data.vedio?[{url: res.data.vedio}]:[],
 							goodsLibrarySpecList
 						})
-						console.log(this.formData,imgs)
+						this.$nextTick(()=>{
+							document.querySelector('#box').scrollIntoView({
+								behavior: "smooth"
+							});
+						})
 					})
 			      }}>查看详情</el-button>
 			    </div>

+ 12 - 1
src/views/mallManagement/goods/goodsWarehouse/index.vue

@@ -24,7 +24,7 @@
 						</el-steps>
 						<el-card class="box-card">
 							<div slot="header" class="clearfix">
-								<span>{{stepIndex == 1?'基础信息':stepIndex == 2?'价格库存':stepIndex == 3?'详情内容':''}}</span>
+								<span>{{stepIndex == 0?'基础信息':stepIndex == 1?'价格库存':stepIndex == 2?'详情内容':''}}</span>
 							</div>
 							<div class="mymain-container">
 								<el-form ref="formRef" :rules="rules" :model="formData" label-width="110px" size="small"
@@ -331,6 +331,17 @@
 						)
 					}
 				}
+				if (item.jname === 'goodsName') {
+					defaultData.render = (h, { row, index, column }) => {
+						return (
+							<div style="padding:6px;">
+								{row.goodsName}
+							</div>
+						)
+					}
+					defaultData.columnAttributes.width = 300
+					console.log(defaultData,11)
+				}
 				return defaultData
 			},
 			up(){