From 6f17e42e2463aee9804f50bfd0d5a8bcb1f7d7c2 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期二, 25 十一月 2025 09:35:48 +0800
Subject: [PATCH] 修复 文件命名 修改后,部分页面无法访问,页面内无法跳转的问题
---
pages/index/index.vue | 443 ++++++++++++++++++++++++++++--------------------------
1 files changed, 231 insertions(+), 212 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 8619d87..9734bbf 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,68 +1,68 @@
<template>
- <view class="content">
- <view class="header">鏅轰簯L-MES鍒堕�犳墽琛岀郴缁�
- <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 class="content">
+ <view class="header">鏅轰簯L-MES鍒堕�犳墽琛岀郴缁�
+ <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>
- <vers></vers>
- </view>
+ <vers></vers>
+ </view>
</template>
<script>
- import vers from './vers.vue';
- import {
- setMenuList,
- getMenuList
- } from '../../utils/menuListApp';
- import {
- CommonUtils
- } from '../../utils/common';
- import {
- getUserInfo
- } from '../../utils/auth';
- export default {
- components: {
- vers,
- },
- data() {
- return {
- updateCount: 0,
- menuListName: 'index',
- canEdit: false,
- serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
- itemData: [{
- img: '../../static/icon/icon8.png',
- text: '鏀舵枡閫氱煡鍗曟潯鐮佹墦鍗�',
- url: '/pages/tiaomaguanli/table?HBillType=1103',
- id: 1,
- hidden: false,
- },
- {
- img: '../../static/icon/icon8.png',
- text: '閲囪喘璁㈠崟鏉$爜鎵撳嵃',
- url: '/pages/tiaomaguanli/table?HBillType=1102',
- id: 2,
- hidden: false,
- },
+ import vers from './vers.vue';
+ import {
+ setMenuList,
+ getMenuList
+ } from '../../utils/menuListApp';
+ import {
+ CommonUtils
+ } from '../../utils/common';
+ import {
+ getUserInfo
+ } from '../../utils/auth';
+ export default {
+ components: {
+ vers,
+ },
+ data() {
+ return {
+ updateCount: 0,
+ menuListName: 'index',
+ canEdit: false,
+ serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+ itemData: [{
+ img: '../../static/icon/icon8.png',
+ text: '鏀舵枡閫氱煡鍗曟潯鐮佹墦鍗�',
+ url: '/pages/tiaomaguanli/table?HBillType=1103',
+ id: 1,
+ hidden: false,
+ },
+ {
+ img: '../../static/icon/icon8.png',
+ text: '閲囪喘璁㈠崟鏉$爜鎵撳嵃',
+ url: '/pages/tiaomaguanli/table?HBillType=1102',
+ id: 2,
+ hidden: false,
+ },
// {
// img: '../../static/icon/icon8.png',
@@ -94,135 +94,135 @@
}, {
img: '../../static/icon/icon17.png',
text: '閲囪喘鍏ュ簱鏂板',
- url: '/pages/caigouruku/form?OperationType=1',
+ url: '/pages/caigouruku/POStockInBill?OperationType=1',
id: 4,
hidden: false,
}, {
img: '../../static/icon/icon20.png',
text: '閲囪喘閫�鏂欐柊澧�',
- url: '/pages/caigoutuiliao/form?OperationType=1',
+ url: '/pages/caigoutuiliao/POStockInBackBill?OperationType=1',
id: 5,
hidden: false,
}, {
img: '../../static/icon/icon32.png',
text: '鐩存帴璋冩嫧鏂板',
- url: '/pages/zhijiediaobo/form?OperationType=1',
+ url: '/pages/zhijiediaobo/MoveStockBill?OperationType=1',
id: 6,
hidden: false,
}, {
img: '../../static/icon/icon30.png',
text: '鐢熶骇棰嗘枡鏂板',
- url: '/pages/shengchanlingliaoshengdan/form?OperationType=1',
+ url: '/pages/shengchanlingliaoshengdan/Kf_MateOutBill?OperationType=1',
id: 7,
hidden: false,
}, {
img: '../../static/icon/icon31.png',
text: '鐢熶骇琛ユ枡鏂板',
- url: '/pages/shengchanbuliao/form?OperationType=1',
+ url: '/pages/shengchanbuliao/MateReplenishOutBill?OperationType=1',
id: 8,
hidden: false,
}, {
img: '../../static/icon/icon8.png',
text: '鐢熶骇閫�鏂欐柊澧�',
- url: `/pages/shengchantuiliao/form`,
+ url: `/pages/shengchantuiliao/MateOutBackBill`,
id: 27,
hidden: false,
}, {
img: '../../static/icon/icon17.png',
text: '鐢熶骇鍏ュ簱鏂板',
- url: '/pages/shengchanrukushengdan/form?OperationType=1',
+ url: '/pages/shengchanrukushengdan/Kf_ProductInBill?OperationType=1',
id: 9,
hidden: false,
}, {
img: '../../static/icon/icon30.png',
text: '濮斿棰嗘枡鏂板',
- url: '/pages/weiwailingliao/form?OperationType=1',
+ url: '/pages/weiwailingliao/Kf_EntrustOutBill?OperationType=1',
id: 10,
hidden: false,
}, {
img: '../../static/icon/icon17.png',
text: '鍏朵粬鍏ュ簱鏂板',
- url: '/pages/qitaruku_v2/form?OperationType=1',
+ url: '/pages/qitaruku_v2/OtherInBill?OperationType=1',
id: 11,
hidden: false,
}, {
img: '../../static/icon/icon18.png',
text: '鍏朵粬鍑哄簱鏂板',
- url: '/pages/qitachuku_v2/form?OperationType=1',
+ url: '/pages/qitachuku_v2/OtherOutBill?OperationType=1',
id: 12,
hidden: false,
}, {
img: '../../static/icon/icon18.png',
text: '閿�鍞嚭搴撴柊澧�',
- url: '/pages/xiaoshouchuku/form?OperationType=1',
+ url: '/pages/xiaoshouchuku/SellOutBill?OperationType=1',
id: 13,
hidden: false,
}, {
img: '../../static/icon/icon19.png',
text: '閿�鍞��璐ф柊澧�',
- url: '/pages/xiaoshoutuihuo/form?OperationType=1',
+ url: '/pages/xiaoshoutuihuo/ICStockBillMain?OperationType=1',
id: 14,
hidden: false,
}, {
img: '../../static/icon/icon19.png',
text: '濮斿鍏ュ簱鏂板',
- url: '/pages/weiwairuku/form?OperationType=1',
+ url: '/pages/weiwairuku/EntrustInBill?OperationType=1',
id: 15,
hidden: false,
}, {
img: '../../static/icon/icon30.png',
text: '鐢熶骇棰嗘枡妫�楠�',
- url: '/pages/shengchanlingliao/form?OperationType=1',
+ url: '/pages/shengchanlingliao/PPickingCheckBill?OperationType=1',
id: 16,
hidden: false,
}, {
img: '../../static/icon/icon31.png',
text: '鐢熶骇琛ユ枡鏍¢獙',
- url: '/pages/shengchanbuliaojiaoyan/form?OperationType=1',
+ url: '/pages/shengchanbuliaojiaoyan/MateReplenishOutCheckBill?OperationType=1',
id: 17,
hidden: false,
}, {
img: '../../static/icon/icon32.png',
text: '鐢熶骇璋冩嫧鏍¢獙',
- url: '/pages/shengchandiaobo/form?OperationType=1',
+ url: '/pages/shengchandiaobo/MoveStockBill?OperationType=1',
id: 18,
hidden: false,
}, {
img: '../../static/icon/icon18.png',
text: '鍏朵粬鍑哄簱鏍¢獙',
- url: '/pages/qitachukujiaoyan/detail?OperationType=1',
+ url: '/pages/qitachukujiaoyan/qitachukudanjiaoyan?OperationType=1',
id: 19,
hidden: false,
}, {
img: '../../static/icon/icon17.png',
text: '鐢熶骇鍏ュ簱鏍¢獙',
- url: '/pages/shengchanruku/form?OperationType=1',
+ url: '/pages/shengchanruku/ProductInCheckBill?OperationType=1',
id: 20,
hidden: false,
}, {
img: '../../static/icon/icon18.png',
text: '閿�鍞嚭搴撴牎楠�',
- url: '/pages/xiaoshouchukujiaoyan/form?OperationType=1',
+ url: '/pages/xiaoshouchukujiaoyan/SellOutCheckBill?OperationType=1',
id: 21,
hidden: false,
}, {
img: '../../static/icon/icon30.png',
text: '濮斿棰嗘枡鏍¢獙',
- url: '/pages/weiwailingliaojiaoyan/form?OperationType=1',
+ url: '/pages/weiwailingliaojiaoyan/EntrustOutCheckBill?OperationType=1',
id: 22,
hidden: false,
},
{
img: '../../static/icon/icon16.png',
text: '閲囪喘鍏ュ簱鏍¢獙',
- url: '/pages/caigourukujiaoyan/form?OperationType=1',
+ url: '/pages/caigourukujiaoyan/POStockInCheckBill?OperationType=1',
id: 23,
hidden: false,
},
{
img: '../../static/icon/icon16.png',
text: '鍏朵粬鍏ュ簱鏍¢獙',
- url: '/pages/qitarukujiaoyan/table',
+ url: '/pages/qitarukujiaoyan/Kf_OtherInBillCheckList',
id: 27,
hidden: false,
},
@@ -235,14 +235,14 @@
}, {
img: '../../static/icon/icon8.png',
text: '缁勬墭鎵爜',
- url: `/pages/zutuosaoma/form`,
+ url: `/pages/zutuosaoma/PackUnionBill`,
id: 25,
hidden: false,
},
{
img: '../../static/icon/icon8.png',
text: '鎷嗘墭鎵爜',
- url: `/pages/chaituosaoma/form`,
+ url: `/pages/chaituosaoma/UnPackUnionBill`,
id: 26,
hidden: false,
},
@@ -268,24 +268,43 @@
hidden: false,
},
{
+ img: '../../static/icon/icon16.png',
+ text: '鎷嗙',
+ url: '/pages/chaixiang/form',
+ id: 30,
+ hidden: false,
+ },{
+ img: '../../static/icon/icon16.png',
+ text: '瑁呯',
+ url: '/pages/zhuangxiang/form_mix',
+ id: 31,
+ hidden: false,
+ },
+ {
+ img: '../../static/icon/icon16.png',
+ text: '缁勬墭-灏忓崼',
+ url: '/pages/zutuo_xiaowei/form_xiaowei',
+ id: 32,
+ hidden: false,
+ },{
img: '../../static/icon/icon8.png',
text: '瑁呯鍗�',
url: '/pages/zhuangxiangdan/form',
- id: 30,
+ id: 33,
hidden: false,
},
{
img: '../../static/icon/icon8.png',
text: '鎷嗘墭鎵爜锛堝皬鍗級',
url: `/pages/chaituosaoma-xiaowei/UnpackPallet`,
- id: 31,
+ id: 34,
hidden: false,
},
{
img: '../../static/icon/icon8.png',
text: '涓夌爜鍚堜竴',
url: `/pages/sanmaheyi/BarCodeCheck`,
- id: 32,
+ id: 35,
hidden: false,
},
],
@@ -500,143 +519,143 @@
// id: 35,
// },
- // {
- // img: '../../static/icon/icon16.png',
- // text: '濮斿琛ユ枡鏍¢獙',
- // url: '/pages/weiwaibuliaojiaoyan/table',
- // id: 37,
- // },
- // {
- // img: '../../static/icon/icon17.png',
- // text: '鐢熶骇棰嗘枡',
- // url: '/pages/shengchanlingliaoshengdan/table',
- // id: 38,
- // },
- // ]
- }
- },
- onLoad() {
- this.getHiddenItem()
- },
- methods: {
- checkCardShow(item) {
- if (item.HMaker && item.HMaker != getUserInfo()['Czymc'] && item.hidden == true) {
- return false
- }
- return true
- },
- async getHiddenItem() {
- // let itemCache = uni.getStorageSync('HIndexItemData') || ''
- // console.log('itemCache: ',itemCache);
- // if(itemCache !== '') {
- // this.itemData = itemCache
- // }
+ // {
+ // img: '../../static/icon/icon16.png',
+ // text: '濮斿琛ユ枡鏍¢獙',
+ // url: '/pages/weiwaibuliaojiaoyan/Kf_EntrustReplenishOutBill_CheckList',
+ // id: 37,
+ // },
+ // {
+ // img: '../../static/icon/icon17.png',
+ // text: '鐢熶骇棰嗘枡',
+ // url: '/pages/shengchanlingliaoshengdan/Kf_MateOutBillList',
+ // id: 38,
+ // },
+ // ]
+ }
+ },
+ onLoad() {
+ this.getHiddenItem()
+ },
+ methods: {
+ checkCardShow(item) {
+ if (item.HMaker && item.HMaker != getUserInfo()['Czymc'] && item.hidden == true) {
+ return false
+ }
+ return true
+ },
+ async getHiddenItem() {
+ // let itemCache = uni.getStorageSync('HIndexItemData') || ''
+ // 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"]].HMaker = e["HMaker"]
- })
- },
- 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
- })
+ 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"]].HMaker = e["HMaker"]
+ })
+ },
+ 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'
- })
- }
- }
- }
- }
+ 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>
- .header {
- width: 750rpx;
- background: linear-gradient(0deg, #71AFFC 0%, #3A78FF 100%);
- font-size: 47rpx;
- font-weight: bold;
- color: #FFFFFF;
- text-align: center;
- padding: 9vh 0 6vh 0;
- position: relative;
- }
+ .header {
+ width: 750rpx;
+ background: linear-gradient(0deg, #71AFFC 0%, #3A78FF 100%);
+ font-size: 47rpx;
+ font-weight: bold;
+ color: #FFFFFF;
+ text-align: center;
+ padding: 9vh 0 6vh 0;
+ 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;
- margin-top: 3vh;
- padding-bottom: 5vh;
+ .mains {
+ width: 720rpx;
+ margin: 0 auto;
+ display: flex;
+ flex-wrap: wrap;
+ margin-top: 3vh;
+ padding-bottom: 5vh;
- .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>
\ No newline at end of file
--
Gitblit v1.9.1