配套信息查询修改

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';
//列表接口
export const getList = (params) => {
export const getList = (data) => {
return request({
url: '/blade-desk/order/yieldPlan/pageAllocation',
method: 'get',
params
url: '/blade-desk/QA/PlanTest/queryAllocationMess',
method: 'post',
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,
startPlaceholder: '开始时间',
endPlaceholder: '结束时间',
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
searchOrder: 20,
searchRules: [
{
@ -425,14 +428,14 @@ export default {
this.onLoad(this.page);
},
searchChange(params, done) {
if (params.partCode && Array.isArray(params.partCode)) {
if (params.subpkdate && Array.isArray(params.subpkdate)) {
//
// startDate endDate
params.startDate = params.partCode[0];
params.endDate = params.partCode[1];
params.subpkdateStart = params.subpkdate[0];
params.subpkdateEnd = params.subpkdate[1];
// partCode
delete params.partCode;
delete params.subpkdate;
}
this.query = params;
this.page.currentPage = 1;
@ -453,8 +456,8 @@ export default {
// this.loading = true;
try {
const res = await getList({
current: this.page.currentPage,
size: this.page.pageSize,
pageNum: this.page.currentPage,
pageSize: this.page.pageSize,
...this.query,
});
this.data = res.data.data.records;

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

Loading…
Cancel
Save