返工订单接口联调

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; this.loadingBtn = true;
let query = { let query = {
idArr: this.itemData.map(item => item.woId), idArr: this.itemData.map(item => item.woId),
status: 0, status: 21,
memo: this.closeForm.memo, memo: this.closeForm.memo,
}; };
updateStatus(query).then(res => { updateStatus(query).then(res => {

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

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

Loading…
Cancel
Save