Lou
2023-11-13 3062b6cdec246445a8102b61c8a28de6dc707de1
subPackage/workbench/views/labelReportDetail.vue
@@ -49,8 +49,8 @@
   import boxTitle from "@/subPackage/workbench/components/boxTitle/index.vue"
   import lineItem from '../components/lineItem.vue'
   import {
      getLabelReportingDetail,
      setLabelReporting
      getSchoolReportingDetail,
      setShoolReporting
   } from '@/api/reporting/reporting'
   export default {
      components: {
@@ -60,30 +60,80 @@
      data() {
         return {
            basicData: [{
                  label: '对象电话',
                  name: "transactionObjectTel",
                  label: '社区名称',
                  name: "districtName",
                  value: '未完善'
               },
               {
                  label: '交易金额',
                  name: 'transactionMoney',
                  label: '校园名称',
                  name: 'campusName',
                  value: '未完善'
               },
               {
                  label: '物品数量',
                  name: 'goodsNums',
                  label: '自查时间',
                  name: 'checkTime',
                  value: '未完善'
               },
               {
                  label: '交易位置',
                  name: 'location',
                  label: '自查人姓名',
                  name: 'checkUserName',
                  value: '未完善'
               },
               {
                  label: '交易过程',
                  name: 'transactionProcess',
                  label: '自查位置',
                  name: 'localtion',
                  value: '未完善'
               }
               },
               {
                  label: '四个一工程',
                  name: 'fourOne',
                  value: '未完善'
               },
               {
                  label: '消防设施种类',
                  name: 'fireFacsType',
                  value: '未完善'
               },
               {
                  label: '消防器材数量',
                  name: 'fireFacsNums',
                  value: '未完善'
               },
               {
                  label: '安全通道状态',
                  name: 'scStatus',
                  value: '未完善'
               },
               {
                  label: '大门是否装备防撞装置',
                  name: 'antiCollision',
                  value: '未完善'
               },
               {
                  label: '专职保安人员',
                  name: 'fullSoNums',
                  value: '未完善'
               },
               {
                  label: '兼职保安人员',
                  name: 'partSoNums',
                  value: '未完善'
               },
               {
                  label: '学校监控总数',
                  name: 'monitorNums',
                  value: '未完善'
               },
               {
                  label: '监控是否全覆盖',
                  name: 'monitorOver',
                  value: '未完善'
               },
               {
                  label: '高空抛物监控',
                  name: 'highAltitudeMonitor',
                  value: '未完善'
               },
            ],
            form: {
               confirmFlag: '待审核',
@@ -108,8 +158,12 @@
            currentId: '',
            currentData: {},
            id: "",
            imageUrls: [],
            goodsImageUrls: [],
            foImageUrls: [], //四个一工程照片
            fireFacsImageUrls: [], //灭火器图片
            scImageUrls: [], // 安全通道图片
            patrolImageUrls: [], //周边巡查照片
            antiCollisionImageUrls: [], //防撞装置照片
            haImageUrls: [], //高空抛物监控照片
            selectStatus: "",
            remark: ""
         }
@@ -121,16 +175,19 @@
      methods: {
         getDetailInfo(id) {
            getLabelReportingDetail({
            getSchoolReportingDetail({
               taskId: id
            }).then(res => {
               console.log(res);
               let data = res.data;
               this.basicData.forEach(item => {
                  item.value = data[item.name]
                  item.value = data[item.name] || "未完善"
               })
               this.imageUrls = this.setImages(data.imageUrls);
               this.goodsImageUrls = this.setImages(data.goodsImageUrls);
               this.foImageUrls = this.setImages(data.foImageUrls);
               this.fireFacsImageUrls = this.setImages(data.fireFacsImageUrls);
               this.patrolImageUrls = this.setImages(data.patrolImageUrls);
               this.antiCollisionImageUrls = this.setImages(data.antiCollisionImageUrls);
               this.haImageUrls = this.setImages(data.haImageUrls);
            })
         },
         setImages(str) {
@@ -159,7 +216,7 @@
               })
               return;
            }
            setLabelReporting(data).then(res => {
            setSchoolReporting(data).then(res => {
               if (res.code !== 200) {
                  uni.showToast({
                     title: '更新失败',