|
|
@ -19,13 +19,7 @@
|
|
|
|
<view class="container">
|
|
|
|
<view class="container">
|
|
|
|
<u-row :gutter="30">
|
|
|
|
<u-row :gutter="30">
|
|
|
|
<u-col :span="16" style="padding: 0px">
|
|
|
|
<u-col :span="16" style="padding: 0px">
|
|
|
|
<u-button
|
|
|
|
<u-button @click.native="togopage(item.path)">
|
|
|
|
@click.native="
|
|
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
|
|
url: item.path,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<u-icon size="80" name="/static/icons/icon-02.png"></u-icon>
|
|
|
|
<u-icon size="80" name="/static/icons/icon-02.png"></u-icon>
|
|
|
|
<!-- <text class="name"> {{ session.lang == 'en' ? index + 1 + ' ' + item.engResourceName : index + 1 + ' ' + item.resourceName }}</text> -->
|
|
|
|
<!-- <text class="name"> {{ session.lang == 'en' ? index + 1 + ' ' + item.engResourceName : index + 1 + ' ' + item.resourceName }}</text> -->
|
|
|
|
<text class="name">{{ item.menuName }}</text>
|
|
|
|
<text class="name">{{ item.menuName }}</text>
|
|
|
@ -80,6 +74,9 @@ export default class RawHome extends BasePage {
|
|
|
|
factoryList: any = {};
|
|
|
|
factoryList: any = {};
|
|
|
|
today = dayjs().format('YYYY-MM-DD dddd');
|
|
|
|
today = dayjs().format('YYYY-MM-DD dddd');
|
|
|
|
onReady() {
|
|
|
|
onReady() {
|
|
|
|
|
|
|
|
if (session.FactoryCode != undefined) {
|
|
|
|
|
|
|
|
this.factoryList.value = session.FactoryCode;
|
|
|
|
|
|
|
|
}
|
|
|
|
this.newmenuList = this.menuList.filter((item) => item.perms == 'wms' || item.perms == 'mes');
|
|
|
|
this.newmenuList = this.menuList.filter((item) => item.perms == 'wms' || item.perms == 'mes');
|
|
|
|
console.log('1234', this.menuList);
|
|
|
|
console.log('1234', this.menuList);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -93,6 +90,16 @@ export default class RawHome extends BasePage {
|
|
|
|
url: `/pages/mes/index`,
|
|
|
|
url: `/pages/mes/index`,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
togopage(path) {
|
|
|
|
|
|
|
|
//console.log('guoguo',session.FactoryCode)
|
|
|
|
|
|
|
|
if (session.FactoryCode == undefined) {
|
|
|
|
|
|
|
|
this.customToast('请选择工厂');
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
|
|
url: path,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
selectProductCode(e: any) {
|
|
|
|
selectProductCode(e: any) {
|
|
|
|
this.factoryList = e.pickerName;
|
|
|
|
this.factoryList = e.pickerName;
|
|
|
|
const factory: string = this.factoryList.factory;
|
|
|
|
const factory: string = this.factoryList.factory;
|
|
|
|