Browse Source

采购校验

master
han\hanst 3 months ago
parent
commit
c4023840ef
  1. 15
      src/views/modules/recv/recv.vue

15
src/views/modules/recv/recv.vue

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<div class="pda-container" v-loading.fullscreen.lock="fullscreenLoading"
<div class="pda-container" v-loading.fullscreen.lock="fullscreenLoading"
element-loading-background="rgba(255, 255, 255, 0.3)" element-loading-background="rgba(255, 255, 255, 0.3)"
element-loading-spinner="el-icon-loading" element-loading-spinner="el-icon-loading"
:element-loading-text="loadingText"> :element-loading-text="loadingText">
@ -69,7 +69,7 @@
<el-col :span="12"><el-form-item label="待收数量"><el-input v-model="recvItem.qtyToReceive" disabled /></el-form-item></el-col> <el-col :span="12"><el-form-item label="待收数量"><el-input v-model="recvItem.qtyToReceive" disabled /></el-form-item></el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="此次接收数量"> <el-form-item label="此次接收数量">
<el-input v-model="recvItem.transQty" :disabled="recvItem.needHandlingUnit === 'Y'" />
<el-input v-model="recvItem.transQty" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -88,10 +88,11 @@
inputmode="none" inputmode="none"
autocomplete="off" autocomplete="off"
autocorrect="off" autocorrect="off"
disabled
spellcheck="false" /> spellcheck="false" />
</el-form-item></el-col> </el-form-item></el-col>
<el-col :span="12"><el-form-item label="供应商批次"> <el-col :span="12"><el-form-item label="供应商批次">
<el-input v-model="recvItem.supplierBatchNo" placeholder="请输入供应商批次" />
<el-input v-model="recvItem.supplierBatchNo" disabled placeholder="请输入供应商批次" />
</el-form-item></el-col> </el-form-item></el-col>
<el-col :span="12"><el-form-item label="WDR"> <el-col :span="12"><el-form-item label="WDR">
<el-input v-model="recvItem.wdr" placeholder="请输入WDR" /> <el-input v-model="recvItem.wdr" placeholder="请输入WDR" />
@ -198,11 +199,11 @@ export default {
}, },
searchPoList() { searchPoList() {
if (!this.scanCode) return this.poList = []; if (!this.scanCode) return this.poList = [];
// loading // loading
this.loadingText = '搜索中...'; this.loadingText = '搜索中...';
this.fullscreenLoading = true; this.fullscreenLoading = true;
getPoList({ poNumber: this.scanCode,site: this.site }).then(({ data }) => { getPoList({ poNumber: this.scanCode,site: this.site }).then(({ data }) => {
if (data.code === 0) { if (data.code === 0) {
this.poList = data.rows this.poList = data.rows
@ -403,10 +404,10 @@ export default {
// //
manufactureDate: item.manufactureDate, manufactureDate: item.manufactureDate,
// //
handlingUnitList: item.needHandlingUnit === 'Y' ? this.handlingUnit.map(hu => ({
handlingUnitList: this.handlingUnit.map(hu => ({
perQty: hu.perQty, perQty: hu.perQty,
packageQty: hu.packageQty packageQty: hu.packageQty
})) : []
}))
}; };
receivePo(receiveData).then(({ data }) => { receivePo(receiveData).then(({ data }) => {
if (data.code === 0) { if (data.code === 0) {

Loading…
Cancel
Save