采购收获问题处理

master
guoshuang 12 months ago
parent f0a959511f
commit aaf9056bd0

@ -32,7 +32,11 @@
<picker-view :value="[nSel]" class="pickerView" :mask-style="'background-color:' + bgColor" :indicator-style="selStyle" @change="selChange">
<picker-view-column>
<view class="opItem" v-for="(item, index) in listData" :key="index">
<view style="color:#9b1f1f;text-align:left" v-if="showCode">{{ delzero(item[valKey])|| item}}</view>
<view style="color: #9b1f1f; text-align: left">
<span v-if="showCode">:{{ delzero(item[valKey]) || item }}</span>
<span v-if="duoyukey"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span>采购单:{{ item[duoyukey] }}</span>
</view>
<view>{{ item[showKey] || item }}</view>
</view>
</picker-view-column>
@ -47,12 +51,13 @@
* 选择组件
* @property {Array} options 选择数组
* @property {String} showKey 显示的对象键名
* @property {String} duoyukey 取值的对象键名
* @property {String} val 默认选中下标
* @property {String} valKey 取值的对象键名
* @property {Boolean} disabled 是否只读
* * @property {String} moren 是否只读
* @property {Boolean} showCode 是否在选项中增加code显示,且是处理后的去掉物料编码中前面的几个零
*
*
* @event {Function} position 搜索框位置
* @event {Function} sure 确认事件
* @example <jPicker :disabled="false" class="cont" @sure="bindPickerChange($event,'TYPE')" showKey="Name" valKey="Value" :val="CurrentType" :options="FilterArray" />
@ -73,7 +78,7 @@ export default {
keyWord: '',
};
},
props: ['options', 'moren', 'showKey', 'valKey', 'val', 'position', 'disabled', 'bgColor', 'sureColor', 'focus', 'showCode'],
props: ['options', 'moren', 'showKey', 'duoyukey', 'valKey', 'val', 'position', 'disabled', 'bgColor', 'sureColor', 'focus', 'showCode'],
//,,,,,
watch: {
options(n) {
@ -105,7 +110,7 @@ export default {
}
},
methods: {
delzero(item){
delzero(item) {
return item.slice(item.search(/[1-9]/));
},
showPicker() {
@ -360,7 +365,7 @@ export default {
color: #000000;
display: flex;
flex-direction: column;
justify-content:space-around;
justify-content: space-around;
}
}
}

@ -142,7 +142,7 @@ export default class LoginPage extends BasePage {
// console.log('Version////', this.Version);
}
///******************
version = '0.0.77'; //
version = '0.0.78'; //
//version = '0.0.4'; //
//*************** false true ****************
//isTest = true;

@ -12,7 +12,7 @@
<view class="single">
<view class="single-left">
<view>送货单号:</view>
<u-search placeholder="请扫描" v-model="userDefined5" :show-action="false"></u-search>
<u-search placeholder="请扫描" v-model="userDefined5" @search="query" :show-action="false"></u-search>
</view>
<view class="single-right">
<u-button type="primary" @click="tidandelivery"></u-button>
@ -31,7 +31,7 @@
<!-- 订单 -->
<u-form-item label="物料描述">
<!-- <u-input :border="true" v-model="materialCode" placeholder="" @confirm="query" style="overflow: hidden" /> -->
<jPicker sureColor="#ff0000" :showCode="true" @bindpicker="bookTypeChange" showKey="label" valKey="value" :val="aimWl.value" :options="materilist" />
<jPicker sureColor="#ff0000" :showCode="true" @bindpicker="bookTypeChange" duoyukey="procureCode" showKey="label" valKey="value" :val="aimWl.value" :options="materilist" />
</u-form-item>
<view class="creatshow">
<u-button class="buttonshow" type="primary" @click="generate"></u-button>
@ -452,6 +452,7 @@ export default class receivePO extends BasePage {
if (this.materilist.length) {
this.aimWl = this.materilist[0];
this.list.push(this.materilist[0]);
this.procureCode = this.list[0].procureCode;
} else {
this.aimWl = {} as OptionType;
}
@ -594,11 +595,8 @@ export default class receivePO extends BasePage {
bookTypeChange(e: any) {
this.aimWl = e.pickerName;
this.list = [];
this.materilist.forEach((item) => {
if (e.pickerName.value == item.materialCode) {
this.list.push(item);
}
});
this.list.push(e.pickerName);
this.procureCode = this.list[0].procureCode;
//
//this.queryinformation();
//this.getlist();

Loading…
Cancel
Save