|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<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({})" />
|
|
|
|
|
<u-icon class="icon" name="arrow-left" @click="Back()" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="title">巡检详情</view>
|
|
|
|
|
<view class="right"></view>
|
|
|
|
@ -25,6 +25,9 @@
|
|
|
|
|
<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>
|
|
|
|
|
<view class="single-right">
|
|
|
|
|
<u-button type="primary" @click="selscteq()">选择</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <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">
|
|
|
|
@ -60,7 +63,7 @@
|
|
|
|
|
</u-col>
|
|
|
|
|
<!-- 返回 -->
|
|
|
|
|
<u-col :span="6">
|
|
|
|
|
<u-button type="error" @click="uni.navigateBack({})">返回</u-button>
|
|
|
|
|
<u-button type="error" @click="Back()">返回</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
</view>
|
|
|
|
@ -96,6 +99,7 @@ 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 model1 from '../../equipment/Repairbx/model';
|
|
|
|
|
//import store from '@/store';
|
|
|
|
|
@Component({
|
|
|
|
|
components: {
|
|
|
|
@ -105,6 +109,7 @@ import { session } from '@/store/modules/session';
|
|
|
|
|
})
|
|
|
|
|
export default class ChangePalletNew extends BasePage {
|
|
|
|
|
model = model;
|
|
|
|
|
model1 = model1;
|
|
|
|
|
list: any = [
|
|
|
|
|
{
|
|
|
|
|
cate_name: '今日任务',
|
|
|
|
@ -160,6 +165,26 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
async onReady() {
|
|
|
|
|
//await this.model.getpalletLocation();
|
|
|
|
|
//this.remove = this.model.WlList[0];
|
|
|
|
|
console.log(this.model1.rowdata, '727sssss2727');
|
|
|
|
|
}
|
|
|
|
|
// 选择设备
|
|
|
|
|
onShow() {
|
|
|
|
|
if (this.model1.rowdata.length == 0) {
|
|
|
|
|
this.model1.rowdatanull();
|
|
|
|
|
} else {
|
|
|
|
|
this.orderNo = '';
|
|
|
|
|
console.log(this.model1.rowdata, '7272727');
|
|
|
|
|
if (this.model1.rowdata[0].equipmentCode == this.detailsinfolist.equipmentCode) {
|
|
|
|
|
this.orderNo = this.model1.rowdata[0].equipmentCode;
|
|
|
|
|
this.isaccord = true;
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '失败请选择正确设备',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
this.isaccord = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 输入框焦点
|
|
|
|
|
blur(item, value, index, index1) {
|
|
|
|
@ -189,6 +214,11 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
changeinput(e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
}
|
|
|
|
|
Back() {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: `/pages/equipment/Inspection/index`,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
input(e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
}
|
|
|
|
@ -196,6 +226,12 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
radioChange(e) {
|
|
|
|
|
console.log(e, '11111');
|
|
|
|
|
}
|
|
|
|
|
//选择
|
|
|
|
|
selscteq() {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages/equipment/equipmentlist?listitem=`,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// 选中任一radio时,由radio-group触发
|
|
|
|
|
radioGroupChange(item, value, index, index1) {
|
|
|
|
|
console.log(item, value, index, index1);
|
|
|
|
@ -391,10 +427,10 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
uni.navigateBack({});
|
|
|
|
|
// uni.redirectTo({
|
|
|
|
|
// url: `/pages/equipment/Inspection/index?listitem=`,
|
|
|
|
|
// });
|
|
|
|
|
// uni.navigateBack({});
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: `/pages/equipment/Inspection/index`,
|
|
|
|
|
});
|
|
|
|
|
}, 1000);
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|