手持下拉框修改

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

@ -67,6 +67,7 @@ export default {
// unSelStyle:'',
//'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;',
keyWord: '',
};
},
props: ['options', 'moren', 'showKey', 'valKey', 'val', 'position', 'disabled', 'bgColor', 'sureColor', 'focus'],
@ -129,12 +130,20 @@ export default {
sureSelect() {
this.pickerVisable = false;
if (this.listData.length == 0) {
uni.showToast({
//title: '',
icon: 'none',
title: this.$t('message.unselected') as string,
});
// uni.showToast({
// //title: '',
// icon: 'none',
// title: this.$t('message.unselected') as string,
// });
let obj = {
pickerVal: this.keyWord,
pickerName: {
label: this.keyWord,
value: this.keyWord,
},
};
this.$emit('sure', {});
this.$emit('bindinput', obj);
} else {
let obj = {
pickerVal: this.nSel,
@ -163,6 +172,7 @@ export default {
filterOp(e) {
// console.log(e.detail.value);
let keyWord = e.detail.value;
this.keyWord = e.detail.value;
if (keyWord != '') {
keyWord = keyWord.toLowerCase();
let oldArr = this.options;

@ -154,10 +154,10 @@
</u-form-item> -->
<!-- 工单 -->
<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 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 label="上传图片:">
<scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollLeft1()">
@ -305,6 +305,7 @@ export default class ChangePalletNew extends BasePage {
isvalue = false;
workReason: any = {};
repairMeasures: any = {};
workReasonceshi: 'aaaaa';
async onReady() {
//await this.model.getpalletLocation();
//this.remove = this.model.WlList[0];
@ -321,6 +322,7 @@ export default class ChangePalletNew extends BasePage {
this.Sparepartlist = this.model.rowdata;
console.log(1, this.model.rowdata, this.Sparepartlist);
}
console.log(session);
}
//
blur(item, value, index, index1) {
@ -442,10 +444,22 @@ export default class ChangePalletNew extends BasePage {
this.workReason = e.pickerName;
// 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) {
this.repairMeasures = e.pickerName;
// 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() {
return 222 * (this.imgList.length + 1);
}

@ -42,7 +42,7 @@
<u-input v-model="formdata.orderConnection" placeholder="" type="text" />
</u-form-item> -->
<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 class="listbottom1" label="故障时间:">
@ -218,6 +218,11 @@ export default class ChangePalletNew extends BasePage {
this.orderDesc = e.pickerName;
// 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) {
this.orderBreakdownTime = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.month;
this.formdata.orderBreakdownTime = this.orderBreakdownTime;

@ -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.36';
version = '0.0.37';
checkversion: any = {};
sessiondata: any = '';
onLoad() {

Loading…
Cancel
Save