| | |
| | | "path" : "pages/MJGL/Sb_EquipDotCheckTaskReport/Sb_EquipDotCheckTaskReport", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "设备点检任务" |
| | | "navigationBarTitleText" : "设备待点检任务" |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/MJGL/Sc_MouldDotCheckTaskReport/Sc_MouldDotCheckTaskReport", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "器具点检任务" |
| | | "navigationBarTitleText" : "模具待点检任务" |
| | | } |
| | | }, |
| | | { |
| | |
| | | </view> |
| | | <xe-upload ref="XeUpload" :options="uploadOptions" @callback="handleUploadCallback"></xe-upload> |
| | | <BillSelectorPopupVue @update="billSelectHandler" ref="billSelector" :Type="'DJ'"></BillSelectorPopupVue> |
| | | |
| | | <!-- 用于输入标准值 上限值 下限值的弹出层 --> |
| | | <uni-popup ref="inputPopup" :mask-click="false" > |
| | | <view class="inputPopup"> |
| | | <view class="form-item"> |
| | | <view class="title">标准值:</view> |
| | | <view class="right"> |
| | | <input type="number" v-model="selectTechParamItem.item.HStd" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">上限值:</view> |
| | | <view class="right"> |
| | | <input type="number" v-model="selectTechParamItem.item.HMax" /> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">下限值:</view> |
| | | <view class="right"> |
| | | <input type="number" v-model="selectTechParamItem.item.HMin" /> |
| | | </view> |
| | | </view> |
| | | <view style="display: flex; flex-direction: row;"> |
| | | <button size="mini" plain="true" type="primary" @click="inputPopupClose(1)">确认</button> |
| | | <button size="mini" plain="true" type="warn" @click="inputPopupClose(0)">取消</button> |
| | | </view> |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | HBillType: '3919', |
| | | operationType: 1, |
| | | uploadOptions: {}, |
| | | |
| | | selectTechParamItem: { |
| | | index: -1, |
| | | item: { |
| | | HStd: 0, |
| | | HMax: 0, |
| | | HMin: 0 |
| | | } |
| | | }, |
| | | |
| | | HTechParams: [], // 工艺参数 |
| | | |
| | |
| | | }, |
| | | methods: { |
| | | modifyCheckValue(index, item) { |
| | | console.log('item: ',item, 'index: ', index); |
| | | console.log('item: ', item, 'index: ', index); |
| | | this.selectTechParamItem = { |
| | | index, |
| | | item: JSON.parse(JSON.stringify(item)) |
| | | } |
| | | |
| | | this.$refs.inputPopup.open() |
| | | }, |
| | | billSelectHandler(billData) { |
| | | console.log('billData: ', billData); |
| | |
| | | this.hform.HBarCode = cb |
| | | this.GetMessageByBarCode(cb) |
| | | }) |
| | | }, |
| | | inputPopupClose(type) { |
| | | if(type == 1) { |
| | | // 确认 |
| | | let index = this.selectTechParamItem.index |
| | | let item = this.selectTechParamItem.item |
| | | |
| | | this.HTechParams[index] = item |
| | | } |
| | | this.selectTechParamItem = { |
| | | index: -1, |
| | | item: { |
| | | HStd: 0, |
| | | HMax: 0, |
| | | HMin: 0 |
| | | } |
| | | }, |
| | | this.$refs.inputPopup.close() |
| | | }, |
| | | async GetMessageByBarCode(HBarCode) { |
| | | try { |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import "@/pages/MJGL/style/MJBillStyle.scss" |
| | | @import "@/pages/MJGL/style/MJBillStyle.scss"; |
| | | |
| | | .inputPopup { |
| | | background-color: #fff; |
| | | padding: 20rpx; |
| | | } |
| | | </style> |
| | |
| | | <view class="card-detail"> |
| | | <view class="detail" v-for="(field, index) in CommonUtils.emptyValueFilter(item, HFieldList)" |
| | | :key="index"> |
| | | <text>{{field.ColmCols}}:</text>{{item[field.ColmCols]}} |
| | | <template v-if="field.ColmType == 'DateTime'"> |
| | | <text>{{field.ColmCols}}:</text>{{dayjs(item[field.ColmCols]).format("YYYY-MM-DD HH:mm:ss")}} |
| | | </template> |
| | | <template v-else> |
| | | <text>{{field.ColmCols}}:</text>{{item[field.ColmCols]}} |
| | | </template> |
| | | </view> |
| | | </view> |
| | | <view class="more" v-if="showDetail == index && operations != index"> |
| | |
| | | <template> |
| | | <view> |
| | | |
| | | <view class="tabs" id="tabs"> |
| | | <view :class="tabs == 0 ? 'on':''" @tap="switchTab(0)">待维修</view> |
| | | <view :class="tabs == 1 ? 'on':''" @tap="switchTab(1)">已维修</view> |
| | | <view :class="tabs == 2 ? 'on':''" @tap="switchTab(2)">已验收</view> |
| | | </view> |
| | | |
| | | <!-- 设备点检任务列表 --> |
| | | <view class="list" v-for="(item,index) in reportBillsDisplay" :key="index"> |
| | | <uni-card :title="item.故障登记单号" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index"> |
| | | <view class="card-detail"> |
| | | <view class="detail" v-for="(field, index) in CommonUtils.emptyValueFilter(item, HFieldList)" |
| | | :key="index"> |
| | | <template v-if="field.ColmType == 'DateTime'"> |
| | | <text>{{field.ColmCols}}:</text>{{dayjs(item[field.ColmCols]).format('YYYY-MM-DD HH:mm:ss')}} |
| | | </template> |
| | | <template v-else> |
| | | <text>{{field.ColmCols}}:</text>{{item[field.ColmCols]}} |
| | | </template> |
| | | </view> |
| | | </view> |
| | | <view class="more" v-if="showDetail == index && operations != index"> |
| | | <view class="part" style="border-right: 1px solid #eee;"> |
| | | <uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>收起 |
| | | </view> |
| | | <view class="part" @tap.stop="operations = operations==index?-1:index"> |
| | | <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>操作 |
| | | </view> |
| | | </view> |
| | | <view class="more" v-if="showDetail != index && operations != index"> |
| | | <view class="part" style="border-right: 1px solid #eee;"> |
| | | <uni-icons type="bottom" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>更多信息 |
| | | </view> |
| | | <view class="part" @tap.stop="operations = operations==index?-1:index"> |
| | | <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>操作 |
| | | </view> |
| | | </view> |
| | | <view class="op" v-if="operations == index"> |
| | | <!-- <button class="op3" size="mini" plain @tap.stop="edit(item)">编辑</button> --> |
| | | <!-- <button class="op4" size="mini" plain @tap.stop="del(item)">删除</button> --> |
| | | <button class="op3" size="mini" v-if="tabs == 0" plain @tap.stop="pushBill(0, item)">下推派工单</button> |
| | | <button class="op3" size="mini" v-if="tabs == 1" plain @tap.stop="pushBill(1, item)">下推维修单</button> |
| | | <button class="op3" size="mini" v-if="tabs == 2" plain @tap.stop="pushBill(2, item)">下推验收单</button> |
| | | <button class="op5" size="mini" plain @tap.stop="operations = -1">取消操作</button> |
| | | </view> |
| | | </uni-card> |
| | | </view> |
| | | <view class="over" v-if="reportBillsDisplay.length == 0">暂无数据</view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getUserInfo |
| | | } from '../../../utils/auth'; |
| | | import { |
| | | CommonUtils |
| | | } from '../../../utils/common'; |
| | | import dayjs from 'dayjs'; |
| | | export default { |
| | | // 器具故障登记跟踪 模块 |
| | | name: 'Sc_MouldRepairCheckTaskReport', |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | dayjs, |
| | | CommonUtils, |
| | | tabs: 0, |
| | | showDetail: -1, |
| | | operations: -1, |
| | | |
| | | reportBillsDisplay: [], |
| | | reportBillsAwaitRepair: [], // 待维修 |
| | | reportBillsRepaired: [], // 已维修 |
| | | reportBillsChecked: [], // 已验收 |
| | | HFieldList: [], // 字段列表 |
| | | }; |
| | | }, |
| | | methods: { |
| | | |
| | | pushBill(tab, item) { |
| | | console.log('item: ', item); |
| | | let Query = `&HBillNo=${item['故障登记单号']}&HInterID=${item['HInterID']}&HSourceBillType=3907` |
| | | if (tab == 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBill?operationType=4' + |
| | | Query |
| | | }) |
| | | } else if (tab == 1) { |
| | | uni.navigateTo({ |
| | | url: '/pages/MJGL/Sb_EqpMaintenance/Sb_EqpMaintenanceBill?operationType=5' + Query + |
| | | `&HSendWorkID=${item.HSendWorkID}` |
| | | }) |
| | | } else if (tab == 2) { |
| | | uni.navigateTo({ |
| | | url: '/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill?operationType=4' + |
| | | Query + `&HSendWorkID=${item.HSendWorkID}` |
| | | }) |
| | | } |
| | | }, |
| | | switchTab(tabIndex) { |
| | | this.tabs = tabIndex |
| | | switch (tabIndex) { |
| | | case 0: |
| | | this.reportBillsDisplay = this.reportBillsAwaitRepair; |
| | | break; |
| | | case 1: |
| | | this.reportBillsDisplay = this.reportBillsRepaired; |
| | | break; |
| | | case 2: |
| | | this.reportBillsDisplay = this.reportBillsChecked; |
| | | break; |
| | | } |
| | | }, |
| | | async getRepairList() { |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: '/Sb_EquipRepairCheckTaskReport/RepairCheckList', |
| | | data: { |
| | | user: getUserInfo()["HEmpName"] |
| | | } |
| | | }) |
| | | |
| | | let { |
| | | count, |
| | | data, |
| | | Message, |
| | | list |
| | | } = res.data |
| | | if (count == 1) { |
| | | console.log('data: ', data); |
| | | |
| | | this.reportBillsAwaitRepair = data.h_p_Sb_EquipRepairCheckTaskReport |
| | | this.reportBillsRepaired = data.h_p_Sb_EquipRepairCheckTaskReport1 |
| | | this.reportBillsChecked = data.h_p_Sb_EquipRepairCheckTaskReport2 |
| | | |
| | | let fieldList = CommonUtils.fieldListFilterRole({ |
| | | ExcludeKeys: ['故障登记单号'], |
| | | FieldList: list |
| | | }) |
| | | |
| | | if (fieldList.status == false) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取表单结构失败: ${fieldList.Message}` |
| | | }) |
| | | } |
| | | |
| | | this.HFieldList = fieldList.data |
| | | |
| | | this.switchTab(0) |
| | | } else { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取故障登记单异常: ${Message}` |
| | | }) |
| | | } |
| | | |
| | | } catch (err) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取故障登记单异常: ${err}` |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.getRepairList() |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | <style lang="scss"> |
| | | @import "@/pages/MJGL/style/MJBillStyle.scss"; |
| | | |
| | | </style> |
| | | .more { |
| | | color: #888; |
| | | font-size: 26rpx; |
| | | display: flex; |
| | | border-top: 1px solid #eee; |
| | | padding-top: 20rpx; |
| | | |
| | | .part { |
| | | width: 50%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | |
| | | .op { |
| | | display: flex; |
| | | justify-content: space-around; |
| | | margin-top: 20rpx; |
| | | |
| | | button { |
| | | padding: 0; |
| | | width: 150rpx; |
| | | font-size: 25rpx; |
| | | } |
| | | |
| | | .op1 { |
| | | border: 1px solid #41a863; |
| | | color: #41a863; |
| | | } |
| | | |
| | | .op2 { |
| | | border: 1px solid #d98d00; |
| | | color: #d98d00; |
| | | } |
| | | |
| | | .op3 { |
| | | border: 1px solid #3a78ff; |
| | | color: #3a78ff; |
| | | } |
| | | |
| | | .op4 { |
| | | border: 1px solid #da0000; |
| | | color: #da0000; |
| | | } |
| | | |
| | | .op5 { |
| | | border: 1px solid #888; |
| | | color: #888; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <view class="card-detail"> |
| | | <view class="detail" v-for="(field, index) in CommonUtils.emptyValueFilter(item, HFieldList)" |
| | | :key="index"> |
| | | <text>{{field.ColmCols}}:</text>{{item[field.ColmCols]}} |
| | | <template v-if="field.ColmType == 'DateTime'"> |
| | | <text>{{field.ColmCols}}:</text>{{dayjs(item[field.ColmCols]).format("YYYY-MM-DD HH:mm:ss")}} |
| | | </template> |
| | | <template v-else> |
| | | <text>{{field.ColmCols}}:</text>{{item[field.ColmCols]}} |
| | | </template> |
| | | </view> |
| | | </view> |
| | | <view class="more" v-if="showDetail == index && operations != index"> |
| | |
| | | <template> |
| | | <view> |
| | | |
| | | <view class="tabs" id="tabs"> |
| | | <view :class="tabs == 0 ? 'on':''" @tap="switchTab(0)">待维修</view> |
| | | <view :class="tabs == 1 ? 'on':''" @tap="switchTab(1)">已维修</view> |
| | | <view :class="tabs == 2 ? 'on':''" @tap="switchTab(2)">已验收</view> |
| | | </view> |
| | | |
| | | <!-- 设备点检任务列表 --> |
| | | <view class="list" v-for="(item,index) in reportBillsDisplay" :key="index"> |
| | | <uni-card :title="item.故障登记单号" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index"> |
| | | <view class="card-detail"> |
| | | <view class="detail" v-for="(field, index) in CommonUtils.emptyValueFilter(item, HFieldList)" |
| | | :key="index"> |
| | | <template v-if="field.ColmType == 'DateTime'"> |
| | | <text>{{field.ColmCols}}:</text>{{dayjs(item[field.ColmCols]).format('YYYY-MM-DD HH:mm:ss')}} |
| | | </template> |
| | | <template v-else> |
| | | <text>{{field.ColmCols}}:</text>{{item[field.ColmCols]}} |
| | | </template> |
| | | </view> |
| | | </view> |
| | | <view class="more" v-if="showDetail == index && operations != index"> |
| | | <view class="part" style="border-right: 1px solid #eee;"> |
| | | <uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>收起 |
| | | </view> |
| | | <view class="part" @tap.stop="operations = operations==index?-1:index"> |
| | | <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>操作 |
| | | </view> |
| | | </view> |
| | | <view class="more" v-if="showDetail != index && operations != index"> |
| | | <view class="part" style="border-right: 1px solid #eee;"> |
| | | <uni-icons type="bottom" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>更多信息 |
| | | </view> |
| | | <view class="part" @tap.stop="operations = operations==index?-1:index"> |
| | | <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>操作 |
| | | </view> |
| | | </view> |
| | | <view class="op" v-if="operations == index"> |
| | | <!-- <button class="op3" size="mini" plain @tap.stop="edit(item)">编辑</button> --> |
| | | <!-- <button class="op4" size="mini" plain @tap.stop="del(item)">删除</button> --> |
| | | <button class="op3" size="mini" v-if="tabs == 0" plain @tap.stop="pushBill(0, item)">下推派工单</button> |
| | | <button class="op3" size="mini" v-if="tabs == 1" plain @tap.stop="pushBill(1, item)">下推维修单</button> |
| | | <button class="op3" size="mini" v-if="tabs == 2" plain @tap.stop="pushBill(2, item)">下推验收单</button> |
| | | <button class="op5" size="mini" plain @tap.stop="operations = -1">取消操作</button> |
| | | </view> |
| | | </uni-card> |
| | | </view> |
| | | <view class="over" v-if="reportBillsDisplay.length == 0">暂无数据</view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getUserInfo |
| | | } from '../../../utils/auth'; |
| | | import { |
| | | CommonUtils |
| | | } from '../../../utils/common'; |
| | | import dayjs from 'dayjs'; |
| | | export default { |
| | | // 器具故障登记跟踪 模块 |
| | | name: 'Sc_MouldRepairCheckTaskReport', |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | dayjs, |
| | | CommonUtils, |
| | | tabs: 0, |
| | | showDetail: -1, |
| | | operations: -1, |
| | | |
| | | reportBillsDisplay: [], |
| | | reportBillsAwaitRepair: [], // 待维修 |
| | | reportBillsRepaired: [], // 已维修 |
| | | reportBillsChecked: [], // 已验收 |
| | | HFieldList: [], // 字段列表 |
| | | }; |
| | | }, |
| | | methods: { |
| | | |
| | | pushBill(tab, item) { |
| | | console.log('item: ', item); |
| | | let Query = `&HBillNo=${item['故障登记单号']}&HInterID=${item['HInterID']}&HSourceBillType=3907` |
| | | if (tab == 0) { |
| | | uni.navigateTo({ |
| | | url: '/pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBill?operationType=4' + |
| | | Query |
| | | }) |
| | | } else if (tab == 1) { |
| | | uni.navigateTo({ |
| | | url: '/pages/MJGL/Sb_EqpMaintenance/Sb_EqpMaintenanceBill?operationType=5' + Query + |
| | | `&HSendWorkID=${item.HSendWorkID}` |
| | | }) |
| | | } else if (tab == 2) { |
| | | uni.navigateTo({ |
| | | url: '/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBill?operationType=4' + |
| | | Query + `&HSendWorkID=${item.HSendWorkID}` |
| | | }) |
| | | } |
| | | }, |
| | | switchTab(tabIndex) { |
| | | this.tabs = tabIndex |
| | | switch (tabIndex) { |
| | | case 0: |
| | | this.reportBillsDisplay = this.reportBillsAwaitRepair; |
| | | break; |
| | | case 1: |
| | | this.reportBillsDisplay = this.reportBillsRepaired; |
| | | break; |
| | | case 2: |
| | | this.reportBillsDisplay = this.reportBillsChecked; |
| | | break; |
| | | } |
| | | }, |
| | | async getRepairList() { |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: '/Sc_MouldRepairCheckTaskReport/RepairCheckList', |
| | | data: { |
| | | user: getUserInfo()["HEmpName"] |
| | | } |
| | | }) |
| | | |
| | | let { |
| | | count, |
| | | data, |
| | | Message, |
| | | list |
| | | } = res.data |
| | | if (count == 1) { |
| | | console.log('data: ', data); |
| | | |
| | | this.reportBillsAwaitRepair = data.h_p_Sc_MouldRepairCheckTaskReport |
| | | this.reportBillsRepaired = data.h_p_Sc_MouldRepairCheckTaskReport1 |
| | | this.reportBillsChecked = data.h_p_Sc_MouldRepairCheckTaskReport2 |
| | | |
| | | let fieldList = CommonUtils.fieldListFilterRole({ |
| | | ExcludeKeys: ['故障登记单号'], |
| | | FieldList: list |
| | | }) |
| | | |
| | | if (fieldList.status == false) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取表单结构失败: ${fieldList.Message}` |
| | | }) |
| | | } |
| | | |
| | | this.HFieldList = fieldList.data |
| | | |
| | | this.switchTab(0) |
| | | } else { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取故障登记单异常: ${Message}` |
| | | }) |
| | | } |
| | | |
| | | } catch (err) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取故障登记单异常: ${err}` |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.getRepairList() |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | <style lang="scss"> |
| | | @import "@/pages/MJGL/style/MJBillStyle.scss"; |
| | | |
| | | </style> |
| | | .more { |
| | | color: #888; |
| | | font-size: 26rpx; |
| | | display: flex; |
| | | border-top: 1px solid #eee; |
| | | padding-top: 20rpx; |
| | | |
| | | .part { |
| | | width: 50%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | |
| | | .op { |
| | | display: flex; |
| | | justify-content: space-around; |
| | | margin-top: 20rpx; |
| | | |
| | | button { |
| | | padding: 0; |
| | | width: 150rpx; |
| | | font-size: 25rpx; |
| | | } |
| | | |
| | | .op1 { |
| | | border: 1px solid #41a863; |
| | | color: #41a863; |
| | | } |
| | | |
| | | .op2 { |
| | | border: 1px solid #d98d00; |
| | | color: #d98d00; |
| | | } |
| | | |
| | | .op3 { |
| | | border: 1px solid #3a78ff; |
| | | color: #3a78ff; |
| | | } |
| | | |
| | | .op4 { |
| | | border: 1px solid #da0000; |
| | | color: #da0000; |
| | | } |
| | | |
| | | .op5 { |
| | | border: 1px solid #888; |
| | | color: #888; |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <view v-if="!canEdit" :hidden="item.hidden||!item.id" class="box" v-for="(item,index) in itemData" |
| | | :key="index" @tap="toUrl(item)"> |
| | | <template v-if="item.corner"> |
| | | <uni-badge :text="item.cornerCount" type="error" :max-num="99" size="normal" absolute |
| | | <uni-badge :text="item.cornerCount" type="error" :max-num="99" size="normal" |
| | | absolute="rightTop" |
| | | :offset="[7, 7]"> |
| | | <image :src="item.img" mode=""></image> |
| | | </uni-badge> |
| | |
| | | } |
| | | |
| | | this.itemData.forEach((e, index) => { |
| | | if(MessageIdentifier.data[e.text]) { |
| | | if(MessageIdentifier.data[e.text] != undefined) { |
| | | this.itemData[index]["corner"] = true |
| | | this.itemData[index]["cornerCount"] = MessageIdentifier.data[e.text] |
| | | } |
| | |
| | | moduleName: menuListName |
| | | } |
| | | }) |
| | | console.log('common module: ',res); |
| | | let { |
| | | data, |
| | | count, |
| | |
| | | Array.from(data).forEach((e, index) => { |
| | | if (index < this.itemData.length) { |
| | | if (MessageIdentifier.data[this.itemData[e["HIndex"]].text]) { |
| | | this.itemData[e["HIndex"]]["corner"] = true, |
| | | this.itemData[e["HIndex"]]["cornerCount"] = MessageIdentifier.data[this |
| | | .itemData[e["HIndex"]].text] |
| | | this.$set(this.itemData[e["HIndex"]], "corner", true) |
| | | this.$set(this.itemData[e["HIndex"]], "cornerCount", MessageIdentifier.data[this.itemData[e["HIndex"]].text]) |
| | | } |
| | | } |
| | | }) |
| | |
| | | <view v-if="!canEdit" :hidden="item.hidden||!item.id" class="box" v-for="(item,index) in itemData" |
| | | :key="index" @tap="toUrl(item)"> |
| | | <template v-if="item.corner"> |
| | | <uni-badge :text="item.cornerCount" style="z-index: 99 !important;" type="error" :max-num="99" size="normal" absolute |
| | | <uni-badge :text="item.cornerCount" style="z-index: 99 !important;" type="error" :max-num="99" size="normal" |
| | | absolute="rightTop" |
| | | :offset="[7, 7]"> |
| | | <image :src="item.img" mode=""></image> |
| | | </uni-badge> |
| | |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | |
| | | "text": "模具保养任务", |
| | | "url": "/pages/MJGL/SBMJReport/Sc_MouldMaintainTaskReport", |
| | | "id": 25, |
| | |
| | | "text": "模具维修任务", |
| | | "url": "/pages/MJGL/Sc_MouldRepairTaskReport/Sc_MouldRepairTaskReport", |
| | | "id": 27, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备待点检任务", |
| | | "url": "/pages/MJGL/Sb_EquipDotCheckTaskReport/Sb_EquipDotCheckTaskReport", |
| | | "id": 29, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "模具待点检任务", |
| | | "url": "/pages/MJGL/Sc_MouldDotCheckTaskReport/Sc_MouldDotCheckTaskReport", |
| | | "id": 30, |
| | | "hidden": false |
| | | }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备点检任务", |
| | | "url": "/pages/MJGL/Sb_EquipDotCheckTaskReport/Sb_EquipDotCheckTaskReport", |
| | | "id": 29, |
| | | "text": "设备故障登记跟踪", |
| | | "url": "/pages/MJGL/Sb_EquipRepairCheckTaskReport/Sb_EquipRepairCheckTaskReport", |
| | | "id": 31, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "器具点检任务", |
| | | "url": "/pages/MJGL/Sc_MouldDotCheckTaskReport/Sc_MouldDotCheckTaskReport", |
| | | "id": 30, |
| | | "text": "模具故障登记跟踪", |
| | | "url": "/pages/MJGL/Sc_MouldRepairCheckTaskReport/Sc_MouldRepairCheckTaskReport", |
| | | "id": 32, |
| | | "hidden": false |
| | | } |
| | | ] |
| | |
| | | |
| | | return |
| | | } |
| | | |
| | | this.itemData.forEach((e, index) => { |
| | | if (MessageIdentifier.data[e.text]) { |
| | | if (MessageIdentifier.data[e.text] != undefined) { |
| | | this.itemData[index]["corner"] = true |
| | | this.itemData[index]["cornerCount"] = MessageIdentifier.data[e.text] |
| | | } |
| | |
| | | Array.from(data).forEach((e, index) => { |
| | | if (index < this.itemData.length) { |
| | | if (MessageIdentifier.data[this.itemData[e["HIndex"]].text]) { |
| | | this.itemData[e["HIndex"]]["corner"] = true, |
| | | this.itemData[e["HIndex"]]["cornerCount"] = MessageIdentifier.data[this |
| | | .itemData[e["HIndex"]].text] |
| | | // 使用$set 添加响应式数据 |
| | | this.$set(this.itemData[e["HIndex"]], "corner", true) |
| | | this.$set(this.itemData[e["HIndex"]], "cornerCount", MessageIdentifier.data[this.itemData[e["HIndex"]].text]) |
| | | |
| | | } |
| | | } |
| | | }) |
| | |
| | | moduleName: menuListName |
| | | } |
| | | }) |
| | | console.log('common module: ', res); |
| | | let { |
| | | data, |
| | | count, |