|
|
@ -12,20 +12,20 @@
|
|
|
|
<view class="single">
|
|
|
|
<view class="single">
|
|
|
|
<view class="single-left">
|
|
|
|
<view class="single-left">
|
|
|
|
<view>rfid:</view>
|
|
|
|
<view>rfid:</view>
|
|
|
|
<u-search placeholder="请扫描" v-model="orderNo" :show-action="false"></u-search>
|
|
|
|
<u-search placeholder="请扫描" :focus="shouciFocus" v-model="orderNo" :show-action="false"></u-search>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- <view class="single-right">
|
|
|
|
<!-- <view class="single-right">
|
|
|
|
<u-button type="primary" @click="query">提交</u-button>
|
|
|
|
<u-button type="primary" @click="query">提交</u-button>
|
|
|
|
</view> -->
|
|
|
|
</view> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<u-form-item label="托盘码">
|
|
|
|
<u-form-item label="托盘码:">
|
|
|
|
<u-search placeholder="请扫描托盘码" v-model="location" :show-action="false"></u-search>
|
|
|
|
<u-search placeholder="请扫描托盘码" v-model="location" :show-action="false"></u-search>
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
<u-form-item>
|
|
|
|
<u-form-item>
|
|
|
|
<choose-one @switchfunction="switchChangeFun" :switchType="'text'" :defaultColor="'#4A72F9'" :highColor="'#FFFFFF'" :defaultValue="locationStatus" :switchList="switchListText"></choose-one>
|
|
|
|
<choose-one @switchfunction="switchChangeFun" :switchType="'text'" :defaultColor="'#4A72F9'" :highColor="'#FFFFFF'" :defaultValue="locationStatus" :switchList="switchListText"></choose-one>
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
<u-form-item>
|
|
|
|
<u-form-item label="缓存区:">
|
|
|
|
<jPicker sureColor="#ff0000" @bindpicker="selectProductCode" showKey="label" valKey="value" :val="productCodeList.value" :options="model.DictList" />
|
|
|
|
<jPicker sureColor="#ff0000" :moren="moren" @bindpicker="selectProductCode" showKey="label" valKey="value" :val="productCodeList.value" :options="model.DictList" />
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
</u-form>
|
|
|
|
</u-form>
|
|
|
|
<view class="bottom-bar">
|
|
|
|
<view class="bottom-bar">
|
|
|
@ -58,6 +58,9 @@ import jPicker from '@/components/J-Picker/jPicker.vue';
|
|
|
|
})
|
|
|
|
})
|
|
|
|
export default class PalletChange extends BasePage {
|
|
|
|
export default class PalletChange extends BasePage {
|
|
|
|
model = model;
|
|
|
|
model = model;
|
|
|
|
|
|
|
|
moren = '选择缓存区';
|
|
|
|
|
|
|
|
shouciFocus = true;
|
|
|
|
|
|
|
|
zaiciFocus = false;
|
|
|
|
switchListText = [
|
|
|
|
switchListText = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '置为正常',
|
|
|
|
title: '置为正常',
|
|
|
@ -79,7 +82,7 @@ export default class PalletChange extends BasePage {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
orderNo: any = '';
|
|
|
|
orderNo: any = '';
|
|
|
|
location: any = '';
|
|
|
|
location: any = '';
|
|
|
|
locationStatus: any = 1;
|
|
|
|
locationStatus: any = -1;
|
|
|
|
generateGUID() {
|
|
|
|
generateGUID() {
|
|
|
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
|
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
|
|
var r = (Math.random() * 16) | 0,
|
|
|
|
var r = (Math.random() * 16) | 0,
|
|
|
@ -110,13 +113,24 @@ export default class PalletChange extends BasePage {
|
|
|
|
reqTime: formattedDate,
|
|
|
|
reqTime: formattedDate,
|
|
|
|
location: this.location,
|
|
|
|
location: this.location,
|
|
|
|
locationStatus: this.locationStatus,
|
|
|
|
locationStatus: this.locationStatus,
|
|
|
|
productionState: '2', //this.productCodeList.value,
|
|
|
|
productionState: this.productCodeList.value,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
await this.model.palletInforUpdate(params);
|
|
|
|
await this.model.palletInforUpdate(params);
|
|
|
|
if (model.SubmitCode == 10) {
|
|
|
|
if (model.SubmitCode == 10) {
|
|
|
|
this.uni.showToast({ title: '成功' });
|
|
|
|
this.uni.showToast({ title: '成功' });
|
|
|
|
|
|
|
|
this.Clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Clear() {
|
|
|
|
|
|
|
|
this.orderNo = '';
|
|
|
|
|
|
|
|
this.location = '';
|
|
|
|
|
|
|
|
this.locationStatus = -1;
|
|
|
|
|
|
|
|
this.productCodeList = {};
|
|
|
|
|
|
|
|
this.shouciFocus = false;
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
|
|
this.shouciFocus = true;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
switchChangeFun(e) {
|
|
|
|
switchChangeFun(e) {
|
|
|
|
//console.log(e);
|
|
|
|
//console.log(e);
|
|
|
|
this.locationStatus = e.swithcSelectItem.value;
|
|
|
|
this.locationStatus = e.swithcSelectItem.value;
|
|
|
|