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")
@Log("同步日库区")
@SaIgnore
public ResponseEntity<Object> sync(@RequestBody String[] structivts){
stIvtStructivtDailyService.dailyStructivt(structivts);
public ResponseEntity<Object> sync(@RequestBody String[] ids){
stIvtStructivtDailyService.dailyStructivt(ids);
return new ResponseEntity<>(HttpStatus.OK);
}

View File

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

View File

@@ -39,7 +39,6 @@
type="warning"
icon="el-icon-check"
size="mini"
:disabled="confirm_flag"
@click="sync"
>
同步
@@ -79,7 +78,7 @@
<el-table-column prop="frozen_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="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>
<!--分页组件-->
<pagination />
@@ -97,7 +96,6 @@ import rrOperation from '@crud/RR.operation'
import crudMdPbMeasureunit from '@/api/wms/basedata/master/mdPbMeasureunit'
import { downloadFile } from '@/utils'
const defaultForm = {
struct_id: null,
cascader: null,
@@ -194,7 +192,7 @@ export default {
},
methods: {
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)
}).catch(() => { })
},
@@ -234,7 +232,7 @@ export default {
this.query.sect_id = val[1]
}
this.crud.toQuery()
},
}
}
}
</script>

View File

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