add:统计分析

This commit is contained in:
zhangzhiqiang
2023-10-07 09:58:37 +08:00
parent acd4fe5a48
commit d20e5f8282
4 changed files with 29 additions and 32 deletions

View File

@@ -40,8 +40,8 @@ public class StIvtStructivtDailyController {
@PostMapping("/sync") @PostMapping("/sync")
@Log("同步日库区") @Log("同步日库区")
@SaIgnore @SaIgnore
public ResponseEntity<Object> sync(@RequestBody String[] structivts){ public ResponseEntity<Object> sync(@RequestBody String[] ids){
stIvtStructivtDailyService.dailyStructivt(structivts); stIvtStructivtDailyService.dailyStructivt(ids);
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity<>(HttpStatus.OK);
} }

View File

@@ -19,7 +19,7 @@ export function sync(param) {
return request({ return request({
url: 'api/structivtDaily/sync', url: 'api/structivtDaily/sync',
method: 'post', method: 'post',
param data: param
}) })
} }

View File

@@ -39,7 +39,6 @@
type="warning" type="warning"
icon="el-icon-check" icon="el-icon-check"
size="mini" size="mini"
:disabled="confirm_flag"
@click="sync" @click="sync"
> >
同步 同步
@@ -79,7 +78,7 @@
<el-table-column prop="frozen_qty" label="冻结总数" width="150" /> <el-table-column prop="frozen_qty" label="冻结总数" width="150" />
<el-table-column prop="warehousing_qty" label="待入总数" width="150" /> <el-table-column prop="warehousing_qty" label="待入总数" width="150" />
<el-table-column prop="qty_unit_id" label="单位" width="150" :formatter="formatUnit" /> <el-table-column prop="qty_unit_id" label="单位" width="150" :formatter="formatUnit" />
<el-table-column prop="create_time" label="统计日期" width="150" fixed="right" align="center"></el-table-column> <el-table-column prop="create_time" label="统计日期" width="150" fixed="right" align="center" />
</el-table> </el-table>
<!--分页组件--> <!--分页组件-->
<pagination /> <pagination />
@@ -97,7 +96,6 @@ import rrOperation from '@crud/RR.operation'
import crudMdPbMeasureunit from '@/api/wms/basedata/master/mdPbMeasureunit' import crudMdPbMeasureunit from '@/api/wms/basedata/master/mdPbMeasureunit'
import { downloadFile } from '@/utils' import { downloadFile } from '@/utils'
const defaultForm = { const defaultForm = {
struct_id: null, struct_id: null,
cascader: null, cascader: null,
@@ -194,7 +192,7 @@ export default {
}, },
methods: { methods: {
sync() { sync() {
dailyStructivt.sync({'structivts':'st_ivt_structivt_bcp'}).then(result => { dailyStructivt.sync(Array.of('st_ivt_structivt_bcp', 'st_ivt_structivt_cp', 'st_ivt_structivt_yl')).then(result => {
this.crud.notify('同步成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify('同步成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
}).catch(() => { }) }).catch(() => { })
}, },
@@ -234,7 +232,7 @@ export default {
this.query.sect_id = val[1] this.query.sect_id = val[1]
} }
this.crud.toQuery() this.crud.toQuery()
}, }
} }
} }
</script> </script>

View File

@@ -307,7 +307,6 @@ export default {
this.deviceList.forEach(row => { this.deviceList.forEach(row => {
res.check_list.forEach(selected => { res.check_list.forEach(selected => {
if (selected.device_code === row.device_code) { if (selected.device_code === row.device_code) {
this.$refs.multipleTable.toggleRowSelection(row, true) this.$refs.multipleTable.toggleRowSelection(row, true)
} }
}) })
@@ -317,7 +316,7 @@ export default {
} }
}, },
getRoute() { getRoute() {
// 查询原料库的仓库 // 查询原料库的仓库
crudProductRoute.getRoute({}).then(res => { crudProductRoute.getRoute({}).then(res => {
this.routeList = res this.routeList = res
}) })
@@ -343,7 +342,7 @@ export default {
}, },
delLine() { delLine() {
this.form.tableData.splice(-1) this.form.tableData.splice(-1)
}, }
} }
} }
</script> </script>