| | |
| | | <template> |
| | | <view class="content"> |
| | | <view class="header"> |
| | | <view class="switch-button"> |
| | | <uni-icons type="loop" @click="switchIconsModeHandler"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="mains"> |
| | | <view v-if="!canEdit" :hidden="item.hidden" 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" |
| | | :key="index" @tap="switchHidden(index)"> |
| | | <uni-icons class="edit-mark" color="red" type="closeempty"></uni-icons> |
| | | <image :src="item.img" mode=""></image> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="header"> |
| | | <view class="switch-button"> |
| | | <uni-icons type="loop" @click="switchIconsModeHandler"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="mains"> |
| | | <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]"> |
| | | <image :src="item.img" mode=""></image> |
| | | </uni-badge> |
| | | </template> |
| | | <template v-else> |
| | | <image :src="item.img" mode=""></image> |
| | | </template> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | | </view> |
| | | </view> |
| | | <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> |
| | | <view class="texts"> |
| | | {{item.text}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { CommonUtils } from '../../utils/common' |
| | | import { getMenuList, setMenuList } from '../../utils/menuListApp' |
| | | import { getUserInfo } from '../../utils/auth' |
| | | import { |
| | | CommonUtils |
| | | } from '../../utils/common' |
| | | import { |
| | | getMenuList, |
| | | setMenuList |
| | | } from '../../utils/menuListApp' |
| | | import { |
| | | getUserInfo |
| | | } from '../../utils/auth' |
| | | export default { |
| | | data() { |
| | | return { |
| | | updateCount: 0, |
| | | menuListName: 'tab2', |
| | | canEdit: false, |
| | | serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API', |
| | | itemData: [{ |
| | | img: '../../static/icon/icon17.png', |
| | | text: '采购入库暂存列表', |
| | | url: '/pages/caigouruku/table', |
| | | id: 1, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon18.png', |
| | | text: '采购退料暂存列表', |
| | | url: '/pages/caigoutuiliao/table', |
| | | id: 2, |
| | | hidden: false, |
| | | }, { |
| | | id: 3, |
| | | hidden: false, |
| | | },{ |
| | | img: '../../static/icon/icon30.png', |
| | | text: '采购入库校验暂存列表', |
| | | url: '/pages/caigourukujiaoyan/table', |
| | | id: 4, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon18.png', |
| | | id: 5, |
| | | hidden: false, |
| | | },{ |
| | | img: '../../static/icon/icon18.png', |
| | | text: '销售出库暂存列表', |
| | | url: '/pages/xiaoshouchuku/table', |
| | | id: 6, |
| | | hidden: false, |
| | | }, { |
| | | id: 7, |
| | | hidden: false, |
| | | },{ |
| | | img: '../../static/icon/icon20.png', |
| | | text: '销售退货暂存列表', |
| | | url: '/pages/xiaoshoutuihuo/table', |
| | | id: 8, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon18.png', |
| | | text: '销售出库校验暂存列表', |
| | | url: '/pages/xiaoshouchukujiaoyan/table', |
| | | id: 9, |
| | | hidden: false, |
| | | }, |
| | | |
| | | // 生产相关暂存列表 |
| | | { |
| | | img: '../../static/icon/icon30.png', |
| | | text: '生产领料暂存列表', |
| | | url: '/pages/shengchanlingliaoshengdan/table', |
| | | id: 10, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon31.png', |
| | | text: '生产补料暂存列表', |
| | | url: '/pages/shengchanbuliao/table', |
| | | // url: '', |
| | | id: 11, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon17.png', |
| | | text: '生产入库暂存列表', |
| | | url: '/pages/shengchanrukushengdan/table', |
| | | id: 12, |
| | | hidden: false, |
| | | }, { |
| | | id: 13, |
| | | hidden: false, |
| | | },{ |
| | | img: '../../static/icon/icon8.png', |
| | | text: '生产退料单暂存列表', |
| | | url: `/pages/shengchantuiliao/table`, |
| | | id: 14, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon30.png', |
| | | text: '生产领料校验暂存列表', |
| | | url: '/pages/shengchanlingliao/table', |
| | | id: 15, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon31.png', |
| | | text: '生产补料校验暂存列表', |
| | | url: '/pages/shengchanbuliaojiaoyan/CacheList', |
| | | id: 16, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon17.png', |
| | | text: '生产入库校验暂存列表', |
| | | url: '/pages/shengchanruku/table', |
| | | id: 17, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon32.png', |
| | | text: '生产调拨校验暂存列表', |
| | | url: '/pages/shengchandiaobo/table', |
| | | id: 18, |
| | | hidden: false, |
| | | }, |
| | | |
| | | // 委外相关暂存列表 |
| | | { |
| | | img: '../../static/icon/icon30.png', |
| | | text: '委外领料暂存列表', |
| | | url: '/pages/weiwailingliao/table', |
| | | id: 19, |
| | | hidden: false, |
| | | }, { |
| | | id: 20, |
| | | hidden: false, |
| | | },{ |
| | | img: '../../static/icon/icon20.png', |
| | | text: '委外入库暂存列表', |
| | | url: '/pages/weiwairuku/table', |
| | | id: 21, |
| | | hidden: false, |
| | | }, { |
| | | id: 22, |
| | | hidden: false, |
| | | },{ |
| | | img: '../../static/icon/icon30.png', |
| | | text: '委外领料校验暂存列表', |
| | | url: '/pages/weiwailingliaojiaoyan/table', |
| | | id: 23, |
| | | hidden: false, |
| | | url: '/pages/xiaoshouchukujiaoyan/table', |
| | | id: 24, |
| | | hidden: false, |
| | | }, |
| | | |
| | | // 其他出入库暂存列表 |
| | | { |
| | | img: '../../static/icon/icon17.png', |
| | | text: '其他入库暂存列表', |
| | | url: '/pages/qitaruku_v2/table', |
| | | id: 25, |
| | | hidden: false, |
| | | }, { |
| | | id: 26, |
| | | hidden: false, |
| | | },{ |
| | | img: '../../static/icon/icon18.png', |
| | | text: '其他出库暂存列表', |
| | | url: '/pages/qitachuku_v2/table', |
| | | id: 27, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon18.png', |
| | | text: '其他出库校验暂存列表', |
| | | url: '/pages/qitachuku/qitachuku', |
| | | id: 28, |
| | | hidden: false, |
| | | }, |
| | | |
| | | // 调拨相关暂存列表 |
| | | { |
| | | img: '../../static/icon/icon32.png', |
| | | text: '直接调拨暂存列表', |
| | | url: '/pages/zhijiediaobo/table', |
| | | id: 29, |
| | | hidden: false, |
| | | }, |
| | | |
| | | // 其他暂存列表 |
| | | { |
| | | img: '../../static/icon/icon8.png', |
| | | text: '组托单暂存列表', |
| | | url: `/pages/zutuosaoma/table`, |
| | | id: 30, |
| | | hidden: false, |
| | | }, |
| | | // 标签条码相关(非暂存列表) |
| | | { |
| | | img: '../../static/icon/icon21.png', |
| | | text: '标签打印', |
| | | url: '/pages/labelPrinter/index', |
| | | id: 31, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon21.png', |
| | | text: '条码拆码', |
| | | url: '/pages/tiaomachaima/tiaomachaima', |
| | | id: 32, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon21.png', |
| | | text: '条码拆码2', |
| | | url: '/pages/tiaomachaima/tiaomachaima2', |
| | | id: 33, |
| | | hidden: false, |
| | | }, |
| | | // 设备相关(非暂存列表) |
| | | { |
| | | img: '../../static/icon/icon3.png', |
| | | text: '设备保养记录单', |
| | | url: '/pages/baoyangjilu/table', |
| | | id: 34, |
| | | hidden: false, |
| | | |
| | | }, { |
| | | img: '../../static/icon/icon5.png', |
| | | text: '设备点检记录单', |
| | | url: '', |
| | | id: 35, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon6.png', |
| | | text: '设备故障登记表', |
| | | url: '/pages/guzhangdengji/table', |
| | | id: 36, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon7.png', |
| | | text: '设备维修记录单', |
| | | url: '/pages/shebeiweixiu/table', |
| | | id: 37, |
| | | hidden: false, |
| | | }, |
| | | |
| | | // 异常相关(非暂存列表) |
| | | { |
| | | img: '../../static/icon/icon15.png', |
| | | text: '异常反馈单', |
| | | url: '/pages/yichang/table', |
| | | id: 38, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon16.png', |
| | | text: '异常反馈处理单', |
| | | url: '/pages/yichang/list', |
| | | id: 39, |
| | | hidden: false, |
| | | }, |
| | | // 库存查询(非暂存列表) |
| | | { |
| | | img: '../../static/icon/icon18.png', |
| | | text: 'ERP及时库存查询', |
| | | url: '/pages/jishikucunchaxun/table', |
| | | id: 40, |
| | | hidden: false, |
| | | }, |
| | | |
| | | // 取样还样(非暂存列表) |
| | | { |
| | | hidden: false, |
| | | },{ |
| | | img: '../../static/icon/icon8.png', |
| | | text: '取样单', |
| | | url: '/pages/quyangdan/table', |
| | | id: 41, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon8.png', |
| | | text: '还样单', |
| | | url: '/pages/huanyangdan/table', |
| | | id: 42, |
| | | hidden: false, |
| | | }, |
| | | |
| | | // 上模下模(hidden为true,放最后) |
| | | { |
| | | img: '../../static/icon/icon13.png', |
| | | text: '上模单', |
| | | url: '/pages/MJGL/shangmudan/table', |
| | | id: 43, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon13.png', |
| | | text: '下模单', |
| | | url: '/pages/MJGL/xiamodan/table', |
| | | id: 44, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | }, { |
| | | img: '../../static/icon/icon13.png', |
| | | text: '器具故障登记', |
| | | url: '/pages/qijvguzhangdengji/table', |
| | | id: 45, |
| | | hidden: false, |
| | | data() { |
| | | return { |
| | | updateCount: 0, |
| | | menuListName: 'tab2', |
| | | canEdit: false, |
| | | serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API', |
| | | bindingData: { |
| | | UnReadCount: 0, |
| | | }, |
| | | { |
| | | }, { |
| | | img: '../../static/icon/icon13.png', |
| | | text: '器具故障登记单', |
| | | url: '/pages/qijvguzhangdengji/form?operationType=1', |
| | | id: 46, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | }, { |
| | | img: '../../static/icon/icon13.png', |
| | | text: '维修记录', |
| | | url: '/pages/weixiujilu/table', |
| | | id: 47, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon13.png', |
| | | text: '维修记录单', |
| | | url: '/pages/weixiujilu/form', |
| | | id: 48, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon13.png', |
| | | text: '首件检验单缓存', |
| | | url: '/pages/ZLGL/shoujianjianyan/table', |
| | | id: 41, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon13.png', |
| | | text: '首件检验单', |
| | | url: '/pages/ZLGL/shoujianjianyan/form?operationType=1', |
| | | id: 42, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon5.png', |
| | | text: '模具点检记录单', |
| | | url: '/pages/MJGL/mujudianjianjiludan/table', |
| | | id: 43, |
| | | hidden: false, |
| | | }, { |
| | | img: '../../static/icon/icon5.png', |
| | | text: '模具保养记录单', |
| | | url: '/pages/MJGL/mujubaoyangjiludan/table', |
| | | id: 44, |
| | | hidden: false, |
| | | } |
| | | img: '../../static/icon/icon8.png', |
| | | text: '模具领料出库单', |
| | | url: `/pages/MJGL/mujulingliaochukudan/table`, |
| | | id: 49, |
| | | hidden: false, |
| | | },{ |
| | | img: '../../static/icon/icon8.png', |
| | | text: '模具领料退库单', |
| | | url: `/pages/MJGL/mujulingliaotuikudan/table`, |
| | | id: 50, |
| | | hidden: false, |
| | | },{ |
| | | img: '../../static/icon/icon8.png', |
| | | text: '器具调拨单', |
| | | url: `/pages/MJGL/qijudiaobodan/table`, |
| | | id: 51, |
| | | hidden: false, |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getHiddenItem() |
| | | }, |
| | | methods: { |
| | | itemData: [ |
| | | // 采购相关 |
| | | { |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "采购入库暂存列表", |
| | | "url": "/pages/caigouruku/POStockInBillList", |
| | | "id": 1, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon18.png", |
| | | "text": "采购退料暂存列表", |
| | | "url": "/pages/caigoutuiliao/POStockInBackBillList", |
| | | "id": 2, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon30.png", |
| | | "text": "采购入库校验暂存列表", |
| | | "url": "/pages/caigourukujiaoyan/POStockInCheckBillList", |
| | | "id": 3, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon18.png", |
| | | "text": "销售出库暂存列表", |
| | | "url": "/pages/xiaoshouchuku/SellOutBillList", |
| | | "id": 4, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon20.png", |
| | | "text": "销售退货暂存列表", |
| | | "url": "/pages/xiaoshoutuihuo/ICStockBillMainList", |
| | | "id": 5, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon18.png", |
| | | "text": "销售出库校验暂存列表", |
| | | "url": "/pages/xiaoshouchukujiaoyan/SellOutCheckBillList", |
| | | "id": 6, |
| | | "hidden": false |
| | | }, |
| | | |
| | | // 生产相关 |
| | | { |
| | | "img": "../../static/icon/icon30.png", |
| | | "text": "生产领料暂存列表", |
| | | "url": "/pages/shengchanlingliaoshengdan/Kf_MateOutBillList", |
| | | "id": 7, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon31.png", |
| | | "text": "生产补料暂存列表", |
| | | "url": "/pages/shengchanbuliao/MateReplenishOutBillList", |
| | | "id": 8, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "生产入库暂存列表", |
| | | "url": "/pages/shengchanrukushengdan/Kf_ProductInBillList", |
| | | "id": 9, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "生产退料单暂存列表", |
| | | "url": "/pages/shengchantuiliao/MateOutBackBillList", |
| | | "id": 10, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon30.png", |
| | | "text": "生产领料校验暂存列表", |
| | | "url": "/pages/shengchanlingliao/PPickingCheckBillList", |
| | | "id": 11, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon31.png", |
| | | "text": "生产补料校验暂存列表", |
| | | "url": "/pages/shengchanbuliaojiaoyan/MateReplenishOutCheckBillList", |
| | | "id": 12, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "生产入库校验暂存列表", |
| | | "url": "/pages/shengchanruku/ProductInCheckBillList", |
| | | "id": 13, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon32.png", |
| | | "text": "生产调拨校验暂存列表", |
| | | "url": "/pages/shengchandiaobo/MoveStockBillList", |
| | | "id": 14, |
| | | "hidden": false |
| | | }, |
| | | |
| | | // 委外相关 |
| | | { |
| | | "img": "../../static/icon/icon30.png", |
| | | "text": "委外领料暂存列表", |
| | | "url": "/pages/weiwailingliao/Kf_EntrustOutBillList", |
| | | "id": 15, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon20.png", |
| | | "text": "委外入库暂存列表", |
| | | "url": "/pages/weiwairuku/EntrustInBillList", |
| | | "id": 16, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon30.png", |
| | | "text": "委外领料校验暂存列表", |
| | | "url": "/pages/weiwailingliaojiaoyan/EntrustOutCheckBillList", |
| | | "id": 17, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon30.png", |
| | | "text": "销售出库校验暂存列表", |
| | | "url": "/pages/xiaoshouchukujiaoyan/SellOutCheckBillList", |
| | | "id": 18, |
| | | "hidden": false |
| | | }, |
| | | |
| | | // 其他出入库相关 |
| | | { |
| | | "img": "../../static/icon/icon17.png", |
| | | "text": "其他入库暂存列表", |
| | | "url": "/pages/qitaruku_v2/OtherInBillList", |
| | | "id": 19, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon18.png", |
| | | "text": "其他出库暂存列表", |
| | | "url": "/pages/qitachuku_v2/OtherOutBillList", |
| | | "id": 20, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon18.png", |
| | | "text": "其他出库校验暂存列表", |
| | | "url": "/pages/qitachuku/qitachuku", |
| | | "id": 21, |
| | | "hidden": false |
| | | }, |
| | | |
| | | // 调拨相关 |
| | | { |
| | | "img": "../../static/icon/icon32.png", |
| | | "text": "直接调拨暂存列表", |
| | | "url": "/pages/zhijiediaobo/MoveStockBillList", |
| | | "id": 22, |
| | | "hidden": false |
| | | }, |
| | | |
| | | // 其他暂存相关 |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "组托单暂存列表", |
| | | "url": "/pages/zutuosaoma/PackUnionBillList", |
| | | "id": 23, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon16.png', |
| | | text: '分步式调入单缓存', |
| | | url: '/pages/fenbushidiaorudan/table', |
| | | id: 24, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon16.png', |
| | | text: '分步式调出单缓存', |
| | | url: '/pages/fenbushidiaochudan/table_out', |
| | | id: 88, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon9.png', |
| | | text: '工序进站接收单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/gongxuIn/Cj_StationInBillList', |
| | | id: 25, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon10.png', |
| | | text: '工序出站汇报单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/gongxuOut/Cj_StationOutBillList', |
| | | id: 26, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon11.png', |
| | | text: '工序委外发出单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/weiwaigxIn/Cj_StationEntrustInBillList', |
| | | id: 27, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon12.png', |
| | | text: '工序委外接收单列表', |
| | | tip: '查看列表', |
| | | url: '/pages/weiwaigxOut/Cj_StationEntrustOutBillList', |
| | | id: 28, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "器具报废出库单列表", |
| | | "url": "/pages/MJGL/MouldScrapOutBill/MouldScrapOutBillList", |
| | | "id": 29, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "器具调拨单列表", |
| | | "url": "/pages/MJGL/qijudiaobodan/Sc_MouldMoveStockBillList", |
| | | "id": 30, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "器具领用出库单列表", |
| | | "url": "/pages/MJGL/mujulingliaochukudan/MouldProdOutBillList", |
| | | "id": 31, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "器具领用退库单列表", |
| | | "url": "/pages/MJGL/mujulingliaotuikudan/Sc_MouldProdBackBillList", |
| | | "id": 32, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "上模单列表", |
| | | "url": "/pages/MJGL/shangmudan/MouldUpperBillList", |
| | | "id": 33, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "下模单列表", |
| | | "url": "/pages/MJGL/xiamodan/MouldLowerBillList", |
| | | "id": 34, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon5.png", |
| | | "text": "器具点检记录单列表", |
| | | "url": "/pages/MJGL/mujudianjianjiludan/Sc_MouldDotCheckBillList", |
| | | "id": 35, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon5.png", |
| | | "text": "器具保养记录单列表", |
| | | "url": "/pages/MJGL/mujubaoyangjiludan/Sc_MouldMaintainBillList", |
| | | "id": 36, |
| | | "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": "器具维修派工单列表", |
| | | "url": "/pages/MJGL/Sc_MouldRepairSendWork/Sc_MouldRepairSendWorkBillList", |
| | | "id": 38, |
| | | "hidden": false |
| | | }, |
| | | |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "器具维修记录列表", |
| | | "url": "/pages/MJGL/Sc_MouldRepairWorkBill/Sc_MouldRepairWorkBillList", |
| | | "id": 39, |
| | | "hidden": false |
| | | }, |
| | | |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "器具维修验收单列表", |
| | | "url": "/pages/MJGL/SC_MouldRepairCheck/Sc_MouldRepairCheckBillList", |
| | | "id": 40, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon13.png", |
| | | "text": "首件检验单列表", |
| | | "url": "/pages/ZLGL/shoujianjianyan/firstCheckBillList", |
| | | "id": 41, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "巡检检验单列表", |
| | | "url": "/pages/ZLGL/xunjianjianyan/PatrolProcCheckBillList", |
| | | "id": 42, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "末件检验单列表", |
| | | "url": "/pages/ZLGL/mojianjianyan/ProcessCheckBillList", |
| | | "id": 43, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "来料检验列表", |
| | | "url": "/pages/ZLGL/lailiaojianyan/POStockInCheckBillList", |
| | | "id": 44, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "全检检验单列表", |
| | | "url": "/pages/ZLGL/QualityReportStep/QualityReportStepBillList", |
| | | "id": 45, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "车间自检单列表", |
| | | "url": "/pages/ZLGL/WorkSelfCheckBill/WorkSelfCheckBillList", |
| | | "id": 46, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "在库检验单缓存", |
| | | "url": "/pages/ZLGL/zaikujianyandan/InStockCheckBillList", |
| | | "id": 47, |
| | | "hidden": false |
| | | }, |
| | | // 设备相关 |
| | | { |
| | | "img": "../../static/icon/icon3.png", |
| | | "text": "设备点检记录单列表", |
| | | "url": "/pages/MJGL/Sb_EquipDotCheckBill/Sb_EquipDotCheckBillList", |
| | | "id": 48, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon3.png", |
| | | "text": "设备保养记录单列表", |
| | | "url": "/pages/MJGL/Sb_EquipMaintainBill/Sb_EquipMaintainBillList", |
| | | "id": 49, |
| | | "hidden": false |
| | | }, |
| | | // { |
| | | // "img": "../../static/icon/icon6.png", |
| | | // "text": "设备故障登记单列表", |
| | | // "url": "/pages/MJGL/Sb_EquipConkBook/Sb_EquipConkBookBillList", |
| | | // "id": 50, |
| | | // "hidden": false |
| | | // }, |
| | | |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备维修派工单列表", |
| | | "url": "/pages/MJGL/Sb_EquipRepairSendWork/Sb_EquipRepairSendWorkBillList", |
| | | "id": 51, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon7.png", |
| | | "text": "设备维修记录单列表", |
| | | "url": "/pages/MJGL/Sb_EqpMaintenance/Sb_EqpMaintenanceBillList", |
| | | "id": 52, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "设备维修验收单列表", |
| | | "url": "/pages/MJGL/Sb_EquipRepairCheckBill/Sb_EquipRepairCheckBillList", |
| | | "id": 53, |
| | | "hidden": false |
| | | }, |
| | | |
| | | // 安灯相关 |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "异常反馈单列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackBill/OA_ErrMsgBackBillList", |
| | | "id": 54, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈接收单列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackReceiveBill/OA_ErrMsgBackReceiveBillList", |
| | | "id": 55, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈签到单列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackSignBill/OA_ErrMsgBackSignBillList", |
| | | "id": 56, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈处理单列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackHandleBill/OA_ErrMsgBackHandleBillList", |
| | | "id": 57, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon16.png", |
| | | "text": "异常反馈验收单列表", |
| | | "url": "/pages/ZLGL/AanDengHujiao/OA_ErrMsgBackCheckBill/OA_ErrMsgBackCheckBillList", |
| | | "id": 58, |
| | | "hidden": false |
| | | }, |
| | | |
| | | |
| | | |
| | | // 取样还样相关 |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "取样单列表", |
| | | "url": "/pages/ZLGL/QuYangHuangYang/QC_TakeSampleCheckBill/QC_TakeSampleCheckBillList", |
| | | "id": 60, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "还样单列表", |
| | | "url": "/pages/ZLGL/QuYangHuangYang/QC_BackSampleCheckBill/QC_BackSampleCheckBillList", |
| | | "id": 61, |
| | | "hidden": false |
| | | }, |
| | | |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "装箱单暂存列表", |
| | | "url": "/pages/zhuangxiangdan/table", |
| | | "id": 62, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "工作联系单列表", |
| | | "url": "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillList?OperationType=1", |
| | | "id": 63, |
| | | }, |
| | | { |
| | | img: '../../static/icon/icon12.png', |
| | | text: '员工签到记录单列表', |
| | | tip: '点击进入', |
| | | url: '/pages/EmployeeRecords/EmployeeRecordsBillList', |
| | | id: 65, |
| | | hidden: false, |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "采购订单列表", |
| | | "url": "/pages/caigoudingdan/caigoudingdanList", |
| | | "id": 66, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "销售订单列表", |
| | | "url": "/pages/xiaoshoudingdan/xiaoshoudingdanBillList", |
| | | "id": 67, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "特批单列表", |
| | | "url": "/pages/tepidan/TePiDanList", |
| | | "id": 68, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "客诉处理单列表", |
| | | "url": "/pages/CustomerComplaintsBill/CustomerComplaintsBillList", |
| | | "id": 69, |
| | | "hidden": false |
| | | }, |
| | | { |
| | | "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 |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "不良品评审单处理单列表", |
| | | "url": "/pages/ZLGL/QCNoPassProdDisposeBillMainList/QCNoPassProdDisposeBillMainList", |
| | | "id": 55, |
| | | "hidden": false, |
| | | |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon8.png", |
| | | "text": "环境检测单列表", |
| | | "url": "/pages/ZLGL/QcenvironmentTestDotCheckBill/QCEnvironmentTestDotCheckBillList", |
| | | "id": 55, |
| | | "hidden": false, |
| | | |
| | | }, |
| | | { |
| | | "img": "../../static/icon/icon15.png", |
| | | "text": "不良品评审结论单列表", |
| | | "url": "/pages/ZLGL/QCNoPassProdConclusionBillMain/QCNoPassProdConclusionBillMainList", |
| | | "id": 55, |
| | | "hidden": false |
| | | }, |
| | | ] |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getHiddenItem() |
| | | }, |
| | | onShow() { |
| | | |
| | | }, |
| | | methods: { |
| | | judgeHidden() { |
| | | return process.env.NODE_ENV === 'development' |
| | | }, |
| | | async getHiddenItem() { |
| | | async getHiddenItem() { |
| | | // let data = await getMenuList({ |
| | | // menuName: this.menuListName |
| | | // }) |
| | | let data = await getMenuList({ |
| | | menuName: this.menuListName |
| | | 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"]].HMaker = e["HMaker"] |
| | | this.itemData[e["HIndex"]].id = e["HEntryID"];//id为0强制隐藏 |
| | | }) |
| | | }, |
| | | switchHidden(index) { |
| | | this.updateCount ++; |
| | | this.itemData[index].hidden = !this.itemData[index].hidden |
| | | }, |
| | | switchIconsModeHandler() { |
| | | this.canEdit = !this.canEdit |
| | | if(this.canEdit == false && this.updateCount > 0) { |
| | | this.$nextTick(() => { |
| | | // uni.setStorageSync("HIndexItemData", this.itemData) |
| | | setMenuList({ |
| | | menuName: this.menuListName, |
| | | payload: this.itemData |
| | | }) |
| | | |
| | | this.updateCount = 0 |
| | | }) |
| | | } |
| | | this.$forceUpdate() |
| | | }, |
| | | toUrl(item) { |
| | | if (item.url) { |
| | | uni.navigateTo({ |
| | | url: item.url |
| | | }) |
| | | } else { |
| | | uni.showToast({ |
| | | title: '功能开发中。。。', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | switchHidden(index) { |
| | | this.updateCount++; |
| | | this.itemData[index].hidden = !this.itemData[index].hidden |
| | | |
| | | }, |
| | | switchIconsModeHandler() { |
| | | this.canEdit = !this.canEdit |
| | | if (this.canEdit == false && this.updateCount > 0) { |
| | | this.$nextTick(() => { |
| | | // uni.setStorageSync("HIndexItemData", this.itemData) |
| | | setMenuList({ |
| | | menuName: this.menuListName, |
| | | payload: this.itemData |
| | | }) |
| | | |
| | | this.updateCount = 0 |
| | | }) |
| | | } |
| | | this.$forceUpdate() |
| | | }, |
| | | toUrl(item) { |
| | | if (item.url) { |
| | | uni.navigateTo({ |
| | | url: item.url |
| | | }) |
| | | } else { |
| | | uni.showToast({ |
| | | title: '功能开发中。。。', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | // .mains{ |
| | | // width: 720rpx; |
| | | // margin: 0 auto; |
| | | // display: flex; |
| | | // flex-wrap: wrap; |
| | | // margin-top: 10rpx; |
| | | // padding-bottom: 80rpx; |
| | | // .box{ |
| | | // width: 100%; |
| | | // margin: 26rpx 26rpx 0 26rpx; |
| | | // padding: 0 0 16rpx 10rpx; |
| | | // display: flex; |
| | | // align-items: center; |
| | | // border-bottom: 1px solid #f0f0f0; |
| | | // image{ |
| | | // width: 52rpx; |
| | | // height: 52rpx; |
| | | // } |
| | | // .texts{ |
| | | // font-size: 30rpx; |
| | | // color: #333333; |
| | | // margin-left: 30rpx; |
| | | // } |
| | | // } |
| | | // } |
| | | .header { |
| | | width: 100%; |
| | | height: 2em; |
| | | position: relative; |
| | | |
| | | .header { |
| | | width: 100%; |
| | | height: 2em; |
| | | position: relative; |
| | | .switch-button { |
| | | position: absolute; |
| | | right: 10rpx; |
| | | bottom: 0; |
| | | } |
| | | } |
| | | |
| | | .switch-button { |
| | | position: absolute; |
| | | right: 10rpx; |
| | | bottom: 0; |
| | | } |
| | | } |
| | | .mains { |
| | | width: 720rpx; |
| | | margin: 0 auto; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding-bottom: 80rpx; |
| | | |
| | | .mains { |
| | | width: 720rpx; |
| | | margin: 0 auto; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | padding-bottom: 80rpx; |
| | | .box { |
| | | width: 25%; |
| | | margin-top: 2.5vh; |
| | | text-align: center; |
| | | |
| | | .box { |
| | | width: 25%; |
| | | margin-top: 2.5vh; |
| | | text-align: center; |
| | | image { |
| | | width: 18vw; |
| | | height: 18vw; |
| | | } |
| | | |
| | | image { |
| | | width: 18vw; |
| | | height: 18vw; |
| | | } |
| | | .texts { |
| | | width: 120rpx; |
| | | margin: 0 auto; |
| | | font-size: 29rpx; |
| | | font-weight: normal; |
| | | color: #333333; |
| | | margin-top: .2vh; |
| | | } |
| | | } |
| | | |
| | | .texts { |
| | | width: 120rpx; |
| | | margin: 0 auto; |
| | | font-size: 29rpx; |
| | | font-weight: normal; |
| | | color: #333333; |
| | | margin-top: .2vh; |
| | | } |
| | | } |
| | | .edit { |
| | | position: relative; |
| | | } |
| | | |
| | | .edit { |
| | | position: relative; |
| | | } |
| | | .edit-mark { |
| | | position: absolute; |
| | | top: 0; |
| | | right: 0; |
| | | } |
| | | |
| | | .edit-mark { |
| | | position: absolute; |
| | | top: 0; |
| | | right: 0; |
| | | } |
| | | view[enable-hidden] { |
| | | opacity: .4 !important; |
| | | } |
| | | |
| | | view[enable-hidden] { |
| | | opacity: .4 !important; |
| | | } |
| | | |
| | | view[hidden] { |
| | | display: none; |
| | | } |
| | | } |
| | | view[hidden] { |
| | | display: none; |
| | | } |
| | | } |
| | | </style> |