Commit 6b40b073 authored by 王晓倩's avatar 王晓倩

编辑预案重置审核状态

parent 660fc07c
......@@ -51,7 +51,7 @@
<el-table-column prop="checkStatus" label="审核状态">
<template slot-scope="scope">
<font v-if="scope.row.isReported != 0" >
——
--
</font>
<font v-else-if="scope.row.checkStatus == 0 && scope.row.isReported == 0" class="colorP">
<i class="iconfont iconshenhe"></i>待审核
......@@ -86,7 +86,7 @@
<!-- <el-table-column prop="createTime" label="创建时间"></el-table-column> -->
<el-table-column label="操作" width="220" align="center">
<template slot-scope="scope">
<el-button @click="editFun(scope.row)" size="small" v-if="qyvisble">
<el-button @click="editFun(scope.row)" size="small" v-if="scope.row.checkStatus != 1">
<i class="el-icon-edit-outline"></i> 编辑
</el-button>
<el-button type="primary" plain @click="editFun(scope.row)" size="small" v-if="!qyvisble">
......
......@@ -23,10 +23,7 @@
<el-form-item label="预案等级:">
<font>{{editForm.planLevel + '级'}}</font>
</el-form-item>
<el-form-item label="是否上报:">
<font>{{editForm.isReported == 0 ? '已上报' : '未上报'}}</font>
</el-form-item>
<el-form-item label="预案源文件:">
<el-form-item label="预案源文件">
<span
class="dbtn sd qiCr"
@click="checkFile(editForm.sourceFile)"
......@@ -38,10 +35,14 @@
</el-form-item>
<el-form-item label="审核预案" prop="checkStatus">
<el-radio-group v-model="editForm.checkStatus">
<el-radio label="0">待审核</el-radio>
<el-radio label="1">通过</el-radio>
<el-radio label="2">未通过</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="审核意见">
<el-input type="textarea" v-model="editForm.remarks"></el-input>
</el-form-item>
</el-form>
</div>
</el-col>
......@@ -88,14 +89,10 @@ export default class PlansMgEdit extends Vue {
fileOriginalName: String;
};
@Provide() enterpriseId: String = "";
@Provide() editorA: any;
@Provide() qyvisble: boolean = true;
@Provide() rules: any = {
planLevel: [{ required: true, trigger: "blur", message: "该项为必填项!" }],
planTitle: [{ required: true, trigger: "blur", message: "该项为必填项!" }],
planType: [{ required: true, trigger: "blur", message: "该项为必填项!" }],
checkStatus: [{ required: true, trigger: "blur", message: "该项为必填项!" }],
// checkStatus: [{ required: true, trigger: "blur", message: "该项为必填项!" }],
};
@Watch("sourceFile") change(val: any) {
if (val.length > 0) {
......@@ -115,13 +112,8 @@ export default class PlansMgEdit extends Vue {
//取消事件要在父级取消是所以用到 $emit
confirmFun(formName: string) {
let that = this;
that.editForm.planContents = that.editorA.getHTML();
that.editForm.enterpriseId = that.enterpriseId;
(that as any).$refs[formName].validate((valid: boolean) => {
if (that.editorA.getText() == false && that.editForm.sourceFile == "") {
that.$message.error("没有预案内容!");
return;
}
if (valid) {
METHOD.axiosPost(
that,
......
......@@ -53,6 +53,9 @@
<a v-for="(i,ind) in fileList" :key="ind" :href="i.url" target="_blank">{{i.name}}</a>&nbsp;&nbsp;&nbsp;<i class="btn el-icon-delete" @click="deleteList"></i>
</div>-->
</el-form-item>
<el-form-item label="审核意见">
<font>{{editForm.remarks}}</font>
</el-form-item>
</el-form>
</div>
</el-col>
......@@ -144,6 +147,7 @@ export default class PlansMgEdit extends Vue {
planLevel: String;
planTitle: String;
fileOriginalName: String;
checkStatus: String;
};
@Provide() enterpriseId: String = "";
@Provide() editorA: any;
......@@ -174,6 +178,7 @@ export default class PlansMgEdit extends Vue {
let that = this;
that.editForm.planContents = that.editorA.getHTML();
that.editForm.enterpriseId = that.enterpriseId;
that.editForm.checkStatus = "";
(that as any).$refs[formName].validate((valid: boolean) => {
if (that.editorA.getText() == false && (that.editForm.sourceFile == "" || that.editForm.sourceFile == undefined)) {
that.$message.error("没有预案内容!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment