瀏覽代碼

no message

linwenxin 1 年之前
父節點
當前提交
5c1757740c
共有 1 個文件被更改,包括 9 次插入3 次删除
  1. 9 3
      src/views/secondHandMall/commodityManagement/form.vue

+ 9 - 3
src/views/secondHandMall/commodityManagement/form.vue

@@ -172,6 +172,12 @@ export default {
           },
           },
         },
         },
         {
         {
+          name: 'el-input',
+          md: 6,
+          attributes: { disabled: true },
+          formItemAttributes: { label: '出售数量', prop: 'goumaiNum' }
+        },
+        {
           name: 'el-radio',
           name: 'el-radio',
           options: [
           options: [
             { label: '一级能效', value: "一级能效" },
             { label: '一级能效', value: "一级能效" },
@@ -180,7 +186,7 @@ export default {
             { label: '四级能效', value: "四级能效" },
             { label: '四级能效', value: "四级能效" },
             { label: '五级能效', value: "五级能效" },
             { label: '五级能效', value: "五级能效" },
           ],
           ],
-          md: 24,
+          md: 18,
           attributes: { disabled: this.disabled },
           attributes: { disabled: this.disabled },
           formItemAttributes: { label: '能效标识', prop: 'mark' }
           formItemAttributes: { label: '能效标识', prop: 'mark' }
         },
         },
@@ -356,14 +362,14 @@ export default {
         esGoodsDetail({ id: newVal }).then(res => {
         esGoodsDetail({ id: newVal }).then(res => {
           this.formData = {
           this.formData = {
             ...res.data,
             ...res.data,
+            goumaiNum: res.data?.esOrderInfo?.num || '',
             imgList: res.data.imgList.map(item => {
             imgList: res.data.imgList.map(item => {
               return {
               return {
                 ...item,
                 ...item,
-                url: item.imgUrl
+                url: item.imgUrl,
               }
               }
             })
             })
           }
           }
-          console.log(this.formData)
           this.cpdata = JSON.parse(JSON.stringify(res.data))
           this.cpdata = JSON.parse(JSON.stringify(res.data))
         })
         })
       },
       },