新增页面

master
LAPTOP-R6EHHS26\86155 2 years ago
parent 01d07f7cb5
commit e07cfcfae2

@ -8,106 +8,122 @@
"path": "pages/login/login/index", "path": "pages/login/login/index",
"style": { "style": {
"navigationBarTitleText": "登录", "navigationBarTitleText": "登录",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/shouye/index", "path": "pages/shouye/index",
"style": { "style": {
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/shouye/me", "path": "pages/shouye/me",
"style": { "style": {
"navigationBarTitleText": "我的", "navigationBarTitleText": "我的",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/index", "path": "pages/wms/index",
"style": { "style": {
"navigationBarTitleText": "wms菜单", "navigationBarTitleText": "wms菜单",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/mes/index", "path": "pages/mes/index",
"style": { "style": {
"navigationBarTitleText": "mes菜单", "navigationBarTitleText": "mes菜单",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/equipment/index", "path": "pages/equipment/index",
"style": { "style": {
"navigationBarTitleText": "设备管理", "navigationBarTitleText": "设备管理",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/equipment/Inspection/index", "path": "pages/equipment/Inspection/index",
"style": { "style": {
"navigationBarTitleText": "巡检", "navigationBarTitleText": "巡检",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/equipment/Inspection/details", "path": "pages/equipment/Inspection/details",
"style": { "style": {
"navigationBarTitleText": "巡检详情", "navigationBarTitleText": "巡检详情",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/equipment/Inspection/detailsview", "path": "pages/equipment/Inspection/detailsview",
"style": { "style": {
"navigationBarTitleText": "巡检查看", "navigationBarTitleText": "巡检查看",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/equipment/Spotcheck/index", "path": "pages/equipment/Spotcheck/index",
"style": { "style": {
"navigationBarTitleText": "点检", "navigationBarTitleText": "点检",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/equipment/Upkeep/index", "path": "pages/equipment/Upkeep/index",
"style": { "style": {
"navigationBarTitleText": "保养", "navigationBarTitleText": "保养",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/equipment/Repair/index", "path": "pages/equipment/Repair/index",
"style": { "style": {
"navigationBarTitleText": "维修", "navigationBarTitleText": "维修",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Repair/details",
"style": {
"navigationBarTitleText": "维修详情",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Repair/repairing",
"style": {
"navigationBarTitleText": "维修中",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Repair/Sparepartlist",
"style": {
"navigationBarTitleText": "备件申领",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
} }
}, },
// {
// "path": "pages/equipment/repair/index",
// "style": {
// "navigationBarTitleText": "报修",
// "navigationStyle": "custom", //
// "navigationBarTextStyle": "white" // white-black-
// }
// },
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
@ -120,148 +136,140 @@
"navigationBarTitleText": "演示" "navigationBarTitleText": "演示"
} }
}, },
// {
// "path": "pages/login/area/index",
// "style": {
// "navigationBarTitleText": "登录区选择",
// "navigationStyle": "custom", //
// "navigationBarTextStyle": "white" // white-black-
// }
// },
{ {
"path": "pages/mes/ProductionQtyInsp/index", "path": "pages/mes/ProductionQtyInsp/index",
"style": { "style": {
"navigationBarTitleText": "生产质检", "navigationBarTitleText": "生产质检",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/mes/ProductionQtyInsp/listdata", "path": "pages/mes/ProductionQtyInsp/listdata",
"style": { "style": {
"navigationBarTitleText": "生产质检", "navigationBarTitleText": "生产质检",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/mes/ProductionQtyInsp/detail", "path": "pages/mes/ProductionQtyInsp/detail",
"style": { "style": {
"navigationBarTitleText": "生产质检详细", "navigationBarTitleText": "生产质检详细",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/Raw/ReceiveSRM/index", "path": "pages/wms/Raw/ReceiveSRM/index",
"style": { "style": {
"navigationBarTitleText": "采购收货SRM", "navigationBarTitleText": "采购收货SRM",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/Raw/ReceiveSRM/detail", "path": "pages/wms/Raw/ReceiveSRM/detail",
"style": { "style": {
"navigationBarTitleText": "采购收货SRM详细", "navigationBarTitleText": "采购收货SRM详细",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/Raw/ReceivePO/index", "path": "pages/wms/Raw/ReceivePO/index",
"style": { "style": {
"navigationBarTitleText": "采购收货PO", "navigationBarTitleText": "采购收货PO",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/Raw/ReceivePO/detail", "path": "pages/wms/Raw/ReceivePO/detail",
"style": { "style": {
"navigationBarTitleText": "采购收货PO详细", "navigationBarTitleText": "采购收货PO详细",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/Raw/PurchaseWHSRM/index", "path": "pages/wms/Raw/PurchaseWHSRM/index",
"style": { "style": {
"navigationBarTitleText": "采购入库SRM", "navigationBarTitleText": "采购入库SRM",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/Raw/PurchaseWHSRM/detail", "path": "pages/wms/Raw/PurchaseWHSRM/detail",
"style": { "style": {
"navigationBarTitleText": "采购入库SRM详细", "navigationBarTitleText": "采购入库SRM详细",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/Raw/PurchaseWHPO/index", "path": "pages/wms/Raw/PurchaseWHPO/index",
"style": { "style": {
"navigationBarTitleText": "采购入库PO", "navigationBarTitleText": "采购入库PO",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/Raw/PurchaseWHPO/detail", "path": "pages/wms/Raw/PurchaseWHPO/detail",
"style": { "style": {
"navigationBarTitleText": "采购入库PO详细", "navigationBarTitleText": "采购入库PO详细",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/Raw/Requisition/index", "path": "pages/wms/Raw/Requisition/index",
"style": { "style": {
"navigationBarTitleText": "生产领料", "navigationBarTitleText": "生产领料",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/product/SaleOutWH/index", "path": "pages/wms/product/SaleOutWH/index",
"style": { "style": {
"navigationBarTitleText": "成品销售出库", "navigationBarTitleText": "成品销售出库",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/wms/product/OfflineStorage/index", "path": "pages/wms/product/OfflineStorage/index",
"style": { "style": {
"navigationBarTitleText": "成品下线入库", "navigationBarTitleText": "成品下线入库",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/mes/PalletChange/index", "path": "pages/mes/PalletChange/index",
"style": { "style": {
"navigationBarTitleText": "下机台设置", "navigationBarTitleText": "下机台设置",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/mes/ChangePalletNew/index", "path": "pages/mes/ChangePalletNew/index",
"style": { "style": {
"navigationBarTitleText": "托盘变更", "navigationBarTitleText": "托盘变更",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
}, },
{ {
"path": "pages/mes/Pallethandling/index", "path": "pages/mes/Pallethandling/index",
"style": { "style": {
"navigationBarTitleText": "异常托盘处理", "navigationBarTitleText": "异常托盘处理",
"navigationStyle": "custom", // "navigationStyle": "custom",
"navigationBarTextStyle": "white" // white-black- "navigationBarTextStyle": "white"
} }
} }
], ],

@ -0,0 +1,347 @@
<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>
<view style="margin: 20px">
<wyb-table ref="table" :headers="headers" :contents="tableData" enable-check="single" width="auto" first-col-bg-color="#ffffff" checker-color="#000000" @onCheck="changeContent" show-left-and-right-border />
</view>
<view class="bottom-bar">
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="gozhijian" type="primary">质检</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="goxiangxi"></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 jPicker from '@/components/J-Picker/jPicker.vue';
import model from './model';
//import { session } from '@/store/modules/session';
//import wybTable from '@/components/wyb-table/wyb-table.vue';
@Component({
components: {
jPicker,
},
})
export default class ProductionQtyInsplist extends BasePage {
model = model;
rowdata: any = {};
headers = [
{
label: '序号',
key: 'index',
width: 100,
},
{
label: 'rfid',
key: 'rfid',
width: 320,
},
{
label: '订单',
key: 'orderCode',
},
{
label: '机台',
key: 'machineName',
},
{
label: '产品',
key: 'productName',
width: 220,
},
{
label: '工单',
key: 'workorderCode',
width: 220,
},
// {
// label: '',
// key: 'licensePlateNumber',
// },
{
label: '不良描述',
key: 'badMeg',
},
// {
// label: '',
// key: 'checkPeople',
// },
];
tableData: any = [];
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
// this.remove = this.model.WlList[0];
// }
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
onShow() {
this.query();
}
changeContent(e) {
//console.log('eee', e.data);
this.rowdata = e.data[0]?.lineData;
// uni.$emit('changeContent',e);
}
gozhijian() {
this.uni.navigateTo({
url: this.page.mes.ProductionQtyInsp,
});
}
goxiangxi() {
//debugger
//console.log('xssss',this.rowdata);
if (JSON.stringify(this.rowdata) === '{}' || this.rowdata === undefined) {
this.customToast('请选择一行进行查看');
} else {
this.model.rowdata = this.rowdata;
this.uni.navigateTo({
url: this.page.mes.ProductionQtyInspDetail,
});
}
}
async query() {
//this.tableData = [];
await this.model.queryhandChecklist();
//console.log('1234567', this.model.Checklist);
this.tableData = this.model.Checklist;
this.tableData.map((item, index) => {
item.index = index + 1;
});
//console.log('this.tableData', model.Checklist);
//this.productCodeList = this.model.productCodeList[0];
//this.histroyItem = this.model.orderNoItemList[0];
}
histroyItem: any = {};
barcode: any = '';
// async onSubmit() {
// if (this.orderNo == '' || this.orderNo.length == 0) {
// this.customToast('nficl');
// return;
// }
// if (this.histroyItem == {} || !this.histroyItem.productCode) {
// this.customToast(this.$t('message.AppendMateriel5') as string);
// return;
// }
// if (this.barcode == '' || this.barcode.length == 0) {
// this.customToast(this.$t('message.barcode') as string);
// return;
// }
// let params = {
// loginName: session.loginName,
// orderNo: this.orderNo,
// orderItem: this.histroyItem.orderItem,
// productCode: this.histroyItem.productCode,
// productDescZh: this.histroyItem.productDescZh,
// orderType: this.histroyItem.orderType,
// barcode: this.barcode,
// // locCode: this.remove.value,
// };
// await this.model.OnSubmit(params);
// if (this.model.SubmitCode == '1') {
// this.customToast(this.$t('message.Warehouse_Tip9') as string);
// this.barcode = '';
// this.histroyItem = {};
// this.productCodeList = {};
// this.model.empty();
// await this.query();
// }
// }
}
</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;
}
.button-bar {
}
.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;
padding: 9px 0px;
&:last-child {
margin-right: 0;
}
}
// /deep/ .remarksBox textarea {
// font-size: 24rpx;
// }
}
}
// .wyb-table-scroll-view {
// width: auto !important;
// }
</style>

@ -0,0 +1,583 @@
<!-- 扫描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">
<div class="item-name">
<div class="quest">工单号: {{ detailsinfolist.orderCode }}</div>
<div class="details">
<div>设备编码: {{ detailsinfolist.equipmentCode }}</div>
<div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div>
</div>
<div class="details">
<div>车间: {{ detailsinfocontent.planWorkshop }}</div>
<div style="margin-left: 42px">工作中心: {{ detailsinfocontent.workCenterName }}</div>
</div>
</div>
<view class="single-left">
<!-- <view>扫描设备码:</view> -->
<u-search style="border: 1px solid #a19d9d" placeholder="请扫描" @search="search(orderNo)" :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-show="isaccord" v-for="(item, index) in detailsinfolist.detailList" :key="index">
<div class="item1">检查项: {{ item.itemName }}</div>
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="n.disabled">
{{ n.name }}
</u-radio>
</u-radio-group>
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item1.detailReach" @blur="blur(item1, item1.detailReach, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
单位:mm
</div>
</div>
</div>
</view>
</view>
<u-modal v-model="isshow" class="modal" :show-cancel-button="true" title="是否停机维修" :show-title="true" @cancel="cancel" @confirm="confirm(detailsinfocontent)">
<div class="upload-name"></div>
</u-modal>
<u-toast ref="uToast" />
</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;
shouciFocus = true;
//
detailsinfo: any = {};
detailsinfolist: any = {};
detailsinfocontent: any = {};
//
isshow = false;
inputmodal = false;
isvalue = false;
ischecked = false;
radiomodal = false;
//
isaccord = false;
//
equipmentdata: any = [];
listselect: any = [
{
type: 0,
name: '符合标准',
radiovalue: null,
},
{
type: 1,
name: '未达标',
radiovalue: null,
},
];
// 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 = [];
deleteimgUrlList: any = [];
deleteimgUrlListcope: any = [];
orderNoItemList: any = {};
picturePath: any = 'https://cdn.uviewui.com/uview/swiper/1.jpg,https://cdn.uviewui.com/uview/swiper/2.jpg';
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
//
blur(item, value, index, index1) {
console.log(item, value, index, index1);
this.radiomodal = false;
this.inputmodal = false;
if (value == null) {
this.isvalue == true;
}
if (value > item.detailUpLimit || value < item.detailDownLimit) {
this.equipmentindex = [];
this.equipmentindex.push(index);
this.equipmentindex.push(index1);
if (item.picturePath != null) {
this.imgList = JSON.parse(JSON.stringify(item.picturePath));
this.imgList = this.imgList.split(',');
} else {
this.imgList = [];
}
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, index1) {
console.log(item, value, index, index1);
this.equipmentindex = [];
this.radiomodal = false;
this.inputmodal = false;
this.equipmentindex.push(index);
this.equipmentindex.push(index1);
if (item.picturePath != null) {
this.imgList = JSON.parse(JSON.stringify(item.picturePath));
this.imgList = this.imgList.split(',');
} else {
this.imgList = [];
}
if (value == 1) {
this.isshow = true;
this.radiomodal = true;
this.form = item;
}
}
async onLoad(options) {
let str = decodeURIComponent(options.listitem);
if (str) {
this.detailsinfo = JSON.parse(str);
let query = {
orderCode: this.detailsinfo.orderCode,
};
await this.model.getInspectionOrderInfo(query);
this.detailsinfocontent = this.model.OrderInfList;
this.detailsinfolist = this.model.OrderInfList.equ;
}
}
created() {
this.onLoad;
}
change(index) {
this.current = index;
}
//
confirm(item) {
this.linkrepairing(item);
}
linkrepairing(item) {
uni.navigateTo({
url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(item)),
});
}
cancel() {
this.isshow = false;
if (this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath == null) {
this.imgList = [];
} else {
this.imgList = this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath;
this.imgList = this.imgList.split(',');
}
}
scrollLeft() {
return 222 * (this.imgList.length + 1);
}
showScreenImg(i) {
let list = this.imgList;
uni.previewImage({
current: i,
urls: list,
// loop: true
});
}
chooseImg() {
uni.chooseImage({
count: 9, //9
// sizeType: ['original', 'compressed'], //
sourceType: ['album', 'camera'],
success: (res) => {
// uni.showLoading();
//console.log('/////',res);
let tempFilePaths: any = res.tempFilePaths;
// (this.$refs.uToast as any).show({
// title: '',
// type: 'success',
// });
// uni.navigateBack({});
// } else {
// (this.$refs.uToast as any).show({
// title: '',
// type: 'error',
// });
tempFilePaths.map((item) => {
uni.uploadFile({
url: '/dev-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) => {
uni.hideLoading();
if (!res.data) {
// this.$refs.toastRef.show({
// type:"error",
// text:res.msg
// })
return;
}
let data = JSON.parse(res.data);
this.imgList = [...this.imgList, data.data.url];
//this.imgListName = [...this.imgListName,data.fileName];
//this.picUrls = this.imgList.join(",");
//this.picNames = this.imgListName.join(",");
uni.hideLoading();
},
fail: (err) => {
console.log(err);
// this.$refs.toastRef.show({
// type:"error",
// text:""
// })
uni.hideLoading();
},
});
});
},
});
}
deleteImg(index) {
this.imgList = JSON.parse(JSON.stringify(this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath));
this.imgList = this.imgList.split(',');
this.imgList.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('请扫码设备编码');
return;
}
if (this.isvalue) {
this.customToast('检查标准不能为空');
return;
}
// this.detailsinfocontent.equ = this.detailsinfolist;
// let query = this.detailsinfocontent;
// await this.model.updateInspectionRecord(query);
// if (this.model.SubmitCode == '200') {
// (this.$refs.uToast as any).show({
// title: '',
// type: 'success',
// });
// uni.navigateBack({});
// } else {
// (this.$refs.uToast as any).show({
// title: '',
// type: 'error',
// });
// }
}
search(value) {
console.log(value);
if (value == this.detailsinfolist.equipmentCode) {
this.isshow = true;
} else {
(this.$refs.uToast as any).show({
title: '失败请扫码正确条码',
type: 'error',
});
}
}
}
</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;
}
}
.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 {
.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;
}
.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: 15px;
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>

@ -5,7 +5,7 @@
<view class="left"> <view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" /> <u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view> </view>
<view class="title">巡检</view> <view class="title">维修</view>
<view class="right"></view> <view class="right"></view>
</view> </view>
<u-tabs name="cate_name" count="cate_count" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs> <u-tabs name="cate_name" count="cate_count" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
@ -52,10 +52,10 @@ export default class ChangePalletNew extends BasePage {
model = model; model = model;
list: any = [ list: any = [
{ {
cate_name: '今日任务', cate_name: '待处理',
}, },
{ {
cate_name: '巡检记录', cate_name: '维修记录',
}, },
]; ];
current: any = 0; current: any = 0;
@ -80,18 +80,18 @@ export default class ChangePalletNew extends BasePage {
productCodelocList: any = {}; productCodelocList: any = {};
detailsdataceshi: any = [ detailsdataceshi: any = [
{ {
itemq: '巡检任务1', itemq: '维修任务1',
item2: '已巡检', item2: '已维修',
item3: '2023-08-01 - 2023-08-31', item3: '2023-08-01 - 2023-08-31',
item4: '每月巡检', item4: '每月维修',
item5: 'XXXXX', item5: 'XXXXX',
item6: '未发现异常', item6: '未发现异常',
}, },
{ {
itemq: '巡检任务1', itemq: '维修任务1',
item2: '已巡检', item2: '已维修',
item3: '2023-08-01 - 2023-08-31', item3: '2023-08-01 - 2023-08-31',
item4: '每月巡检', item4: '每月维修',
item5: 'XXXXX', item5: 'XXXXX',
item6: '未发现异常', item6: '未发现异常',
}, },
@ -134,14 +134,14 @@ export default class ChangePalletNew extends BasePage {
} }
linkdetails(item) { linkdetails(item) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/equipment/Inspection/details?listitem=` + encodeURIComponent(JSON.stringify(item)), url: `/pages/equipment/Repair/details?listitem=` + encodeURIComponent(JSON.stringify(item)),
}); });
} }
linkdetailscheck(item) { linkdetailscheck(item) {
this.ischecked = true; this.ischecked = true;
item.ischecked = true; item.ischecked = true;
uni.navigateTo({ uni.navigateTo({
url: `/pages/equipment/Inspection/detailsview?listitem=` + encodeURIComponent(JSON.stringify(item)), url: `/pages/equipment/Repair/detailsview?listitem=` + encodeURIComponent(JSON.stringify(item)),
}); });
} }
} }

@ -2,6 +2,7 @@ import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decor
import store from '@/store'; import store from '@/store';
import http from '@/utils/request'; import http from '@/utils/request';
import { url } from '@/utils/url'; import { url } from '@/utils/url';
import { session } from '@/store/modules/session';
@Module({ @Module({
namespaced: true, namespaced: true,
dynamic: true, dynamic: true,
@ -9,6 +10,7 @@ import { url } from '@/utils/url';
name: 'page.mes.PalletChange', name: 'page.mes.PalletChange',
}) })
export class ChangePalletNew extends VuexModule { export class ChangePalletNew extends VuexModule {
rowdata: any;
orderNoItemList: any = []; orderNoItemList: any = [];
getTaskRecordList: any = []; getTaskRecordList: any = [];
@MutationAction @MutationAction
@ -49,6 +51,21 @@ export class ChangePalletNew extends VuexModule {
const SubmitCode: [] = result.code; const SubmitCode: [] = result.code;
return { SubmitCode }; return { SubmitCode };
} }
Checklist: any = [];
@MutationAction
async queryhandChecklist() {
const result: any = await http.get(url.lanjumes.product.queryhandChecklist, {
//loginName: session.loginName,
params: {
factoryCode: session.FactoryCode,
createBy: session.user?.loginName,
},
});
const Checklist: any = result.rows;
console.log('this.tableData', Checklist);
// debugger
return { Checklist };
}
} }
export default getModule(ChangePalletNew); export default getModule(ChangePalletNew);

@ -0,0 +1,679 @@
<!-- 扫描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">
<div class="item-name">
<div class="quest">报修信息</div>
<div class="details">
<div>报修人: {{ detailsinfolist.equipmentCode }}</div>
<!-- <div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div> -->
</div>
<div class="details">
<div>保修时间: {{ detailsinfolist.equipmentCode }}</div>
<!-- <div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div> -->
</div>
<div class="details">
<div>故障时间: {{ detailsinfolist.equipmentCode }}</div>
<!-- <div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div> -->
</div>
<div class="details">
<div>报修来源: {{ detailsinfolist.equipmentCode }}</div>
<!-- <div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div> -->
</div>
<div class="details">
<div>故障时间: {{ detailsinfocontent.planWorkshop }}</div>
<!-- <div style="margin-left: 42px">工作中心: {{ detailsinfocontent.workCenterName }}</div> -->
</div>
<div class="details">
<div>是否立即维修: {{ detailsinfocontent.planWorkshop }}</div>
<!-- <div style="margin-left: 42px">工作中心: {{ detailsinfocontent.workCenterName }}</div> -->
</div>
<div class="details">
<div>联系方式: {{ detailsinfocontent.planWorkshop }}</div>
<!-- <div style="margin-left: 42px">工作中心: {{ detailsinfocontent.workCenterName }}</div> -->
</div>
<div class="details">
<div>故障描述: {{ detailsinfocontent.planWorkshop }}</div>
<!-- <div style="margin-left: 42px">工作中心: {{ detailsinfocontent.workCenterName }}</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 detailsinfolist.detailList" :key="index">
<div class="item1">检查项: {{ item.itemName }}</div>
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="item1.detailReach == n.type ? false : true">
{{ n.name }}
</u-radio>
</u-radio-group>
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item1.detailReach" @blur="blur(item1, item1.detailReach, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
单位:mm
</div>
</div>
</div>
</view>
</view>
<div class="Sparepart">
<!-- <u-button type="success">点击进行备件申领</u-button> -->
<div class="Pickup">点击进行备件申领</div>
<div class="Pickupclick">
<img @click="linkSparepartlist()" src="../../../static/images/add.png" alt="" />
</div>
</div>
<view class="list">
<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 detailsinfolist.detailList" :key="index">
<div class="item1">检查项: {{ item.itemName }}</div>
<div class="item1">检查方法: {{ item.itemMethod }}</div>
<div v-for="(item1, index1) in item.standardList" :key="index1">
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div class="select">
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="item1.detailReach == n.type ? false : true">
{{ n.name }}
</u-radio>
</u-radio-group>
</div>
</div>
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" v-model="item1.detailReach" @blur="blur(item1, item1.detailReach, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
单位:mm
</div>
</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 { 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;
shouciFocus = true;
//
detailsinfo: any = {};
detailsinfolist: any = {};
detailsinfocontent: any = {};
//
isshow = false;
inputmodal = false;
ischecked = false;
radiomodal = false;
//
isaccord = false;
//
equipmentdata: any = [];
listselect: any = [
{
type: 0,
name: '符合标准',
radiovalue: null,
},
{
type: 1,
name: '未达标',
radiovalue: null,
},
];
// 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 = {};
picturePath: any = 'https://cdn.uviewui.com/uview/swiper/1.jpg,https://cdn.uviewui.com/uview/swiper/2.jpg';
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
//
blur(item, value, index, index1) {
this.radiomodal = false;
this.inputmodal = false;
if (value > item.detailUpLimit || value < item.detailDownLimit) {
this.equipmentindex.push(index);
this.equipmentindex.push(index1);
if (item.picturePath != null) {
item.picturePath = item.picturePath.split(',');
this.imgUrlList = JSON.parse(JSON.stringify(item.picturePath));
} else {
this.imgUrlList = [];
}
// 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, index1) {
this.radiomodal = false;
this.inputmodal = false;
this.equipmentindex.push(index);
this.equipmentindex.push(index1);
if (item.picturePath != null) {
item.picturePath = item.picturePath.split(',');
this.imgUrlList = JSON.parse(JSON.stringify(item.picturePath));
} else {
this.imgUrlList = [];
}
// if (value == 1) {
// this.isshow = true;
// this.radiomodal = true;
// this.form = item;
// }
}
async onLoad(options) {
let str = decodeURIComponent(options.listitem);
if (str) {
this.detailsinfo = JSON.parse(str);
let query = {
orderCode: this.detailsinfo.orderCode,
};
await this.model.getInspectionOrderInfo(query);
this.detailsinfocontent = this.model.OrderInfList;
this.detailsinfolist = this.model.OrderInfList.equ;
}
}
created() {
this.onLoad;
}
change(index) {
this.current = index;
}
//
confirm() {
console.log((this as any).uUpload, 'sssss', this.equipmentindex);
console.log(this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]]);
if (this.radiomodal) {
this.imgUrlList = this.imgUrlList.join();
this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath = this.imgUrlList;
} else if (this.inputmodal) {
this.imgUrlList = this.imgUrlList.join();
this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath = 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() {
uni.chooseImage({
count: 9, //9
// sizeType: ['original', 'compressed'], //
sourceType: ['album', 'camera'],
success: (res) => {
// uni.showLoading();
//console.log('/////',res);
let tempFilePaths: any = res.tempFilePaths;
tempFilePaths.map((item) => {
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.imgUrlList = [...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(value) {
console.log(value);
if (value == this.detailsinfolist.equipmentCode) {
this.isaccord = true;
}
}
linkSparepartlist() {
uni.navigateTo({
url: `/pages/equipment/Repair/Sparepartlist?listitem=`,
});
}
}
</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;
}
}
.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 {
.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;
}
.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: 15px;
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;
}
}
}
}
}
.Sparepart {
margin-top: 10px;
display: flex;
align-items: center;
justify-content: space-around;
text-align: center;
.Pickup {
font-weight: 600;
}
.Pickupclick {
color: #1a99db;
border-radius: 10px;
img {
width: 50px;
}
}
}
.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;
}
::v-deep uni-button {
background: none;
}
}
</style>

@ -225,11 +225,11 @@ export default class ChangePalletNew extends BasePage {
}; };
await this.model.palletInforUpdate(params); await this.model.palletInforUpdate(params);
if (model.SubmitCode.code == 200) { if (model.SubmitCode.code == 200) {
this.uni.showToast({ title: '成功' }); this.uni.showToast({ title: '成功' }); //
this.Clear(); this.Clear(); //
} else { } else {
(this.$refs.uToast as any).show({ (this.$refs.uToast as any).show({
title: model.SubmitCode.msg, title: model.SubmitCode.message, //
type: 'default', type: 'default',
}); });
} }
@ -282,7 +282,7 @@ export default class ChangePalletNew extends BasePage {
this.isshow = false; this.isshow = false;
} else { } else {
(this.$refs.uToast as any).show({ (this.$refs.uToast as any).show({
title: model.SubmitCode.msg, title: model.SubmitCode.message,
type: 'default', type: 'default',
}); });
this.isshow = false; this.isshow = false;

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Loading…
Cancel
Save