Bladeren bron

新增垃圾类型

1004749546@qq.com 4 jaren geleden
bovenliggende
commit
13f85cb7ee

+ 2 - 1
src/views/equipmentManage/exchangeSetting/AddSetModal.vue

@@ -284,8 +284,9 @@ export default {
     isshow (newValue, oldValue) {
       if (newValue) {
         if (this.id) {
+          this.form.resetFields()
           this.titleText = '编辑'
-		      this.getDetailData(this.id)
+		  this.getDetailData(this.id)
         } else {
           this.titleText = '新增'
           this.codeList.map(item => {

+ 19 - 1
src/views/equipmentManage/exchangeSetting/ExchangeSetting.vue

@@ -164,7 +164,25 @@ export default {
           customRender: (record, text) => {
             return record ? (record.rubbishWeight ? (record.rubbishWeight + 'g/' + record.goleNum + '个') : '不兑换') : '不兑换'
           }
-        }
+        },
+		{
+		  title: '废旧玻璃',
+		  dataIndex: 'glass',
+		  width: 100,
+		  align: 'center',
+		  customRender: (record, text) => {
+		    return record ? (record.rubbishWeight ? (record.rubbishWeight + 'g/' + record.goleNum + '个') : '不兑换') : '不兑换'
+		  }
+		},
+		{
+		  title: '可回收物',
+		  dataIndex: 'recycling',
+		  width: 100,
+		  align: 'center',
+		  customRender: (record, text) => {
+		    return record ? (record.rubbishWeight ? (record.rubbishWeight + 'g/' + record.goleNum + '个') : '不兑换') : '不兑换'
+		  }
+		}
         ]
       },
       {