手持下拉框修改

master
LAPTOP-R6EHHS26\86155 1 year ago
parent bc8d834143
commit 30664d1a51

@ -67,6 +67,7 @@ export default {
// unSelStyle:'', // unSelStyle:'',
//'background-color:rgba(0, 74, 255, 0.44);',//'background-color:rgba(220, 250, 9, 0.44);',rgba(250, 9, 9, 0.44) //'background-color:rgba(0, 74, 255, 0.44);',//'background-color:rgba(220, 250, 9, 0.44);',rgba(250, 9, 9, 0.44)
selStyle: 'height:50px;', selStyle: 'height:50px;',
keyWord: '',
}; };
}, },
props: ['options', 'moren', 'showKey', 'valKey', 'val', 'position', 'disabled', 'bgColor', 'sureColor', 'focus'], props: ['options', 'moren', 'showKey', 'valKey', 'val', 'position', 'disabled', 'bgColor', 'sureColor', 'focus'],
@ -129,12 +130,20 @@ export default {
sureSelect() { sureSelect() {
this.pickerVisable = false; this.pickerVisable = false;
if (this.listData.length == 0) { if (this.listData.length == 0) {
uni.showToast({ // uni.showToast({
//title: '', // //title: '',
icon: 'none', // icon: 'none',
title: this.$t('message.unselected') as string, // title: this.$t('message.unselected') as string,
}); // });
let obj = {
pickerVal: this.keyWord,
pickerName: {
label: this.keyWord,
value: this.keyWord,
},
};
this.$emit('sure', {}); this.$emit('sure', {});
this.$emit('bindinput', obj);
} else { } else {
let obj = { let obj = {
pickerVal: this.nSel, pickerVal: this.nSel,
@ -161,8 +170,9 @@ export default {
this.nSel = e.detail.value[0]; this.nSel = e.detail.value[0];
}, },
filterOp(e) { filterOp(e) {
//console.log(e.detail.value); // console.log(e.detail.value);
let keyWord = e.detail.value; let keyWord = e.detail.value;
this.keyWord = e.detail.value;
if (keyWord != '') { if (keyWord != '') {
keyWord = keyWord.toLowerCase(); keyWord = keyWord.toLowerCase();
let oldArr = this.options; let oldArr = this.options;

@ -154,10 +154,10 @@
</u-form-item> --> </u-form-item> -->
<!-- 工单 --> <!-- 工单 -->
<u-form-item label="原因分析:"> <u-form-item label="原因分析:">
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" showKey="label" valKey="value" :val="workReason.value" :options="model.locList2" /> <jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" @bindinput="selectbindinput" showKey="label" valKey="value" :val="workReason.value" :options="model.locList2" />
</u-form-item> </u-form-item>
<u-form-item label="维修措施:"> <u-form-item label="维修措施:">
<jPicker sureColor="#ff0000" :moren="moren2" @bindpicker="selectProductlocCode2" showKey="label" valKey="value" :val="repairMeasures.value" :options="model.locList" /> <jPicker sureColor="#ff0000" :moren="moren2" @bindpicker="selectProductlocCode2" @bindinput="selectbindinput2" showKey="label" valKey="value" :val="repairMeasures.value" :options="model.locList" />
</u-form-item> </u-form-item>
<u-form-item label="上传图片:"> <u-form-item label="上传图片:">
<scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollLeft1()"> <scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollLeft1()">
@ -305,6 +305,7 @@ export default class ChangePalletNew extends BasePage {
isvalue = false; isvalue = false;
workReason: any = {}; workReason: any = {};
repairMeasures: any = {}; repairMeasures: any = {};
workReasonceshi: 'aaaaa';
async onReady() { async onReady() {
//await this.model.getpalletLocation(); //await this.model.getpalletLocation();
//this.remove = this.model.WlList[0]; //this.remove = this.model.WlList[0];
@ -321,6 +322,7 @@ export default class ChangePalletNew extends BasePage {
this.Sparepartlist = this.model.rowdata; this.Sparepartlist = this.model.rowdata;
console.log(1, this.model.rowdata, this.Sparepartlist); console.log(1, this.model.rowdata, this.Sparepartlist);
} }
console.log(session);
} }
// //
blur(item, value, index, index1) { blur(item, value, index, index1) {
@ -442,10 +444,22 @@ export default class ChangePalletNew extends BasePage {
this.workReason = e.pickerName; this.workReason = e.pickerName;
// await this.model.getpalletDestination(params); // await this.model.getpalletDestination(params);
} }
async selectbindinput(e: any) {
model.locList2.push(e.pickerName);
this.workReason = e.pickerName;
console.log(this.workReason.value, e, model.locList2);
// await this.model.getpalletDestination(params);
}
async selectProductlocCode2(e: any) { async selectProductlocCode2(e: any) {
this.repairMeasures = e.pickerName; this.repairMeasures = e.pickerName;
// await this.model.getpalletDestination(params); // await this.model.getpalletDestination(params);
} }
async selectbindinput2(e: any) {
model.locList.push(e.pickerName);
this.repairMeasures = e.pickerName;
console.log(this.workReason.value, e, model.locList2);
// await this.model.getpalletDestination(params);
}
scrollLeft() { scrollLeft() {
return 222 * (this.imgList.length + 1); return 222 * (this.imgList.length + 1);
} }

@ -42,7 +42,7 @@
<u-input v-model="formdata.orderConnection" placeholder="" type="text" /> <u-input v-model="formdata.orderConnection" placeholder="" type="text" />
</u-form-item> --> </u-form-item> -->
<u-form-item label="故障描述:"> <u-form-item label="故障描述:">
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" showKey="label" valKey="value" :val="orderDesc.value" :options="model.locList" /> <jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductlocCode" @bindinput="selectbindinput" showKey="label" valKey="value" :val="orderDesc.value" :options="model.locList" />
</u-form-item> </u-form-item>
<!-- 机台 --> <!-- 机台 -->
<u-form-item class="listbottom1" label="故障时间:"> <u-form-item class="listbottom1" label="故障时间:">
@ -218,6 +218,11 @@ export default class ChangePalletNew extends BasePage {
this.orderDesc = e.pickerName; this.orderDesc = e.pickerName;
// await this.model.getpalletDestination(params); // await this.model.getpalletDestination(params);
} }
async selectbindinput(e: any) {
model.locList.push(e.pickerName);
this.orderDesc = e.pickerName;
// await this.model.getpalletDestination(params);
}
timeConfirm(e) { timeConfirm(e) {
this.orderBreakdownTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.month; this.orderBreakdownTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.month;
this.formdata.orderBreakdownTime = this.orderBreakdownTime; this.formdata.orderBreakdownTime = this.orderBreakdownTime;

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

Loading…
Cancel
Save