jiangping
2023-09-11 4fa0cbae96cde47e4878e16c87da294903a457ae
minipro_standard/pages_adjust/pages/workOrderReporting/workOrderReporting.vue
@@ -189,7 +189,7 @@
         </div>
      </div>
      <!-- v-if="info.status === 2 || info.procedureNeedcheck === 1" -->
      <template>
      <template v-if="info.status === 2 || info.procedureNeedcheck === 1">
         <div class="bh_zw"></div>
         <div class="bg_footer bg_f7">
            <div class="bg_footer_submit bg_m" v-if="typeView == 0" @click="submit">确认报工</div>
@@ -248,7 +248,9 @@
      queryOne,
      queryList
   } from '@/util/api/PlanningAPI'
   import { REGULAR } from '@/util/utils'
   import {
      REGULAR
   } from '@/util/utils'
   export default {
      components: {
         workOrderInfo
@@ -312,6 +314,9 @@
               this.pages.page = 1
               this.pageDJs()
            }
         })
         uni.$on('addMaterial', () => {
            this.getOrocessRecords()
         })
      },
      computed: {
@@ -535,7 +540,9 @@
                if (res.code === 200) {
                     uni.$u.toast('报工成功')
                  setTimeout(() => {
                    uni.navigateBack({ data: 2})
                     uni.navigateBack({
                        data: 2
                     })
                  }, 2000)
                }
              })
@@ -562,7 +569,9 @@
                  workorderId: this.workorderId
               }
            }).then(res => {
               let {data} = res
                  let {
                     data
                  } = res
               if (data.page == 1) {
                  this.djData = []
               }
@@ -639,6 +648,27 @@
               // url: ''
               url: `/pages_adjust/pages/manualFeed/manualFeed?id=${this.workorderId}`
            })
         },
         deleItem(id, type) {
            uni.showModal({
               title: '提示',
               content: '确定删除此条记录吗?',
               success: (res) => {
                  if (res.confirm) {
                     console.log('用户点击确定');
                     deleteCT(id)
                        .then(res => {
                           this.getOrocessRecords()
                           // if (type === 'C') {
                           //    this.getOrocessRecordCC()
                           // } else if (type === 'T') {
                           //    this.getOrocessRecords()
                           // }
                        })
                        .catch(err => {})
                  }
               }
            })
         }
      }
   }