累计跟新

main
liukewei 11 months ago
parent 621b320209
commit d70d14b77a

@ -70,4 +70,7 @@ public class EhsDocTransfer extends BaseEntity {
@Excel(name = "公文名称") @Excel(name = "公文名称")
private String documentName; private String documentName;
//@Excel(name = "公文名称")
private String transferDept;//流转情况
} }

@ -12,7 +12,7 @@
<result property="docTransferStatus" column="doc_transfer_status" /> <result property="docTransferStatus" column="doc_transfer_status" />
<result property="documentId" column="document_id" /> <result property="documentId" column="document_id" />
<result property="documentName" column="document_name" /> <result property="documentName" column="document_name" />
<result property="transferDept" column="transfer_dept" />
<result property="createBy" column="create_by" /> <result property="createBy" column="create_by" />
<result property="createTime" column="create_time" /> <result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" /> <result property="updateBy" column="update_by" />
@ -24,7 +24,9 @@
</resultMap> </resultMap>
<sql id="selectEhsDocTransferVo"> <sql id="selectEhsDocTransferVo">
select id, transfer_user_id, transfer_name, transfer_time, doc_transfer_status, document_id, document_name, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_doc_transfer select id, transfer_user_id, transfer_name, transfer_time, doc_transfer_status,
document_id, document_name, create_by, create_time, update_by, update_time,
remark, dept_id, create_user_id, update_user_id,transfer_dept from ehs_doc_transfer
</sql> </sql>
@ -38,6 +40,7 @@
<if test="documentId != null "> and document_id = #{documentId}</if> <if test="documentId != null "> and document_id = #{documentId}</if>
<if test="documentName != null and documentName != ''"> and document_name = #{documentName}</if> <if test="documentName != null and documentName != ''"> and document_name = #{documentName}</if>
</where> </where>
order by transfer_time desc
</select> </select>
<select id="selectEhsDocTransferById" parameterType="Long" resultMap="EhsDocTransferResult"> <select id="selectEhsDocTransferById" parameterType="Long" resultMap="EhsDocTransferResult">

@ -82,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deptId != null and deptId != 0"> <if test="deptId != null and deptId != 0">
AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) )) AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) ))
</if> </if>
order by order_num order by u.order_num
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
${params.dataScope} ${params.dataScope}
</select> </select>

@ -129,7 +129,7 @@
<span>{{ parseTime(scope.row.receiveTime, "{y}-{m}-{d}") }}</span> <span>{{ parseTime(scope.row.receiveTime, "{y}-{m}-{d}") }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="收存情况" align="center" prop="remark" />
<el-table-column <el-table-column
label="操作" label="操作"
align="center" align="center"
@ -227,7 +227,7 @@
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="收存情况" prop="remark">
<el-input <el-input
v-model="form.remark" v-model="form.remark"
type="textarea" type="textarea"
@ -278,6 +278,11 @@
<span v-else></span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="流转情况" align="center" prop="transferDept">
<template slot-scope="scope">
<dict-tag :options="dict.type.transfer_dept" :value="scope.row.transferDept"/>
</template>
</el-table-column>
</el-table> </el-table>
<pagination <pagination
v-show="totalDetail>0" v-show="totalDetail>0"
@ -321,6 +326,16 @@
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="流转情况" prop="transferDept">
<el-select v-model="form.transferDept" multiple collapse-tags placeholder="请选择流转情况" >
<el-option
v-for="dict in dict.type.transfer_dept"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-form> </el-form>
</el-form> </el-form>
@ -352,10 +367,9 @@ import {
} from "@/api/ehs/ehsDocTransfer"; } from "@/api/ehs/ehsDocTransfer";
import { parseTime } from "../../../utils/ruoyi"; import { parseTime } from "../../../utils/ruoyi";
import dict from "@/utils/dict"; import dict from "@/utils/dict";
export default { export default {
name: "EhsDocument", name: "EhsDocument",
dicts: ["doc_type", "doc_transfer_status"], dicts: ["doc_type", "doc_transfer_status","transfer_dept"],
data() { data() {
return { return {
// //
@ -455,6 +469,7 @@ export default {
deptId: null, deptId: null,
createUserId: null, createUserId: null,
updateUserId: null, updateUserId: null,
transferDept: null,
}; };
this.resetForm("form"); this.resetForm("form");
}, },
@ -547,6 +562,11 @@ export default {
submitLendForm() { submitLendForm() {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
console.log(this.form)
if(this.form.transferDept!=null){
this.form.transferDept = this.form.transferDept.join();
}
lendEhsDoc(this.form).then((response) => { lendEhsDoc(this.form).then((response) => {
this.$modal.msgSuccess("借出成功"); this.$modal.msgSuccess("借出成功");
this.open2 = false; this.open2 = false;

@ -265,8 +265,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="行政区域" prop="areaId"> <el-form-item label="企业地址" prop="areaId">
<el-select v-model="form.areaId" placeholder="请选择行政区域"> <el-select v-model="form.areaId" placeholder="请选择企业地址">
<el-option <el-option
v-for="dict in dict.type.area_id" v-for="dict in dict.type.area_id"
:key="dict.value" :key="dict.value"

Loading…
Cancel
Save