opt:优化实时库存页面的查询条件:物料、厂家、批次根据当前库存记录group by

This commit is contained in:
zds
2024-09-12 17:51:46 +08:00
parent ad2f8e2e58
commit f14ca73f60
12 changed files with 192 additions and 79 deletions

View File

@@ -44,7 +44,7 @@
placeholder="供应商名称"
class="filter-item"
filterable
@remote-method="getSupplierNameList"
@remote-method="getNowSupplierNameList"
>
<el-option
v-for="item in supplierNameList"
@@ -61,7 +61,7 @@
placeholder="物料名称"
class="filter-item"
filterable
@remote-method="getProductDescriptionList"
@remote-method="getNowProductDescriptionList"
>
<el-option
v-for="item in productDescriptionList"
@@ -78,7 +78,7 @@
placeholder="批次"
class="filter-item"
filterable
@remote-method="getIngotBatchList"
@remote-method="getNowIngotBatchList"
>
<el-option
v-for="item in ingotBatchList"
@@ -179,7 +179,7 @@
</template>
<script>
import crudMaterial from './detail'
import crudMaterial from '@/views/wms/sch/report/report'
import CRUD, { crud, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
@@ -230,9 +230,9 @@ export default {
},
created() {
this.getPointList()
this.getSupplierNameList()
this.getIngotBatchList()
this.getProductDescriptionList()
this.getNowSupplierNameList()
this.getNowIngotBatchList()
this.getNowProductDescriptionList()
},
methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据
@@ -244,18 +244,18 @@ export default {
this.pointList = res
})
},
getSupplierNameList() {
crudMaterial.getSupplierNameList().then(res => {
getNowSupplierNameList() {
crudMaterial.getNowSupplierNameList().then(res => {
this.supplierNameList = res.content
})
},
getProductDescriptionList() {
crudMaterial.getProductDescriptionList().then(res => {
getNowProductDescriptionList() {
crudMaterial.getNowProductDescriptionList().then(res => {
this.productDescriptionList = res.content
})
},
getIngotBatchList() {
crudMaterial.getIngotBatchList().then(res => {
getNowIngotBatchList() {
crudMaterial.getNowIngotBatchList().then(res => {
this.ingotBatchList = res.content
})
},

View File

@@ -44,7 +44,7 @@
placeholder="供应商名称"
class="filter-item"
filterable
@remote-method="getSupplierNameList"
@remote-method="getNowSupplierNameList"
>
<el-option
v-for="item in supplierNameList"
@@ -61,7 +61,7 @@
placeholder="物料名称"
class="filter-item"
filterable
@remote-method="getProductDescriptionList"
@remote-method="getNowProductDescriptionList"
>
<el-option
v-for="item in productDescriptionList"
@@ -78,7 +78,7 @@
placeholder="批次"
class="filter-item"
filterable
@remote-method="getIngotBatchList"
@remote-method="getNowIngotBatchList"
>
<el-option
v-for="item in ingotBatchList"
@@ -131,7 +131,7 @@ import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import pagination from '@crud/Pagination'
import crudSchBasePoint from '@/views/wms/sch/point/schBasePoint'
import inPending from '@/views/wms/hw/inpending/inPending'
import inPending from '@/views/wms/sch/report/report'
export default {
name: 'HwInPending',
@@ -170,9 +170,9 @@ export default {
},
created() {
this.getPointList()
this.getSupplierNameList()
this.getIngotBatchList()
this.getProductDescriptionList()
this.getNowSupplierNameList()
this.getNowIngotBatchList()
this.getNowProductDescriptionList()
},
methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据
@@ -184,18 +184,18 @@ export default {
this.pointList = res
})
},
getSupplierNameList() {
inPending.getSupplierNameList().then(res => {
getNowSupplierNameList() {
inPending.getNowSupplierNameList().then(res => {
this.supplierNameList = res.content
})
},
getProductDescriptionList() {
inPending.getProductDescriptionList().then(res => {
getNowProductDescriptionList() {
inPending.getNowProductDescriptionList().then(res => {
this.productDescriptionList = res.content
})
},
getIngotBatchList() {
inPending.getIngotBatchList().then(res => {
getNowIngotBatchList() {
inPending.getNowIngotBatchList().then(res => {
this.ingotBatchList = res.content
})
}

View File

@@ -44,7 +44,7 @@
placeholder="供应商名称"
class="filter-item"
filterable
@remote-method="getSupplierNameList"
@remote-method="getNowSupplierNameList"
>
<el-option
v-for="item in supplierNameList"
@@ -61,7 +61,7 @@
placeholder="物料名称"
class="filter-item"
filterable
@remote-method="getProductDescriptionList"
@remote-method="getNowProductDescriptionList"
>
<el-option
v-for="item in productDescriptionList"
@@ -78,7 +78,7 @@
placeholder="批次"
class="filter-item"
filterable
@remote-method="getIngotBatchList"
@remote-method="getNowIngotBatchList"
>
<el-option
v-for="item in ingotBatchList"
@@ -134,7 +134,7 @@ import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import pagination from '@crud/Pagination'
import crudSchBasePoint from '@/views/wms/sch/point/schBasePoint'
import inPending from '@/views/wms/hw/inpending/inPending'
import inPending from '@/views/wms/sch/report/report'
export default {
name: 'OutPending',
@@ -171,9 +171,9 @@ export default {
},
created() {
this.getPointList()
this.getSupplierNameList()
this.getIngotBatchList()
this.getProductDescriptionList()
this.getNowSupplierNameList()
this.getNowIngotBatchList()
this.getNowProductDescriptionList()
},
methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据
@@ -185,18 +185,18 @@ export default {
this.pointList = res
})
},
getSupplierNameList() {
inPending.getSupplierNameList().then(res => {
getNowSupplierNameList() {
inPending.getNowSupplierNameList().then(res => {
this.supplierNameList = res.content
})
},
getProductDescriptionList() {
inPending.getProductDescriptionList().then(res => {
getNowProductDescriptionList() {
inPending.getNowProductDescriptionList().then(res => {
this.productDescriptionList = res.content
})
},
getIngotBatchList() {
inPending.getIngotBatchList().then(res => {
getNowIngotBatchList() {
inPending.getNowIngotBatchList().then(res => {
this.ingotBatchList = res.content
})
}

View File

@@ -52,7 +52,7 @@
placeholder="供应商名称"
class="filter-item"
filterable
@remote-method="getSupplierNameList"
@remote-method="getNowSupplierNameList"
>
<el-option
v-for="item in supplierNameList"
@@ -69,7 +69,7 @@
placeholder="物料名称"
class="filter-item"
filterable
@remote-method="getProductDescriptionList"
@remote-method="getNowProductDescriptionList"
>
<el-option
v-for="item in productDescriptionList"
@@ -86,7 +86,7 @@
placeholder="批次"
class="filter-item"
filterable
@remote-method="getIngotBatchList"
@remote-method="getNowIngotBatchList"
>
<el-option
v-for="item in ingotBatchList"
@@ -167,9 +167,9 @@ export default {
created() {
this.getPointList()
this.getRegionList()
this.getSupplierNameList()
this.getIngotBatchList()
this.getProductDescriptionList()
this.getNowSupplierNameList()
this.getNowIngotBatchList()
this.getNowProductDescriptionList()
},
methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据
@@ -186,18 +186,18 @@ export default {
this.pointList = res
})
},
getSupplierNameList() {
crudMaterial.getSupplierNameList().then(res => {
getNowSupplierNameList() {
crudMaterial.getNowSupplierNameList().then(res => {
this.supplierNameList = res.content
})
},
getProductDescriptionList() {
crudMaterial.getProductDescriptionList().then(res => {
getNowProductDescriptionList() {
crudMaterial.getNowProductDescriptionList().then(res => {
this.productDescriptionList = res.content
})
},
getIngotBatchList() {
crudMaterial.getIngotBatchList().then(res => {
getNowIngotBatchList() {
crudMaterial.getNowIngotBatchList().then(res => {
this.ingotBatchList = res.content
})
}

View File

@@ -40,6 +40,14 @@ export function getSupplierNameList(data) {
})
}
export function getNowSupplierNameList(data) {
return request({
url: 'api/report/getNowSupplierNameList',
method: 'get',
data
})
}
export function getProductDescriptionList(data) {
return request({
url: 'api/report/getProductDescriptionList',
@@ -48,6 +56,14 @@ export function getProductDescriptionList(data) {
})
}
export function getNowProductDescriptionList(data) {
return request({
url: 'api/report/getNowProductDescriptionList',
method: 'get',
data
})
}
export function getIngotBatchList(data) {
return request({
url: 'api/report/getIngotBatchList',
@@ -56,4 +72,12 @@ export function getIngotBatchList(data) {
})
}
export default { add, edit, del, getGroup,getSupplierNameList,getProductDescriptionList,getIngotBatchList }
export function getNowIngotBatchList(data) {
return request({
url: 'api/report/getNowIngotBatchList',
method: 'get',
data
})
}
export default { add, edit, del, getGroup,getSupplierNameList,getProductDescriptionList,getIngotBatchList,getNowIngotBatchList,getNowProductDescriptionList,getNowSupplierNameList }

View File

@@ -44,7 +44,7 @@
placeholder="供应商名称"
class="filter-item"
filterable
@remote-method="getSupplierNameList"
@remote-method="getNowSupplierNameList"
>
<el-option
v-for="item in supplierNameList"
@@ -61,7 +61,7 @@
placeholder="物料名称"
class="filter-item"
filterable
@remote-method="getProductDescriptionList"
@remote-method="getNowProductDescriptionList"
>
<el-option
v-for="item in productDescriptionList"
@@ -78,7 +78,7 @@
placeholder="批次"
class="filter-item"
filterable
@remote-method="getIngotBatchList"
@remote-method="getNowIngotBatchList"
>
<el-option
v-for="item in ingotBatchList"
@@ -124,8 +124,8 @@
</template>
<script>
import crudMaterial from './detail'
import CRUD, { crud, form, header, presenter } from '@crud/crud'
import crudMaterial from '@/views/wms/sch/report/report'
import CRUD, { crud, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
@@ -170,9 +170,9 @@ export default {
},
created() {
this.getPointList()
this.getSupplierNameList()
this.getIngotBatchList()
this.getProductDescriptionList()
this.getNowSupplierNameList()
this.getNowIngotBatchList()
this.getNowProductDescriptionList()
},
methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据
@@ -184,18 +184,18 @@ export default {
this.pointList = res
})
},
getSupplierNameList() {
crudMaterial.getSupplierNameList().then(res => {
getNowSupplierNameList() {
crudMaterial.getNowSupplierNameList().then(res => {
this.supplierNameList = res.content
})
},
getProductDescriptionList() {
crudMaterial.getProductDescriptionList().then(res => {
getNowProductDescriptionList() {
crudMaterial.getNowProductDescriptionList().then(res => {
this.productDescriptionList = res.content
})
},
getIngotBatchList() {
crudMaterial.getIngotBatchList().then(res => {
getNowIngotBatchList() {
crudMaterial.getNowIngotBatchList().then(res => {
this.ingotBatchList = res.content
})
},

View File

@@ -35,7 +35,7 @@
placeholder="供应商名称"
class="filter-item"
filterable
@remote-method="getSupplierNameList"
@remote-method="getNowSupplierNameList"
>
<el-option
v-for="item in supplierNameList"
@@ -52,7 +52,7 @@
placeholder="物料名称"
class="filter-item"
filterable
@remote-method="getProductDescriptionList"
@remote-method="getNowProductDescriptionList"
>
<el-option
v-for="item in productDescriptionList"
@@ -69,7 +69,7 @@
placeholder="批次"
class="filter-item"
filterable
@remote-method="getIngotBatchList"
@remote-method="getNowIngotBatchList"
>
<el-option
v-for="item in ingotBatchList"
@@ -167,7 +167,7 @@
</template>
<script>
import crudMaterial from './detail'
import crudMaterial from '@/views/wms/sch/report/report'
import CRUD, { crud, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
@@ -214,9 +214,9 @@ export default {
},
created() {
this.getPointList()
this.getSupplierNameList()
this.getIngotBatchList()
this.getProductDescriptionList()
this.getNowSupplierNameList()
this.getNowIngotBatchList()
this.getNowProductDescriptionList()
},
methods: {
// 钩子在获取表格数据之前执行false 则代表不获取数据
@@ -318,18 +318,18 @@ export default {
this.pointList = res
})
},
getSupplierNameList() {
crudMaterial.getSupplierNameList().then(res => {
getNowSupplierNameList() {
crudMaterial.getNowSupplierNameList().then(res => {
this.supplierNameList = res.content
})
},
getProductDescriptionList() {
crudMaterial.getProductDescriptionList().then(res => {
getNowProductDescriptionList() {
crudMaterial.getNowProductDescriptionList().then(res => {
this.productDescriptionList = res.content
})
},
getIngotBatchList() {
crudMaterial.getIngotBatchList().then(res => {
getNowIngotBatchList() {
crudMaterial.getNowIngotBatchList().then(res => {
this.ingotBatchList = res.content
})
}