测试设备页面

master
LAPTOP-R6EHHS26\86155 2 years ago
parent bf26619bc1
commit 43c639ff73

@ -84,6 +84,22 @@
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Spotcheck/details",
"style": {
"navigationBarTitleText": "点检详情",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Spotcheck/detailsview",
"style": {
"navigationBarTitleText": "点检查看",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Upkeep/index",
"style": {
@ -92,6 +108,30 @@
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Upkeep/details",
"style": {
"navigationBarTitleText": "保养详情",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Upkeep/repairing",
"style": {
"navigationBarTitleText": "保养中",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Upkeep/Sparepartlist",
"style": {
"navigationBarTitleText": "保养申领",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Repair/index",
"style": {
@ -124,6 +164,14 @@
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/equipment/Repairbx/index",
"style": {
"navigationBarTitleText": "报修",
"navigationStyle": "custom",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/index/index",
"style": {

@ -45,7 +45,7 @@
<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, item1.detailReach, index, index1)" @input="input(item1, item1.detailReach, index, index1)" type="text" name="" id="" />
<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>
@ -385,8 +385,9 @@ export default class ChangePalletNew extends BasePage {
} else {
(this.$refs.uToast as any).show({
title: '失败请扫码正确条码',
type: 'error',
type: 'default',
});
this.isaccord = false;
}
}
}

@ -44,7 +44,7 @@
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" :disabled="item1.detailReach == null ? true : true" v-model="item1.detailReach" @blur="blur(item1, item1.detailReach, index, index1)" @change="changeinput(item1, item1.detailReach, index, index1)" @input="input(item1, item1.detailReach, index, index1)" type="text" name="" id="" />
<input class="input" :disabled="item1.detailReach == null ? true : true" v-model="item1.detailReach" @blur="blur(item1, item1.detailReach, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
单位:mm
</div>
</div>

@ -6,17 +6,21 @@ import { url } from '@/utils/url';
namespaced: true,
dynamic: true,
store,
name: 'page.mes.PalletChange',
name: 'page.equipment.Inspection',
})
export class ChangePalletNew extends VuexModule {
orderNoItemList: any = [];
getTaskRecordList: any = [];
@MutationAction
// 点检spotInspection
// 巡检inspection
// 保养maintenance
async getTodayTask(userId: any) {
const result: any = await http.get(url.lanjuequipment.product.Inspection.getTodayTask, {
//loginName: session.loginName,
params: {
userId: userId,
planType: 'inspection',
},
});
const orderNoItemList = result.data;
@ -28,6 +32,7 @@ export class ChangePalletNew extends VuexModule {
//loginName: session.loginName,
params: {
userId: userId,
planType: 'inspection',
},
});
const getTaskRecordList = result.data;

@ -4,9 +4,14 @@
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">生产质检</view>
<view class="title">备件申领</view>
<view class="right"></view>
</view>
<view class="single-left">
<view>备件名称:</view>
<u-search 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 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>
@ -14,14 +19,15 @@
<u-row class="button-bar">
<!-- 确定 -->
<u-col :span="6">
<u-button @click="gozhijian" type="primary">质检</u-button>
<u-button @click="onSubmit" type="primary">确定</u-button>
</u-col>
<!-- 返回 -->
<u-col :span="6">
<u-button type="error" @click="goxiangxi"></u-button>
<u-button type="error" @click="uni.navigateBack({})"></u-button>
</u-col>
</u-row>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
@ -30,7 +36,7 @@ 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';
// import wybTable from '@/components/wyb-table/wyb-table.vue';
@Component({
components: {
jPicker,
@ -46,12 +52,17 @@ export default class ProductionQtyInsplist extends BasePage {
width: 100,
},
{
label: 'rfid',
label: '备件名称',
key: 'rfid',
width: 320,
},
{
label: '订单',
label: '备件编码',
key: 'rfid',
width: 320,
},
{
label: '库存数量',
key: 'orderCode',
},
{
@ -81,7 +92,790 @@ export default class ProductionQtyInsplist extends BasePage {
// key: 'checkPeople',
// },
];
tableData: any = [];
tableData: any = [
{
createBy: 'mobile',
createTime: '2023-11-06 14:09:06',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'fcc79188e5814d20823bec29b33d2805',
rfid: 'S0000286',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500094-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500094',
workBatchCode: null,
machineId: null,
machineCode: 'H15',
machineName: '烘房15',
badMeg: null,
productId: null,
productCode: '20000000280',
productName: 'Φ130mm微烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 14:04:47',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'c58ab2b76a9d4148bd0d77a2bbb75374',
rfid: 'S0000145',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500094-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500094',
workBatchCode: null,
machineId: null,
machineCode: 'H18',
machineName: '烘房18',
badMeg: null,
productId: null,
productCode: '20000000280',
productName: 'Φ130mm微烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 14:01:32',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: '123895b70acc4cf19a160b2b56c76a11',
rfid: 'S0000480',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500013-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500013',
workBatchCode: null,
machineId: null,
machineCode: 'H61',
machineName: '烘房61',
badMeg: null,
productId: null,
productCode: '000000020000000292',
productName: 'Φ125mm无烟白坯',
productSpc: 'Φ125mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 13:50:59',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: '1ad4fe9ec1a545d8a1b170f36ff18bd0',
rfid: 'S0000267',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500094-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500094',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000280',
productName: 'Φ130mm微烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 13:49:45',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: '27fa98d1f37b45f885bae71b08b24b30',
rfid: 'S0000067',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H18',
machineName: '烘房18',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 13:25:23',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'f81731618e524ec8a132d369d97fd864',
rfid: 'S0000247',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500094-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500094',
workBatchCode: null,
machineId: null,
machineCode: 'H14',
machineName: '烘房14',
badMeg: null,
productId: null,
productCode: '20000000280',
productName: 'Φ130mm微烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 13:00:34',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: '4d3c9130c0344f47b6433a7e6abe29eb',
rfid: 'S0000223',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H15',
machineName: '烘房15',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 12:56:09',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: '8579731e3d1544ceb5c2c696a7cbadae',
rfid: 'S0000050',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500094-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500094',
workBatchCode: null,
machineId: null,
machineCode: 'H16',
machineName: '烘房16',
badMeg: null,
productId: null,
productCode: '20000000280',
productName: 'Φ130mm微烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:19:36',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'a2863d392dab4caa92289c2f27522f7e',
rfid: 'S0000592',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H11',
machineName: '烘房11',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
{
createBy: 'mobile',
createTime: '2023-11-06 10:14:12',
updateBy: null,
updateTime: null,
remark: null,
poolName: null,
deptId: null,
id: 'ea26dfe075584bc5ae277337194975a8',
rfid: 'S0000565',
factoryId: null,
factoryCode: '999',
workorderId: null,
workorderCode: 'DD2023110500095-1',
workorderName: null,
orderId: null,
orderCode: 'DD2023110500095',
workBatchCode: null,
machineId: null,
machineCode: 'H17',
machineName: '烘房17',
badMeg: null,
productId: null,
productCode: '20000000284',
productName: 'Φ130mm无烟免拆白坯',
productSpc: 'Φ130mm',
isqua: '1',
fileList: [],
fileId: '',
attr1: null,
attr2: null,
attr3: null,
attr4: null,
equipmentTypeCode: null,
equipmentCode: null,
equipmentName: null,
itemCode: null,
itemName: null,
},
];
orderNo: any = '';
shouciFocus = true;
// remove: any = {};
// async onReady() {
// await this.model.queryLocation();
@ -91,7 +885,7 @@ export default class ProductionQtyInsplist extends BasePage {
// this.remove = e.pickerName;
// }
onShow() {
this.query();
// this.query();
}
changeContent(e) {
//console.log('eee', e.data);
@ -103,17 +897,37 @@ export default class ProductionQtyInsplist extends BasePage {
url: this.page.mes.ProductionQtyInsp,
});
}
goxiangxi() {
onSubmit() {
//debugger
//console.log('xssss',this.rowdata);
var bool = null;
if (JSON.stringify(this.rowdata) === '{}' || this.rowdata === undefined) {
this.customToast('请选择一行进行查看');
} else {
this.model.rowdata = this.rowdata;
this.uni.navigateTo({
url: this.page.mes.ProductionQtyInspDetail,
});
this.customToast('请选择至少一个备件');
return;
}
if (this.model.rowdata.length > 0) {
bool = this.model.rowdata.some((item) => item.rfid == this.rowdata.rfid);
console.log(bool);
if (!bool) {
this.model.rowdata.push(this.rowdata);
uni.navigateBack({});
}
if (bool) {
(this.$refs.uToast as any).show({
title: '请勿重复申领',
type: 'default',
});
// _this.customToast('');
}
} else {
this.model.rowdata.push(this.rowdata);
uni.navigateBack({});
}
console.log(this.model.rowdata, this.page, this.rowdata);
// this.uni.navigateTo({
// url: this.page.mes.ProductionQtyInspDetail,
// });
}
async query() {
//this.tableData = [];
@ -127,41 +941,11 @@ export default class ProductionQtyInsplist extends BasePage {
//this.productCodeList = this.model.productCodeList[0];
//this.histroyItem = this.model.orderNoItemList[0];
}
search(value) {
console.log(value);
}
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>
@ -226,18 +1010,6 @@ export default class ProductionQtyInsplist extends BasePage {
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;
@ -259,8 +1031,22 @@ export default class ProductionQtyInsplist extends BasePage {
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
padding: 20rpx;
}
.button-bar {
.single-left {
width: 90%;
height: 100%;
display: flex;
justify-content: space-around;
align-items: center;
margin-left: 20px;
margin-right: 20px;
view {
width: 142rpx;
height: 100%;
line-height: 100rpx;
font-size: 15px;
// font-weight: bold;
color: black;
}
}
.photoList {

@ -19,7 +19,7 @@
</div>
<div class="details">
<div>车间: {{ detailsinfocontent.planWorkshop }}</div>
<div style="margin-left: 42px">工作中心: {{ detailsinfocontent.workCenterName }}</div>
<div style="margin-left: 42px">工作中心: {{ detailsinfocontent.workshopName }}</div>
</div>
</div>
<view class="single-left">
@ -188,11 +188,10 @@ export default class ChangePalletNew extends BasePage {
if (str) {
this.detailsinfo = JSON.parse(str);
let query = {
orderCode: this.detailsinfo.orderCode,
workId: this.detailsinfo.workId,
};
await this.model.getInspectionOrderInfo(query);
this.detailsinfocontent = this.model.OrderInfList;
this.detailsinfolist = this.model.OrderInfList.equ;
await this.model.getInspectionOrderInfo(query.workId);
this.detailsinfolist = this.model.OrderInfList;
}
}
created() {
@ -205,7 +204,21 @@ export default class ChangePalletNew extends BasePage {
confirm(item) {
this.linkrepairing(item);
}
linkrepairing(item) {
async linkrepairing(item) {
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',
});
}
uni.navigateTo({
url: `/pages/equipment/Repair/repairing?listitem=` + encodeURIComponent(JSON.stringify(item)),
});
@ -341,7 +354,7 @@ export default class ChangePalletNew extends BasePage {
} else {
(this.$refs.uToast as any).show({
title: '失败请扫码正确条码',
type: 'error',
type: 'default',
});
}
}

@ -11,26 +11,28 @@
<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.planCode }}</div>
<div class="name">工单号: {{ item.workCode }}</div>
<div class="tag">{{ item.orderStatus == 0 ? '进行中' : item.orderStatus == 1 ? '已完成' : '已逾期' }}</div>
<u-icon @click="linkdetails(item)" name="arrow-right" color="#2979ff" size="28"></u-icon>
</div>
<div class="item1">车间编码: {{ item.planWorkshop }}</div>
<div class="item1">周期: {{ item.planLoop }}</div>
<div class="item1">循环执行时间开始: {{ item.planLoopStart }}</div>
<div class="item1">循环执行时间结束: {{ item.planLoopEnd }}</div>
<div class="item1">设备编码: {{ item.equipmentCode }}</div>
<div class="item1">维修负责人: {{ item.workPerson }}</div>
<div class="item1">故障描述: {{ item.workFaultDesc }}</div>
<div class="item1">维修人员: {{ item.workPerson }}</div>
<div class="item1">是否立即维修: {{ item.workDownMachine == 1 ? '是' : '否' }}</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.planCode }}</div>
<div class="name">工单号: {{ item.workCode }}</div>
<div class="tag">{{ item.orderStatus == 0 ? '进行中' : item.orderStatus == 1 ? '已完成' : '已逾期' }}</div>
<u-icon @click="linkdetailscheck(item)" name="arrow-right" color="#2979ff" size="28"></u-icon>
<u-icon @click="linkdetails(item)" name="arrow-right" color="#2979ff" size="28"></u-icon>
</div>
<div class="item1">车间编码: {{ item.planWorkshop }}</div>
<div class="item1">周期: {{ item.planLoop }}</div>
<div class="item1">循环执行时间开始: {{ item.planLoopStart }}</div>
<div class="item1">循环执行时间结束: {{ item.planLoopEnd }}</div>
<div class="item1">设备编码: {{ item.equipmentCode }}</div>
<div class="item1">维修负责人: {{ item.workPerson }}</div>
<div class="item1">故障描述: {{ item.workFaultDesc }}</div>
<div class="item1">维修人员: {{ item.workPerson }}</div>
<div class="item1">是否立即维修: {{ item.workDownMachine == 1 ? '是' : '否' }}</div>
</view>
</view>
</template>
@ -106,7 +108,12 @@ export default class ChangePalletNew extends BasePage {
console.log(uni.getStorageSync('userinfo'));
this.userinfo = uni.getStorageSync('userinfo');
if (this.userinfo) {
await this.model.getTodayTask(this.userinfo.userId);
let query = {
userId: this.userinfo.userId,
workStatus: '0',
workOutsource: '0',
};
await this.model.getTodayTask(query);
console.log(model.orderNoItemList);
this.listdata = model.orderNoItemList;
}
@ -122,12 +129,22 @@ export default class ChangePalletNew extends BasePage {
this.current = index;
if (index == 0) {
if (this.userinfo) {
await this.model.getTodayTask(this.userinfo.userId);
let query = {
userId: this.userinfo.userId,
workStatus: '0',
workOutsource: '0',
};
await this.model.getTodayTask(query);
this.listdata = model.orderNoItemList;
}
} else {
if (this.userinfo) {
await this.model.getTaskRecord(this.userinfo.userId);
let query = {
userId: this.userinfo.userId,
workStatus: '1',
workOutsource: '0',
};
await this.model.getTaskRecord(query);
this.detailsdata = model.getTaskRecordList;
}
}

@ -7,39 +7,29 @@ import { session } from '@/store/modules/session';
namespaced: true,
dynamic: true,
store,
name: 'page.mes.PalletChange',
name: 'page.equipment.Repair',
})
export class ChangePalletNew extends VuexModule {
rowdata: any;
rowdata: any = [];
orderNoItemList: any = [];
getTaskRecordList: any = [];
@MutationAction
async getTodayTask(userId: any) {
const result: any = await http.get(url.lanjuequipment.product.Inspection.getTodayTask, {
//loginName: session.loginName,
params: {
userId: userId,
},
});
async getTodayTask(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.getTodayTask, { params: params });
const orderNoItemList = result.data;
return { orderNoItemList };
}
@MutationAction
async getTaskRecord(userId: any) {
const result: any = await http.get(url.lanjuequipment.product.Inspection.getTaskRecord, {
//loginName: session.loginName,
params: {
userId: userId,
},
});
async getTaskRecord(params: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.getTaskRecord, { params: params });
const getTaskRecordList = result.data;
return { getTaskRecordList };
}
//巡检列表巡检记录
OrderInfList: any = [];
@MutationAction
async getInspectionOrderInfo(params: any) {
const result: any = await http.post(url.lanjuequipment.product.Inspection.getInspectionOrderInfo, params);
async getInspectionOrderInfo(workId: any) {
const result: any = await http.get(url.lanjuequipment.product.Repair.selectPdaRepairWorkOrderDetails + '/' + workId);
const OrderInfList: [] = result.data;
return { OrderInfList };
}

@ -82,40 +82,103 @@
<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>
<view class="list" v-for="(item, index) in this.model.rowdata" :key="index">
<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>
<view class="list listbottom">
<div class="item-name">
<div class="quest">维修单</div>
<u-form class="form" ref="form" label-width="230rpx">
<u-form-item label="负责人:">
{{ detailsinfolist.equipmentCode }}
</u-form-item>
<!-- 机台 -->
<u-form-item label="维修结果:">
<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">
<u-radio-group v-model="formdata.detailReach" @change="radioGroupChange1(formdata.detailReac)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect1" :key="indexn" :name="n.type">
{{ 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>
</u-form-item>
<!-- 单号 -->
<u-form-item label="维修费用:">
<u-input v-model="orderNoItemList.productCode" placeholder="" />
</u-form-item>
<!-- 机台 -->
<u-form-item label="维修用时(分钟):">
<u-input v-model="orderNoItemList.productSpc" placeholder="" />
</u-form-item>
<!-- 产品 -->
<u-form-item label="维修人员签字:">
<u-input v-model="orderNoItemList.productName" placeholder="" />
</u-form-item>
<!-- 工单 -->
<u-form-item label="联系方式:">
<u-input v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="原因分析:">
<u-input v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="上传图片:">
<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>
</u-form-item>
</u-form>
<u-button @click="onSubmit" type="primary">提交</u-button>
</div>
</view>
<view class="bottom-bar">
<!-- <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>
@ -125,7 +188,7 @@
<div style="margin-left: 42px">报修单: 90272931234</div>
</div>
</div>
</view>
</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>
@ -201,6 +264,18 @@ export default class ChangePalletNew extends BasePage {
radiovalue: null,
},
];
listselect1: any = [
{
type: 0,
name: '已完成',
radiovalue: null,
},
{
type: 1,
name: '未完成',
radiovalue: null,
},
];
// index equipment
equipmentindex: any = [];
orderNo: any = '';
@ -216,10 +291,16 @@ export default class ChangePalletNew extends BasePage {
deleteimgUrlList: any = [];
orderNoItemList: any = {};
picturePath: any = 'https://cdn.uviewui.com/uview/swiper/1.jpg,https://cdn.uviewui.com/uview/swiper/2.jpg';
formdata: any = {};
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
this.model.rowdata = [];
console.log(0);
}
onShow() {
this.onLoad;
console.log(2, this.model.rowdata);
}
//
blur(item, value, index, index1) {
@ -267,6 +348,9 @@ export default class ChangePalletNew extends BasePage {
// this.form = item;
// }
}
radioGroupChange1(item) {
console.log(item);
}
async onLoad(options) {
let str = decodeURIComponent(options.listitem);
if (str) {
@ -473,6 +557,88 @@ export default class ChangePalletNew extends BasePage {
align-items: center;
margin-bottom: 8px;
}
.form {
background-color: #fff;
.u-form-item {
line-height: 35rpx;
font-size: 16px;
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;
}
}
}
}
}
.single-left {
display: flex;
@ -667,13 +833,16 @@ export default class ChangePalletNew extends BasePage {
::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 .u-form-item--left__content {
min-width: 116px;
white-space: nowrap;
}
::v-deep uni-button {
background: none;
.listbottom ::v-deep .uni-input-input {
border: 1px solid black;
width: 98%;
}
::v-deep .u-form-item {
padding: 6px 0;
}
}
</style>

@ -0,0 +1,848 @@
<!-- 扫描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" v-for="(item, index) in this.model.rowdata" :key="index">
<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>
<view class="list listbottom">
<div class="item-name">
<div class="quest">维修单</div>
<u-form class="form" ref="form" label-width="230rpx">
<u-form-item label="负责人:">
{{ detailsinfolist.equipmentCode }}
</u-form-item>
<!-- 机台 -->
<u-form-item label="维修结果:">
<div class="select">
<u-radio-group v-model="formdata.detailReach" @change="radioGroupChange1(formdata.detailReac)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect1" :key="indexn" :name="n.type">
{{ n.name }}
</u-radio>
</u-radio-group>
</div>
</u-form-item>
<!-- 单号 -->
<u-form-item label="维修费用:">
<u-input v-model="orderNoItemList.productCode" placeholder="" />
</u-form-item>
<!-- 机台 -->
<u-form-item label="维修用时(分钟):">
<u-input v-model="orderNoItemList.productSpc" placeholder="" />
</u-form-item>
<!-- 产品 -->
<u-form-item label="维修人员签字:">
<u-input v-model="orderNoItemList.productName" placeholder="" />
</u-form-item>
<!-- 工单 -->
<u-form-item label="联系方式:">
<u-input v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="原因分析:">
<u-input v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="上传图片:">
<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>
</u-form-item>
</u-form>
<u-button @click="onSubmit" type="primary">提交</u-button>
</div>
</view>
<view class="bottom-bar">
<div class="item-name">
<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,
},
];
listselect1: 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';
formdata: any = {};
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
this.model.rowdata = [];
console.log(0);
}
onShow() {
this.onLoad;
console.log(2, this.model.rowdata);
}
//
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;
// }
}
radioGroupChange1(item) {
console.log(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;
}
.form {
background-color: #fff;
.u-form-item {
line-height: 35rpx;
font-size: 16px;
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;
}
}
}
}
}
.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 .u-form-item--left__content {
min-width: 116px;
white-space: nowrap;
}
.listbottom ::v-deep .uni-input-input {
border: 1px solid black;
width: 98%;
}
::v-deep .u-form-item {
padding: 6px 0;
}
}
</style>

@ -0,0 +1,557 @@
<!-- 扫描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>条码:</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>
<view class="list listbottom" v-show="isaccord">
<div class="item-name">
<!-- <div class="quest">工单号: </div> -->
<div class="details">
<div>设备编码:{{ formdata.equipmentCode }}</div>
<div style="margin-left: 42px">设备名称:{{ formdata.equipmentName }}</div>
</div>
<div class="details">
<div>位置:{{ formdata.equipmentLocation }}</div>
<!-- <div style="margin-left: 42px">工作中心: </div> -->
</div>
<u-form class="form listform" ref="form" label-width="140rpx">
<!-- 机台 -->
<u-form-item label="故障描述:">
<u-input v-model="formdata.orderDesc" placeholder="" type="textarea" />
</u-form-item>
<!-- 机台 -->
<u-form-item label="故障时间:">
<u-input @blur="blur()" @focus="focus()" placeholder="" v-model="orderBreakdownTime" />
<u-picker mode="time" :default-time="defaulttime" :params="params" v-model="showtime" @confirm="timeConfirm" :timeEnd="endTime"></u-picker>
</u-form-item>
<u-form-item label="上传图片:">
<scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollLeft()">
<view class="photoList">
<view class="itemBox photoBox" v-for="(img, index) in imgList" :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>
</u-form-item>
</u-form>
</div>
</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-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 moment from 'moment';
//import store from '@/store';
@Component({
components: {
chooseOne,
jPicker,
},
})
export default class ChangePalletNew extends BasePage {
params: any = { year: true, month: true, day: true, hour: true, minute: true, second: true };
endTime: any = {};
model = model;
moren = '选择缓存区';
shouciFocus = true;
zaiciFocus = false;
switchListText = [
{
title: '是',
value: 0,
},
{
title: '否',
value: 1,
},
];
orderNoItemList: any = {};
productCodeList: any = {};
productCodelocList: any = {};
// remove: any = {};
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
location: any = '';
locationStatus: any = 1;
//
action: any = 'http://www.example.com/upload';
fileList: any = [];
filesArr: any = [];
imgList: any = [];
imgUrlList: any = [];
deleteimgUrlList: any = [];
deleteimgUrlListcope: any = [];
picturePath: any = 'https://cdn.uviewui.com/uview/swiper/1.jpg,https://cdn.uviewui.com/uview/swiper/2.jpg';
formdata: any = {
equipmentCode: '',
equipmentName: '',
equipmentLocation: '',
orderDesc: '',
orderBreakdownTime: '',
fileList: '',
};
orderBreakdownTime: any = '';
isaccord = false;
showtime = false;
defaulttime: any = '';
async onReady() {
this.defaulttime = moment().format('YYYY-MM-DD HH:mm:ss');
console.log(this.defaulttime);
// await this.model.getDictList();
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
onShow() {
// this.onLoad;
// console.log(2, this.model.rowdata);
}
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请扫码条码',
type: 'default',
});
return;
}
await this.model.queryOrderNo(this.orderNo);
//console.log('???',model.orderNoItemList)
if (model.orderNoItemList == undefined) {
(this.$refs.uToast as any).show({
title: '该条码未查到数据,请使用正确的条码!',
type: 'default',
});
} else {
if (this.orderNoItemList.productCode == 'EmptyPallet') {
(this.$refs.uToast as any).show({
title: '该条码未查到数据,请使用正确的条码!',
type: 'default',
});
return;
} else {
this.orderNoItemList = model.orderNoItemList;
this.formdata = this.orderNoItemList;
this.isaccord = true;
}
}
//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);
});
}
timeConfirm(e) {
this.orderBreakdownTime = this.defaulttime;
this.formdata.orderBreakdownTime = this.orderBreakdownTime;
console.log(e, this.formdata.orderBreakdownTime);
}
async onsubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请扫码设备条码',
type: 'default',
});
return;
}
if (this.formdata.orderBreakdownTime == '' || this.formdata.orderBreakdownTime == undefined) {
(this.$refs.uToast as any).show({
title: '请输入故障时间',
type: 'default',
});
return;
}
if (this.formdata.orderDesc == '' || this.formdata.orderDesc == undefined) {
(this.$refs.uToast as any).show({
title: '请输入故障描述',
type: 'default',
});
return;
}
//
let fileList = this.imgList.join(',');
let params = {
equipmentCode: this.formdata.equipmentCode,
equipmentName: this.formdata.equipmentName,
equipmentLocation: this.formdata.equipmentLocation,
orderDesc: this.formdata.orderDesc,
orderBreakdownTime: this.formdata.orderBreakdownTime,
fileList: fileList,
orderSource: '手持PDA',
//productionState: this.productCodeList.value,
};
console.log(params, this.formdata, this.imgUrlList);
await this.model.addRepairRecord(params);
if (model.SubmitCode.code == 200) {
(this.$refs.uToast as any).show({
title: model.SubmitCode.msg, //
type: 'default',
});
// this.model.getDictList();
this.isaccord = false;
this.Clear(); //
} else {
(this.$refs.uToast as any).show({
title: model.SubmitCode.msg, //
type: 'default',
});
}
}
blur() {
console.log(1);
this.showtime = false;
}
focus() {
console.log(2);
this.showtime = true;
}
Clear() {
this.orderNo = '';
this.formdata = {};
this.imgList = [];
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;
}
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;
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.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(",");
uni.hideLoading();
},
fail: (err) => {
console.log(err);
// this.$refs.toastRef.show({
// type:"error",
// text:""
// })
uni.hideLoading();
},
});
});
},
});
}
deleteImg(index) {
this.imgUrlList.splice(index, 1);
}
}
</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: 15px 15px 15px 15px;
.u-form-item {
padding: 30rpx 0;
line-height: 35rpx;
}
.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;
}
}
}
.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;
}
}
}
}
.listform {
padding: 0px;
}
.list {
background-color: #f2f2f2;
padding: 21px;
box-sizing: border-box;
margin-top: 10px;
border-radius: 15px 15px 15px 15px;
border: rgba(121, 121, 121, 1) solid 1px;
.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;
}
}
}
.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%;
}
.listbottom ::v-deep .uni-input-input {
border: 1px solid black;
width: 94%;
padding: 5px;
}
::v-deep .u-form-item {
padding: 6px 0;
}
::v-deep .uni-textarea-textarea {
border: 1px solid black;
width: 94%;
padding: 5px;
}
}
</style>

