|
|
|
@ -40,10 +40,10 @@
|
|
|
|
|
<u-input v-model="formdata.orderConnection" placeholder="" type="text" />
|
|
|
|
|
</u-form-item> -->
|
|
|
|
|
<u-form-item label="故障描述:">
|
|
|
|
|
<u-input v-model="formdata.orderDesc" placeholder="" type="textarea" />
|
|
|
|
|
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" showKey="label" valKey="value" :val="orderDesc.value" :options="model.locList" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 机台 -->
|
|
|
|
|
<u-form-item label="故障时间:">
|
|
|
|
|
<u-form-item class="listbottom1" label="故障时间:">
|
|
|
|
|
<u-input @click="blur()" type="select" v-model="orderBreakdownTime" />
|
|
|
|
|
<u-picker mode="time" :default-time="defaulttime" :params="params" v-model="showtime" @confirm="timeConfirm" :timeEnd="endTime"></u-picker>
|
|
|
|
|
</u-form-item>
|
|
|
|
@ -100,10 +100,9 @@ import moment from 'moment';
|
|
|
|
|
})
|
|
|
|
|
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 = '选择缓存区';
|
|
|
|
|
moren = '选择故障描述';
|
|
|
|
|
shouciFocus = true;
|
|
|
|
|
zaiciFocus = false;
|
|
|
|
|
switchListText = [
|
|
|
|
@ -148,11 +147,12 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
isaccord = false;
|
|
|
|
|
showtime = false;
|
|
|
|
|
defaulttime: any = '';
|
|
|
|
|
orderDesc: 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();
|
|
|
|
|
await this.model.getFaultReasonList();
|
|
|
|
|
//this.remove = this.model.WlList[0];
|
|
|
|
|
}
|
|
|
|
|
onShow() {
|
|
|
|
@ -164,6 +164,9 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async query() {
|
|
|
|
|
this.formdata = {};
|
|
|
|
|
this.imgList = [];
|
|
|
|
|
this.orderDesc = {};
|
|
|
|
|
if (this.orderNo == '' || this.orderNo.length == 0) {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请扫码条码',
|
|
|
|
@ -174,12 +177,14 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
await this.model.queryOrderNo(this.orderNo);
|
|
|
|
|
//console.log('???',model.orderNoItemList)
|
|
|
|
|
if (model.orderNoItemList == undefined) {
|
|
|
|
|
this.isaccord = false;
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '该条码未查到数据,请使用正确的条码!',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
if (this.orderNoItemList.productCode == 'EmptyPallet') {
|
|
|
|
|
this.isaccord = false;
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '该条码未查到数据,请使用正确的条码!',
|
|
|
|
|
type: 'default',
|
|
|
|
@ -205,6 +210,10 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
return v.toString(16);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
async selectProductlocCode(e: any) {
|
|
|
|
|
this.orderDesc = e.pickerName;
|
|
|
|
|
// await this.model.getpalletDestination(params);
|
|
|
|
|
}
|
|
|
|
|
timeConfirm(e) {
|
|
|
|
|
this.orderBreakdownTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.month;
|
|
|
|
|
this.formdata.orderBreakdownTime = this.orderBreakdownTime;
|
|
|
|
@ -225,9 +234,9 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.formdata.orderDesc == '' || this.formdata.orderDesc == undefined) {
|
|
|
|
|
if (this.orderDesc.value == '' || this.orderDesc.value == undefined) {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请输入故障描述',
|
|
|
|
|
title: '故障描述不能为空',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
@ -238,7 +247,7 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
equipmentCode: this.formdata.equipmentCode,
|
|
|
|
|
equipmentName: this.formdata.equipmentName,
|
|
|
|
|
equipmentLocation: this.formdata.equipmentLocation,
|
|
|
|
|
orderDesc: this.formdata.orderDesc,
|
|
|
|
|
orderDesc: this.orderDesc.value,
|
|
|
|
|
orderBreakdownTime: this.formdata.orderBreakdownTime,
|
|
|
|
|
fileList: fileList,
|
|
|
|
|
orderSource: '手持PDA',
|
|
|
|
@ -274,15 +283,12 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
this.orderNo = '';
|
|
|
|
|
this.formdata = {};
|
|
|
|
|
this.imgList = [];
|
|
|
|
|
this.location = '';
|
|
|
|
|
(this.orderBreakdownTime = ''), (this.locationStatus = 1);
|
|
|
|
|
this.productCodeList = {};
|
|
|
|
|
this.productCodelocList = {};
|
|
|
|
|
this.shouciFocus = false;
|
|
|
|
|
this.orderDesc = {};
|
|
|
|
|
// this.shouciFocus = false;
|
|
|
|
|
this.model.empty();
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.shouciFocus = true;
|
|
|
|
|
});
|
|
|
|
|
// this.$nextTick(() => {
|
|
|
|
|
// this.shouciFocus = true;
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
switchChangeFun(e) {
|
|
|
|
|
//console.log(e);
|
|
|
|
@ -563,6 +569,10 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
width: 50%;
|
|
|
|
|
}
|
|
|
|
|
.listbottom ::v-deep .uni-input-input {
|
|
|
|
|
width: 94%;
|
|
|
|
|
padding: 5px;
|
|
|
|
|
}
|
|
|
|
|
.listbottom1 ::v-deep .uni-input-input {
|
|
|
|
|
border: 1px solid black;
|
|
|
|
|
width: 94%;
|
|
|
|
|
padding: 5px;
|
|
|
|
|