Pārlūkot izejas kodu

新增采集端需求

zhangdan 4 gadi atpakaļ
vecāks
revīzija
e64dd278b9

+ 1 - 9
src/views/recoveryManage/recoveryPriceSet.vue

@@ -80,6 +80,7 @@ export default {
       console.log(key, this.type)
     },
     changeInput (item) {
+      console.log(item.advicePrice, '------------------')
       if (item.advicePrice == 0) {
         item.advicePrice = ''
       }
@@ -98,15 +99,6 @@ export default {
     // 保存价格
     save (id, advicePrice) {
       const params = { adviceType: this.type, id: id, advicePrice: advicePrice }
-      if (params.advicePrice == 0 || !params.advicePrice) {
-        this.$message.warning('请输入正确的回收价格')
-        return false
-      }
-      // if (!params.advicePrice) {
-      //   this.$message.warning('回收价格不能为空')
-      //   return false
-      // }
-
       savPrice(params).then(res => {
         if (res.status == 200) {
           this.$message.success(res.message)

+ 8 - 2
src/views/reportForm/unRecyclableRubbishDetails.vue

@@ -58,7 +58,7 @@
     <!-- 合计 -->
     <a-alert type="info" showIcon style="margin-bottom:15px">
       <div class="ftext" slot="message">总计<span> {{ orderTotal }} </span>条,<span> {{ total }} </span>kg。
-        其中,其他垃圾总计<span> {{ otherTotal }} </span>kg,厨余垃圾总计<span>{{ chuyuTotal }} </span>kg,建筑垃圾总计<span> {{ jianzhuTotal }} </span>kg
+        其中,可回收物总计<span>{{ huishouTotal }} </span>kg,有害垃圾总计<span>{{ harmTotal }} </span>kg,厨余垃圾总计<span>{{ chuyuTotal }} </span>kg,其他垃圾总计<span> {{ otherTotal }} </span>kg,建筑垃圾总计<span> {{ jianzhuTotal }} </span>kg
       </div>
     </a-alert>
     <!-- 列表 -->
@@ -90,6 +90,8 @@ export default {
     return {
       orderTotal: 0, //  总计条数
       total: 0, //  可回收垃圾总计
+      huishouTotal: 0, // 可回收物
+      harmTotal: 0, // 有害垃圾
       otherTotal: 0, //  其他垃圾总计
       jianzhuTotal: 0, //  建筑垃圾总计
       chuyuTotal: 0, //  厨余垃圾总计
@@ -112,8 +114,10 @@ export default {
         { title: '网点名称', dataIndex: 'stationName', width: 120, align: 'center', customRender: (text) => { return text || '--' } },
         { title: '采集员姓名', dataIndex: 'gatherName', width: 100, align: 'center', customRender: (text) => { return text || '--' } },
         { title: '采集员手机', dataIndex: 'gatherPhone', width: 100, align: 'center', customRender: (text) => { return text || '--' } },
-        { title: '其他垃圾(kg)', dataIndex: 'gatherOther', width: 80, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
+        { title: '可回收物(kg)', dataIndex: 'gatherRecycling', width: 80, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
+        { title: '有害垃圾(kg)', dataIndex: 'gatherHarm', width: 80, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
         { title: '厨余垃圾(kg)', dataIndex: 'gatherKitchen', width: 80, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
+        { title: '其他垃圾(kg)', dataIndex: 'gatherOther', width: 80, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
         { title: '建筑垃圾(kg)', dataIndex: 'gatherBuilding', width: 80, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
         { title: '总计(kg)', dataIndex: 'gatherTotal', width: 80, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
         { title: '备注', dataIndex: 'remarks', width: 100, align: 'center', customRender: (text) => { return text || '--' } },
@@ -195,6 +199,8 @@ export default {
             this.jianzhuTotal = res.data.GATHER_BUILDING ? (res.data.GATHER_BUILDING / 1000).toFixed(3) / 1 : '0'
             this.chuyuTotal = res.data.GATHER_KITCHEN ? (res.data.GATHER_KITCHEN / 1000).toFixed(3) / 1 : '0'
             this.total = res.data.GATHER_TOTAL ? (res.data.GATHER_TOTAL / 1000).toFixed(3) / 1 : '0'
+            this.harmTotal = res.data.GATHER_HARM ? (res.data.GATHER_HARM / 1000).toFixed(3) / 1 : '0'
+            this.huishouTotal = res.data.GATHER_HARM ? (res.data.GATHER_HARM / 1000).toFixed(3) / 1 : '0'
           }
         }
       })

+ 8 - 3
src/views/reportForm/unRecyclableRubbishTotal.vue

@@ -79,7 +79,7 @@
     <!-- 合计 -->
     <a-alert type="info" showIcon style="margin-bottom:15px">
       <div class="ftext" slot="message">总计<span> {{ orderTotal }} </span>条,<span> {{ total }} </span>kg。
-        其中,其他垃圾总计<span> {{ otherTotal }} </span>kg,厨余垃圾总计<span>{{ chuyuTotal }} </span>kg,建筑垃圾总计<span> {{ jianzhuTotal }} </span>kg
+        其中,可回收物总计<span>{{ huishouTotal}} </span>kg,有害垃圾总计<span>{{harmTotal }} </span>kg,厨余垃圾总计<span>{{ chuyuTotal }} </span>kg,其他垃圾总计<span> {{ otherTotal }} </span>kg,建筑垃圾总计<span> {{ jianzhuTotal }} </span>kg
       </div>
     </a-alert>
     <!-- 列表 -->
@@ -109,6 +109,8 @@ export default {
     return {
       orderTotal: 0, //  总计条数
       total: 0, //  可回收垃圾总计
+      huishouTotal:0, // 可回收物
+      harmTotal:0, // 有害垃圾
       otherTotal: 0, //  其他垃圾总计
       jianzhuTotal: 0, //  建筑垃圾总计
       chuyuTotal: 0, //  厨余垃圾总计
@@ -133,9 +135,10 @@ export default {
       columns: [
         { title: '序号', dataIndex: 'no', width: 60, align: 'center' },
         { title: '网点名称', dataIndex: 'stationName', width: 100, align: 'center', customRender: (text) => { return text || '--' } },
-        { title: '其他垃圾(kg)', dataIndex: 'GATHER_OTHER', width: 100, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
+        { title: '可回收物(kg)', dataIndex: 'GATHER_RECYCLING', width: 100, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
+        { title: '有害垃圾(kg)', dataIndex: 'GATHER_HARM', width: 100, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
         { title: '厨余垃圾(kg)', dataIndex: 'GATHER_KITCHEN', width: 100, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
-        { title: '建筑垃圾(kg)', dataIndex: 'GATHER_BUILDING', width: 100, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
+        { title: '其他垃圾(kg)', dataIndex: 'GATHER_OTHER', width: 100, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } },
         { title: '总计(kg)', dataIndex: 'GATHER_TOTAL', width: 100, align: 'center', customRender: (text) => { return text ? (text / 1000).toFixed(3) / 1 : '0' } }
       ],
       // 加载数据方法 必须为 Promise 对象
@@ -258,6 +261,8 @@ export default {
             this.otherTotal = res.data.GATHER_OTHER ? (res.data.GATHER_OTHER / 1000).toFixed(3) / 1 : '0'
             this.jianzhuTotal = res.data.GATHER_BUILDING ? (res.data.GATHER_BUILDING / 1000).toFixed(3) / 1 : '0'
             this.chuyuTotal = res.data.GATHER_KITCHEN ? (res.data.GATHER_KITCHEN / 1000).toFixed(3) / 1 : '0'
+            this.huishouTotal = res.data.GATHER_RECYCLING ? (res.data.GATHER_RECYCLING / 1000).toFixed(3) / 1 : '0'
+            this.harmTotal = res.data.GATHER_HARM ? (res.data.GATHER_HARM / 1000).toFixed(3) / 1 : '0'
             this.total = res.data.GATHER_TOTAL ? (res.data.GATHER_TOTAL / 1000).toFixed(3) / 1 : '0'
           }
         }