zhujindu 9 місяців тому
батько
коміт
45138d521c

+ 21 - 3
src/api/home.js

@@ -34,10 +34,28 @@ export function checkChainsAddressByChainCode(query) {
 }
 
 // 查询主经销商
-export function getMainchains(data) {
+export function getMainchains(query) {
   return request({
     url: '/mobile/chainsGroup/getMainchains',
-    method: 'post',
-    data,
+    method: 'get',
+    params: query,
+  });
+}
+
+// 查询历史拜访任务详情
+export function getVisitsDetail(query) {
+  return request({
+    url: '/mobile/chainsGroup/getVisitsDetail',
+    method: 'get',
+    params: query,
+  });
+}
+
+//根据经销商id获取拜访历史
+export function getChainsVisitsHistory(query) {
+  return request({
+    url: '/mobile/chainsGroup/getChainsVisitsHistory',
+    method: 'get',
+    params: query,
   });
 }

+ 8 - 0
src/router/index.js

@@ -72,6 +72,14 @@ const router = new VueRouter({
             title: '拜访异常',
           },
         },
+        {
+          path: '/visitedTaskDetail',
+          name: 'visitedTaskDetail',
+          component: () => import('@/views/home/visitedTaskDetail.vue'),
+          meta: {
+            title: '拜访任务详情',
+          },
+        },
       ],
     },
     {

+ 13 - 25
src/views/home/index.vue

@@ -137,7 +137,7 @@
       </van-row>
       <!-- <div style="height: 48px; width: 100%"></div> -->
       <div class="searchcheck" @touchmove="handleTouch">
-        <p class="searchchecktitle">&nbsp;经销商</p>
+        <p class="searchchecktitle">&nbsp;经销商</p>
         <van-row>
           <van-col span="24">
             <div @click="moreTypeShowFn">
@@ -320,7 +320,6 @@ export default {
       chainsData: [],
       serachstype: '',
       addShow1: false,
-      storeCategoryList: '',
       result: [],
       StoreLabels: [],
       CustomerName: '',
@@ -371,10 +370,8 @@ export default {
       // 筛选-店型选择
       if (localStorage.getItem('outvstoreCategoryList') != null) {
         this.result = localStorage.getItem('outvstoreCategoryList').split(',');
-        this.storeCategoryList = this.result.join(',');
       } else {
         this.result = [];
-        this.storeCategoryList = this.result.join(',');
       }
       // 当前tabs,0:销售部;1:我的
       this.tabVal = localStorage.getItem('tabVal') == '0' ? '0' : '1';
@@ -426,14 +423,12 @@ export default {
       }
     },
     onConfirm(value) {
-      this.storeCategoryList = this.result.join(',');
       this.showPicker = false;
       this.onSearchm();
     },
     onsets() {
       this.result = [];
       this.storeLabelTypes = [];
-      this.storeCategoryList = this.result.join(',');
       this.chainName = '';
       this.chainCode = '';
       this.monthVisited = '';
@@ -465,10 +460,11 @@ export default {
         lat: this.lat,
         lon: this.lon,
         pageNum: this.pageNum,
-        typeCodeList: this.storeCategoryList,
+        typeCode2List: this.result,
         pageSize: this.pageSize,
         chainsName: this.chainsName.trim(),
         monthVisited: this.monthVisited, //本月是否拜访1=拜访,0=未拜访
+        mainCustomerCode: this.chainCode, //主经销商编号
       }).then((res) => {
         this.disabled = false;
         this.toastLoading().clear();
@@ -510,10 +506,11 @@ export default {
         lat: this.lat,
         lon: this.lon,
         pageNum: this.pageNum,
-        typeCodeList: this.storeCategoryList,
+        typeCode2List: this.result,
         pageSize: this.pageSize,
         chainsName: this.chainsName.trim(),
         monthVisited: this.monthVisited, //本月是否拜访1=拜访,0=未拜访
+        mainCustomerCode: this.chainCode, //主经销商编号
       }).then((res) => {
         this.disabled = false;
         this.toastLoading().clear();
@@ -560,6 +557,10 @@ export default {
             typeCode2: val.typeCode2,
             chainId: val.chainId,
             rdId: val.rdId,
+            customerManager: val.customerManager,
+            openDate: val.openDate,
+            close: val.close,
+            freeze: val.freeze,
             lat: val.lat,
             lon: val.lon,
             visitId: val.visitId,
@@ -732,6 +733,10 @@ export default {
             typeCode2: val.typeCode2,
             chainId: val.chainId,
             rdId: val.rdId,
+            customerManager: val.customerManager,
+            openDate: val.openDate,
+            close: val.close,
+            freeze: val.freeze,
             lat: location.lat,
             lon: location.lon,
             visitId: val.visitId,
@@ -852,23 +857,6 @@ export default {
       this.onLoad();
     },
     onSearchm() {
-      storeCategoryList;
-      var StoreLabelsArr = [];
-      for (var k = 0; k < this.storeLabelTypes.length; k++) {
-        for (var k1 = 0; k1 < this.StoreLabels.length; k1++) {
-          if (this.StoreLabels[k1].dictValue == this.storeLabelTypes[k]) {
-            StoreLabelsArr.push(this.StoreLabels[k1].dictLabel);
-          }
-        }
-      }
-      var storeCategoryList = [];
-      for (var q = 0; q < this.result.length; q++) {
-        for (var q1 = 0; q1 < this.storeTypeLists.length; q1++) {
-          if (this.storeTypeLists[q1].dictValue == this.result[q]) {
-            storeCategoryList.push(this.storeTypeLists[q1].dictLabel);
-          }
-        }
-      }
       localStorage.setItem('outvstoreName', this.chainName);
       localStorage.setItem('outvchainName', this.chainName);
       localStorage.setItem('outvstoreLabelTypes', this.storeLabelTypes);

+ 70 - 14
src/views/home/visitHistory.vue

@@ -5,48 +5,79 @@
       <van-nav-bar class="navBar" :title="$route.meta.title" left-arrow @click-left="onClickLeft" />
     </div>
     <div class="container">
-      <div class="card" v-if="data">
+      <div class="card">
         <div class="title f-blue">
-          {{ datachainsName }}(<span style="color: #0057ba">{{ data.chainCode }}</span
+          {{ urlParameter.chainName }}(<span style="color: #0057ba">{{
+            urlParameter.chainCode
+          }}</span
           >)
         </div>
-        <div class="info">客户分类:{{ data.storeCategory }}</div>
-        <div class="info">实际经营者:{{ data.storeCategory }}</div>
-        <div class="info">开户日期:{{ data.storeCategory }}</div>
-        <div class="info">是否冻结:{{ data.storeCategory }}</div>
-        <div class="info">是否关户:{{ data.storeCategory }}</div>
+        <div class="info">客户分类:{{ verifyChainType(urlParameter.typeCode2) }}</div>
+        <div class="info">实际经营者:{{ urlParameter.customerManager }}</div>
+        <div class="info">开户日期:{{ urlParameter.openDate }}</div>
+        <div class="info">是否冻结:{{ urlParameter.freeze }}</div>
+        <div class="info">是否关户:{{ urlParameter.close }}</div>
       </div>
       <div style="color: #999; font-size: 12px; padding: 10px; background-color: #f5f5f5">
         <van-icon name="info-o" />&nbsp;历史拜访。
       </div>
-      <div class="card">
+      <div class="card history">
         <div
           class="info"
           v-for="(item, index) in list"
           :key="index"
-          @click="examineHistory(item, index)"></div>
+          @click="examineHistory(item, index)">
+          <div class="item">
+            <div class="item-left">
+              <div class="nickName">{{ item.nickName }}</div>
+              <div class="time">{{ item.updateTime }}</div>
+            </div>
+            <div class="icon"><van-icon name="arrow" /></div>
+          </div>
+        </div>
       </div>
     </div>
   </div>
 </template>
 
 <script>
+import { getChainsVisitsHistory } from '@/api/home';
 export default {
   name: 'visitPage',
   data() {
     return {
       data: null,
-      chainId: '',
+      urlParameter: null,
       list: [],
     };
   },
   created() {
-    this.chainId = this.$route.query.chainId;
+    this.urlParameter = this.$route.query;
+  },
+  mounted() {
+    this.initData();
   },
-  mounted() {},
   methods: {
+    initData() {
+      // chainsId: this.urlParameter.chainId
+      getChainsVisitsHistory({ chainsId: 209853 }).then((res) => {
+        if (res.code == 200) {
+          this.list = res.data;
+        } else {
+          this.$toast.fail(res.msg);
+        }
+      });
+    },
     // 查看拜访历史详情
-    examineHistory(item) {},
+    examineHistory(item) {
+      this.$router.push({
+        path: '/visitHistoryDetail',
+        query: {
+          visitsId: item.visitsId,
+          chainId: this.chainId,
+        },
+      });
+    },
     onClickLeft() {
       this.$router.go(-1);
     },
@@ -88,7 +119,7 @@ export default {
   .info {
     font-size: 14px;
     color: #484848;
-    padding: 14px;
+    padding: 4px 0;
     border-bottom: 1px solid #f1f1f1;
     position: relative;
     .arrow {
@@ -138,4 +169,29 @@ export default {
 .card .f-blue {
   color: #0057ba;
 }
+.history {
+  padding: 8px 0;
+  border-bottom: 1px solid #666;
+  display: flex;
+  align-items: center;
+  .info {
+    width: 100%;
+  }
+  .item {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    font-size: 14px;
+    .item-left {
+      display: flex;
+      align-items: center;
+      div {
+        margin-left: 5px;
+      }
+    }
+    .icon {
+      margin-right: 5px;
+    }
+  }
+}
 </style>

+ 4 - 7
src/views/home/visitHistoryDetail.vue

@@ -62,12 +62,8 @@
 
 <script>
 import deleteUploadImg from '@/components/deleteUploadImg';
-import {
-  getVisitsDetail,
-  getPhotoTypeList1,
-  insertVisitRemark,
-  getCollectionShowHistory,
-} from '@/api/index';
+import { getPhotoTypeList1 } from '@/api/index';
+import { getVisitsDetail } from '@/api/home';
 
 export default {
   components: { deleteUploadImg },
@@ -87,7 +83,8 @@ export default {
     };
   },
   created() {
-    this.visitsId = this.$route.query.visitId;
+    this.chainId = this.$route.query.chainId;
+    this.visitsId = this.$route.query.visitsId;
     this.getVisitsDetailFn();
     this.getPhotoTypeList();
   },

+ 1 - 3
src/views/home/visitPage.vue

@@ -190,11 +190,9 @@ export default {
     this.uType = localStorage.getItem('uType');
   },
   mounted() {
-    this.getDetail();
     this.addVisits();
   },
   methods: {
-    getDetail() {},
     animation() {
       //前时间减去上次开启时间减去暂停累计时间
       var times = new Date().getTime() - new Date(this.startTime).getTime();
@@ -591,7 +589,7 @@ export default {
       this.$router.push({
         name: 'visitHistory',
         query: {
-          chainId: this.chainId,
+          ...this.urlParameter,
         },
       });
     },

+ 639 - 0
src/views/home/visitedTaskDetail.vue

@@ -0,0 +1,639 @@
+<template>
+  <div class="visitedTaskDetail">
+    <van-nav-bar class="navBar" title="拜访任务详情" left-arrow @click-left="onClickLeft" />
+    <div class="lineGrey"></div>
+    <div class="deviceCode" v-if="showCode">
+      <div class="vertical"></div>
+      <p>设备编号:{{ deviceCode }}</p>
+      <p>投放编号:{{ putInCode }}</p>
+    </div>
+    <div class="lineGrey" v-if="showCode"></div>
+    <div
+      class="container containert"
+      style="width: 100%; margin: 0 auto; padding: 10px 0"
+      v-if="taskType == 3">
+      <el-table
+        :data="tableData1"
+        border
+        style="width: 100%"
+        class="table-headermd"
+        :span-method="objectSpanMethod">
+        <el-table-column prop="collectionName" label="物料类型" width="180">
+          <template slot-scope="scope">
+            <span class="tipTitle" @click="tipTitle(scope.row.signDictype)">{{
+              scope.row.signDictype
+            }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="collectionName" label="物料名称" width="180">
+          <template slot-scope="scope">
+            <span class="tipTitle" @click="tipTitle(scope.row.collectionName)">{{
+              scope.row.collectionName
+            }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="inventoryNum" width="180" label="库存" />
+        <el-table-column prop="address">
+          <template slot="header">
+            <span>发放量</span>
+          </template>
+          <template slot-scope="scope">
+            <p class="f-right">{{ scope.row.value }}</p>
+          </template>
+        </el-table-column>
+      </el-table>
+    </div>
+    <div
+      class="container containert"
+      style="width: 100%; margin: 0 auto; padding: 10px 0"
+      v-if="taskType == 2">
+      <p v-if="checkShow" style="padding: 0 10px; font-size: 14px">全部不经营</p>
+      <el-table
+        :data="tableData1"
+        border
+        style="width: 100%"
+        class="table-headermd"
+        v-if="!checkShow">
+        <el-table-column prop="collectionName" label="产品名称" width="180">
+          <template slot-scope="scope">
+            <span class="tipTitle" @click="tipTitle(scope.row.collectionName)">{{
+              scope.row.collectionName
+            }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="name" width="180">
+          <template slot="header">
+            <span>进货原价</span>
+          </template>
+          <template slot-scope="scope">
+            <p class="f-right">{{ scope.row.xdjhyj }}</p>
+          </template>
+        </el-table-column>
+        <el-table-column prop="address">
+          <template slot="header">
+            <span>促后净价</span>
+          </template>
+          <template slot-scope="scope">
+            <p class="f-right">{{ scope.row.xdjhchjj }}</p>
+          </template>
+        </el-table-column>
+        <el-table-column prop="address">
+          <template slot="header">
+            <span>油工拿货价</span>
+          </template>
+          <template slot-scope="scope">
+            <p class="f-right">{{ scope.row.ygnhj }}</p>
+          </template>
+        </el-table-column>
+      </el-table>
+    </div>
+    <div
+      class="container containert"
+      style="width: 94%; margin: 0 auto; border-radius: 6px"
+      v-if="taskType == 1">
+      <van-form ref="tabstoreVal">
+        <div v-for="(item, index) in collectionItemList" :key="index">
+          <div class="formLabel z-cell z-cells" v-if="item.answerType == 'sz'">
+            <van-cell>
+              <template #title> {{ index + 1 }}.{{ item.collectionName }} </template>
+            </van-cell>
+            <p class="mg0">{{ item.answerValue }}</p>
+            <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
+              <van-field
+                class="mobile-input"
+                v-model="item.collectionOptionList[0].collectionOption"
+                autosize
+                readonly
+                type="textarea" />
+            </p>
+            <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
+          </div>
+          <div class="formLabel z-cell z-cells" v-if="item.answerType == 'zp'">
+            <van-cell>
+              <template #title> {{ index + 1 }}.{{ item.collectionName }} </template>
+            </van-cell>
+            <!--<p style="color: #444;-->
+            <!--font-size: 12px;-->
+            <!--margin: 0;-->
+            <!--padding:10px 0;text-align: right">{{item.collectionOptionList[0].collectionOption}}</p>-->
+            <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
+          </div>
+          <div class="formLabel z-cell z-cells" v-if="item.answerType == 'wb'">
+            <van-cell>
+              <template #title>
+                {{ index + 1 }}.{{ item.collectionName }}
+                <span
+                  style="color: #00afff; position: absolute; top: 8px; right: 0px"
+                  v-if="item.showHistory == 1"
+                  @click="getCollectionShowHistory(item)"
+                  >回显历史</span
+                >
+              </template>
+            </van-cell>
+            <div class="selesetText">
+              <p class="mg0">{{ item.answerValue }}</p>
+            </div>
+            <p style="color: #444; font-size: 12px; margin: 0; text-align: right">
+              <van-field
+                class="mobile-input"
+                v-model="item.collectionOptionList[0].collectionOption"
+                autosize
+                readonly
+                type="textarea" />
+            </p>
+            <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
+          </div>
+          <div class="formLabel z-cell z-cells" v-if="item.answerType == 'tel'">
+            <van-cell>
+              <template #title> {{ index + 1 }}.{{ item.collectionName }} </template>
+            </van-cell>
+            <div class="selesetText">
+              <p class="mg0">{{ item.answerValue }}</p>
+            </div>
+            <p style="color: #444; font-size: 12px; margin: 0; text-align: right">
+              <van-field
+                class="mobile-input"
+                v-model="item.collectionOptionList[0].collectionOption"
+                autosize
+                readonly
+                type="textarea" />
+            </p>
+            <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
+          </div>
+          <div class="formLabel z-cell z-cells" v-if="item.answerType == 'date'">
+            <van-cell>
+              <template #title> {{ index + 1 }}.{{ item.collectionName }} </template>
+            </van-cell>
+            <div class="selesetText">
+              <p class="mg0">{{ item.answerValue }}</p>
+            </div>
+            <p style="color: #444; font-size: 12px; margin: 0; text-align: right">
+              <van-field
+                class="mobile-input"
+                v-model="item.collectionOptionList[0].collectionOption"
+                autosize
+                readonly
+                type="textarea" />
+            </p>
+            <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
+          </div>
+          <div class="formLabel z-cell z-cells" v-if="item.answerType == 'sm'">
+            <van-cell>
+              <template #title> {{ index + 1 }}.{{ item.collectionName }} </template>
+            </van-cell>
+            <div class="selesetText">
+              <div style="font-size: 14px" v-if="item.collectionOptionList[0].answerValue">
+                <div v-if="item.success" style="color: green">
+                  <p>系统资产编码:{{ item.equipmentCode1 }}</p>
+                  <p>&nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{ item.equipmentCode2 }}</p>
+                  <span style="float: right; margin-top: -48px"
+                    ><van-icon name="passed" size="16" />&nbsp;一致</span
+                  >
+                </div>
+                <div v-if="!item.success" style="color: red">
+                  <p>系统资产编码:{{ item.equipmentCode1 }}</p>
+                  <p>&nbsp;&nbsp;&nbsp;&nbsp;条形码编码:{{ item.equipmentCode2 }}</p>
+                  <span style="float: right; margin-top: -48px"
+                    ><van-icon name="close" size="16" />&nbsp;不一致</span
+                  >
+                </div>
+              </div>
+            </div>
+            <p
+              style="color: #444; font-size: 12px; margin: 0; text-align: right"
+              v-if="item.collectionOptionList[0].collectionOption">
+              <van-field
+                class="mobile-input"
+                v-model="item.collectionOptionList[0].collectionOption"
+                autosize
+                readonly
+                type="textarea" />
+            </p>
+            <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
+          </div>
+          <div class="formLabel z-cell z-cells" v-if="item.answerType == 'duox'">
+            <van-cell>
+              <template #title> {{ index + 1 }}.{{ item.collectionName }} </template>
+            </van-cell>
+            <div class="selesetText">
+              <p class="mg0" v-for="(item1, index1) in item.collectionOptionList" :key="index1">
+                <span v-if="item1.isCheck == 1">{{ item1.collectionOption }}</span>
+              </p>
+            </div>
+            <!--<p style="color: #444;-->
+            <!--font-size: 12px;-->
+            <!--margin: 0;-->
+            <!--padding:10px 0;text-align: right">{{item.collectionOptionList[0].collectionOption}}</p>-->
+            <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
+          </div>
+          <div class="formLabel z-cell z-cells" v-if="item.answerType == 'dx'">
+            <van-cell>
+              <template #title> {{ index + 1 }}.{{ item.collectionName }} </template>
+            </van-cell>
+            <div class="selesetText">
+              <p class="mg0" v-for="(item2, index2) in item.collectionOptionList" :key="index2">
+                <span v-if="item2.isCheck == 1">{{ item2.collectionOption }}</span>
+              </p>
+            </div>
+            <!--<p style="color: #444;-->
+            <!--font-size: 12px;-->
+            <!--margin: 0;-->
+            <!--padding:10px 0;text-align: right">{{item.collectionOptionList[0].collectionOption}}</p>-->
+            <delete-upload-img :imgs="item.fileInfoList"></delete-upload-img>
+          </div>
+        </div>
+      </van-form>
+    </div>
+    <van-dialog v-model="listShow" title="历史回显" show-cancel-button :showConfirmButton="false">
+      <div style="border: 1px solid #eee; margin-top: 18px">
+        <div class="itenHhistory" v-for="item in list">
+          <p>内容:{{ item.answerValue }}</p>
+          <p>拜访人:{{ item.nickName }}</p>
+          <p>拜访时间:{{ item.createTime }}</p>
+        </div>
+      </div>
+    </van-dialog>
+    <br />
+  </div>
+</template>
+
+<script>
+import { getCollectionShowHistory, getPhotoTypeList, getVisitsDetail } from '@/api/index';
+import deleteUploadImg from '@/components/deleteUploadImg';
+
+export default {
+  name: 'abnormalVisit',
+  components: { deleteUploadImg },
+  data() {
+    return {
+      value: '',
+      sdsd: false,
+      showPicker: false,
+      logshow: false,
+      imgs: [],
+      checkboxGroup: [],
+      listShow: false,
+      showCode: false,
+      deviceCode: '',
+      list: [],
+      radio: '',
+      uploadid2: 'uploadid2',
+      collectionItemList: [],
+      rdId: '',
+      show: false,
+      PhotoTypeList: [],
+      PhotoType: '',
+      PhotoTypeText: '',
+      indexselect: 0,
+      visitId: '',
+      storeGroupId: '',
+      taskId: '',
+      collectionId: '',
+      storeId: '',
+      collectionAnswerlisd: [],
+      tableData1: [],
+      taskType: 1,
+      flag: false,
+      indeximg: '',
+      checkShow: false,
+      infoData: {},
+      putInCode: '',
+    };
+  },
+  created() {
+    this.taskType = this.$route.query.taskType;
+    this.PhotoType = this.$route.query.photoType;
+    this.visitId = this.$route.query.visitId + '';
+    this.taskId = this.$route.query.taskId + '';
+    this.storeId = this.$route.query.storeId + '';
+    this.storeGroupId = this.$route.query.storeGroupId + '';
+    if (this.$route.query.photoType != null) {
+      this.indexselect = 0;
+    } else {
+      this.indexselect = 1;
+    }
+    this.getPhotoTypeList();
+    this.info();
+  },
+  methods: {
+    objectSpanMethod({ row, column, rowIndex, columnIndex }) {
+      const cellValue = row[column.property];
+      if (cellValue && ['signDictype'].includes(column.property)) {
+        const prevRow = this.tableData1[rowIndex - 1];
+        let nextRow = this.tableData1[rowIndex + 1];
+        if (prevRow && prevRow[column.property] === cellValue) {
+          return { rowspan: 0, colspan: 0 };
+        } else {
+          let countRowspan = 1;
+          while (nextRow && nextRow[column.property] === cellValue) {
+            nextRow = this.tableData1[++countRowspan + rowIndex];
+          }
+          if (countRowspan > 1) {
+            return { rowspan: countRowspan, colspan: 1 };
+          }
+        }
+      }
+    },
+    // 历史回显
+    getCollectionShowHistory(id) {
+      getCollectionShowHistory({
+        storeId: this.infoData.storeId,
+        collectionId: id.collectionId,
+        visitsId: this.$route.query.visitId,
+        storeGroupId: this.$route.query.storeGroupId,
+        taskId: this.$route.query.taskId,
+      }).then((res) => {
+        if (res.data.length > 0) {
+          this.list = res.data;
+          this.listShow = true;
+        } else {
+          this.$toast('暂无历史信息');
+        }
+      });
+    },
+    checkFn(val) {
+      var arrc = [];
+      for (var cl = 0; cl < val.length; cl++) {
+        if (val[cl].isCheck == '1') {
+          arrc.push(val[cl].collectionOption);
+        }
+      }
+      return arrc.join(',');
+    },
+    info() {
+      getVisitsDetail({ visitsId: this.visitId }).then((res) => {
+        this.infoData = res.data;
+        var collectionItemLists = res.data.sfaTaskList[this.$route.query.ids].collectionItemList;
+        if (res.data.sfaTaskList[this.$route.query.ids].checkUnManage == 'Y') {
+          this.checkShow = true;
+        } else {
+          this.checkShow = false;
+        }
+        // this.deviceCode=res.data.deviceCode;
+        // this.putInCode=res.data.putInCode;
+        this.deviceCode = res.data.sfaTaskList[this.$route.query.ids].deviceCode || ''; // 设备编号
+        this.putInCode = res.data.sfaTaskList[this.$route.query.ids].putInCode || ''; // 投放编号
+        if (res.data.sfaTaskList[this.$route.query.ids].inspectionType == 'buy') {
+          this.showCode = true;
+        } else {
+          this.showCode = false;
+        }
+        if (this.$route.query.taskType == 1) {
+          for (var q = 0; q < collectionItemLists.length; q++) {
+            if (
+              collectionItemLists[q].answerType == 'sz' ||
+              collectionItemLists[q].answerType == 'wb' ||
+              collectionItemLists[q].answerType == 'tel' ||
+              collectionItemLists[q].answerType == 'date'
+            ) {
+              collectionItemLists[q].answerValue =
+                collectionItemLists[q].collectionOptionList[0].answerValue;
+            }
+            if (collectionItemLists[q].answerType == 'sm') {
+              collectionItemLists[q].success = false;
+              if (
+                collectionItemLists[q].collectionOptionList[0].answerValue != null &&
+                collectionItemLists[q].collectionOptionList[0].answerValue != ''
+              ) {
+                collectionItemLists[q].equipmentCode2 =
+                  collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[1];
+                if (
+                  collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[0] != 'null'
+                ) {
+                  collectionItemLists[q].equipmentCode1 =
+                    collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[0];
+                } else {
+                  collectionItemLists[q].equipmentCode1 = '编码不存在';
+                }
+                if (
+                  collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[0] ==
+                  collectionItemLists[q].collectionOptionList[0].answerValue.split(',')[1]
+                ) {
+                  collectionItemLists[q].success = true;
+                }
+              }
+            }
+            if (
+              collectionItemLists[q].answerType == 'duox' ||
+              collectionItemLists[q].answerType == 'dx'
+            ) {
+              collectionItemLists[q].answerValue = [];
+              for (var qq = 0; qq < collectionItemLists[q].collectionOptionList.length; qq++) {
+                if (collectionItemLists[q].collectionOptionList[qq].isCheck == 1) {
+                  collectionItemLists[q].answerValue.push(
+                    collectionItemLists[q].collectionOptionList[qq].collectionOptionId
+                  );
+                  collectionItemLists[q].collectionOptionList[qq].code =
+                    collectionItemLists[q].collectionCode;
+                  collectionItemLists[q].collectionOptionList[qq].answerType =
+                    collectionItemLists[q].answerType;
+                  this.collectionAnswerlisd.push(collectionItemLists[q].collectionOptionList[qq]);
+                }
+              }
+              collectionItemLists[q].answerValue = collectionItemLists[q].answerValue.join();
+            }
+          }
+          this.collectionItemList = collectionItemLists;
+        } else {
+          for (var f = 0; f < collectionItemLists.length; f++) {
+            var collectionOptionListarr = collectionItemLists[f].collectionOptionList;
+            for (var ff = 0; ff < collectionOptionListarr.length; ff++) {
+              if (ff == '0') {
+                collectionItemLists[f].xdjhyj = collectionOptionListarr[ff].answerValue;
+                collectionItemLists[f].value = collectionOptionListarr[ff].answerValue;
+              }
+              if (ff == '1') {
+                collectionItemLists[f].xdjhchjj = collectionOptionListarr[ff].answerValue;
+              }
+              if (ff == '2') {
+                collectionItemLists[f].ygnhj = collectionOptionListarr[ff].answerValue;
+              }
+            }
+          }
+          this.tableData1 = collectionItemLists;
+        }
+      });
+    },
+    getPhotoTypeList() {
+      getPhotoTypeList({}).then((res) => {
+        var PhotoTypeLists = [];
+        for (var p = 0; p < res.data.length; p++) {
+          PhotoTypeLists.push({
+            dictValue: res.data[p].dictValue,
+            text: res.data[p].dictLabel,
+          });
+        }
+        this.PhotoTypeList = PhotoTypeLists;
+      });
+    },
+    onClickLeft() {
+      this.$router.go(-1);
+    },
+    tipTitle(val) {
+      this.$toast(val);
+    },
+  },
+};
+</script>
+<style scoped>
+.container {
+  background-color: white;
+}
+
+.van-f-red {
+  color: red;
+  width: 8px;
+  display: inline-block;
+  line-height: 26px;
+}
+
+.formLabel {
+  margin: 0 16px;
+  padding-bottom: 16px;
+  border-bottom: 1px solid #f1f1f1;
+}
+
+.formLabel .van-cell {
+  padding: 10px 0;
+}
+
+.formLabel .van-cell::after {
+  border: 0;
+}
+
+.formLabel .van-field {
+  border: 1px solid #f1f1f1;
+  padding: 6px;
+  width: 100%;
+  border-radius: 4px;
+  overflow: hidden;
+}
+
+.formLabel .van-field__control {
+  padding: 0 10px;
+}
+
+.formLabel .formLabeltitle {
+  position: absolute;
+  top: 8px;
+}
+
+.z-checkbox .van-radio {
+  padding: 6px 0;
+}
+
+.z-cell .van-cell__title {
+  font-size: 16px;
+}
+.deviceCode {
+  font-size: 16px;
+  padding: 12px;
+  background-color: white;
+  margin: 0 12px;
+  border-radius: 5px;
+  position: relative;
+  overflow: hidden;
+}
+.vertical {
+  background-color: #2b2f3a;
+  height: 14px;
+  width: 8px;
+  border-radius: 40px;
+  position: absolute;
+  left: -3px;
+  top: 50px;
+}
+</style>
+<style>
+.table-headermd {
+  font-size: 1.2rem;
+  text-align: center;
+  position: initial;
+  width: 94% !important;
+  margin: 0 auto;
+  border-right: 0;
+}
+
+.table-headermd .el-table__header,
+.table-headermd .el-table__body {
+  width: 100% !important;
+}
+
+.table-headermd col {
+  width: 5.8rem;
+}
+
+.table-headermd col:nth-child(2),
+.table-headermd col:nth-child(4),
+.table-headermd col:nth-child(3) {
+  width: 5rem;
+}
+
+.table-headermd .van-cell {
+  padding: 0 4px;
+  height: 100%;
+}
+
+.table-headermd th.el-table__cell > .cell {
+  padding: 0 4px;
+}
+
+.table-headermd th.el-table__cell {
+  background-color: #1989fa;
+  color: #fff;
+}
+
+.table-headermd .el-table__cell {
+  padding: 4px 0;
+}
+
+.table-headermd .tipTitle {
+  overflow: hidden;
+  text-overflow: ellipsis;
+  display: -webkit-box;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 2;
+}
+
+.table-headermd::before {
+  height: 0;
+}
+
+.f-right {
+  text-align: right;
+  margin: 0;
+}
+
+.mg0 {
+  margin: 6px 10px;
+  color: #909090;
+  font-size: 14px;
+}
+
+.selesetText {
+  margin-bottom: 16px;
+}
+
+.z-cells .van-cell__title {
+  font-weight: bold;
+  color: #4a4a4a;
+}
+
+.z-cells .van-cell {
+  padding-bottom: 0;
+}
+</style>
+<style>
+.containert .van-cell__title {
+  overflow: auto;
+  height: auto;
+}
+.mobile-input .van-field__control {
+  font-size: 12px;
+  color: #999;
+  border: 0;
+}
+.formLabel .mobile-input {
+  border: 0 !important;
+}
+</style>