@ -0,0 +1,34 @@
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
import store from '@/store';
import http from '@/utils/request';
import { url } from '@/utils/url';
@Module({
namespaced: true,
dynamic: true,
store,
name: 'page.equipment.Repairbx',
})
export class ChangePalletNew extends VuexModule {
orderNoItemList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.get(url.lanjuequipment.product.Repairbx.getInfoRepair + orderNo);
const orderNoItemList = result.data;
return { orderNoItemList };
}
@MutationAction
async empty() {
const orderNoItemList = [];
return { orderNoItemList };
}
SubmitCode: any = '';
//托盘信息变更x
@MutationAction
async addRepairRecord(params: any) {
const result: any = await http.post(url.lanjuequipment.product.Repairbx.addRepairRecord, params);
const SubmitCode = result;
return { SubmitCode };
}
}
export default getModule(ChangePalletNew);

@ -5,7 +5,7 @@
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">检详情</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> -->
@ -45,7 +45,7 @@
<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, item1.detailReach, index, index1)" @input="input(item1, item1.detailReach, index, index1)" type="text" name="" id="" />
<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>
@ -91,7 +91,7 @@
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import model from '../Spotcheck/model';
import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue';
import { session } from '@/store/modules/session';

@ -44,7 +44,7 @@
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
<div class="input-box" id="input-box1">
实际值:
<input class="input" :disabled="item1.detailReach == null ? true : true" v-model="item1.detailReach" @blur="blur(item1, item1.detailReach, index, index1)" @change="changeinput(item1, item1.detailReach, index, index1)" @input="input(item1, item1.detailReach, index, index1)" type="text" name="" id="" />
<input class="input" :disabled="item1.detailReach == null ? true : true" v-model="item1.detailReach" @blur="blur(item1, item1.detailReach, index, index1)" @change="changeinput(item1)" @input="input(item1)" type="text" name="" id="" />
单位:mm
</div>
</div>
@ -91,7 +91,7 @@
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import model from '../Spotcheck/model';
import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue';
import { session } from '@/store/modules/session';

