提交页面代码

master
LAPTOP-R6EHHS26\86155 2 years ago
parent c3f1944884
commit e325366d5b

@ -44,6 +44,70 @@
"navigationBarTextStyle": "white" // white-black-
}
},
{
"path": "pages/equipment/index",
"style": {
"navigationBarTitleText": "设备管理",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{
"path": "pages/equipment/Inspection/index",
"style": {
"navigationBarTitleText": "巡检",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{
"path": "pages/equipment/Inspection/details",
"style": {
"navigationBarTitleText": "巡检详情",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{
"path": "pages/equipment/Inspection/detailsview",
"style": {
"navigationBarTitleText": "巡检查看",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{
"path": "pages/equipment/Spotcheck/index",
"style": {
"navigationBarTitleText": "点检",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{
"path": "pages/equipment/Upkeep/index",
"style": {
"navigationBarTitleText": "保养",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
{
"path": "pages/equipment/Repair/index",
"style": {
"navigationBarTitleText": "维修",
"navigationStyle": "custom", //
"navigationBarTextStyle": "white" // white-black-
}
},
// {
// "path": "pages/equipment/repair/index",
// "style": {
// "navigationBarTitleText": "报修",
// "navigationStyle": "custom", //
// "navigationBarTextStyle": "white" // white-black-
// }
// },
{
"path": "pages/index/index",
"style": {

@ -0,0 +1,590 @@
<!-- 扫描rfid,选择缓存区根据选择的缓存区查询库位勾选是否取走托盘提交托盘变更信息 -->
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">巡检详情</view>
<view class="right"></view>
</view>
<!-- <u-tabs name="cate_name" count="cate_count" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs> -->
<div class="quest">巡检任务: 巡检任务1</div>
<view class="list" v-for="(item, index) in detailsinfolist" :key="index">
<div class="item-name">
<div class="details">
<div>设备编码: {{ item.itemq }}</div>
<div style="margin-left: 42px">设备名称: {{ item.itemq }}</div>
</div>
<div class="details">
<div>车间: {{ item.itemq }}</div>
<div style="margin-left: 42px">产线: {{ item.itemq }}</div>
</div>
</div>
<view class="single-left">
<!-- <view>扫描设备码:</view> -->
<u-search style="border: 1px solid #a19d9d" placeholder="请扫描" @search="search(item, item.orderNo, index)" :focus="shouciFocus" v-model="item.orderNo" :show-action="false"></u-search>
<!-- <uni-icons type="scan" size="35" @click="scanCodeOne" style="color: #0b9eff; margin: auto; padding: 22rpx"></uni-icons> -->
</view>
<view class="item" v-for="(item, index) in equipmentdata" :key="index">
<div class="item1">检查项: {{ item.item3 }}</div>
<div class="item1">检查方法: {{ item.item4 }}</div>
<div class="item1 item2">
<div style="white-space: nowrap">检查标准: {{ item.item5 }}</div>
<div class="select">
<u-radio-group v-model="item.radiovalue" @change="radioGroupChange(item, item.radiovalue, index)">
<u-radio @change="radioChange" v-for="(n, index) in item.listselect" :key="index" :name="n.name" :disabled="n.disabled">
{{ n.name }}
</u-radio>
</u-radio-group>
</div>
</div>
<div class="item1 item2">
<div style="white-space: nowrap">检查标准: {{ item.item5 }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item.value" @blur="blur(item, item.value, index)" @change="changeinput(item, item.value, index)" @input="input(item, item.value, index)" type="text" name="" id="" />
单位:mm
</div>
</div>
</view>
</view>
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onSubmit" type="primary">提交</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view>
<u-modal v-model="isshow" class="modal" :show-cancel-button="true" :show-title="false" @cancel="cancel" @confirm="confirm">
<div class="upload-name">
<div class="name">检查标准:{{ form.item5 }}</div>
<!-- <u-upload :before-upload="beforeUpload" ref="uUpload" :fileList="fileList" @on-error='errorUpload($event)' :action="action" @on-remove="removePic($event, item)" @on-success="successUpload($event)" :deletable="true"></u-upload> -->
<scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollLeft()">
<view class="photoList">
<view class="itemBox photoBox" v-for="(img, index) in imgUrlList" :key="index">
<view class="closeBtn" @click="deleteImg(index)">
<image class="img" src="../../../static/images/iconCloseGray.svg" mode="scaleToFill"></image>
</view>
<image class="img" :src="img" mode="aspectFit" @click="showScreenImg(index)"></image>
</view>
<view class="itemBox chooseBtn" @click="chooseImg">
<view class="inner">
<image class="img" src="../../../static/images/upload-pic-icon.svg" mode="scaleToFill"></image>
<text class="desc">添加照片</text>
</view>
</view>
</view>
</scroll-view>
</div>
</u-modal>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue';
//import store from '@/store';
@Component({
components: {
chooseOne,
jPicker,
},
})
export default class ChangePalletNew extends BasePage {
model = model;
list: any = [
{
cate_name: '今日任务',
},
{
cate_name: '巡检记录',
},
];
current: any = 0;
shouciFocus = true;
//
detailsinfo: any = [];
detailsinfolist: any = [];
//
isshow = false;
inputmodal = false;
ischecked = false;
radiomodal = false;
//
equipmentdata: any = [
{
itemq: '巡检任务1',
item2: '已巡检',
item3: '2023-08-01 - 2023-08-31',
item4: '每月巡检',
item5: 'XXXXX',
item6: '未发现异常',
radiovalue: '符合标准',
value: 55,
imgUrlList1: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg', 'https://cdn.uviewui.com/uview/swiper/3.jpg'],
imgUrlList2: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg'],
listselect: [
{
name: '符合标准',
},
{
name: '未达标',
},
],
valuemax: 100,
valuemin: 50,
},
{
itemq: '巡检任务2',
item2: '已巡检',
item3: '2023-08-01 - 2023-08-31',
item4: '每月巡检',
item5: 'XXXXX',
item6: '未发现异常',
radiovalue: '符合标准',
value: 10,
imgUrlList1: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg', 'https://cdn.uviewui.com/uview/swiper/3.jpg'],
imgUrlList2: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg'],
listselect: [
{
name: '符合标准',
},
{
name: '未达标',
},
],
valuemax: 50,
valuemin: 10,
},
];
// index equipment
equipmentindex: any = '';
orderNo: any = '';
location: any = '';
locationStatus: any = 1;
form: any = {};
//
action: any = 'http://www.example.com/upload';
fileList: any = [];
filesArr: any = [];
imgList: any = [];
imgUrlList: any = [];
deleteimgUrlList: any = [];
orderNoItemList: any = {};
async onReady() {
await this.model.getDictList();
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
//
blur(item, value, index) {
this.radiomodal = false;
this.inputmodal = false;
console.log(item, value, index);
if (value > item.valuemax || value < item.valuemin) {
this.equipmentindex = index;
this.imgUrlList = JSON.parse(JSON.stringify(item.imgUrlList2));
this.inputmodal = true;
this.isshow = true;
this.form = item;
}
}
changeinput(e) {
console.log(e);
}
input(e) {
console.log(e);
}
//
radioChange(e) {
console.log(e, '11111');
}
// radioradio-group
radioGroupChange(item, value, index) {
console.log(item, value, index);
this.radiomodal = false;
this.inputmodal = false;
this.equipmentindex = index;
this.imgUrlList = JSON.parse(JSON.stringify(item.imgUrlList1));
if (value == '未达标') {
this.isshow = true;
this.radiomodal = true;
this.form = item;
}
}
onLoad(options) {
let str = decodeURIComponent(options.listitem);
if (str) {
this.detailsinfo = JSON.parse(str);
this.detailsinfolist.push(this.detailsinfo);
setTimeout(() => {
this.detailsinfolist.push(JSON.parse(str));
}, 1000);
console.log(this.detailsinfo);
}
}
created() {
this.onLoad;
}
change(index) {
this.current = index;
}
//
confirm() {
console.log((this as any).uUpload, 'sssss');
if (this.radiomodal) {
this.equipmentdata[this.equipmentindex].imgUrlList1 = this.imgUrlList;
} else if (this.inputmodal) {
this.equipmentdata[this.equipmentindex].imgUrlList2 = this.imgUrlList;
}
}
cancel() {
this.imgUrlList = this.deleteimgUrlList;
}
scrollLeft() {
return 222 * (this.imgList.length + 1);
}
showScreenImg(i) {
let list = this.imgUrlList;
uni.previewImage({
current: i,
urls: list,
// loop: true
});
}
chooseImg() {
// if(!this.materialObj){
// this.$refs.toastRef.show({
// type:"error",
// text:""
// })
// return
// }
// uni.chooseImage({
// count: 9, //9
// // sizeType: ['original', 'compressed'], //
// sourceType: ['album', 'camera'],
// success: (res) => {
// // uni.showLoading();
// //console.log('/////',res);
// let tempFilePaths: any = res.tempFilePaths;
// let imgUrlList: any = res.tempFilePaths;
// tempFilePaths.map((item, index) => {
// uni.uploadFile({
// url: 'http://192.168.202.20:9000/prod-api/file/upload',
// //url: '/dev-api/file/upload',
// fileType: 'image',
// filePath: item,
// header: {
// Authorization: 'Bearer ' + session.user?.access_token,
// // 'cosmo-env-sitecode': this.$store.state.siteCode
// },
// name: 'file',
// // formData: {
// // materialCode: this.materialObj.materialCode,
// // },
// success: (res) => {
// console.log(res);
// uni.hideLoading();
// if (!res.data) {
// // this.$refs.toastRef.show({
// // type:"error",
// // text:""
// // })
// return;
// }
// let data = JSON.parse(res.data);
// console.log('123dddd', data);
// this.imgList = [...this.imgList, data.data.url];
// //this.imgListName = [...this.imgListName,data.fileName];
// this.imgUrlList = [...this.imgUrlList, imgUrlList[index]];
// //this.picUrls = this.imgList.join(",");
// //this.picNames = this.imgListName.join(",");
// console.log('this.imgList', this.imgList);
// uni.hideLoading();
// },
// fail: (err) => {
// console.log(err);
// // this.$refs.toastRef.show({
// // type:"error",
// // text:""
// // })
// uni.hideLoading();
// },
// });
// });
// },
// });
}
deleteImg(index) {
this.deleteimgUrlList = JSON.parse(JSON.stringify(this.imgUrlList));
this.imgUrlList.splice(index, 1);
}
scanCodeOne() {
uni.scanCode({
scanType: ['barCode'],
success: (res) => {
this.orderNo = res.result;
},
fail(result) {
this.customToast(result);
},
});
}
async onSubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
// if (this.badMeg == '') {
// this.customToast('');
// return;
// }
}
search(item, value, index) {
console.log(item, value, index);
}
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.quest {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
font-size: 18px;
font-weight: 600;
color: black;
}
.list {
margin-top: 15px;
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
.details {
display: flex;
font-size: 16px;
font-weight: 600;
// justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
}
.single-left {
display: flex;
// align-items: center;
// justify-content: space-around;
text-align: center;
margin-top: 12px;
margin-bottom: 20px;
border: 1px solid #eee;
}
.item {
margin-top: 15px;
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {
margin-bottom: 3px;
white-space: 1px;
font-size: 17px;
font-weight: 600;
}
.item2 {
display: flex;
align-content: center;
justify-content: space-between;
.select {
font-size: 15px;
font-weight: 400;
display: flex;
// margin-left: 19px;
}
.input-box {
font-size: 13px;
font-weight: 400;
display: flex;
align-content: center;
margin-top: 2px;
.input {
font-size: 12px;
width: 65px;
padding: 1px 8px;
height: 20px;
box-sizing: border-box;
border: 1px solid #b6b6b6;
margin-left: 6px;
display: inline-block;
margin-right: 6px;
border-radius: 4px;
position: relative;
}
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.modal {
.upload-name {
padding: 10px 20px;
.name {
font-size: 17px;
font-weight: 600;
}
}
.photoList {
display: flex;
padding-top: 12rpx;
.chooseBtn {
width: 202rpx;
height: 202rpx;
background: #fafafa;
border-radius: 12rpx;
border: 2rpx dashed #e2e2e2;
display: flex;
justify-content: center;
align-items: center;
.inner {
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.desc {
font-size: 28rpx;
font-weight: 400;
color: #24252a;
line-height: 40rpx;
}
.img {
width: 50rpx;
height: 50rpx;
margin-bottom: 6rpx;
}
}
.photoBox {
width: 202rpx;
height: 202rpx;
background: #fafafa;
border-radius: 12rpx;
position: relative;
.closeBtn {
position: absolute;
top: -12rpx;
right: -12rpx;
z-index: 2;
width: 36rpx;
height: 36rpx;
.img {
width: 36rpx;
height: 36rpx;
}
}
.img {
width: 202rpx;
height: 202rpx;
border-radius: 12rpx;
}
}
.itemBox {
flex: 0 0 202rpx;
margin-right: 20rpx;
&:last-child {
margin-right: 0;
}
}
}
}
::v-deep .yjy-switch-container .yjy-switch-item {
width: 100%;
}
::v-deep .yjy-switch-container {
width: 50%;
}
::v-deep .u-radio__label {
font-size: 13px;
}
::v-deep #input-box1 .u-input__input {
width: 50px;
max-height: 15px;
font-size: 13px;
}
}
</style>

@ -0,0 +1,611 @@
<!-- 扫描rfid,选择缓存区根据选择的缓存区查询库位勾选是否取走托盘提交托盘变更信息 -->
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">巡检详情</view>
<view class="right"></view>
</view>
<div class="quest">巡检任务: 巡检任务1</div>
<!-- <u-tabs name="cate_name" count="cate_count" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs> -->
<view class="list" v-for="(item, index) in detailsinfolist" :key="index">
<div class="item-name">
<div class="details">
<div>设备编码: {{ item.itemq }}</div>
<div style="margin-left: 42px">设备名称: {{ item.itemq }}</div>
</div>
<div class="details">
<div>车间: {{ item.itemq }}</div>
<div style="margin-left: 42px">产线: {{ item.itemq }}</div>
</div>
</div>
<view class="single-left">
<!-- <view>扫描设备码:</view> -->
<u-search style="border: 1px solid #a19d9d" placeholder="请扫描" @search="search" :focus="shouciFocus" v-model="orderNo" :show-action="false"></u-search>
<!-- <uni-icons type="scan" size="35" @click="scanCodeOne" style="color: #0b9eff; margin: auto; padding: 22rpx"></uni-icons> -->
</view>
<view class="item" v-for="(item, index) in equipmentdata" :key="index">
<div class="item1">检查项: {{ item.item3 }}</div>
<div class="item1">检查方法: {{ item.item4 }}</div>
<div class="item1 item2">
<div style="white-space: nowrap">检查标准: {{ item.item5 }}</div>
<div class="select">
<u-radio-group dis v-model="item.radiovalue" @change="radioGroupChange(item, item.radiovalue, index)">
<u-radio @change="radioChange" v-for="(n, index) in item.listselect" :key="index" :name="n.name" :disabled="n.disabled">
{{ n.name }}
</u-radio>
</u-radio-group>
</div>
</div>
<div class="item1 item2">
<div style="white-space: nowrap">检查标准: {{ item.item5 }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item.value" @blur="blur(item, item.value, index)" @change="changeinput(item, item.value, index)" @input="input(item, item.value, index)" type="text" name="" id="" />
单位:mm
</div>
</div>
</view>
</view>
<view class="bottom-bar">
<div class="item-name">
<!-- <div class="quest">点检人: 刘XX</div> -->
<div class="details">
<div>点检人: 刘XX</div>
<div style="margin-left: 42px">点检时间: 2023-08-09</div>
</div>
<div class="details">
<div>是否异常: </div>
<div style="margin-left: 42px">报修单: 90272931234</div>
</div>
</div>
</view>
<u-modal v-model="isshow" class="modal" :show-cancel-button="true" :show-title="false" @cancel="cancel" @confirm="confirm">
<div class="upload-name">
<div class="name">检查标准:{{ form.item5 }}</div>
<!-- <u-upload :before-upload="beforeUpload" ref="uUpload" :fileList="fileList" @on-error='errorUpload($event)' :action="action" @on-remove="removePic($event, item)" @on-success="successUpload($event)" :deletable="true"></u-upload> -->
<scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollLeft()">
<view class="photoList">
<view class="itemBox photoBox" v-for="(img, index) in imgUrlList" :key="index">
<view class="closeBtn" @click="deleteImg(index)">
<image class="img" src="../../../static/images/iconCloseGray.svg" mode="scaleToFill"></image>
</view>
<image class="img" :src="img" mode="aspectFit" @click="showScreenImg(index)"></image>
</view>
<view class="itemBox chooseBtn" @click="chooseImg">
<view class="inner">
<image class="img" src="../../../static/images/upload-pic-icon.svg" mode="scaleToFill"></image>
<text class="desc">添加照片</text>
</view>
</view>
</view>
</scroll-view>
</div>
</u-modal>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue';
//import store from '@/store';
@Component({
components: {
chooseOne,
jPicker,
},
})
export default class ChangePalletNew extends BasePage {
model = model;
list: any = [
{
cate_name: '今日任务',
},
{
cate_name: '巡检记录',
},
];
current: any = 0;
shouciFocus = true;
//
detailsinfo: any = [];
detailsinfolist: any = [];
//
isshow = false;
inputmodal = false;
ischecked = false;
radiomodal = false;
//
equipmentdata: any = [
{
itemq: '巡检任务1',
item2: '已巡检',
item3: '2023-08-01 - 2023-08-31',
item4: '每月巡检',
item5: 'XXXXX',
item6: '未发现异常',
radiovalue: '符合标准',
value: 55,
imgUrlList1: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg', 'https://cdn.uviewui.com/uview/swiper/3.jpg'],
imgUrlList2: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg'],
listselect: [
{
name: '符合标准',
disabled: false,
},
{
name: '未达标',
disabled: true,
},
],
valuemax: 100,
valuemin: 50,
},
{
itemq: '巡检任务2',
item2: '已巡检',
item3: '2023-08-01 - 2023-08-31',
item4: '每月巡检',
item5: 'XXXXX',
item6: '未发现异常',
radiovalue: '符合标准',
value: 10,
imgUrlList1: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg', 'https://cdn.uviewui.com/uview/swiper/3.jpg'],
imgUrlList2: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg'],
listselect: [
{
name: '符合标准',
disabled: false,
},
{
name: '未达标',
disabled: true,
},
],
valuemax: 50,
valuemin: 10,
},
];
// index equipment
equipmentindex: any = '';
orderNo: any = '';
location: any = '';
locationStatus: any = 1;
form: any = {};
//
action: any = 'http://www.example.com/upload';
fileList: any = [];
filesArr: any = [];
imgList: any = [];
imgUrlList: any = [];
deleteimgUrlList: any = [];
orderNoItemList: any = {};
async onReady() {
await this.model.getDictList();
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
//
blur(item, value, index) {
this.radiomodal = false;
this.inputmodal = false;
console.log(item, value, index);
if (value > item.valuemax || value < item.valuemin) {
this.equipmentindex = index;
this.imgUrlList = JSON.parse(JSON.stringify(item.imgUrlList2));
this.inputmodal = true;
this.isshow = true;
this.form = item;
}
}
changeinput(e) {
console.log(e);
}
input(e) {
console.log(e);
}
//
radioChange(e) {
console.log(e, '11111');
}
// radioradio-group
radioGroupChange(item, value, index) {
console.log(item, value, index);
this.radiomodal = false;
this.inputmodal = false;
this.equipmentindex = index;
this.imgUrlList = JSON.parse(JSON.stringify(item.imgUrlList1));
if (value == '未达标') {
this.isshow = true;
this.radiomodal = true;
this.form = item;
}
}
onLoad(options) {
let str = decodeURIComponent(options.listitem);
if (str) {
this.detailsinfo = JSON.parse(str);
this.ischecked = this.detailsinfo.ischecked;
this.detailsinfolist.push(this.detailsinfo);
setTimeout(() => {
this.detailsinfolist.push(this.detailsinfo);
}, 1000);
console.log(this.detailsinfo);
}
}
created() {
this.onLoad;
}
change(index) {
this.current = index;
}
//
confirm() {
console.log((this as any).uUpload, 'sssss');
if (this.radiomodal) {
this.equipmentdata[this.equipmentindex].imgUrlList1 = this.imgUrlList;
} else if (this.inputmodal) {
this.equipmentdata[this.equipmentindex].imgUrlList2 = this.imgUrlList;
}
}
cancel() {
this.imgUrlList = this.deleteimgUrlList;
}
scrollLeft() {
return 222 * (this.imgList.length + 1);
}
showScreenImg(i) {
let list = this.imgUrlList;
uni.previewImage({
current: i,
urls: list,
// loop: true
});
}
chooseImg() {
// if(!this.materialObj){
// this.$refs.toastRef.show({
// type:"error",
// text:""
// })
// return
// }
// uni.chooseImage({
// count: 9, //9
// // sizeType: ['original', 'compressed'], //
// sourceType: ['album', 'camera'],
// success: (res) => {
// // uni.showLoading();
// //console.log('/////',res);
// let tempFilePaths: any = res.tempFilePaths;
// let imgUrlList: any = res.tempFilePaths;
// tempFilePaths.map((item, index) => {
// uni.uploadFile({
// url: 'http://192.168.202.20:9000/prod-api/file/upload',
// //url: '/dev-api/file/upload',
// fileType: 'image',
// filePath: item,
// header: {
// Authorization: 'Bearer ' + session.user?.access_token,
// // 'cosmo-env-sitecode': this.$store.state.siteCode
// },
// name: 'file',
// // formData: {
// // materialCode: this.materialObj.materialCode,
// // },
// success: (res) => {
// console.log(res);
// uni.hideLoading();
// if (!res.data) {
// // this.$refs.toastRef.show({
// // type:"error",
// // text:""
// // })
// return;
// }
// let data = JSON.parse(res.data);
// console.log('123dddd', data);
// this.imgList = [...this.imgList, data.data.url];
// //this.imgListName = [...this.imgListName,data.fileName];
// this.imgUrlList = [...this.imgUrlList, imgUrlList[index]];
// //this.picUrls = this.imgList.join(",");
// //this.picNames = this.imgListName.join(",");
// console.log('this.imgList', this.imgList);
// uni.hideLoading();
// },
// fail: (err) => {
// console.log(err);
// // this.$refs.toastRef.show({
// // type:"error",
// // text:""
// // })
// uni.hideLoading();
// },
// });
// });
// },
// });
}
deleteImg(index) {
this.deleteimgUrlList = JSON.parse(JSON.stringify(this.imgUrlList));
this.imgUrlList.splice(index, 1);
}
scanCodeOne() {
uni.scanCode({
scanType: ['barCode'],
success: (res) => {
this.orderNo = res.result;
},
fail(result) {
this.customToast(result);
},
});
}
async onSubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
// if (this.badMeg == '') {
// this.customToast('');
// return;
// }
}
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.quest {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
font-size: 18px;
font-weight: 600;
color: black;
}
.list {
margin-top: 15px;
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
.item-name {
.details {
display: flex;
font-size: 16px;
font-weight: 600;
// justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
}
.single-left {
display: flex;
// align-items: center;
// justify-content: space-around;
text-align: center;
margin-top: 12px;
margin-bottom: 20px;
border: 1px solid #eee;
}
.item {
margin-top: 15px;
width: 344px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.item1 {
margin-bottom: 3px;
white-space: 1px;
font-size: 17px;
font-weight: 600;
}
.item2 {
display: flex;
align-content: center;
justify-content: space-between;
.select {
font-size: 15px;
font-weight: 400;
display: flex;
// margin-left: 19px;
}
.input-box {
font-size: 13px;
font-weight: 400;
display: flex;
align-content: center;
margin-top: 2px;
.input {
font-size: 12px;
width: 65px;
padding: 1px 8px;
height: 20px;
box-sizing: border-box;
border: 1px solid #b6b6b6;
margin-left: 6px;
display: inline-block;
margin-right: 6px;
border-radius: 4px;
position: relative;
}
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
.item-name {
.quest {
text-align: center;
font-size: 18px;
font-weight: 600;
color: black;
margin-top: 7px;
margin-bottom: 17px;
}
.details {
justify-content: space-around;
display: flex;
font-size: 17px;
font-weight: 600;
// justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
}
}
.modal {
.upload-name {
padding: 10px 20px;
.name {
font-size: 17px;
font-weight: 600;
}
}
.photoList {
display: flex;
padding-top: 12rpx;
.chooseBtn {
width: 202rpx;
height: 202rpx;
background: #fafafa;
border-radius: 12rpx;
border: 2rpx dashed #e2e2e2;
display: flex;
justify-content: center;
align-items: center;
.inner {
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.desc {
font-size: 28rpx;
font-weight: 400;
color: #24252a;
line-height: 40rpx;
}
.img {
width: 50rpx;
height: 50rpx;
margin-bottom: 6rpx;
}
}
.photoBox {
width: 202rpx;
height: 202rpx;
background: #fafafa;
border-radius: 12rpx;
position: relative;
.closeBtn {
position: absolute;
top: -12rpx;
right: -12rpx;
z-index: 2;
width: 36rpx;
height: 36rpx;
.img {
width: 36rpx;
height: 36rpx;
}
}
.img {
width: 202rpx;
height: 202rpx;
border-radius: 12rpx;
}
}
.itemBox {
flex: 0 0 202rpx;
margin-right: 20rpx;
&:last-child {
margin-right: 0;
}
}
}
}
::v-deep .yjy-switch-container .yjy-switch-item {
width: 100%;
}
::v-deep .yjy-switch-container {
width: 50%;
}
::v-deep .u-radio__label {
font-size: 13px;
}
::v-deep #input-box1 .u-input__input {
width: 50px;
max-height: 15px;
font-size: 13px;
}
}
</style>

@ -0,0 +1,248 @@
<!-- 扫描rfid,选择缓存区根据选择的缓存区查询库位勾选是否取走托盘提交托盘变更信息 -->
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">巡检</view>
<view class="right"></view>
</view>
<u-tabs name="cate_name" count="cate_count" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
<view class="list" v-show="current == 0" v-for="(item, index) in listdata" :key="index">
<div class="list-top">
<div class="name">{{ item.itemq }}</div>
<div class="tag">{{ item.item2 }}</div>
<u-icon @click="linkdetails(item)" name="arrow-right" color="#2979ff" size="28"></u-icon>
</div>
<div class="item1">任务期限: {{ item.item3 }}</div>
<div class="item1">周期: {{ item.item4 }}</div>
<div class="item1">设备名称: {{ item.item5 }}</div>
<div class="item1">存在异常: {{ item.item6 }}</div>
</view>
<view class="list" v-show="current != 0" v-for="(item, index) in detailsdata" :key="index">
<div class="list-top">
<div class="name">{{ item.itemq }}</div>
<div class="tag tag1">{{ item.item2 }}</div>
<u-icon @click="linkdetailscheck(item)" name="arrow-right" color="#2979ff" size="28"></u-icon>
</div>
<div class="item1">任务期限: {{ item.item3 }}</div>
<div class="item1">周期: {{ item.item4 }}</div>
<div class="item1">设备名称: {{ item.item5 }}</div>
<div class="item1">存在异常: {{ item.item6 }}</div>
</view>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue';
//import { session } from '@/store/modules/session';
//import store from '@/store';
@Component({
components: {
chooseOne,
jPicker,
},
})
export default class ChangePalletNew extends BasePage {
model = model;
list: any = [
{
cate_name: '今日任务',
},
{
cate_name: '巡检记录',
},
];
current: any = 0;
moren = '选择缓存区';
shouciFocus = true;
zaiciFocus = false;
ischecked = false;
switchListText = [
{
title: '是',
value: 0,
},
{
title: '否',
value: 1,
},
];
listdata: any = [
{
itemq: '巡检任务1',
item2: '未巡检',
item3: '2023-08-01 - 2023-08-31',
item4: '每月巡检',
item5: 'XXXXX',
item6: '未发现异常',
item7: 'AF-0002',
item8: '测试设备1',
item9: '车间1',
item10: '产线1',
},
{
itemq: '今日任务',
item2: '今日任务',
item3: '今日任务',
item4: '今日任务',
item5: '今日任务',
item6: '今日任务',
},
];
detailsdata: any = [
{
itemq: '巡检任务1',
item2: '已巡检',
item3: '2023-08-01 - 2023-08-31',
item4: '每月巡检',
item5: 'XXXXX',
item6: '未发现异常',
},
{
itemq: '今日任务',
item2: '今日任务',
item3: '今日任务',
item4: '今日任务',
item5: '今日任务',
item6: '今日任务',
},
];
orderNoItemList: any = {};
productCodeList: any = {};
productCodelocList: any = {};
// remove: any = {};
async onReady() {
await this.model.getDictList();
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
location: any = '';
locationStatus: any = 1;
//
change(index) {
this.current = index;
console.log(this.current);
}
linkdetails(item) {
uni.navigateTo({
url: `/pages/equipment/Inspection/details?listitem=` + encodeURIComponent(JSON.stringify(item)),
});
}
linkdetailscheck(item) {
this.ischecked = true;
item.ischecked = true;
uni.navigateTo({
url: `/pages/equipment/Inspection/detailsview?listitem=` + encodeURIComponent(JSON.stringify(item)),
});
}
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.quest {
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
padding: 7px 8px 7px 12px;
box-sizing: border-box;
text-align: center;
font-size: 18px;
font-weight: 600;
color: black;
}
.list {
margin-top: 15px;
width: 367px;
border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px;
background-color: #f2f2f2;
padding: 7px 8px 7px 8px;
box-sizing: border-box;
.list-top {
display: flex;
justify-content: space-between;
position: relative;
height: 24px;
align-items: center;
margin-bottom: 10px;
.name {
font-weight: 600;
font-size: 15px;
}
.tag {
width: 71px;
height: 24px;
border-radius: 5px;
text-align: center;
line-height: 24px;
// box-shadow: 0 1rpx 20rpx 0 #54B0D7;
border: 2px solid #54b0d7;
position: absolute;
right: 18px;
color: #54b0d7;
}
.tag1 {
border: 2px solid #83c874;
color: #83c874;
}
}
.item1 {
margin-bottom: 10px;
white-space: 1px;
}
}
::v-deep .yjy-switch-container .yjy-switch-item {
width: 100%;
}
::v-deep .yjy-switch-container {
width: 50%;
}
}
</style>

@ -0,0 +1,73 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.mes.PalletChange',
})
export class ChangePalletNew extends VuexModule {
orderNoItemList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.get(url.lanjumes.product.getInfoByRfid, {
//loginName: session.loginName,
params: {
factoryCode: session.FactoryCode,
rfid: orderNo,
},
});
const orderNoItemList = result.data;
return { orderNoItemList };
}
@MutationAction
async empty() {
const orderNoItemList = [];
return { orderNoItemList };
}
SubmitCode: any = '';
//托盘信息变更x
@MutationAction
async palletInforUpdate(params: any) {
const result: any = await http.post(url.lanjumes.product.palletInforUpdate, params);
const SubmitCode = result.code;
return { SubmitCode };
}
//库位下拉列表
DictList: any = [];
@MutationAction
async getpalletLocation(params) {
const result: any = await http.post(url.lanjumes.product.getpalletLocation, {
productionState: params,
});
const DictListoild: [] = result;
if (DictListoild) {
const DictList = DictListoild.map((item: any) => ({
label: item.location,
value: item.location,
}));
return { DictList };
}
}
//缓存区下拉列表
locList: any = [];
@MutationAction
async getDictList() {
const result: any = await http.get(url.lanjumes.product.getDictList, {
params: {
equipmentTypeCode: 'cache',
},
});
const DictListoild: [] = result.data;
const locList = DictListoild.map((item: any) => ({
label: item.itemName,
value: item.itemCode,
}));
return { locList };
}
}
export default getModule(ChangePalletNew);

@ -0,0 +1,290 @@
<!-- 扫描rfid,选择缓存区根据选择的缓存区查询库位勾选是否取走托盘提交托盘变更信息 -->
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">托盘变更</view>
<view class="right"></view>
</view>
<u-form class="form" ref="form" label-width="180rpx">
<!-- 单号 -->
<view class="single">
<view class="single-left">
<view>rfid:</view>
<u-search placeholder="请扫描" :focus="shouciFocus" v-model="orderNo" :show-action="false" @search="query"></u-search>
</view>
<view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view>
</view>
<u-form-item label="物料编码">
<u-input :disabled="true" v-model="orderNoItemList.productCode" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 机台 -->
<u-form-item label="规格">
<u-input :disabled="true" v-model="orderNoItemList.productSpc" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 产品 -->
<u-form-item label="产品">
<u-input :disabled="true" v-model="orderNoItemList.productName" placeholder="" />
</u-form-item>
<!-- 工单 -->
<u-form-item label="工单">
<u-input :disabled="true" v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="缓存区:">
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" showKey="label" valKey="value" :val="productCodelocList.value" :options="model.locList" />
</u-form-item>
<u-form-item label="库位:">
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductCode" showKey="label" valKey="value" :val="productCodeList.value" :options="model.DictList" />
</u-form-item>
<!-- <u-form-item label="托盘码:">
<u-search placeholder="请扫描托盘码" v-model="location" :show-action="false"></u-search>
</u-form-item> -->
<u-form-item label="是否取走托盘:">
<choose-one @switchfunction="switchChangeFun" :switchType="'text'" :defaultColor="'#4A72F9'" :highColor="'#FFFFFF'" :defaultValue="locationStatus" :switchList="switchListText"></choose-one>
</u-form-item>
</u-form>
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onsubmit" type="primary">确定</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue';
//import { session } from '@/store/modules/session';
//import store from '@/store';
@Component({
components: {
chooseOne,
jPicker,
},
})
export default class ChangePalletNew extends BasePage {
model = model;
moren = '选择缓存区';
shouciFocus = true;
zaiciFocus = false;
switchListText = [
{
title: '是',
value: 0,
},
{
title: '否',
value: 1,
},
];
orderNoItemList: any = {};
productCodeList: any = {};
productCodelocList: any = {};
// remove: any = {};
async onReady() {
await this.model.getDictList();
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
location: any = '';
locationStatus: any = 1;
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
await this.model.queryOrderNo(this.orderNo);
//console.log('???',model.orderNoItemList)
if (model.orderNoItemList == undefined) {
this.customToast('该rfid未查到数据请使用正确的rfid');
} else {
this.orderNoItemList = model.orderNoItemList;
}
//console.log('this.orderNoItemList', this.orderNoItemList);
}
generateGUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (Math.random() * 16) | 0,
v = c === 'x' ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
}
async onsubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
var currentDate = new Date();
//
var year = currentDate.getFullYear();
var month = ('0' + (currentDate.getMonth() + 1)).slice(-2);
var day = ('0' + currentDate.getDate()).slice(-2);
var hours = ('0' + currentDate.getHours()).slice(-2);
var minutes = ('0' + currentDate.getMinutes()).slice(-2);
var seconds = ('0' + currentDate.getSeconds()).slice(-2);
// "YYYY-MM-DD HH:mm:ss"
var formattedDate = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
let params = {
rfidNo: this.orderNo,
reqCode: this.generateGUID(),
reqTime: formattedDate,
sku: this.orderNoItemList.productCode,
spec: this.orderNoItemList.productSpc,
productionState: this.productCodelocList.value, //2323
//location: this.location,
locationStatus: this.locationStatus, //
location: this.productCodeList.value, //
//productionState: this.productCodeList.value,
};
await this.model.palletInforUpdate(params);
if (model.SubmitCode == 10) {
this.uni.showToast({ title: '成功' });
this.Clear();
}
}
Clear() {
this.orderNo = '';
this.location = '';
this.locationStatus = 1;
this.productCodeList = {};
this.productCodelocList = {};
this.shouciFocus = false;
this.model.empty();
this.$nextTick(() => {
this.shouciFocus = true;
});
}
switchChangeFun(e) {
//console.log(e);
this.locationStatus = e.swithcSelectItem.value;
}
async selectProductCode(e: any) {
this.productCodeList = e.pickerName;
}
async selectProductlocCode(e: any) {
this.productCodelocList = e.pickerName;
await this.model.getpalletLocation(this.productCodelocList.value); //23
}
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.form {
background-color: #fff;
padding: 40rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 30rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 100rpx;
display: flex;
.single-left {
width: 80%;
height: 100%;
display: flex;
view {
width: 142rpx;
height: 100%;
line-height: 100rpx;
}
}
.single-right {
button {
margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
::v-deep .yjy-switch-container .yjy-switch-item {
width: 100%;
}
::v-deep .yjy-switch-container {
width: 50%;
}
}
</style>

@ -0,0 +1,73 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.mes.PalletChange',
})
export class ChangePalletNew extends VuexModule {
orderNoItemList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.get(url.lanjumes.product.getInfoByRfid, {
//loginName: session.loginName,
params: {
factoryCode: session.FactoryCode,
rfid: orderNo,
},
});
const orderNoItemList = result.data;
return { orderNoItemList };
}
@MutationAction
async empty() {
const orderNoItemList = [];
return { orderNoItemList };
}
SubmitCode: any = '';
//托盘信息变更x
@MutationAction
async palletInforUpdate(params: any) {
const result: any = await http.post(url.lanjumes.product.palletInforUpdate, params);
const SubmitCode = result.code;
return { SubmitCode };
}
//库位下拉列表
DictList: any = [];
@MutationAction
async getpalletLocation(params) {
const result: any = await http.post(url.lanjumes.product.getpalletLocation, {
productionState: params,
});
const DictListoild: [] = result;
if (DictListoild) {
const DictList = DictListoild.map((item: any) => ({
label: item.location,
value: item.location,
}));
return { DictList };
}
}
//缓存区下拉列表
locList: any = [];
@MutationAction
async getDictList() {
const result: any = await http.get(url.lanjumes.product.getDictList, {
params: {
equipmentTypeCode: 'cache',
},
});
const DictListoild: [] = result.data;
const locList = DictListoild.map((item: any) => ({
label: item.itemName,
value: item.itemCode,
}));
return { locList };
}
}
export default getModule(ChangePalletNew);

@ -0,0 +1,290 @@
<!-- 扫描rfid,选择缓存区根据选择的缓存区查询库位勾选是否取走托盘提交托盘变更信息 -->
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">托盘变更</view>
<view class="right"></view>
</view>
<u-form class="form" ref="form" label-width="180rpx">
<!-- 单号 -->
<view class="single">
<view class="single-left">
<view>rfid:</view>
<u-search placeholder="请扫描" :focus="shouciFocus" v-model="orderNo" :show-action="false" @search="query"></u-search>
</view>
<view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view>
</view>
<u-form-item label="物料编码">
<u-input :disabled="true" v-model="orderNoItemList.productCode" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 机台 -->
<u-form-item label="规格">
<u-input :disabled="true" v-model="orderNoItemList.productSpc" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 产品 -->
<u-form-item label="产品">
<u-input :disabled="true" v-model="orderNoItemList.productName" placeholder="" />
</u-form-item>
<!-- 工单 -->
<u-form-item label="工单">
<u-input :disabled="true" v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="缓存区:">
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" showKey="label" valKey="value" :val="productCodelocList.value" :options="model.locList" />
</u-form-item>
<u-form-item label="库位:">
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductCode" showKey="label" valKey="value" :val="productCodeList.value" :options="model.DictList" />
</u-form-item>
<!-- <u-form-item label="托盘码:">
<u-search placeholder="请扫描托盘码" v-model="location" :show-action="false"></u-search>
</u-form-item> -->
<u-form-item label="是否取走托盘:">
<choose-one @switchfunction="switchChangeFun" :switchType="'text'" :defaultColor="'#4A72F9'" :highColor="'#FFFFFF'" :defaultValue="locationStatus" :switchList="switchListText"></choose-one>
</u-form-item>
</u-form>
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onsubmit" type="primary">确定</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue';
//import { session } from '@/store/modules/session';
//import store from '@/store';
@Component({
components: {
chooseOne,
jPicker,
},
})
export default class ChangePalletNew extends BasePage {
model = model;
moren = '选择缓存区';
shouciFocus = true;
zaiciFocus = false;
switchListText = [
{
title: '是',
value: 0,
},
{
title: '否',
value: 1,
},
];
orderNoItemList: any = {};
productCodeList: any = {};
productCodelocList: any = {};
// remove: any = {};
async onReady() {
await this.model.getDictList();
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
location: any = '';
locationStatus: any = 1;
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
await this.model.queryOrderNo(this.orderNo);
//console.log('???',model.orderNoItemList)
if (model.orderNoItemList == undefined) {
this.customToast('该rfid未查到数据请使用正确的rfid');
} else {
this.orderNoItemList = model.orderNoItemList;
}
//console.log('this.orderNoItemList', this.orderNoItemList);
}
generateGUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (Math.random() * 16) | 0,
v = c === 'x' ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
}
async onsubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
var currentDate = new Date();
//
var year = currentDate.getFullYear();
var month = ('0' + (currentDate.getMonth() + 1)).slice(-2);
var day = ('0' + currentDate.getDate()).slice(-2);
var hours = ('0' + currentDate.getHours()).slice(-2);
var minutes = ('0' + currentDate.getMinutes()).slice(-2);
var seconds = ('0' + currentDate.getSeconds()).slice(-2);
// "YYYY-MM-DD HH:mm:ss"
var formattedDate = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
let params = {
rfidNo: this.orderNo,
reqCode: this.generateGUID(),
reqTime: formattedDate,
sku: this.orderNoItemList.productCode,
spec: this.orderNoItemList.productSpc,
productionState: this.productCodelocList.value, //2323
//location: this.location,
locationStatus: this.locationStatus, //
location: this.productCodeList.value, //
//productionState: this.productCodeList.value,
};
await this.model.palletInforUpdate(params);
if (model.SubmitCode == 10) {
this.uni.showToast({ title: '成功' });
this.Clear();
}
}
Clear() {
this.orderNo = '';
this.location = '';
this.locationStatus = 1;
this.productCodeList = {};
this.productCodelocList = {};
this.shouciFocus = false;
this.model.empty();
this.$nextTick(() => {
this.shouciFocus = true;
});
}
switchChangeFun(e) {
//console.log(e);
this.locationStatus = e.swithcSelectItem.value;
}
async selectProductCode(e: any) {
this.productCodeList = e.pickerName;
}
async selectProductlocCode(e: any) {
this.productCodelocList = e.pickerName;
await this.model.getpalletLocation(this.productCodelocList.value); //23
}
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.form {
background-color: #fff;
padding: 40rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 30rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 100rpx;
display: flex;
.single-left {
width: 80%;
height: 100%;
display: flex;
view {
width: 142rpx;
height: 100%;
line-height: 100rpx;
}
}
.single-right {
button {
margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
::v-deep .yjy-switch-container .yjy-switch-item {
width: 100%;
}
::v-deep .yjy-switch-container {
width: 50%;
}
}
</style>

@ -0,0 +1,73 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.mes.PalletChange',
})
export class ChangePalletNew extends VuexModule {
orderNoItemList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.get(url.lanjumes.product.getInfoByRfid, {
//loginName: session.loginName,
params: {
factoryCode: session.FactoryCode,
rfid: orderNo,
},
});
const orderNoItemList = result.data;
return { orderNoItemList };
}
@MutationAction
async empty() {
const orderNoItemList = [];
return { orderNoItemList };
}
SubmitCode: any = '';
//托盘信息变更x
@MutationAction
async palletInforUpdate(params: any) {
const result: any = await http.post(url.lanjumes.product.palletInforUpdate, params);
const SubmitCode = result.code;
return { SubmitCode };
}
//库位下拉列表
DictList: any = [];
@MutationAction
async getpalletLocation(params) {
const result: any = await http.post(url.lanjumes.product.getpalletLocation, {
productionState: params,
});
const DictListoild: [] = result;
if (DictListoild) {
const DictList = DictListoild.map((item: any) => ({
label: item.location,
value: item.location,
}));
return { DictList };
}
}
//缓存区下拉列表
locList: any = [];
@MutationAction
async getDictList() {
const result: any = await http.get(url.lanjumes.product.getDictList, {
params: {
equipmentTypeCode: 'cache',
},
});
const DictListoild: [] = result.data;
const locList = DictListoild.map((item: any) => ({
label: item.itemName,
value: item.itemCode,
}));
return { locList };
}
}
export default getModule(ChangePalletNew);

@ -0,0 +1,290 @@
<!-- 扫描rfid,选择缓存区根据选择的缓存区查询库位勾选是否取走托盘提交托盘变更信息 -->
<template>
<view class="page-product-receipt">
<view class="header" :style="{ backgroundColor: `rgba(250, 53, 52, ${scrollTop / 100})` }">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">托盘变更</view>
<view class="right"></view>
</view>
<u-form class="form" ref="form" label-width="180rpx">
<!-- 单号 -->
<view class="single">
<view class="single-left">
<view>rfid:</view>
<u-search placeholder="请扫描" :focus="shouciFocus" v-model="orderNo" :show-action="false" @search="query"></u-search>
</view>
<view class="single-right">
<u-button type="primary" @click="query"></u-button>
</view>
</view>
<u-form-item label="物料编码">
<u-input :disabled="true" v-model="orderNoItemList.productCode" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 机台 -->
<u-form-item label="规格">
<u-input :disabled="true" v-model="orderNoItemList.productSpc" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 产品 -->
<u-form-item label="产品">
<u-input :disabled="true" v-model="orderNoItemList.productName" placeholder="" />
</u-form-item>
<!-- 工单 -->
<u-form-item label="工单">
<u-input :disabled="true" v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="缓存区:">
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" showKey="label" valKey="value" :val="productCodelocList.value" :options="model.locList" />
</u-form-item>
<u-form-item label="库位:">
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductCode" showKey="label" valKey="value" :val="productCodeList.value" :options="model.DictList" />
</u-form-item>
<!-- <u-form-item label="托盘码:">
<u-search placeholder="请扫描托盘码" v-model="location" :show-action="false"></u-search>
</u-form-item> -->
<u-form-item label="是否取走托盘:">
<choose-one @switchfunction="switchChangeFun" :switchType="'text'" :defaultColor="'#4A72F9'" :highColor="'#FFFFFF'" :defaultValue="locationStatus" :switchList="switchListText"></choose-one>
</u-form-item>
</u-form>
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="onsubmit" type="primary">确定</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue';
//import { session } from '@/store/modules/session';
//import store from '@/store';
@Component({
components: {
chooseOne,
jPicker,
},
})
export default class ChangePalletNew extends BasePage {
model = model;
moren = '选择缓存区';
shouciFocus = true;
zaiciFocus = false;
switchListText = [
{
title: '是',
value: 0,
},
{
title: '否',
value: 1,
},
];
orderNoItemList: any = {};
productCodeList: any = {};
productCodelocList: any = {};
// remove: any = {};
async onReady() {
await this.model.getDictList();
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
location: any = '';
locationStatus: any = 1;
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
await this.model.queryOrderNo(this.orderNo);
//console.log('???',model.orderNoItemList)
if (model.orderNoItemList == undefined) {
this.customToast('该rfid未查到数据请使用正确的rfid');
} else {
this.orderNoItemList = model.orderNoItemList;
}
//console.log('this.orderNoItemList', this.orderNoItemList);
}
generateGUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (Math.random() * 16) | 0,
v = c === 'x' ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
}
async onsubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
this.customToast('请输入nficl');
return;
}
var currentDate = new Date();
//
var year = currentDate.getFullYear();
var month = ('0' + (currentDate.getMonth() + 1)).slice(-2);
var day = ('0' + currentDate.getDate()).slice(-2);
var hours = ('0' + currentDate.getHours()).slice(-2);
var minutes = ('0' + currentDate.getMinutes()).slice(-2);
var seconds = ('0' + currentDate.getSeconds()).slice(-2);
// "YYYY-MM-DD HH:mm:ss"
var formattedDate = year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
let params = {
rfidNo: this.orderNo,
reqCode: this.generateGUID(),
reqTime: formattedDate,
sku: this.orderNoItemList.productCode,
spec: this.orderNoItemList.productSpc,
productionState: this.productCodelocList.value, //2323
//location: this.location,
locationStatus: this.locationStatus, //
location: this.productCodeList.value, //
//productionState: this.productCodeList.value,
};
await this.model.palletInforUpdate(params);
if (model.SubmitCode == 10) {
this.uni.showToast({ title: '成功' });
this.Clear();
}
}
Clear() {
this.orderNo = '';
this.location = '';
this.locationStatus = 1;
this.productCodeList = {};
this.productCodelocList = {};
this.shouciFocus = false;
this.model.empty();
this.$nextTick(() => {
this.shouciFocus = true;
});
}
switchChangeFun(e) {
//console.log(e);
this.locationStatus = e.swithcSelectItem.value;
}
async selectProductCode(e: any) {
this.productCodeList = e.pickerName;
}
async selectProductlocCode(e: any) {
this.productCodelocList = e.pickerName;
await this.model.getpalletLocation(this.productCodelocList.value); //23
}
}
</script>
<style lang="scss" scoped>
.page-product-receipt {
background: #f2f2f2 linear-gradient(0deg, #f2f2f2 0%, #f8262c 51%, #d9001b 100%) no-repeat;
background-size: 100% 600rpx;
padding: 118rpx 30rpx 162rpx;
min-height: 100%;
.header {
position: fixed;
top: 0rpx;
left: 0;
right: 0;
z-index: 99;
display: flex;
height: 120rpx;
line-height: 88rpx;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
padding: 45rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.form {
background-color: #fff;
padding: 40rpx;
border-radius: 10rpx;
box-shadow: 0 0 20rpx 0 rgba(128, 128, 128, 0.2);
.u-form-item {
padding: 30rpx 0;
line-height: 35rpx;
.Transfer {
width: 280rpx;
height: 64rpx;
background: rgb(242, 242, 242);
border-radius: 110rpx;
}
}
.single {
width: 100%;
height: 100rpx;
display: flex;
.single-left {
width: 80%;
height: 100%;
display: flex;
view {
width: 142rpx;
height: 100%;
line-height: 100rpx;
}
}
.single-right {
button {
margin-top: 15rpx;
width: 140rpx;
height: 70rpx;
background-color: #fa3534;
}
}
}
}
.bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: #ffffff;
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
::v-deep .yjy-switch-container .yjy-switch-item {
width: 100%;
}
::v-deep .yjy-switch-container {
width: 50%;
}
}
</style>

@ -0,0 +1,73 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
import { session } from '@/store/modules/session';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.mes.PalletChange',
})
export class ChangePalletNew extends VuexModule {
orderNoItemList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.get(url.lanjumes.product.getInfoByRfid, {
//loginName: session.loginName,
params: {
factoryCode: session.FactoryCode,
rfid: orderNo,
},
});
const orderNoItemList = result.data;
return { orderNoItemList };
}
@MutationAction
async empty() {
const orderNoItemList = [];
return { orderNoItemList };
}
SubmitCode: any = '';
//托盘信息变更x
@MutationAction
async palletInforUpdate(params: any) {
const result: any = await http.post(url.lanjumes.product.palletInforUpdate, params);
const SubmitCode = result.code;
return { SubmitCode };
}
//库位下拉列表
DictList: any = [];
@MutationAction
async getpalletLocation(params) {
const result: any = await http.post(url.lanjumes.product.getpalletLocation, {
productionState: params,
});
const DictListoild: [] = result;
if (DictListoild) {
const DictList = DictListoild.map((item: any) => ({
label: item.location,
value: item.location,
}));
return { DictList };
}
}
//缓存区下拉列表
locList: any = [];
@MutationAction
async getDictList() {
const result: any = await http.get(url.lanjumes.product.getDictList, {
params: {
equipmentTypeCode: 'cache',
},
});
const DictListoild: [] = result.data;
const locList = DictListoild.map((item: any) => ({
label: item.itemName,
value: item.itemCode,
}));
return { locList };
}
}
export default getModule(ChangePalletNew);

@ -0,0 +1,124 @@
<template>
<view class="page-raw-ingoods">
<view class="header">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">设备管理</view>
<view class="right"></view>
</view>
<view class="container">
<view class="toptitle">
<view class="shuxian"></view>
<view class="title"> 菜单 </view>
</view>
<!-- <view v-for="item in newmenuList" :key="item.path"> -->
<view class="tubiao">
<u-icon
v-for="item in newmenuList"
:key="item.path"
@click="
uni.navigateTo({
url: item.path,
})
"
:label="item.menuName"
label-pos="bottom"
size="80"
name="../../static/icons/icon-01.png"
></u-icon>
</view>
<!-- </view> -->
</view>
</view>
</template>
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import { session } from '@/store/modules/session';
@Component
export default class RawAppointment extends BasePage {
childData: any;
menuList = session.getMenus;
newmenuList: any = [];
onReady() {
this.newmenuList = this.menuList.filter((item) => item.perms == 'equipmentlist');
console.log('1234', this.menuList);
}
}
</script>
<style lang="scss" scoped>
.page-raw-ingoods {
background-color: #f4f7fc;
padding-top: 150rpx;
min-height: 100%;
.header {
position: fixed;
top: 0;
// padding-top: 18px;
left: 0;
right: 0;
z-index: 99;
display: -webkit-box;
display: -webkit-flex;
display: flex;
background-color: #d9001b;
/* height: 46px; */
line-height: 46px;
color: #fff;
font-size: 34rpx;
font-weight: 500;
text-align: center;
box-shadow: 0 1px 2px #e87675;
padding: 60rpx 0rpx 0rpx;
.title {
flex: 3;
}
.left,
.right {
flex: 1;
}
.icon {
display: flex;
justify-content: center;
align-items: center;
width: 88rpx;
height: 88rpx;
}
}
.container {
background-color: #ffffff;
padding: 20rpx;
border: 2rpx solid #9093992e;
margin-top: 12rpx;
border-radius: 4rpx;
// padding: 30rpx 15rpx 0;
.toptitle {
display: flex;
flex-direction: row;
padding: 6rpx;
.shuxian {
border: 2rpx solid red;
margin-right: 24rpx;
}
.title {
// margin-bottom: 10rpx;
}
}
.tubiao {
margin-left: 40rpx;
}
}
}
::v-deep .u-icon {
padding: 17rpx;
}
::v-deep .u-icon__label {
width: 124rpx;
text-align: center;
}
</style>

@ -77,7 +77,7 @@ export default class RawHome extends BasePage {
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' || item.perms == 'equipment');
console.log('1234', this.menuList);
}
onLoad() {

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>icon-shanchu</title>
<g id="页面-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="差异记录" transform="translate(-115.000000, -687.000000)">
<g id="icon-shanchu" transform="translate(115.000000, 687.000000)">
<circle id="椭圆形" fill="#4E4C4C" cx="9" cy="9" r="9"></circle>
<polygon id="路径" fill-opacity="0.85" fill="#FFFFFF" points="6.7372583 5.60588745 8.99929289 7.86933626 11.2627417 5.60588745 12.3941125 6.7372583 10.1306637 9.00070711 12.3941125 11.2627417 11.2627417 12.3941125 8.99929289 10.132078 6.7372583 12.3941125 5.60588745 11.2627417 7.86792204 9.00070711 5.60588745 6.7372583"></polygon>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 939 B

@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
const qianzhuione = '/dev-api'; // '/prod-api'生产环境 // '/dev-api'开发环境是调后端本地时使用
// const qianzhuione = '/dev-api'; // '/prod-api'生产环境 // '/dev-api'开发环境是调后端本地时使用
const qianzhuione = '/prod-api';
export const url = {
wmspda: {
system: {

Loading…
Cancel
Save