|
|
|
@ -12,37 +12,74 @@
|
|
|
|
|
<view class="single">
|
|
|
|
|
<view class="single-left">
|
|
|
|
|
<view>rfid:</view>
|
|
|
|
|
<u-search placeholder="请扫描" v-model="orderNo" @search="query" :show-action="false"></u-search>
|
|
|
|
|
<u-search placeholder="请扫描" v-model="orderNo" :show-action="false"></u-search>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="single-right">
|
|
|
|
|
<!-- <view class="single-right">
|
|
|
|
|
<u-button type="primary" @click="query">提交</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
</view> -->
|
|
|
|
|
</view>
|
|
|
|
|
<u-form-item label="托盘码">
|
|
|
|
|
<u-search placeholder="请扫描托盘码" v-model="location" :show-action="false"></u-search>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item>
|
|
|
|
|
<choose-one @switchfunction="switchChangeFun" :switchType="'text'" :defaultColor="'#4A72F9'" :highColor="'#FFFFFF'" :defaultValue="locationStatus" :switchList="switchListText"></choose-one>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item>
|
|
|
|
|
<jPicker sureColor="#ff0000" @bindpicker="selectProductCode" showKey="label" valKey="value" :val="productCodeList.value" :options="model.DictList" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</u-form>
|
|
|
|
|
<view class="bottom-bar">
|
|
|
|
|
<u-row class="button-bar">
|
|
|
|
|
<!-- 确定 -->
|
|
|
|
|
<u-col :span="6">
|
|
|
|
|
<u-button @click="query" type="primary">确定</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
<!-- 返回 -->
|
|
|
|
|
<u-col :span="6">
|
|
|
|
|
<u-button type="error" @click="uni.navigateBack({})">返回</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { Component } from 'vue-property-decorator';
|
|
|
|
|
import { BasePage } from '@/components/base/page';
|
|
|
|
|
import model from './model';
|
|
|
|
|
import chooseOne from '@/components/choose-one/choose-one.vue';
|
|
|
|
|
import jPicker from '@/components/J-Picker/jPicker.vue';
|
|
|
|
|
//import { session } from '@/store/modules/session';
|
|
|
|
|
//import store from '@/store';
|
|
|
|
|
@Component({})
|
|
|
|
|
@Component({
|
|
|
|
|
components: {
|
|
|
|
|
chooseOne,
|
|
|
|
|
jPicker,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
export default class PalletChange extends BasePage {
|
|
|
|
|
model = model;
|
|
|
|
|
switchListText = [
|
|
|
|
|
{
|
|
|
|
|
title: '置为正常',
|
|
|
|
|
value: 1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '人工处理',
|
|
|
|
|
value: 0,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
productCodeList: any = {};
|
|
|
|
|
// remove: any = {};
|
|
|
|
|
// async onReady() {
|
|
|
|
|
// await this.model.queryLocation();
|
|
|
|
|
// this.remove = this.model.WlList[0];
|
|
|
|
|
// }
|
|
|
|
|
async onReady() {
|
|
|
|
|
await this.model.getDictList();
|
|
|
|
|
//this.remove = this.model.WlList[0];
|
|
|
|
|
}
|
|
|
|
|
// selectItem(e: any) {
|
|
|
|
|
// this.remove = e.pickerName;
|
|
|
|
|
// }
|
|
|
|
|
orderNo: any = '';
|
|
|
|
|
location: any = '';
|
|
|
|
|
locationStatus: any = 1;
|
|
|
|
|
generateGUID() {
|
|
|
|
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
|
|
|
var r = (Math.random() * 16) | 0,
|
|
|
|
@ -72,9 +109,18 @@ export default class PalletChange extends BasePage {
|
|
|
|
|
reqCode: this.generateGUID(),
|
|
|
|
|
reqTime: formattedDate,
|
|
|
|
|
location: this.location,
|
|
|
|
|
locationStatus: this.locationStatus,
|
|
|
|
|
productionState: this.productCodeList.value,
|
|
|
|
|
};
|
|
|
|
|
await this.model.palletInforUpdate(params);
|
|
|
|
|
}
|
|
|
|
|
switchChangeFun(e) {
|
|
|
|
|
//console.log(e);
|
|
|
|
|
this.locationStatus = e.swithcSelectItem.value;
|
|
|
|
|
}
|
|
|
|
|
async selectProductCode(e: any) {
|
|
|
|
|
this.productCodeList = e.pickerName;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@ -161,5 +207,21 @@ export default class PalletChange extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.bottom-bar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
z-index: 99;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
box-shadow: 0 1rpx 20rpx 0 rgba(128, 128, 128, 0.2);
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .yjy-switch-container .yjy-switch-item {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .yjy-switch-container {
|
|
|
|
|
width: 50%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|