| | |
| | | </template> |
| | | <el-menu-item :index="i + '-' + 1">安全检查反馈情况(批发)</el-menu-item> |
| | | <el-menu-item :index="i + '-' + 2">安全检查反馈情况(零售)</el-menu-item> |
| | | <el-menu-item :index="i + '-' + 3" v-if="unitType==1||unitType==2">安全检查情况汇总</el-menu-item> |
| | | <el-menu-item :index="i + '-' + 3" v-if="unitType==0||unitType==1||unitType==2">安全检查情况汇总</el-menu-item> |
| | | </el-submenu> |
| | | </el-menu> |
| | | <div v-else style="background:#eee;color: #333;font-size: 16px;padding: 20px 10px"> |
| | |
| | | <wholesale-form v-show="curTab == 1 || curTab == 2" ref="wholesale"></wholesale-form> |
| | | <sum-sheet v-show="curTab == 3" ref="sumSheet"></sum-sheet> |
| | | </div> |
| | | <div v-else class="table-area" style="text-align:center;margin-top: 200px">暂无任务信息</div> |
| | | <div v-else class="table-area" style="text-align:center;">暂无任务信息</div> |
| | | <send-work ref="send"></send-work> |
| | | </div> |
| | | </template> |
| | |
| | | methods: { |
| | | async getCheckUnitType(){ |
| | | const t = this |
| | | t.listLoading = true |
| | | let res = await getCheckUnitType() |
| | | if(res.data.code === "200"){ |
| | | t.unitType = res.data.result.checkUnitType |
| | | console.log(t.unitType,'type666') |
| | | }else{ |
| | | t.$message({ |
| | | type:'warning', |
| | | message:res.data.message |
| | | }) |
| | | } |
| | | t.listLoading = false |
| | | }, |
| | | |
| | | async getSpecialCheckTask(){ |
| | |
| | | t.$refs.sumSheet.taskName = keyPath[0].split('-')[1] |
| | | t.$refs.sumSheet.enterpriseCity = '' |
| | | t.$refs.sumSheet.enterpriseArea = '' |
| | | t.$refs.sumSheet.sheetStatus = t.unitType |
| | | if(t.unitType == 0){ |
| | | t.$refs.sumSheet.sheetStatus=1 |
| | | }else{ |
| | | t.$refs.sumSheet.sheetStatus = t.unitType |
| | | } |
| | | t.$refs.sumSheet.activeTab = 1 |
| | | t.$refs.sumSheet.getDataStatistics() |
| | | console.log(t.$refs.sumSheet.sheetStatus,t.$refs.sumSheet.institutionalData,'55555555555555555') |
| | | } |
| | | t.curTab = Number(key.split('-')[1]) |
| | | }, |