|
|
|
@ -25,8 +25,7 @@
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 物料号 -->
|
|
|
|
|
<u-form-item :label="$t('message.po_MaterielNo')" prop="productDescZh">
|
|
|
|
|
<u-input v-model="productItem.productCode" type="select" @click="originWlSelect = true" :placeholder="$t('message.po_PleaseInput')" />
|
|
|
|
|
<u-select :confirm-text="$t('message.product_Confirm')" :cancel-text="$t('message.product_Cancel')" v-model="originWlSelect" :list="model.InventoryItemList" @confirm="onchange"></u-select>
|
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 230rpx" @bindpicker="onchange" showKey="value" valKey="value" :val="wl.value" class="search" :options="model.InventoryItemList" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 物料名 -->
|
|
|
|
|
<u-form-item :label="$t('message.InventoryMateriel')" prop="productDescZh">
|
|
|
|
@ -62,7 +61,12 @@ import { Component, Ref } from 'vue-property-decorator';
|
|
|
|
|
import { BasePage } from '@/components/base/page';
|
|
|
|
|
import { VForm } from 'vue/types/form';
|
|
|
|
|
import model from './model';
|
|
|
|
|
@Component
|
|
|
|
|
import jPicker from '@/components/J-Picker/jPicker.vue';
|
|
|
|
|
@Component({
|
|
|
|
|
components: {
|
|
|
|
|
jPicker,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
@Ref('form') readonly $form!: VForm;
|
|
|
|
|
model = model;
|
|
|
|
@ -74,6 +78,7 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
productItem: any = {};
|
|
|
|
|
allNum = 0;
|
|
|
|
|
originWlSelect = false;
|
|
|
|
|
wl: any = {};
|
|
|
|
|
// 页面初始化
|
|
|
|
|
onReady() {
|
|
|
|
|
this.empty();
|
|
|
|
@ -104,12 +109,13 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
this.allNum += parseFloat(item.spQty);
|
|
|
|
|
});
|
|
|
|
|
this.productItem = this.model.InventoryList[0];
|
|
|
|
|
this.wl = this.model.InventoryItemList[0];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//选择其中一条物料
|
|
|
|
|
onchange(e: any) {
|
|
|
|
|
this.model.InventoryList.forEach((item: any) => {
|
|
|
|
|
if (item.productCode == e[0].label) {
|
|
|
|
|
if (item.productCode == e.pickerName.label) {
|
|
|
|
|
this.productItem = item;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -180,13 +186,16 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
font-size: 34rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
flex: 3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.left,
|
|
|
|
|
.right {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
@ -207,6 +216,7 @@ export default class rawMaterialInventory extends BasePage {
|
|
|
|
|
line-height: 35rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.single-right {
|
|
|
|
|
button {
|
|
|
|
|
//margin-top: 15rpx;
|
|
|
|
|