utask分车间创建工段控制显示

This commit is contained in:
shijing 2023-10-26 08:52:42 +08:00
parent 3249a6c29d
commit 0c8fd90feb
2 changed files with 14 additions and 3 deletions

View File

@ -7,7 +7,7 @@
</div>
<el-tabs v-model="activeName" class="demo-tabs">
<el-tab-pane label="粗加工6车间" name="6车间">
<scTable ref="table1" :apiObj="apiUtask" row-key="id" stripe :params="paramsMtask" :height="tableHeight" @selection-change="handleSelectionChange" hidePagination>
<scTable ref="table1" :apiObj="apiUtask" row-key="id" stripe :params="paramsUtask" :height="tableHeight" @selection-change="handleSelectionChange" hidePagination>
<el-table-column type="selection" width="55" />
<el-table-column type="index" width="50" />
<el-table-column label="任务编号" prop="number">
@ -221,7 +221,7 @@ export default {
apiUtask: this.$API.pm.utask.list,
apiOrderItem: this.$API.sam.orderitem.list,
paramsOrderItem: { utask__isnull: true },
paramsMtask: { parent__isnull: true, mgroup__belong_dept__name: '6车间', material_out__is_hidden: true },
paramsUtask: { material__type: 10 },
query: {
page: 1,
page_size: 20,

View File

@ -144,7 +144,18 @@ export default {
});
},
getMaterial(){
this.$API.mtm.material.list.req({page:0,type__in:'10,20'}).then(res=>{
//type:20,is_hidden:false
// page:0,type:'10'
let obj ={};
obj.page = 0;
if(this.activeName=='6车间'){
obj.type = 10;
obj.is_hidden = false;
}else{
obj.type = 20;
obj.is_hidden = false;
}
this.$API.mtm.material.list.req(obj).then(res=>{
this.materialOptions = res;
})
},