| | |
| | | <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="bindingData[item.cornerCount]" |
| | | type="error" |
| | | :max-num="99" |
| | | size="normal" |
| | | absolute |
| | | :offset="[7, 7]"> |
| | | <uni-badge :text="bindingData[item.cornerCount]" type="error" :max-num="99" size="normal" absolute |
| | | :offset="[7, 7]"> |
| | | <image :src="item.img" mode=""></image> |
| | | </uni-badge> |
| | | </template> |
| | |
| | | "id": 36, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "器具故障登记列表", |
| | | "url": "/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBillList", |
| | | "id": 37, |
| | | "hidden": false |
| | | }, |
| | | // { |
| | | // "img": "../../static/icon/icon13.png", |
| | | // "text": "器具故障登记列表", |
| | | // "url": "/pages/MJGL/Sc_MouldConkBookBill/Sc_MouldConkBookBillList", |
| | | // "id": 37, |
| | | // "hidden": false |
| | | // }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "器具维修派工单列表", |
| | |
| | | "id": 49, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon6.png", |
| | | "text": "设备故障登记单列表", |
| | | "url": "/pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBillList", |
| | | "id": 50, |
| | | "hidden": false |
| | | }, |
| | | // { |
| | | // "img": "../../static/icon/icon6.png", |
| | | // "text": "设备故障登记单列表", |
| | | // "url": "/pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBillList", |
| | | // "id": 50, |
| | | // "hidden": false |
| | | // }, |
| | | |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | |
| | | "id": 58, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈待处理列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_MyErrMsgBanck/OA_ErrMsgBackMyList", |
| | | "id": 59, |
| | | "hidden": false |
| | | }, |
| | | |
| | | |
| | | |
| | | // 取样还样相关 |
| | |
| | | "text": "工作联系单列表", |
| | | "url": "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillList?OperationType=1", |
| | | "id": 63, |
| | | "hidden": false, |
| | | "corner": true, |
| | | "cornerCount": "UnReadCount" |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "工作联系单查询", |
| | | "url": "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillQuery?OperationType=1", |
| | | "id": 64, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon12.png', |
| | |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "生产退料校验暂存列表", |
| | | "url": "/pages/shengchantuiliaoCheck/MateOutBackCheckBillList", |
| | | |
| | | "id": 70, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "销售退货校验暂存列表", |
| | | "url": "/pages/xiaoshotuihuoCheck/Kf_SellOutBackCheckBillList", |
| | | "id": 71, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "生产退库校验暂存列表", |
| | | "url": "/pages/shengchantuikuCheck/Kf_ProductInBackCheckBillList", |
| | | "id": 72, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "装箱追溯单暂存列表", |
| | | "url": "/pages/Sc_PackUnionCarryUpBill/Sc_PackUnionCarryUpBill_FastList", |
| | | "id": 73, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "器具维修出库列表", |
| | | "url": "/pages/MJGL/qijuweixiuchukudan/Sc_MouldRepairOutBillList", |
| | | "id": 74, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "器具维修入库列表", |
| | | "url": "/pages/MJGL/qijuweixiurukudan/Sc_MouldRepairInBillList", |
| | | "id": 75, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "投料防错列表", |
| | | "url": "/pages/ZLGL/Gy_MaterialPrevention/Gy_MateralPreventionList", |
| | | "id": 76, |
| | | "hidden": false |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | |
| | | this.getHiddenItem() |
| | | }, |
| | | onShow() { |
| | | this.getWorkLinkList() |
| | | |
| | | }, |
| | | methods: { |
| | | async getWorkLinkList() { |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: 'Sc_MESTransFerWorkBill/GetOA_WorkLinkBillList', |
| | | data: { |
| | | sWhere: ` and (接收人 = '${getUserInfo()['HEmpName']}' or 抄送接收人 = '${getUserInfo()['HEmpName']}') and 阅读状态 = '未阅'`, |
| | | user: getUserInfo()["Czymc"] |
| | | } |
| | | }) |
| | | |
| | | let { |
| | | count, |
| | | data, |
| | | Message, |
| | | list |
| | | } = res.data |
| | | if (count == 1) { |
| | | this.bindingData.UnReadCount = data.length |
| | | } else { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取工作联系单异常: ${Message}` |
| | | }) |
| | | } |
| | | |
| | | } catch (err) { |
| | | CommonUtils.showTips({ |
| | | title: '温馨提示', |
| | | message: `获取工作联系单异常: ${err}` |
| | | }) |
| | | } |
| | | }, |
| | | judgeHidden() { |
| | | return process.env.NODE_ENV === 'development' |
| | | }, |
| | | async getHiddenItem() { |
| | | 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"]].id = e["HEntryID"]; //id为0强制隐藏 |
| | | |
| | | if( this.itemData[e["HIndex"]].text == '工作联系单查询') { |
| | | this.itemData[e["HIndex"]]["corner"]= true, |
| | | this.itemData[e["HIndex"]]["cornerCount"]= "UnReadCount" |
| | | } |
| | | }) |
| | | }, |
| | | switchHidden(index) { |