测试问题修改

dev-scheduling
zhangdi 2 weeks ago
parent 535b95dc26
commit f7d6b2db57
  1. 41
      src/views/processManagement/taskDispatch.vue
  2. 19
      src/views/productionManagement/sinTerWorkOrder/index.vue

@ -278,43 +278,16 @@ export default {
}, },
// //
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = false; this.loading = true;
// getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).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();
// }); });
this.data = [
{
children: [
{
partCode: '123',
partName: '123',
partNo: '123',
partQty: '123',
partStatus: '123',
partType: '123',
partUnit: '123',
partWorkCenter: '123',
partWorkCenterName: '123',
partWorkCenterType: '123',
partWorkCenterTypeName: '123',
}
],
partCode: '123',
partName: '123',
taskType: '123',
pdmCreateTime: '123',
pdmWay: '123',
wayDetails: '123',
wipTake: '123',
remarks: '123',
},
];
}, },
}, },
}; };

@ -107,6 +107,15 @@
:itemData="itemData" :itemData="itemData"
@closeDialog="closeDialog" @closeDialog="closeDialog"
></productionMonitoringDialog> ></productionMonitoringDialog>
<!-- 生产监控 -->
<workRate
v-if="isWorkRateOpen"
:showDialog="isWorkRateOpen"
@closeDialog="closeDialog"
:rowItem="rowItem"
></workRate>
</basic-container> </basic-container>
</template> </template>
@ -118,6 +127,8 @@ import abnormalDialog from '../components/abnormalDialog.vue';
import productionMonitoringDialog from '../components/productionMonitoringDialog.vue'; import productionMonitoringDialog from '../components/productionMonitoringDialog.vue';
import { getList, interlocking } from '@/api/productionManagement/sinTerWorkOrder'; import { getList, interlocking } from '@/api/productionManagement/sinTerWorkOrder';
import workRate from '@/views/workRate/index.vue';
export default { export default {
components: { components: {
productionDialog, productionDialog,
@ -125,11 +136,12 @@ export default {
closedDialog, closedDialog,
abnormalDialog, abnormalDialog,
productionMonitoringDialog, productionMonitoringDialog,
workRate
}, },
data() { data() {
return { return {
itemData: [], itemData: [],
isWorkRateOpen: false,
isPriorityOpen: false, isPriorityOpen: false,
showAbnormal: false, showAbnormal: false,
showRadio: true, showRadio: true,
@ -557,8 +569,8 @@ export default {
}, },
// //
clickProduction(row) { clickProduction(row) {
this.rowItem = row; this.rowItem = row;
this.monitorDialog = true; this.isWorkRateOpen = true;
}, },
// //
handlePrintTags() { handlePrintTags() {
@ -613,6 +625,7 @@ export default {
this.showClose = false; this.showClose = false;
this.showAbnormal = false; this.showAbnormal = false;
this.isPriorityOpen = false; this.isPriorityOpen = false;
this.isWorkRateOpen = false;
// if (type) { // if (type) {
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
// } // }

Loading…
Cancel
Save