返工订单接口联调

dev-scheduling
zhangdi 2 months ago
parent 13e6e5dc4d
commit 04ca2a80ac
  1. 13
      src/api/productionManagement/reworkOrder.js
  2. 2
      src/views/productionManagement/components/closedDialog.vue
  3. 10
      src/views/productionManagement/productionMonitoring.vue
  4. 45
      src/views/productionManagement/reworkOrder.vue

@ -0,0 +1,13 @@
import request from '@/axios';
//列表接口
export const getList = (current, size, params) => {
return request({
url: '/blade-desk/ReworkProcess/loadReworkOrder',
method: 'get',
params: {
...params,
current,
size,
},
});
};

@ -70,7 +70,7 @@ export default {
this.loadingBtn = true;
let query = {
idArr: this.itemData.map(item => item.woId),
status: 0,
status: 21,
memo: this.closeForm.memo,
};
updateStatus(query).then(res => {

@ -221,7 +221,7 @@ export default {
{
label: '当前工序',
prop: 'wpId',
prop: 'ppsName',
fixed: 'left',
search: false,
sortable: true,
@ -445,7 +445,7 @@ export default {
},
{
label: '调度员',
prop: 'dispatcher',
prop: 'dispatcherName',
search: true,
sortable: true,
overHidden: true,
@ -470,7 +470,7 @@ export default {
search: true,
width: 200,
searchSpan: 8,
type: 'datetimerange',
type: 'date',
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
startPlaceholder: '开始日期',
@ -485,7 +485,7 @@ export default {
sortable: true,
overHidden: true,
searchLabelWidth: 100,
type: 'datetimerange',
type: 'date',
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
startPlaceholder: '时间日期开始',
@ -503,7 +503,7 @@ export default {
searchSpan: 8,
width: 200,
searchLabelWidth: 100,
type: 'datetimerange',
type: 'date',
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
startPlaceholder: '开始日期',

@ -24,6 +24,7 @@
</basic-container>
</template>
<script>
import { getList } from '@/api/productionManagement/reworkOrder';
export default {
data() {
return {
@ -235,19 +236,41 @@ export default {
cancelButtonText: '取消',
type: 'warning',
}).then(() => {});
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
this.onLoad(this.page, this.query);
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
this.onLoad(this.page, this.query);
},
refreshChange() {
this.onLoad(this.page, this.query);
},
searchReset() {
this.query = {};
this.treeDeptId = '';
this.onLoad(this.page, this.query);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
onLoad() {
// this.loading = true;
// getList(
// page.currentPage,
// page.pageSize,
// Object.assign(params, this.query, { yieldType: '1' })
// ).then(res => {
// this.data = res.data.data.records;
// this.loading = false;
// this.page.total = res.data.data.total;
// this.selectionClear();
// });
this.loading = true;
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();
});
},
},
};

Loading…
Cancel
Save