fix:日志打印
This commit is contained in:
parent
01500ad0b1
commit
42760326b8
|
@ -51,9 +51,11 @@
|
|||
<el-link type="primary" v-if="scope.row.submit_user==null" @click="table_submit(scope.row)">提交</el-link>
|
||||
<el-divider direction="vertical" v-if="scope.row.submit_user==null"></el-divider>
|
||||
<el-link type="primary" v-if="scope.row.submit_user==null" @click="table_edit(scope.row)">编辑</el-link>
|
||||
<el-link type="primary" v-else @click="table_show(scope.row)">查看</el-link>
|
||||
<el-divider direction="vertical" v-if="scope.row.submit_user==null"></el-divider>
|
||||
<el-link type="danger" v-if="scope.row.submit_user==null" @click="table_del(scope.row)">删除</el-link>
|
||||
<el-link type="primary" v-if="scope.row.submit_user!==null" @click="handlePrint(scope.row)">打印</el-link>
|
||||
<el-divider direction="vertical" v-if="scope.row.submit_user!==null"></el-divider>
|
||||
<el-link type="primary" v-if="scope.row.submit_user!==null" @click="table_show(scope.row)">查看</el-link>
|
||||
<!-- <el-link type="danger" v-else @click="table_revert(scope.row)">撤回</el-link> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -69,9 +71,13 @@
|
|||
@closed="dialog.save = false"
|
||||
>
|
||||
</save-dialog>
|
||||
<el-dialog v-model="printVisible" width="1200px">
|
||||
<print :baseData="rowItem" :type="type" @closePrint="printVisible=false"/>
|
||||
</el-dialog>
|
||||
</el-container>
|
||||
</template>
|
||||
<script>
|
||||
import print from "./../setting/print/A4.vue";
|
||||
import saveDialog from "./products_form.vue";
|
||||
|
||||
export default {
|
||||
|
@ -84,7 +90,7 @@ export default {
|
|||
},
|
||||
name: "mlog",
|
||||
components: {
|
||||
saveDialog,
|
||||
saveDialog,print
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -95,20 +101,25 @@ export default {
|
|||
save: false,
|
||||
detail: false,
|
||||
},
|
||||
type:'',
|
||||
tableData: [],
|
||||
selection: [],
|
||||
rowItem:{},
|
||||
mtask: "",
|
||||
mlogId: "",
|
||||
deptId: null,
|
||||
processId: "",
|
||||
processCate: "",
|
||||
printVisible:false,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
let that = this;
|
||||
if(that.mgroupName == "size"){
|
||||
this.type = "productstest_cc";
|
||||
this.params.material__process__name = "一次超洗";
|
||||
}else{
|
||||
this.type = "productstest_wg";
|
||||
this.params.material__process__name = "二次超洗";
|
||||
}
|
||||
that.apiObj= this.$API.qm.ftestwork.list;
|
||||
|
@ -185,6 +196,11 @@ export default {
|
|||
this.dialog.save = true;
|
||||
this.$refs.table.refresh();
|
||||
},
|
||||
//打印
|
||||
handlePrint(row){
|
||||
this.rowItem = row;
|
||||
this.printVisible = true;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue