fix: 任务执行界面查询过滤
This commit is contained in:
parent
4b822b7b52
commit
d8f49bb9c5
|
@ -353,6 +353,7 @@ export default {
|
|||
if (res.length == 1) {
|
||||
this.currentDept = res[0]
|
||||
this.paramsMtask.mgroup__belong_dept = this.currentDept.id
|
||||
this.paramsMtask.state__in = '20,40'
|
||||
this.apiMtask = this.$API.pm.mtask.list
|
||||
|
||||
this.paramsHandover.recive_dept = this.currentDept.id
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
<el-container>
|
||||
<el-header>
|
||||
<div class="left-panel">
|
||||
<el-date-picker v-model="query.date" type="date" value-format="YYYY-MM-DD" />
|
||||
<el-date-picker v-model="queryMtask.start_date" type="date" value-format="YYYY-MM-DD" />
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQueryMtask">查询</el-button>
|
||||
</div>
|
||||
</el-header>
|
||||
<el-main>
|
||||
<scTable ref="table" :apiObj="apiObj" row-key="id" stripe :params="query" hidePagination
|
||||
@row-click="rowClick" hideDo>
|
||||
<scTable ref="table" :apiObj="apiObj" row-key="id" stripe :params="paramsMtask" :query="queryMtask"
|
||||
@row-click="rowClick">
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column label="任务编号" prop="number">
|
||||
</el-table-column>
|
||||
|
@ -185,12 +185,7 @@ export default {
|
|||
save: false,
|
||||
},
|
||||
apiObj: null,
|
||||
query: {
|
||||
page: 1,
|
||||
page_size: 20,
|
||||
belong_dept_name: '6车间',
|
||||
date: '2023-10-24'
|
||||
},
|
||||
query: {},
|
||||
processList: [],//工序进度
|
||||
state_: {
|
||||
10: '创建中',
|
||||
|
@ -210,12 +205,18 @@ export default {
|
|||
paramsWm: {
|
||||
belong_dept__name: '6车间'
|
||||
},
|
||||
paramsMtask: {
|
||||
mgroup__belong_dept__name: '6车间',
|
||||
is_count_utask: true,
|
||||
state__in: "20,40"
|
||||
},
|
||||
queryMtask: {}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
let NowDate = new Date();
|
||||
this.query.date = NowDate.getFullYear() + '-' + (NowDate.getMonth() + 1) + '-' + NowDate.getDate();
|
||||
this.apiObj = this.$API.pm.mtask.daylist;
|
||||
// this.queryMtask.start_date = NowDate.getFullYear() + '-' + (NowDate.getMonth() + 1) + '-' + NowDate.getDate();
|
||||
this.apiObj = this.$API.pm.mtask.list;
|
||||
},
|
||||
methods: {
|
||||
tomio() {
|
||||
|
@ -244,13 +245,7 @@ export default {
|
|||
});
|
||||
},
|
||||
handleQueryMtask() {
|
||||
this.$refs.table.refresh();
|
||||
},
|
||||
handleQuery() {
|
||||
this.$refs.table.queryData(this.query)
|
||||
},
|
||||
resetQuery() {
|
||||
this.query = {};
|
||||
this.$refs.table.refresh(this.queryMtask);
|
||||
},
|
||||
table_submit(row) {
|
||||
this.$API.pm.mtask.submit.req(row.id).then(res => {
|
||||
|
|
|
@ -10,11 +10,8 @@
|
|||
</template>
|
||||
<el-descriptions>
|
||||
<el-descriptions-item label="任务编号">{{ currentMtask.number }}</el-descriptions-item>
|
||||
<el-descriptions-item label="产品名称">
|
||||
<span v-if="currentMtask.material_out_">{{ currentMtask.material_out_.name }}</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="规格型号">
|
||||
<span v-if="currentMtask.material_out_">{{ currentMtask.material_out_.specification }}</span>
|
||||
<el-descriptions-item label="产品全称">
|
||||
<span v-if="currentMtask.material_out_">{{ currentMtask.material_out_name }}</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="计划数量">{{ currentMtask.count }}</el-descriptions-item>
|
||||
<el-descriptions-item label="计划日期">{{ currentMtask.start_date }}</el-descriptions-item>
|
||||
|
|
|
@ -357,6 +357,7 @@ export default {
|
|||
if (res.length == 1) {
|
||||
this.currentDept = res[0]
|
||||
this.paramsMtask.mgroup__belong_dept = this.currentDept.id
|
||||
this.paramsMtask.state__in = '20,40'
|
||||
this.apiMtask = this.$API.pm.mtask.list
|
||||
|
||||
this.paramsHandover.recive_dept = this.currentDept.id
|
||||
|
|
Loading…
Reference in New Issue