Browse Source

检验合格入库

master
han\hanst 4 months ago
parent
commit
92fecf8ce8
  1. 7
      src/views/modules/recv/qualifiedStorage.vue
  2. 10
      src/views/modules/recv/recv.vue

7
src/views/modules/recv/qualifiedStorage.vue

@ -10,7 +10,7 @@
<!-- Step 1: 扫描或查询检验合格单据 -->
<div v-if="processFlag === 1">
<div class="scan-box" style="margin: 2px;">
<el-input clearable v-model="scanCode" placeholder="扫描入库单条码或输入单号"
<el-input clearable v-model="scanCode" placeholder="扫描入库单条码或采购单条码"
@keyup.enter.native="searchQualifiedList" ref="scanCodeRef" />
</div>
<!-- <div class="filter-box" style="margin: 2px;">
@ -221,7 +221,8 @@ export default {
inboundDate: '',
operatorName: '',
inboundRemark: ''
}
},
site:localStorage.getItem('site')
};
},
methods: {
@ -239,7 +240,7 @@ export default {
//
searchQualifiedList() {
const params = {
site: '1' //
site: this.site
};
if (this.scanCode) {
params.transNo = this.scanCode;

10
src/views/modules/recv/recv.vue

@ -159,6 +159,12 @@ export default {
});
},
recvLine(row) {
if (row.poStatus === 'Stopped' || row.poStatus === 'Closed' || row.poStatus === 'Cancelled' || row.poStatus === 'Planned') {
return this.$message.warning("该采购订单状态为"+row.poStatus+",无法接收");
}
if (row.status === 'Stopped' || row.status === 'Closed' || row.status === 'Cancelled') {
return this.$message.warning("该采购订单行状态为"+row.status+",无法接收");
}
this.recvItem = {
...row,
poNo: row.poNumber || this.scanCode,
@ -217,12 +223,8 @@ export default {
needPallet: item.needPallet || 'N',
workshopFlag: item.workshopFlag || 'N',
cuttingFlag: item.cuttingFlag || 'N',
//
manufactureDate: item.manufactureDate,
//
// expiredDate: item.expiringDate,
//
handlingUnitList: item.needHandlingUnit === 'Y' ? this.handlingUnit.map(hu => ({
perQty: hu.qty,

Loading…
Cancel
Save