diff --git a/src/views/statistics/stock_statistics.vue b/src/views/statistics/stock_statistics.vue
index 24b72d3c..823fdfc6 100644
--- a/src/views/statistics/stock_statistics.vue
+++ b/src/views/statistics/stock_statistics.vue
@@ -8,7 +8,7 @@
@@ -32,10 +32,7 @@
-
-
- ({{ scope.row.material_.model }})
-
+
-
-
- ({{
- scope.row.material_.specification
- }})
-
+
{{
Math.floor(
- scope.row.count /
- scope.row.material_
- .week_esitimate_consume
+ scope.row.count_mb /
+ scope.row.week_esitimate_consume
) * 7
}}
@@ -287,9 +264,9 @@ export default {
data() {
return {
mioTypeEnum,
- apiObj: this.$API.inm.warehouse.batch,
+ apiObj: this.$API.mtm.material.list,
materialType: "",
- params: { is_hidden: false, material__type: 10, count__gte: 1 },
+ params: { is_hidden: false, type: 10, count__gte: 1 },
query: {
mio_type: mioTypeEnum.values[0].key,
},
@@ -337,13 +314,10 @@ export default {
materialTypeChange() {
let that = this;
that.tableData1 = [];
- if (
- that.params.material__type == 10 ||
- that.params.material__type == 20
- ) {
+ if (that.params.type == 10 || that.params.type == 20) {
let obj = {
query: {
- material_types: that.params.material__type,
+ material_types: that.params.type,
},
};
that.$API.bi.dataset.exec
@@ -360,10 +334,10 @@ export default {
//更改周预估用量
weekcountChange(row) {
let obj = {
- week_esitimate_consume: row.material_.week_esitimate_consume,
+ week_esitimate_consume: row.week_esitimate_consume,
};
this.$API.mtm.material.setWeekConsume
- .req(row.material_.id, obj)
+ .req(row.id, obj)
.then((res) => {
console.log(res);
this.$refs.tables1.refresh();