fix:产品库存数据展示调整
parent
2913740e36
commit
6d4923ac8b
|
|
@ -214,12 +214,12 @@
|
|||
|
||||
<!-- 入库记录对话框 -->
|
||||
<el-dialog :close-on-click-modal="false" title="入库记录" :visible.sync="innerLogVisible" width="70%" append-to-body>
|
||||
<inner-log v-if="innerLogVisible" :product-code="currentLogProductCode" :warehouse-id="currentLogWarehouseId" />
|
||||
<inner-log v-if="innerLogVisible" :product-code="currentLogProductCode" />
|
||||
</el-dialog>
|
||||
|
||||
<!-- 出库记录对话框 -->
|
||||
<el-dialog :close-on-click-modal="false" title="出库记录" :visible.sync="outerLogVisible" width="70%" append-to-body>
|
||||
<outer-log v-if="outerLogVisible" :product-code="currentLogProductCode" :warehouse-id="currentLogWarehouseId" />
|
||||
<outer-log v-if="outerLogVisible" :product-code="currentLogProductCode" />
|
||||
</el-dialog>
|
||||
|
||||
<!-- 在库现存对话框 -->
|
||||
|
|
@ -432,7 +432,6 @@ export default {
|
|||
currentBindOrderProductName: null,
|
||||
currentBindOrderTotal: 0,
|
||||
currentLogProductCode: null,
|
||||
currentLogWarehouseId: null,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
|
|
@ -616,22 +615,12 @@ export default {
|
|||
},
|
||||
/** 处理入库记录 */
|
||||
handleInnerLog(row) {
|
||||
if (!row.warehouseId) {
|
||||
this.$modal.msgError("仓库信息不存在,无法查看记录");
|
||||
return;
|
||||
}
|
||||
this.currentLogProductCode = row.productCode;
|
||||
this.currentLogWarehouseId = row.warehouseId;
|
||||
this.innerLogVisible = true;
|
||||
},
|
||||
/** 处理出库记录 */
|
||||
handleOuterLog(row) {
|
||||
if (!row.warehouseId) {
|
||||
this.$modal.msgError("仓库信息不存在,无法查看记录");
|
||||
return;
|
||||
}
|
||||
this.currentLogProductCode = row.productCode;
|
||||
this.currentLogWarehouseId = row.warehouseId;
|
||||
this.outerLogVisible = true;
|
||||
},
|
||||
inventoryInnerIndex(index) {
|
||||
|
|
|
|||
|
|
@ -42,10 +42,6 @@ export default {
|
|||
productCode: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
warehouseId: {
|
||||
type: [String, Number],
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
|
@ -61,7 +57,6 @@ export default {
|
|||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
productCode: null,
|
||||
warehouseId: null,
|
||||
orderByColumn: 'createTime',
|
||||
isAsc: 'desc'
|
||||
}
|
||||
|
|
@ -76,20 +71,11 @@ export default {
|
|||
this.fetchLog();
|
||||
}
|
||||
}
|
||||
},
|
||||
warehouseId: {
|
||||
immediate: true,
|
||||
handler(val) {
|
||||
if (val) {
|
||||
this.queryParams.warehouseId = val;
|
||||
this.fetchLog();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
fetchLog() {
|
||||
if (!this.queryParams.productCode || !this.queryParams.warehouseId) {
|
||||
if (!this.queryParams.productCode) {
|
||||
return;
|
||||
}
|
||||
this.loading = true;
|
||||
|
|
|
|||
|
|
@ -37,10 +37,6 @@ export default {
|
|||
productCode: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
warehouseId: {
|
||||
type: [String, Number],
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
|
@ -63,7 +59,6 @@ export default {
|
|||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
productCode: null,
|
||||
warehouseId: null,
|
||||
orderByColumn: 'createTime',
|
||||
isAsc: 'desc'
|
||||
}
|
||||
|
|
@ -78,20 +73,11 @@ export default {
|
|||
this.fetchLog();
|
||||
}
|
||||
}
|
||||
},
|
||||
warehouseId: {
|
||||
immediate: true,
|
||||
handler(val) {
|
||||
if (val) {
|
||||
this.queryParams.warehouseId = val;
|
||||
this.fetchLog();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
fetchLog() {
|
||||
if (!this.queryParams.productCode || !this.queryParams.warehouseId) {
|
||||
if (!this.queryParams.productCode) {
|
||||
return;
|
||||
}
|
||||
this.loading = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue