| | |
| | | </view> |
| | | </view> |
| | | <view class="mains"> |
| | | <view v-if="!canEdit" :hidden="item.hidden" class="box" v-for="(item,index) in itemData" :key="index" |
| | | <view v-if="!canEdit" :hidden="item.hidden||!item.id" class="box" v-for="(item,index) in itemData" :key="index" |
| | | @tap="toUrl(item)"> |
| | | <image :src="item.img" mode=""></image> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | | </view> |
| | | </view> |
| | | <view :enable-hidden="item.hidden" v-if="canEdit" class="box edit" v-for="(item,index) in itemData" |
| | | <view :enable-hidden="item.hidden" :hidden="!item.id" v-if="canEdit" class="box edit" v-for="(item,index) in itemData" |
| | | :key="index" @tap="switchHidden(index)"> |
| | | <uni-icons class="edit-mark" color="red" type="closeempty"></uni-icons> |
| | | <image :src="item.img" mode=""></image> |
| | |
| | | url: '/pages/gongxuIn/Cj_StationInBill', |
| | | id: 1, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon9.png', |
| | | text: '工序进站接收单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/gongxuIn/Cj_StationInBillList', |
| | | id: 2, |
| | | hidden: false, |
| | | }, { |
| | | }, |
| | | |
| | | { |
| | | img: '../../static/icon/icon10.png', |
| | | text: '工序出站汇报单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/gongxuOut/Cj_StationOutBill', |
| | | id: 3, |
| | | id: 2, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon10.png', |
| | | text: '工序出站汇报单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/gongxuOut/Cj_StationOutBillList', |
| | | id: 4, |
| | | hidden: false, |
| | | }, { |
| | | }, |
| | | |
| | | { |
| | | img: '../../static/icon/icon11.png', |
| | | text: '工序委外发出单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/weiwaigxIn/Cj_StationEntrustInBill', |
| | | id: 5, |
| | | id: 3, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon11.png', |
| | | text: '工序委外发出单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/weiwaigxIn/Cj_StationEntrustInBillList', |
| | | id: 6, |
| | | hidden: false, |
| | | }, { |
| | | }, |
| | | |
| | | { |
| | | img: '../../static/icon/icon12.png', |
| | | text: '工序委外接收单新增', |
| | | tip: '立即新增', |
| | | url: '/pages/weiwaigxIn/Cj_StationEntrustOutBill', |
| | | id: 7, |
| | | url: '/pages/weiwaigxOut/Cj_StationEntrustOutBill', |
| | | id: 4, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon12.png', |
| | | text: '工序委外接收单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/weiwaigxIn/Cj_StationEntrustOutBillList', |
| | | id: 8, |
| | | hidden: false, |
| | | } |
| | | , { |
| | | img: '../../static/icon/icon1.png', |
| | | text: '设备档案查询', |
| | | tip: '查看详情', |
| | | url: '/pages/shebeidangan/Gy_EquipFileMainBillList', |
| | | id: 9, |
| | | hidden: true, |
| | | }, { |
| | | img: '../../static/icon/icon8.png', |
| | | text: '设备履历查询', |
| | | tip: '查看详情', |
| | | url: '/pages/shebeilvli/EquipFileBillResume', |
| | | id: 10, |
| | | hidden: true, |
| | | }, { |
| | | }, |
| | | |
| | | { |
| | | img: '../../static/icon/icon14.png', |
| | | text: '我的报工平台', |
| | | tip: '点击进入', |
| | | url: '/pages/baogong/table', |
| | | id: 11, |
| | | hidden: true, |
| | | }, { |
| | | img: '../../static/icon/icon32.png', |
| | | text: '设备运行状态', |
| | | tip: '查看详情', |
| | | url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai', |
| | | id: 14, |
| | | hidden: true, |
| | | }, { |
| | | img: '../../static/icon/icon6.png', |
| | | text: '模具状态分析', |
| | | tip: '查看详情', |
| | | url: '/pages/mujvzhuangtai/mujvzhuangtai', |
| | | id: 15, |
| | | hidden: true, |
| | | |
| | | }, { |
| | | url: '/pages/baogong/IpadIndex', |
| | | id: 5, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon10.png', |
| | | text: '我的任务', |
| | | tip: '立即新增', |
| | | url: '/pages/gongxuOutSendWork/gongxuOutSendWorkBill', |
| | | id: 16, |
| | | id: 6, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon16.png', |
| | | text: '器具寿命', |
| | | url: '/pages/shoujishouming/table', |
| | | id: 17, |
| | | img: '../../static/icon/icon12.png', |
| | | text: '员工签到记录单', |
| | | tip: '立即新增', |
| | | url: '/pages/EmployeeRecords/EmployeeRecordsBill', |
| | | id: 7, |
| | | hidden: false, |
| | | }, |
| | | |
| | | { |
| | | img: '../../static/icon/icon12.png', |
| | | text: '员工签到记录单列表', |
| | | tip: '点击进入', |
| | | url: '/pages/EmployeeRecords/EmployeeRecordsBillList', |
| | | id: 8, |
| | | hidden: false, |
| | | } |
| | | ] |
| | | // itemData: [{ |
| | | // // img:'../../static/icon0.png', |
| | | // // text:'报表中心', |
| | | // // url:'/pages/shebeilvli/EquipFileBillResume', |
| | | // // id:0 |
| | | // // },{ |
| | | // img: '../../static/icon/icon_a1.png', |
| | | // text: '设备档案', |
| | | // url: '/pages/shebeidangan/Gy_EquipFileMainBillList', |
| | | // id: 1 |
| | | // }, { |
| | | // img: '../../static/icon/icon_a2.png', |
| | | // text: '设备保养计划单', |
| | | // url: '/pages/baoyangjihua/Sb_EquipMaintainPlanList', |
| | | // id: 2 |
| | | // }, { |
| | | // img: '../../static/icon/icon_a3.png', |
| | | // text: '设备保养记录单', |
| | | // url: '/pages/baoyangjilu/Sb_EquipMaintainRuleList', |
| | | // id: 3 |
| | | // // },{ |
| | | // // img:'../../static/icon/icon_a4.png', |
| | | // // text:'设备点检计划单', |
| | | // // url:'', |
| | | // // id:4 |
| | | // // },{ |
| | | // // img:'../../static/icon/icon_a5.png', |
| | | // // text:'设备点检记录单', |
| | | // // url:'', |
| | | // // id:5, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a6.png', |
| | | // text: '设备故障登记表', |
| | | // url: '/pages/guzhangdengji/EqpConkBookBillList', |
| | | // id: 6 |
| | | // }, { |
| | | // img: '../../static/icon/icon_a7.png', |
| | | // text: '设备维修记录单', |
| | | // url: '/pages/shebeiweixiu/SbEqpMaintenanceBillList', |
| | | // id: 7, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a8.png', |
| | | // text: '设备履历', |
| | | // url: '/pages/shebeilvli/EquipFileBillResume', |
| | | // id: 8, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a9.png', |
| | | // text: '工序进站接收单', |
| | | // url: '/pages/gongxuIn/Cj_StationInBillList', |
| | | // id: 9, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a10.png', |
| | | // text: '工序出站汇报单', |
| | | // url: '/pages/gongxuOut/Cj_StationOutBillList', |
| | | // id: 10, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a11.png', |
| | | // text: '工序委外发出单', |
| | | // url: '/pages/weiwaigxIn/Cj_StationEntrustInBillList', |
| | | // id: 11, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a12.png', |
| | | // text: '工序委外接收单', |
| | | // url: '/pages/weiwaigxIn/Cj_StationEntrustOutBillList', |
| | | // id: 12, |
| | | // // }, { |
| | | // // img: '../../static/icon/icon_a13.png', |
| | | // // text: '设备管理', |
| | | // // url: '', |
| | | // // id: 13, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a14.png', |
| | | // text: '报工平台', |
| | | // url: '/pages/baogong/table', |
| | | // id: 14, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a15.png', |
| | | // text: '异常反馈单', |
| | | // url: '/pages/yichang/MESExecptFeedBackBillList', |
| | | // id: 15, |
| | | // }, { |
| | | // img: '../../static/icon/icon_a16.png', |
| | | // text: '异常反馈处理单', |
| | | // url: '/pages/yichang/list', |
| | | // id: 16, |
| | | // }] |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | }, |
| | | methods: { |
| | | async getHiddenItem() { |
| | | // let itemCache = uni.getStorageSync('HTab1ItemData') || '' |
| | | // console.log('itemCache: ', itemCache); |
| | | // if (itemCache !== '') { |
| | | // this.itemData = itemCache |
| | | // } |
| | | let data = await getMenuList({ |
| | | menuName: this.menuListName |
| | | }) |
| | | Array.from(data).forEach(e => { |
| | | this.itemData[e["HIndex"]].hidden = !CommonUtils.stringToBoolean(e["HShowMode"]) |
| | | this.itemData[e["HIndex"]].hidden = !CommonUtils.stringToBoolean(e["HShowMode"]) |
| | | this.itemData[e["HIndex"]].id = e["HEntryID"];//id为0强制隐藏 |
| | | }) |
| | | }, |
| | | switchHidden(index) { |