|
|
|
@ -32,11 +32,14 @@
|
|
|
|
|
<view>{{ $t('message.Materiel') }}</view>
|
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 260rpx" @bindpicker="materialChoice" showKey="value" valKey="value" :val="every.materialCode" class="search" :options="materialList" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="material-right">
|
|
|
|
|
</view>
|
|
|
|
|
<view class="material"
|
|
|
|
|
><view class="material-right">
|
|
|
|
|
<view class="material-right-title">{{ $t('message.CommissionedMaterielDesc') }}</view>
|
|
|
|
|
<view class="material-right-code">{{ every.materialDesc }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<!-- 需求数量 -->
|
|
|
|
|
<view class="number">
|
|
|
|
|
<view class="number-left">
|
|
|
|
@ -136,7 +139,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
requestAmount: number = null;
|
|
|
|
|
|
|
|
|
|
async onReady() {
|
|
|
|
|
// this.initLocation();
|
|
|
|
|
this.initLocation();
|
|
|
|
|
}
|
|
|
|
|
// 页面初始化
|
|
|
|
|
// 页面需要清空仓库,因此需要复用该方法
|
|
|
|
@ -152,6 +155,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
};
|
|
|
|
|
let res: any = await this.model.queryByFactoryCodeAndWorkAreaCode(content);
|
|
|
|
|
res.forEach((item: any) => {
|
|
|
|
|
console.log('res is:', res);
|
|
|
|
|
let pickerName: any = {};
|
|
|
|
|
pickerName.label = item.locationCode;
|
|
|
|
|
pickerName.value = item.locationCode + '(' + item.sendSpot + ')';
|
|
|
|
@ -271,6 +275,11 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
deleteItem(index: any) {
|
|
|
|
|
this.LocationList.splice(index, 1);
|
|
|
|
|
this.business();
|
|
|
|
|
// guoshuang 删除成功提示
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'none',
|
|
|
|
|
title: this.$t('message.success') as any,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// 重置页面数据
|
|
|
|
|
resetForm() {
|
|
|
|
@ -408,7 +417,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
.material-left {
|
|
|
|
|
width: 50%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
view {
|
|
|
|
@ -416,8 +425,13 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.material {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
.material-right {
|
|
|
|
|
width: 50%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
.material-right-title {
|
|
|
|
@ -426,7 +440,7 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
.material-right-code {
|
|
|
|
|
width: 190rpx;
|
|
|
|
|
width: 80%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
// line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|