|
@@ -17,98 +17,166 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
|
|
|
- <el-table :data="applyTable" tooltip-effect="dark" v-loading="loading" style="width: 100%"
|
|
|
- @selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" align="center" width="55"></el-table-column>
|
|
|
- <el-table-column label="序号" align="center" type="index" width="50"></el-table-column>
|
|
|
- <el-table-column label="类型" show-overflow-tooltip prop="lb_name" width="auto"></el-table-column>
|
|
|
- <el-table-column label="标题" show-overflow-tooltip prop="gw_title"></el-table-column>
|
|
|
- <el-table-column label="发文字号" show-overflow-tooltip >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{scope.row.gw_zh}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="发起人" show-overflow-tooltip prop="gw_fqr_name"></el-table-column>
|
|
|
- <el-table-column label="发起科室" show-overflow-tooltip prop="gw_fqks_name"></el-table-column>
|
|
|
- <el-table-column label="发起时间" show-overflow-tooltip prop="create_dateline"></el-table-column>
|
|
|
- <el-table-column label="当前步骤" >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{scope.row.gw_bz!='' ? scope.row.gw_bz : '--'}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="当前审核人" >
|
|
|
- <template slot-scope="scope">
|
|
|
- {{scope.row.gw_shr!='' ? scope.row.gw_shr : '--'}}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="状态">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>
|
|
|
- {{scope.row.gw_status}}
|
|
|
- </div>
|
|
|
- <!-- <div :class="scope.row.xm_status_option_k=='4' ? 'red' : (scope.row.xm_status_option_k=='3' ? 'blue' : ' ') ">
|
|
|
- {{scope.row.xm_status}}
|
|
|
- </div> -->
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" width="150">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-popover placement="left" width="185" trigger="click" v-if="scope.row.gw_status_option_k=='1'">
|
|
|
- <!--待提交-->
|
|
|
- <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
|
|
|
- <el-button type="text" @click="editShow(scope.row,'edit')">编辑</el-button>
|
|
|
- <el-button type="text" @click="applyCheck(scope.row)">提交</el-button>
|
|
|
- <el-button type="text" @click="delData(scope.row)">删除</el-button>
|
|
|
- <div slot="reference" class="optionMore" style="padding-left:10%;">
|
|
|
- <img src="../../../assets/icon/optionIcon.png" style="width:3%;" alt="">
|
|
|
+ <div v-if="false">
|
|
|
+ <el-table :data="applyTable" tooltip-effect="dark" v-loading="loading" style="width: 100%"
|
|
|
+ @selection-change="handleSelectionChange">
|
|
|
+ <el-table-column type="selection" align="center" width="55"></el-table-column>
|
|
|
+ <el-table-column label="序号" align="center" type="index" width="50"></el-table-column>
|
|
|
+ <el-table-column label="类型" show-overflow-tooltip prop="lb_name" width="auto"></el-table-column>
|
|
|
+ <el-table-column label="标题" show-overflow-tooltip prop="gw_title"></el-table-column>
|
|
|
+ <el-table-column label="发文字号" show-overflow-tooltip >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.gw_zh}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="发起人" show-overflow-tooltip prop="gw_fqr_name"></el-table-column>
|
|
|
+ <el-table-column label="发起科室" show-overflow-tooltip prop="gw_fqks_name"></el-table-column>
|
|
|
+ <el-table-column label="发起时间" show-overflow-tooltip prop="create_dateline"></el-table-column>
|
|
|
+ <el-table-column label="当前步骤" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.gw_bz!='' ? scope.row.gw_bz : '--'}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="当前审核人" >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.gw_shr!='' ? scope.row.gw_shr : '--'}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="状态">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ {{scope.row.gw_status}}
|
|
|
</div>
|
|
|
- </el-popover>
|
|
|
-
|
|
|
- <el-popover placement="left" width="240" trigger="click" v-if="scope.row.gw_status_option_k=='2'">
|
|
|
- <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
- <el-button type="text" @click="editShow(scope.row,'edit')">编辑</el-button>
|
|
|
- <!-- <el-button type="text" @click="applyCheck(scope.row)">重新提交</el-button> -->
|
|
|
- <el-button type="text" @click="higSpeed(scope.row)">催办</el-button>
|
|
|
- <el-button type="text" @click="delData(scope.row)">删除</el-button>
|
|
|
- <div slot="reference" class="optionMore" style="padding-left:10%;">
|
|
|
- <img src="../../../assets/icon/optionIcon.png" style="width:3%;" alt="">
|
|
|
+ <!-- <div :class="scope.row.xm_status_option_k=='4' ? 'red' : (scope.row.xm_status_option_k=='3' ? 'blue' : ' ') ">
|
|
|
+ {{scope.row.xm_status}}
|
|
|
+ </div> -->
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-popover placement="left" width="185" trigger="click" v-if="scope.row.gw_status_option_k=='1'">
|
|
|
+ <!--待提交-->
|
|
|
+ <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
|
|
|
+ <el-button type="text" @click="editShow(scope.row,'edit')">编辑</el-button>
|
|
|
+ <el-button type="text" @click="applyCheck(scope.row)">提交</el-button>
|
|
|
+ <el-button type="text" @click="delData(scope.row)">删除</el-button>
|
|
|
+ <div slot="reference" class="optionMore" style="padding-left:10%;">
|
|
|
+ <img src="../../../assets/icon/optionIcon.png" style="width:3%;" alt="">
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
+
|
|
|
+ <el-popover placement="left" width="240" trigger="click" v-if="scope.row.gw_status_option_k=='2'">
|
|
|
+ <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
+ <el-button type="text" @click="editShow(scope.row,'edit')">编辑</el-button>
|
|
|
+ <!-- <el-button type="text" @click="applyCheck(scope.row)">重新提交</el-button> -->
|
|
|
+ <el-button type="text" @click="higSpeed(scope.row)">催办</el-button>
|
|
|
+ <el-button type="text" @click="delData(scope.row)">删除</el-button>
|
|
|
+ <div slot="reference" class="optionMore" style="padding-left:10%;">
|
|
|
+ <img src="../../../assets/icon/optionIcon.png" style="width:3%;" alt="">
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
+
|
|
|
+ <el-popover placement="left" width="185" trigger="click" v-if="scope.row.gw_status_option_k=='3'">
|
|
|
+ <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
+ <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
|
|
|
+ <el-button type="text" @click="higSpeed(scope.row)">催办</el-button>
|
|
|
+ <div slot="reference" class="optionMore" style="padding-left:10%;">
|
|
|
+ <img src="../../../assets/icon/optionIcon.png" style="width:3%;" alt="">
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
+
|
|
|
+ <el-popover placement="left" width="240" trigger="click" v-if="scope.row.gw_status_option_k=='4'">
|
|
|
+ <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
+ <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
|
|
|
+ <el-button type="text" @click="editShow(scope.row,'reEdit')">重新进行拟稿</el-button>
|
|
|
+ <div slot="reference" class="optionMore" style="padding-left:10%;">
|
|
|
+ <img src="../../../assets/icon/optionIcon.png" style="width:3%;" alt="">
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
+
|
|
|
+ <el-popover placement="left" width="45" trigger="click" v-if="scope.row.gw_status_option_k=='5'">
|
|
|
+ <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
+ <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
|
|
|
+ <div slot="reference" class="optionMore" style="padding-left:10%;">
|
|
|
+ <img src="../../../assets/icon/optionIcon.png" style="width:3%;" alt="">
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ <!-- 可拖拉table -->
|
|
|
+ <div class="sortAbleTable" >
|
|
|
+ <el-table :data="applyTable" row-key="gw_id" border style="width: 100%">
|
|
|
+ <el-table-column type="selection" align="center" width="55"></el-table-column>
|
|
|
+ <el-table-column type="index" label="序号" width="100" align="center" />
|
|
|
+ <el-table-column
|
|
|
+ v-for="(item, index) in colList"
|
|
|
+ align="center"
|
|
|
+ show-overflow-tooltip
|
|
|
+ :key="`col_${index}`"
|
|
|
+ :prop="dropCol[index].prop"
|
|
|
+ :label="item.label"
|
|
|
+ :min-width="item.minWidth"
|
|
|
+ >
|
|
|
+ <template v-slot="scope">
|
|
|
+ <span v-if="dropCol[index].prop == 'date'" style="color: blue">
|
|
|
+ {{ scope.row[dropCol[index].prop] }}
|
|
|
+ </span>
|
|
|
+ <span v-else>
|
|
|
+ {{ scope.row[dropCol[index].prop] }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" width="200">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div v-if="scope.row.gw_status_option_k=='1'">
|
|
|
+ <el-button type="text" @click="reviewShow(scope.row)">预览</el-button>
|
|
|
+ <el-button type="text" @click="editShow(scope.row,'edit')">编辑</el-button>
|
|
|
+ <el-button type="text" @click="applyCheck(scope.row)">提交</el-button>
|
|
|
+ <el-button type="text" @click="delData(scope.row)">删除</el-button>
|
|
|
+
|
|
|
</div>
|
|
|
- </el-popover>
|
|
|
-
|
|
|
- <el-popover placement="left" width="185" trigger="click" v-if="scope.row.gw_status_option_k=='3'">
|
|
|
- <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
- <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
|
|
|
- <el-button type="text" @click="higSpeed(scope.row)">催办</el-button>
|
|
|
- <div slot="reference" class="optionMore" style="padding-left:10%;">
|
|
|
- <img src="../../../assets/icon/optionIcon.png" style="width:3%;" alt="">
|
|
|
+
|
|
|
+ <div v-if="scope.row.gw_status_option_k=='2'">
|
|
|
+ <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
+ <el-button type="text" @click="editShow(scope.row,'edit')">编辑</el-button>
|
|
|
+ <el-button type="text" @click="higSpeed(scope.row)">催办</el-button>
|
|
|
+ <el-button type="text" @click="delData(scope.row)">删除</el-button>
|
|
|
+
|
|
|
</div>
|
|
|
- </el-popover>
|
|
|
-
|
|
|
- <el-popover placement="left" width="240" trigger="click" v-if="scope.row.gw_status_option_k=='4'">
|
|
|
- <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
- <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
|
|
|
- <el-button type="text" @click="editShow(scope.row,'reEdit')">重新进行拟稿</el-button>
|
|
|
- <div slot="reference" class="optionMore" style="padding-left:10%;">
|
|
|
- <img src="../../../assets/icon/optionIcon.png" style="width:3%;" alt="">
|
|
|
+
|
|
|
+ <div v-if="scope.row.gw_status_option_k=='3'">
|
|
|
+ <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
+ <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
|
|
|
+ <el-button type="text" @click="higSpeed(scope.row)">催办</el-button>
|
|
|
</div>
|
|
|
- </el-popover>
|
|
|
-
|
|
|
- <el-popover placement="left" width="45" trigger="click" v-if="scope.row.gw_status_option_k=='5'">
|
|
|
- <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
- <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
|
|
|
- <div slot="reference" class="optionMore" style="padding-left:10%;">
|
|
|
- <img src="../../../assets/icon/optionIcon.png" style="width:3%;" alt="">
|
|
|
+
|
|
|
+ <div v-if="scope.row.gw_status_option_k=='4'">
|
|
|
+ <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
+ <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
|
|
|
+ <el-button type="text" @click="editShow(scope.row,'reEdit')">重新进行拟稿</el-button>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div v-if="scope.row.gw_status_option_k=='5'">
|
|
|
+ <el-button type="text" @click="reviewShow(scope.row)">详情</el-button>
|
|
|
+ <el-button type="text" @click="checkRecord(scope.row)">审批记录</el-button>
|
|
|
+
|
|
|
</div>
|
|
|
- </el-popover>
|
|
|
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <footer class="flex-item-none" style="display: flex; justify-content: flex-end; margin-top: 30px">
|
|
|
+ <el-pagination background layout="total,prev, pager, next" :page-size="limit" :total="total"
|
|
|
+ :current-page.sync="cur_page" @current-change="handleCurrentChange"></el-pagination>
|
|
|
+ </footer>
|
|
|
+ </div>
|
|
|
|
|
|
- <footer class="flex-item-none" style="display: flex; justify-content: flex-end; margin-top: 30px">
|
|
|
- <el-pagination background layout="total,prev, pager, next" :page-size="limit" :total="total"
|
|
|
- :current-page.sync="cur_page" @current-change="handleCurrentChange"></el-pagination>
|
|
|
- </footer>
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -242,6 +310,10 @@ import { useUserStore } from "@/stores/user";
|
|
|
const { real_name, user_id, dept_ids } = useUserStore();
|
|
|
import Tinymce from "@/components/Tinymce/index.vue";
|
|
|
import FileUpload from "@/components/FileUpload/index.vue";
|
|
|
+
|
|
|
+import Sortable from 'sortablejs';
|
|
|
+import colDrap from "../../../utils/drag";
|
|
|
+
|
|
|
export default {
|
|
|
name: "xmsq",
|
|
|
components: {
|
|
@@ -390,11 +462,110 @@ export default {
|
|
|
timestamp: Date.now(),
|
|
|
gwId:'',
|
|
|
reEdit: '',
|
|
|
- prefixPDFUrl:window.globalVariables.api+'/plugins/pdf.js/web/viewer2.html?file=',
|
|
|
+ prefixPDFUrl: window.globalVariables.api + '/plugins/pdf.js/web/viewer2.html?file=',
|
|
|
+
|
|
|
+ //动态列数组
|
|
|
+ colList: [
|
|
|
+ {
|
|
|
+ label: "类型",
|
|
|
+ prop: "lb_name",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "标题",
|
|
|
+ prop: "gw_title",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发文字号",
|
|
|
+ prop: "gw_zh",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起人",
|
|
|
+ prop: "gw_fqr_name",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起科室",
|
|
|
+ prop: "gw_fqks_name",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起时间",
|
|
|
+ prop: "create_dateline",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "当前步骤",
|
|
|
+ prop: "gw_bz",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "当前审核人",
|
|
|
+ prop: "gw_shr",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "状态",
|
|
|
+ prop: "gw_status",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ //拖拽列
|
|
|
+ dropCol: [
|
|
|
+ {
|
|
|
+ label: "类型",
|
|
|
+ prop: "lb_name",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "标题",
|
|
|
+ prop: "gw_title",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发文字号",
|
|
|
+ prop: "gw_zh",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起人",
|
|
|
+ prop: "gw_fqr_name",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起科室",
|
|
|
+ prop: "gw_fqks_name",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起时间",
|
|
|
+ prop: "create_dateline",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "当前步骤",
|
|
|
+ prop: "gw_bz",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "当前审核人",
|
|
|
+ prop: "gw_shr",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "状态",
|
|
|
+ prop: "gw_status",
|
|
|
+ minWidth: 100,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getListData();
|
|
|
+ this.dropCol = colDrap(this.dropCol);
|
|
|
},
|
|
|
methods: {
|
|
|
//获取用户列表
|