Houjie
2025-07-07 0a48655d2162b709ecb80d249a4085971add6140
pages/checkList/checkList.vue
@@ -2,7 +2,7 @@
   <view class="container">
      <cu-custom :bgColor="NavBarColor" :isBack="true" backRouterName="productionTask">
         <block slot="backText">返回</block>
         <block slot="content">点检列表</block>
         <block slot="content">待点检</block>
         <block slot="right">
            <view @click="search">
               <image class="search" src="/static/icon/sear.png" style="width: 25px; height: 25px;" alt="" />
@@ -62,6 +62,18 @@
                     </view>
                  </view>
                  <view class="flex">
                     <view class="flex-sub text-light bg-white padding-xs margin-xs radius">设备名称:</view>
                     <view class="flex-sub bg-white padding-xs margin-xs     radius text-right">
                        {{item.equipmentName}}
                     </view>
                  </view>
                  <view class="flex">
                     <view class="flex-sub text-light bg-white padding-xs margin-xs radius">安装位置:</view>
                     <view class="flex-sub bg-white padding-xs margin-xs     radius text-right">
                        {{item.installationPosition}}
                     </view>
                  </view>
                  <view class="flex">
                     <view class="flex-sub text-light bg-white padding-xs margin-xs radius">点检日期:</view>
                     <view class="flex-sub bg-white padding-xs margin-xs   text-blue   radius text-right">
                        {{item.inspectionDate}}
@@ -69,7 +81,7 @@
                  </view>
                  <view class="flex">
                     <view class="flex-sub text-light bg-white padding-xs margin-xs radius">点检过期日期:</view>
                     <view class="flex-sub bg-white padding-xs margin-xs   text-blue   radius text-right">
                     <view class="flex-sub bg-white padding-xs margin-xs   text-red   radius text-right">
                        {{item.expirationTime}}
                     </view>
                  </view>
@@ -233,15 +245,21 @@
          * @param {Object} item
          * 详情页面
          */
         onClickProductionTask(item) {
         onClickProductionTask(item, flag = 'task', from = 'detils') {
            let url = '/pages/ToDoList/ToDoListCheckSure/ToDoListCheckSure';
            uni.navigateTo({
               url: '/pages/checkList/checkListDetils/checkListDetils?item=' +
                  encodeURIComponent(JSON.stringify(item))
            })
               url: `${url}?item=${encodeURIComponent(JSON.stringify(item))}&flag=${flag}&from=${from}`
            });
         },
         // onClickProductionTask(item) {
         //    uni.navigateTo({
         //       url: '/pages/checkList/checkListDetils/checkListDetils?item=' +
         //          encodeURIComponent(JSON.stringify(item))
         //    })
         // },
         search() {
            this.$refs.popup.open();