|
|
|
@ -30,33 +30,33 @@
|
|
|
|
|
<view class="list">
|
|
|
|
|
<view class="row-list">
|
|
|
|
|
<view class="list-item"> 生产订单: </view>
|
|
|
|
|
<view> {{ orderNodetail.aa }} </view>
|
|
|
|
|
<view> {{ model.orderNoItemList.productOrder }} </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="row-list">
|
|
|
|
|
<view class="list-item"> 产品编码: </view>
|
|
|
|
|
<view> {{ orderNodetail.aa }} </view>
|
|
|
|
|
<view> {{ model.orderNoItemList.productCode }} </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="row-list">
|
|
|
|
|
<view class="list-item"> 产品名称: </view>
|
|
|
|
|
<view> {{ orderNodetail.aa }} </view>
|
|
|
|
|
<view> {{ model.orderNoItemList.productName }} </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="row-list">
|
|
|
|
|
<view class="row-list-item">
|
|
|
|
|
<view class="list-item"> 订单数量: </view>
|
|
|
|
|
<view> {{ orderNodetail.aa }} </view>
|
|
|
|
|
<view> {{ model.orderNoItemList.planQuantity }} </view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="row-list-item">
|
|
|
|
|
<view class="list-item"> 单位: </view>
|
|
|
|
|
<view> {{ orderNodetail.aa }} </view>
|
|
|
|
|
<view> {{ model.orderNoItemList.unitOfMeasure }} </view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="row-list">
|
|
|
|
|
<view class="list-item">入库数量: </view>
|
|
|
|
|
<view> {{ orderNodetail.aa }} </view>
|
|
|
|
|
<view> {{ model.orderNoItemList.putQuantity }} </view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-form>
|
|
|
|
|
<u-form class="form4">
|
|
|
|
|
<u-form class="form4" style="">
|
|
|
|
|
<!-- <u-search placeholder="请扫描" v-model="boxnumber" :show-action="false"></u-search> -->
|
|
|
|
|
<view class="buttontostore" @click="rukubutn">入库</view>
|
|
|
|
|
<!-- <u-input style="border: 0.5rpx solid #8d8989; border-radius: 10rpx" v-model="boxnumber" @click="clickscan"></u-input> -->
|
|
|
|
@ -115,15 +115,15 @@
|
|
|
|
|
<view class="form5">
|
|
|
|
|
<view class="poupitem">
|
|
|
|
|
<view class="pouptitle">托盘号:</view>
|
|
|
|
|
<u-input class="poupcontent" :clearable="false" v-model="form5.productDescZh" placeholder="" style="overflow: hidden" />
|
|
|
|
|
<u-input class="poupcontent" :clearable="false" v-model="form5.sn" placeholder="" style="overflow: hidden" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="poupitem">
|
|
|
|
|
<view class="pouptitle">入库库位:</view>
|
|
|
|
|
<u-input class="poupcontent" :clearable="false" v-model="form5.productDescZh" placeholder="" style="overflow: hidden" />
|
|
|
|
|
<u-input class="poupcontent" :clearable="false" v-model="form5.wlCode" placeholder="" style="overflow: hidden" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="poupitem">
|
|
|
|
|
<view class="pouptitle">箱数:</view>
|
|
|
|
|
<u-input class="poupcontent" :clearable="false" v-model="form5.productDescZh" placeholder="" style="overflow: hidden" />
|
|
|
|
|
<u-input class="poupcontent" :clearable="false" v-model="form5.number" placeholder="" style="overflow: hidden" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="poupbutton">
|
|
|
|
@ -141,6 +141,7 @@
|
|
|
|
|
</u-popup>
|
|
|
|
|
<view v-if="show" class="mask"></view>
|
|
|
|
|
</view>
|
|
|
|
|
<u-modal v-model="showmodal" @confirm="confirm" :content="content" show-cancel-button="true"></u-modal>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts">
|
|
|
|
@ -175,6 +176,8 @@ export default class OfflineStorage extends BasePage {
|
|
|
|
|
value: '0',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
showmodal = false;
|
|
|
|
|
content: any = '';
|
|
|
|
|
// remove: any = {};
|
|
|
|
|
// async onReady() {
|
|
|
|
|
// await this.model.queryLocation();
|
|
|
|
@ -206,9 +209,17 @@ export default class OfflineStorage extends BasePage {
|
|
|
|
|
this.aimWl = e.pickerName;
|
|
|
|
|
}
|
|
|
|
|
//列表删除按钮
|
|
|
|
|
onPassdelet(item) {
|
|
|
|
|
async onPassdelet(item) {
|
|
|
|
|
console.log('1234567', item);
|
|
|
|
|
// this.showmodal = true
|
|
|
|
|
// this.content = '是否删除?';
|
|
|
|
|
// let params = {
|
|
|
|
|
// item
|
|
|
|
|
// }
|
|
|
|
|
await this.model.deleteTray(item);
|
|
|
|
|
}
|
|
|
|
|
// confirm(item) {
|
|
|
|
|
// }
|
|
|
|
|
//取消按钮
|
|
|
|
|
nopoup() {
|
|
|
|
|
this.show = false;
|
|
|
|
@ -220,14 +231,16 @@ export default class OfflineStorage extends BasePage {
|
|
|
|
|
this.customToast('请输入nficl');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// await this.model.queryOrderNo(this.orderNo);
|
|
|
|
|
console.log(model.orderNoItemList);
|
|
|
|
|
await this.model.queryOrderNo(this.orderNo);
|
|
|
|
|
// this.orderNodetail = model.orderNoItemList;
|
|
|
|
|
}
|
|
|
|
|
histroyItem: any = {};
|
|
|
|
|
barcode: any = '';
|
|
|
|
|
//入库确认按钮
|
|
|
|
|
onSubmit() {
|
|
|
|
|
async onSubmit() {
|
|
|
|
|
console.log('1234567');
|
|
|
|
|
await this.model.handPut(this.list);
|
|
|
|
|
}
|
|
|
|
|
rukubutn() {
|
|
|
|
|
this.show = true;
|
|
|
|
@ -239,32 +252,11 @@ export default class OfflineStorage extends BasePage {
|
|
|
|
|
// this.customToast('请输入nficl');
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
// await this.model.queryOrderNo(this.form5);
|
|
|
|
|
await this.model.insertTary(this.form5);
|
|
|
|
|
// //入库后的查询下面列表的接口
|
|
|
|
|
// await this.model.queryOrderNo(this.form5);
|
|
|
|
|
// this.list = model.orderNoItemList;
|
|
|
|
|
}
|
|
|
|
|
clickscan() {
|
|
|
|
|
const self: OfflineStorage = this as OfflineStorage;
|
|
|
|
|
const showToast = (message: string) => {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: message,
|
|
|
|
|
icon: 'none',
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
uni.scanCode({
|
|
|
|
|
onlyFromCamera: true,
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log('条码类型:' + res.scanType);
|
|
|
|
|
console.log('条码内容:' + res.result);
|
|
|
|
|
self.boxnumber = res.result;
|
|
|
|
|
//that.getByPoint();
|
|
|
|
|
},
|
|
|
|
|
fail: function () {
|
|
|
|
|
showToast('扫码不成功');
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@ -414,14 +406,17 @@ export default class OfflineStorage extends BasePage {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
.buttontostore {
|
|
|
|
|
margin-top: 5px;
|
|
|
|
|
background: red;
|
|
|
|
|
width: 10%;
|
|
|
|
|
width: 13%;
|
|
|
|
|
/* height: 100%; */
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
height: 33px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
/* margin: auto; */
|
|
|
|
|
color: #ffff;
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
}
|
|
|
|
|
.u-input__input {
|
|
|
|
|
min-height: 36px;
|
|
|
|
@ -525,9 +520,6 @@ export default class OfflineStorage extends BasePage {
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.button-bar {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.photoList {
|
|
|
|
|
display: flex;
|
|
|
|
|
padding-top: 12rpx;
|
|
|
|
@ -614,8 +606,11 @@ export default class OfflineStorage extends BasePage {
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
margin: 20rpx;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.pouptitle {
|
|
|
|
|
width: 25%;
|
|
|
|
|
// width: 25%;
|
|
|
|
|
min-width: 35%;
|
|
|
|
|
// white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
.poupcontent {
|
|
|
|
|
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
|
|
|