配套信息查询修改

Co-authored-by: Copilot <copilot@github.com>
dev-scheduling
zhangdi 1 month ago
parent d3aea85ae0
commit 7f367ddbf1
  1. 22
      src/api/orderManagement/allocationMessQuery.js
  2. 15
      src/views/orderManagement/components/allocation/allocationDetails.vue
  3. 30
      src/views/orderManagement/components/allocation/statistics.vue

@ -1,9 +1,23 @@
import request from '@/axios'; import request from '@/axios';
//列表接口 //列表接口
export const getList = (params) => { export const getList = (data) => {
return request({ return request({
url: '/blade-desk/order/yieldPlan/pageAllocation', url: '/blade-desk/QA/PlanTest/queryAllocationMess',
method: 'get', method: 'post',
params data:data
});
};
// 统计接口查询 /QA/PlanTest/queryAllocationStatistics
export const getStatistics = (current, size, params) => {
return request({
url: '/blade-desk/QA/PlanTest/queryAllocationStatistics',
method: 'post',
data: {
...params,
current,
size,
},
}); });
}; };

@ -300,6 +300,9 @@ export default {
searchRange: true, searchRange: true,
startPlaceholder: '开始时间', startPlaceholder: '开始时间',
endPlaceholder: '结束时间', endPlaceholder: '结束时间',
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
searchOrder: 20, searchOrder: 20,
searchRules: [ searchRules: [
{ {
@ -425,14 +428,14 @@ export default {
this.onLoad(this.page); this.onLoad(this.page);
}, },
searchChange(params, done) { searchChange(params, done) {
if (params.partCode && Array.isArray(params.partCode)) { if (params.subpkdate && Array.isArray(params.subpkdate)) {
// //
// startDate endDate // startDate endDate
params.startDate = params.partCode[0]; params.subpkdateStart = params.subpkdate[0];
params.endDate = params.partCode[1]; params.subpkdateEnd = params.subpkdate[1];
// partCode // partCode
delete params.partCode; delete params.subpkdate;
} }
this.query = params; this.query = params;
this.page.currentPage = 1; this.page.currentPage = 1;
@ -453,8 +456,8 @@ export default {
// this.loading = true; // this.loading = true;
try { try {
const res = await getList({ const res = await getList({
current: this.page.currentPage, pageNum: this.page.currentPage,
size: this.page.pageSize, pageSize: this.page.pageSize,
...this.query, ...this.query,
}); });
this.data = res.data.data.records; this.data = res.data.data.records;

@ -24,6 +24,7 @@
</template> </template>
<script> <script>
import { getStatistics } from '@/api/orderManagement/allocationMessQuery';
export default { export default {
components: {}, components: {},
data() { data() {
@ -116,19 +117,12 @@ export default {
}, },
], ],
}, },
data: [],
data: [
{
subpkdate: '2026-01-02',
partName: '部门1',
num: '33',
},
],
}; };
}, },
methods: { methods: {
handleEdit(row) { handleEdit(row) {
this.$emit('edit-row', {...this.query,...row}); this.$emit('edit-row', { ...this.query, ...row });
}, },
searchReset() { searchReset() {
this.query = {}; this.query = {};
@ -169,14 +163,18 @@ export default {
}, },
onLoad(page, params = {}) { onLoad(page, params = {}) {
// this.loading = true; this.loading = true;
console.log(page, params, this.query); console.log(page, params, this.query);
// getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { getStatistics(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(
// this.data = res.data.data.records; res => {
// this.loading = false; this.data = res.data.data.records;
// this.page.total = res.data.data.total; this.loading = false;
// this.selectionClear(); this.page.total = res.data.data.total;
// }); // this.selectionClear();
}
).catch(err=>{
this.loading = false;
})
}, },
}, },
mounted() {}, mounted() {},

Loading…
Cancel
Save