@ -37,7 +37,7 @@
<script lang="ts">
import { Component } from 'vue-property-decorator';
import { BasePage } from '@/components/base/page';
import model from './model';
import model from '../Spotcheck/model';
import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue';
// import { session } from '@/store/modules/session';
@ -134,14 +134,14 @@ export default class ChangePalletNew extends BasePage {
}
linkdetails(item) {
uni.navigateTo({
url: `/pages/equipment/Inspection/details?listitem=` + encodeURIComponent(JSON.stringify(item)),
url: `/pages/equipment/Spotcheck/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)),
url: `/pages/equipment/Spotcheck/detailsview?listitem=` + encodeURIComponent(JSON.stringify(item)),
});
}
}

@ -6,17 +6,21 @@ import { url } from '@/utils/url';
namespaced: true,
dynamic: true,
store,
name: 'page.mes.PalletChange',
name: 'page.equipment.Spotcheck',
})
export class ChangePalletNew extends VuexModule {
orderNoItemList: any = [];
getTaskRecordList: any = [];
@MutationAction
// 点检spotInspection
// 巡检inspection
// 保养maintenance
async getTodayTask(userId: any) {
const result: any = await http.get(url.lanjuequipment.product.Inspection.getTodayTask, {
//loginName: session.loginName,
params: {
userId: userId,
planType: 'spotInspection',
},
});
const orderNoItemList = result.data;
@ -28,6 +32,7 @@ export class ChangePalletNew extends VuexModule {
//loginName: session.loginName,
params: {
userId: userId,
planType: 'spotInspection',
},
});
const getTaskRecordList = result.data;

File diff suppressed because it is too large Load Diff

@ -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: 'default',
});
}
}
}
</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,61 +5,33 @@
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">托盘变更</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>
<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.planCode }}</div>
<div class="tag">{{ item.orderStatus == 0 ? '进行中' : item.orderStatus == 1 ? '已完成' : '已逾期' }}</div>
<u-icon @click="linkdetails(item)" name="arrow-right" color="#2979ff" size="28"></u-icon>
</div>
<div class="item1">车间编码: {{ item.planWorkshop }}</div>
<div class="item1">周期: {{ item.planLoop }}</div>
<div class="item1">循环执行时间开始: {{ item.planLoopStart }}</div>
<div class="item1">循环执行时间结束: {{ item.planLoopEnd }}</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.planCode }}</div>
<div class="tag">{{ item.orderStatus == 0 ? '进行中' : item.orderStatus == 1 ? '已完成' : '已逾期' }}</div>
<u-icon @click="linkdetailscheck(item)" name="arrow-right" color="#2979ff" size="28"></u-icon>
</div>
<div class="item1">车间编码: {{ item.planWorkshop }}</div>
<div class="item1">周期: {{ item.planLoop }}</div>
<div class="item1">循环执行时间开始: {{ item.planLoopStart }}</div>
<div class="item1">循环执行时间结束: {{ item.planLoopEnd }}</div>
</view>
<u-toast ref="uToast" />
</view>
</template>
<script lang="ts">
@ -68,7 +40,7 @@ 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 { session } from '@/store/modules/session';
//import store from '@/store';
@Component({
components: {
@ -78,9 +50,19 @@ import jPicker from '@/components/J-Picker/jPicker.vue';
})
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: '是',
@ -91,116 +73,87 @@ export default class ChangePalletNew extends BasePage {
value: 1,
},
];
listdata: any = [];
detailsdata: any = [];
orderNoItemList: any = {};
productCodeList: any = {};
productCodelocList: any = {};
detailsdataceshi: any = [
{
itemq: '维修任务1',
item2: '已维修',
item3: '2023-08-01 - 2023-08-31',
item4: '每月维修',
item5: 'XXXXX',
item6: '未发现异常',
},
{
itemq: '维修任务1',
item2: '已维修',
item3: '2023-08-01 - 2023-08-31',
item4: '每月维修',
item5: 'XXXXX',
item6: '未发现异常',
},
];
userinfo: any = null;
// remove: any = {};
async onReady() {
await this.model.getDictList();
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
}
async onLoad() {
console.log(uni.getStorageSync('userinfo'));
this.userinfo = uni.getStorageSync('userinfo');
if (this.userinfo) {
await this.model.getTodayTask(this.userinfo.userId);
console.log(model.orderNoItemList);
this.listdata = model.orderNoItemList;
}
}
// selectItem(e: any) {
// this.remove = e.pickerName;
// }
orderNo: any = '';
location: any = '';
locationStatus: any = 1;
async query() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入RFID',
type: 'default',
});
return;
}
await this.model.queryOrderNo(this.orderNo);
//console.log('???',model.orderNoItemList)
if (model.orderNoItemList == undefined) {
(this.$refs.uToast as any).show({
title: '该rfid未查到数据请使用正确的rfid',
type: 'default',
});
//
async change(index) {
this.current = index;
if (index == 0) {
if (this.userinfo) {
let query = {
userId: this.userinfo.userId,
workStatus: '0',
workOutsource: '0',
};
await this.model.getTodayTask(query);
this.listdata = model.orderNoItemList;
}
} else {
this.orderNoItemList = model.orderNoItemList;
if (this.orderNoItemList.productCode == 'EmptyPallet') {
(this.$refs.uToast as any).show({
title: '该rfid未查到数据请使用正确的rfid',
type: 'default',
});
return;
if (this.userinfo) {
let query = {
userId: this.userinfo.userId,
workStatus: '1',
workOutsource: '0',
};
await this.model.getTaskRecord(query);
this.detailsdata = model.getTaskRecordList;
}
}
//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);
linkdetails(item) {
uni.navigateTo({
url: `/pages/equipment/Repair/details?listitem=` + encodeURIComponent(JSON.stringify(item)),
});
}
async onsubmit() {
if (this.orderNo == '' || this.orderNo.length == 0) {
(this.$refs.uToast as any).show({
title: '请输入RFID',
type: 'default',
});
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;
linkdetailscheck(item) {
this.ischecked = true;
item.ischecked = true;
uni.navigateTo({
url: `/pages/equipment/Repair/detailsview?listitem=` + encodeURIComponent(JSON.stringify(item)),
});
}
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>
@ -241,61 +194,58 @@ export default class ChangePalletNew extends BasePage {
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;
}
}
}
.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;
}
.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;
.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%;

@ -7,66 +7,68 @@ import { session } from '@/store/modules/session';
namespaced: true,
dynamic: true,
store,
name: 'page.mes.PalletChange',
name: 'page.equipment.Upkeep',
})
export class ChangePalletNew extends VuexModule {
rowdata: any = [];
orderNoItemList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.get(url.lanjumes.product.getInfoByRfid, {
getTaskRecordList: any = [];
// 点检spotInspection
// 巡检inspection
// 保养maintenance
async getTodayTask(userId: any) {
const result: any = await http.get(url.lanjuequipment.product.Inspection.getTodayTask, {
//loginName: session.loginName,
params: {
factoryCode: session.FactoryCode,
rfid: orderNo,
userId: userId,
planType: 'maintenance',
},
});
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, {
async getTaskRecord(userId: any) {
const result: any = await http.get(url.lanjuequipment.product.Inspection.getTaskRecord, {
//loginName: session.loginName,
params: {
equipmentTypeCode: 'cache',
userId: userId,
planType: 'maintenance',
},
});
const DictListoild: [] = result.data;
const locList = DictListoild.map((item: any) => ({
label: item.itemName,
value: item.itemCode,
}));
return { locList };
const getTaskRecordList = result.data;
return { getTaskRecordList };
}
//巡检列表巡检记录
OrderInfList: any = [];
@MutationAction
async getInspectionOrderInfo(params: any) {
const result: any = await http.post(url.lanjuequipment.product.Inspection.getInspectionOrderInfo, params);
const OrderInfList: [] = result.data;
return { OrderInfList };
}
SubmitCode: any = '';
//巡检提交
@MutationAction
async updateInspectionRecord(params: any) {
const result: any = await http.post(url.lanjuequipment.product.Inspection.updateInspectionRecord, params);
const SubmitCode: [] = result.code;
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 };
}
}

@ -0,0 +1,848 @@
<!-- 扫描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" v-for="(item, index) in this.model.rowdata" :key="index">
<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>
<view class="list listbottom">
<div class="item-name">
<div class="quest">维修单</div>
<u-form class="form" ref="form" label-width="230rpx">
<u-form-item label="负责人:">
{{ detailsinfolist.equipmentCode }}
</u-form-item>
<!-- 机台 -->
<u-form-item label="维修结果:">
<div class="select">
<u-radio-group v-model="formdata.detailReach" @change="radioGroupChange1(formdata.detailReac)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect1" :key="indexn" :name="n.type">
{{ n.name }}
</u-radio>
</u-radio-group>
</div>
</u-form-item>
<!-- 单号 -->
<u-form-item label="维修费用:">
<u-input v-model="orderNoItemList.productCode" placeholder="" />
</u-form-item>
<!-- 机台 -->
<u-form-item label="维修用时(分钟):">
<u-input v-model="orderNoItemList.productSpc" placeholder="" />
</u-form-item>
<!-- 产品 -->
<u-form-item label="维修人员签字:">
<u-input v-model="orderNoItemList.productName" placeholder="" />
</u-form-item>
<!-- 工单 -->
<u-form-item label="联系方式:">
<u-input v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="原因分析:">
<u-input v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="上传图片:">
<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>
</u-form-item>
</u-form>
<u-button @click="onSubmit" type="primary">提交</u-button>
</div>
</view>
<!-- <view class="bottom-bar">
<div class="item-name">
<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,
},
];
listselect1: 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';
formdata: any = {};
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
this.model.rowdata = [];
console.log(0);
}
onShow() {
this.onLoad;
console.log(2, this.model.rowdata);
}
//
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;
// }
}
radioGroupChange1(item) {
console.log(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;
}
.form {
background-color: #fff;
.u-form-item {
line-height: 35rpx;
font-size: 16px;
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;
}
}
}
}
}
.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 .u-form-item--left__content {
min-width: 116px;
white-space: nowrap;
}
.listbottom ::v-deep .uni-input-input {
border: 1px solid black;
width: 98%;
}
::v-deep .u-form-item {
padding: 6px 0;
}
}
</style>

@ -0,0 +1,848 @@
<!-- 扫描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" v-for="(item, index) in this.model.rowdata" :key="index">
<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>
<view class="list listbottom">
<div class="item-name">
<div class="quest">维修单</div>
<u-form class="form" ref="form" label-width="230rpx">
<u-form-item label="负责人:">
{{ detailsinfolist.equipmentCode }}
</u-form-item>
<!-- 机台 -->
<u-form-item label="维修结果:">
<div class="select">
<u-radio-group v-model="formdata.detailReach" @change="radioGroupChange1(formdata.detailReac)">
<u-radio @change="radioChange" v-for="(n, indexn) in listselect1" :key="indexn" :name="n.type">
{{ n.name }}
</u-radio>
</u-radio-group>
</div>
</u-form-item>
<!-- 单号 -->
<u-form-item label="维修费用:">
<u-input v-model="orderNoItemList.productCode" placeholder="" />
</u-form-item>
<!-- 机台 -->
<u-form-item label="维修用时(分钟):">
<u-input v-model="orderNoItemList.productSpc" placeholder="" />
</u-form-item>
<!-- 产品 -->
<u-form-item label="维修人员签字:">
<u-input v-model="orderNoItemList.productName" placeholder="" />
</u-form-item>
<!-- 工单 -->
<u-form-item label="联系方式:">
<u-input v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="原因分析:">
<u-input v-model="orderNoItemList.workorderCode" placeholder="" />
</u-form-item>
<u-form-item label="上传图片:">
<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>
</u-form-item>
</u-form>
<u-button @click="onSubmit" type="primary">提交</u-button>
</div>
</view>
<view class="bottom-bar">
<div class="item-name">
<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,
},
];
listselect1: 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';
formdata: any = {};
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
this.model.rowdata = [];
console.log(0);
}
onShow() {
this.onLoad;
console.log(2, this.model.rowdata);
}
//
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;
// }
}
radioGroupChange1(item) {
console.log(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;
}
.form {
background-color: #fff;
.u-form-item {
line-height: 35rpx;
font-size: 16px;
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;
}
}
}
}
}
.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 .u-form-item--left__content {
min-width: 116px;
white-space: nowrap;
}
.listbottom ::v-deep .uni-input-input {
border: 1px solid black;
width: 98%;
}
::v-deep .u-form-item {
padding: 6px 0;
}
}
</style>

@ -226,6 +226,7 @@ export default class ChangePalletNew extends BasePage {
await this.model.palletInforUpdate(params);
if (model.SubmitCode.code == 200) {
this.uni.showToast({ title: '成功' }); //
this.model.getDictList();
this.Clear(); //
} else {
(this.$refs.uToast as any).show({

@ -7,7 +7,7 @@ import { session } from '@/store/modules/session';
namespaced: true,
dynamic: true,
store,
name: 'page.mes.PalletChangeNew',
name: 'page.mes.Pallethandling',
})
export class ChangePalletNew extends VuexModule {
orderNoItemList: any = [];

@ -65,7 +65,7 @@ export default class RawHome extends BasePage {
model = model;
src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg';
today = dayjs().format('YYYY-MM-DD dddd');
version = '0.0.9';
version = '0.0.10';
checkversion: any = {};
onLoad() {
// this.model.getMenuList();

@ -23,11 +23,11 @@ http.interceptors.request.use(
(config: any) => {
//console.log('123456',config)
//生产请将注释解开重要重要
// if (config.url.includes('/api')) {
// config.baseURL = 'http://192.168.202.23:5001';
// } else {
// config.baseURL = 'http://192.168.202.34:30000';
// }
if (config.url.includes('/api')) {
config.baseURL = 'http://192.168.202.23:5001';
} else {
config.baseURL = 'http://192.168.202.34:30000';
}
// 所有请求默认提示加载中
if (!loading) {
uni.showLoading({ title: '加载中' });
@ -36,7 +36,7 @@ http.interceptors.request.use(
}
// 在请求发送之前做一些处理
config.header['Referrer-Policy'] = 'strict-origin-when-cross-origin';
config.header['poolName'] = session.PoolName;
// config.header['poolName'] = 'ds_1000';
try {
const token = session.user.access_token; //store.state.session.accessToken;
if (token) {

@ -78,20 +78,21 @@ export const url = {
// 提交巡检工单详情信息
updateInspectionRecord: qianzhuione + '/device/devicePDA/updateInspectionRecord',
},
// 销售出库/sellout/showProduceCode/ /sellout/s/订单号/产品编码
SaleOutWH: {
// 报修
Repairbx: {
// 根据交货单号查询下面的产品编码
showProduceCode: qianzhuione + '/wms/sellout/showProduceCode',
getInfoRepair: qianzhuione + '/device/devicePDA/queryEquipment/',
// 根据订单号和产品编码查询
queryinformation: qianzhuione + '/wms/sellout/s',
// 扫描箱码接口
selloutconntray: qianzhuione + '/wms/selloutconntray',
deleteTray: qianzhuione + '/wms/selloutconntray/deleteTray',
// 根据交货单号和产品编码查询展示接口
showTrays: qianzhuione + '/wms/selloutconntray/showTrays',
// 手持出库确认
out: qianzhuione + '/wms/selloutconntray/out',
addRepairRecord: qianzhuione + '/device/devicePDA/addRepairRecord',
},
// 维修
Repair: {
// 获取今日任务 获取历史记录
getTodayTask: qianzhuione + '/device/devicePDA/getMaintenanceRecords',
// 获取历史记录
getTaskRecord: qianzhuione + '/device/devicePDA/getMaintenanceRecords',
// 获取历史记录
selectPdaRepairWorkOrderDetails: qianzhuione + '/device/devicePDA/selectPdaRepairWorkOrderDetails',
},
},
},

@ -12,8 +12,8 @@ module.exports = {
// },
},
'/dev-api': {
target: 'http://192.168.3.93:8080',
//target: 'http://192.168.3.231:8080',
// target: 'http://192.168.3.66:8080',
target: 'http://192.168.3.231:8080',
changeOrigin: true,
pathRewrite: {
'^/dev-api': '',

Loading…
Cancel
Save