|
@@ -7,7 +7,7 @@
|
|
v-show="showSearch"
|
|
v-show="showSearch"
|
|
label-width="68px"
|
|
label-width="68px"
|
|
>
|
|
>
|
|
- <el-form-item label="文件名称" prop="name">
|
|
|
|
|
|
+ <el-form-item prop="name">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.name"
|
|
v-model="queryParams.name"
|
|
placeholder="请输入文件名称"
|
|
placeholder="请输入文件名称"
|
|
@@ -133,8 +133,10 @@
|
|
/>
|
|
/>
|
|
</el-form-item>-->
|
|
</el-form-item>-->
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-button type="primary" icon="el-icon-search" size="btn" @click="handleQuery">搜索</el-button>
|
|
|
|
- <el-button icon="el-icon-refresh" size="btr" @click="resetQuery">重置</el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="btn" @click="handleQuery"
|
|
|
|
+ >搜索</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button size="btr" @click="resetQuery">重置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
@@ -146,7 +148,8 @@
|
|
size="mini"
|
|
size="mini"
|
|
@click="handleAdd"
|
|
@click="handleAdd"
|
|
v-hasPermi="['PrintsManage:manage:add']"
|
|
v-hasPermi="['PrintsManage:manage:add']"
|
|
- >发送文件</el-button>
|
|
|
|
|
|
+ >发送文件</el-button
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
<!-- <el-col :span="1.5">
|
|
<!-- <el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -168,7 +171,8 @@
|
|
:disabled="multiple"
|
|
:disabled="multiple"
|
|
@click="handleDelete"
|
|
@click="handleDelete"
|
|
v-hasPermi="['PrintsManage:manage:remove']"
|
|
v-hasPermi="['PrintsManage:manage:remove']"
|
|
- >删除</el-button>
|
|
|
|
|
|
+ >删除</el-button
|
|
|
|
+ >
|
|
</el-col>
|
|
</el-col>
|
|
<!-- <el-col :span="1.5">
|
|
<!-- <el-col :span="1.5">
|
|
<el-button
|
|
<el-button
|
|
@@ -181,7 +185,10 @@
|
|
v-hasPermi="['PrintsManage:manage:export']"
|
|
v-hasPermi="['PrintsManage:manage:export']"
|
|
>导出</el-button>
|
|
>导出</el-button>
|
|
</el-col>-->
|
|
</el-col>-->
|
|
- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
|
+ <!-- <right-toolbar
|
|
|
|
+ :showSearch.sync="showSearch"
|
|
|
|
+ @queryTable="getList"
|
|
|
|
+ ></right-toolbar> -->
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
<el-table
|
|
<el-table
|
|
@@ -198,18 +205,22 @@
|
|
<el-table-column label="类型" align="center" prop="type" />
|
|
<el-table-column label="类型" align="center" prop="type" />
|
|
<el-table-column label="是否彩打" align="center" prop="isPrintColor">
|
|
<el-table-column label="是否彩打" align="center" prop="isPrintColor">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{scope.row.isPrintColor==0?'否':'是'}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.isPrintColor == 0 ? "否" : "是" }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="是否双面打" align="center" prop="isPrintTwo">
|
|
<el-table-column label="是否双面打" align="center" prop="isPrintTwo">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span>{{scope.row.isPrintTwo==0?'否':'是'}}</span>
|
|
|
|
|
|
+ <span>{{ scope.row.isPrintTwo == 0 ? "否" : "是" }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="打印状态" align="center" prop="printStatus">
|
|
<el-table-column label="打印状态" align="center" prop="printStatus">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span style="color: #90da90;" v-if="scope.row.printStatus==1">打印中</span>
|
|
|
|
- <span style="color: #00FF00;" v-if="scope.row.printStatus==2">已打印</span>
|
|
|
|
|
|
+ <span style="color: #90da90" v-if="scope.row.printStatus == 1"
|
|
|
|
+ >打印中</span
|
|
|
|
+ >
|
|
|
|
+ <span style="color: #00ff00" v-if="scope.row.printStatus == 2"
|
|
|
|
+ >已打印</span
|
|
|
|
+ >
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<!-- <el-table-column label="大小" align="center" prop="size" /> -->
|
|
<!-- <el-table-column label="大小" align="center" prop="size" /> -->
|
|
@@ -237,26 +248,33 @@
|
|
<el-table-column label="接收人" align="center" prop="receiveName" />
|
|
<el-table-column label="接收人" align="center" prop="receiveName" />
|
|
<el-table-column label="生成路径" align="center" prop="sFile" />
|
|
<el-table-column label="生成路径" align="center" prop="sFile" />
|
|
<el-table-column label="打印回复信息" align="center" prop="printInfo" />-->
|
|
<el-table-column label="打印回复信息" align="center" prop="printInfo" />-->
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="操作"
|
|
|
|
+ align="center"
|
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
size="btk"
|
|
size="btk"
|
|
type="text"
|
|
type="text"
|
|
- v-if="scope.row.printStatus==1"
|
|
|
|
|
|
+ v-if="scope.row.printStatus == 1"
|
|
@click="handlePrint(scope.row)"
|
|
@click="handlePrint(scope.row)"
|
|
- >打印</el-button>
|
|
|
|
|
|
+ >打印</el-button
|
|
|
|
+ >
|
|
<el-button
|
|
<el-button
|
|
size="btu"
|
|
size="btu"
|
|
type="text"
|
|
type="text"
|
|
@click="handleUpdate(scope.row)"
|
|
@click="handleUpdate(scope.row)"
|
|
v-hasPermi="['PrintsManage:manage:edit']"
|
|
v-hasPermi="['PrintsManage:manage:edit']"
|
|
- >修改</el-button>
|
|
|
|
|
|
+ >修改</el-button
|
|
|
|
+ >
|
|
<el-button
|
|
<el-button
|
|
size="btd"
|
|
size="btd"
|
|
type="text"
|
|
type="text"
|
|
@click="handleDelete(scope.row)"
|
|
@click="handleDelete(scope.row)"
|
|
v-hasPermi="['PrintsManage:manage:remove']"
|
|
v-hasPermi="['PrintsManage:manage:remove']"
|
|
- >删除</el-button>
|
|
|
|
|
|
+ >删除</el-button
|
|
|
|
+ >
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -270,11 +288,27 @@
|
|
/>
|
|
/>
|
|
|
|
|
|
<!-- 添加或修改集中文印主对话框 -->
|
|
<!-- 添加或修改集中文印主对话框 -->
|
|
- <el-dialog :title="title" :visible.sync="open" width="1030px" append-to-body :close-on-click-modal="false">
|
|
|
|
- <el-form ref="form" :model="form" :inline="true" :rules="rules" label-width="120px">
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ :title="title"
|
|
|
|
+ :visible.sync="open"
|
|
|
|
+ width="1030px"
|
|
|
|
+ append-to-body
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
+ >
|
|
|
|
+ <el-form
|
|
|
|
+ ref="form"
|
|
|
|
+ :model="form"
|
|
|
|
+ :inline="true"
|
|
|
|
+ :rules="rules"
|
|
|
|
+ label-width="120px"
|
|
|
|
+ >
|
|
<div class="jiben">发送人信息</div>
|
|
<div class="jiben">发送人信息</div>
|
|
<el-form-item label="发送人" prop="sendName">
|
|
<el-form-item label="发送人" prop="sendName">
|
|
- <el-input v-model="form.sendName" disabled placeholder="请输入发送人" />
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="form.sendName"
|
|
|
|
+ disabled
|
|
|
|
+ placeholder="请输入发送人"
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<div class="jiben">文件信息</div>
|
|
<div class="jiben">文件信息</div>
|
|
<el-form-item label="上传文件">
|
|
<el-form-item label="上传文件">
|
|
@@ -291,18 +325,24 @@
|
|
:headers="headers"
|
|
:headers="headers"
|
|
class="upload-file-uploader"
|
|
class="upload-file-uploader"
|
|
ref="upload"
|
|
ref="upload"
|
|
- style="width:200px;"
|
|
|
|
|
|
+ style="width: 200px"
|
|
name="pfile"
|
|
name="pfile"
|
|
>
|
|
>
|
|
<!-- 上传按钮 -->
|
|
<!-- 上传按钮 -->
|
|
- <el-button size="mini" type="primary" class="select_file">选取文件</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="primary" class="select_file"
|
|
|
|
+ >选取文件</el-button
|
|
|
|
+ >
|
|
</el-upload>
|
|
</el-upload>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="文件名称" prop="name">
|
|
<el-form-item label="文件名称" prop="name">
|
|
<el-input v-model="form.name" placeholder="请输入文件名称" />
|
|
<el-input v-model="form.name" placeholder="请输入文件名称" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="打印份数" prop="printNumber">
|
|
<el-form-item label="打印份数" prop="printNumber">
|
|
- <el-input v-model="form.printNumber" :min="0" placeholder="请输入打印份数" />
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="form.printNumber"
|
|
|
|
+ :min="0"
|
|
|
|
+ placeholder="请输入打印份数"
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="文件大小" prop="size">
|
|
<el-form-item label="文件大小" prop="size">
|
|
<el-input v-model="form.size" placeholder="请输入文件大小" />
|
|
<el-input v-model="form.size" placeholder="请输入文件大小" />
|
|
@@ -336,13 +376,21 @@
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>-->
|
|
</el-form-item>-->
|
|
<el-form-item label="是否为彩打" prop="isPrintColor">
|
|
<el-form-item label="是否为彩打" prop="isPrintColor">
|
|
- <el-radio-group v-model="form.isPrintColor" style="width:200px;" size="mini">
|
|
|
|
|
|
+ <el-radio-group
|
|
|
|
+ v-model="form.isPrintColor"
|
|
|
|
+ style="width: 200px"
|
|
|
|
+ size="mini"
|
|
|
|
+ >
|
|
<el-radio label="1">是</el-radio>
|
|
<el-radio label="1">是</el-radio>
|
|
<el-radio label="0">否</el-radio>
|
|
<el-radio label="0">否</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="是否为双面打" prop="isPrintTwo">
|
|
<el-form-item label="是否为双面打" prop="isPrintTwo">
|
|
- <el-radio-group v-model="form.isPrintTwo" style="width:200px;" size="mini">
|
|
|
|
|
|
+ <el-radio-group
|
|
|
|
+ v-model="form.isPrintTwo"
|
|
|
|
+ style="width: 200px"
|
|
|
|
+ size="mini"
|
|
|
|
+ >
|
|
<el-radio label="1">是</el-radio>
|
|
<el-radio label="1">是</el-radio>
|
|
<el-radio label="0">否</el-radio>
|
|
<el-radio label="0">否</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
@@ -397,19 +445,33 @@
|
|
:visible.sync="dyopen"
|
|
:visible.sync="dyopen"
|
|
append-to-body
|
|
append-to-body
|
|
width="700px"
|
|
width="700px"
|
|
- style="padding-top:100px;"
|
|
|
|
|
|
+ style="padding-top: 100px"
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
>
|
|
>
|
|
- <el-form ref="dyform" :model="dyform" :inline="true" :rules="rules" label-width="120px">
|
|
|
|
|
|
+ <el-form
|
|
|
|
+ ref="dyform"
|
|
|
|
+ :model="dyform"
|
|
|
|
+ :inline="true"
|
|
|
|
+ :rules="rules"
|
|
|
|
+ label-width="120px"
|
|
|
|
+ >
|
|
<div class="jiben jiben2">打印信息</div>
|
|
<div class="jiben jiben2">打印信息</div>
|
|
<el-form-item label="打印文件" prop="printName">
|
|
<el-form-item label="打印文件" prop="printName">
|
|
<el-input v-model="dyform.printName" placeholder="请输入打印文件" />
|
|
<el-input v-model="dyform.printName" placeholder="请输入打印文件" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="打印份数" prop="printNumber">
|
|
<el-form-item label="打印份数" prop="printNumber">
|
|
- <el-input v-model="dyform.printNumber" :min="0" placeholder="请输入打印份数" />
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="dyform.printNumber"
|
|
|
|
+ :min="0"
|
|
|
|
+ placeholder="请输入打印份数"
|
|
|
|
+ />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="是否需要归还" prop="isReturn">
|
|
<el-form-item label="是否需要归还" prop="isReturn">
|
|
- <el-radio-group v-model="dyform.isReturn" style="width:200px;" size="mini">
|
|
|
|
|
|
+ <el-radio-group
|
|
|
|
+ v-model="dyform.isReturn"
|
|
|
|
+ style="width: 200px"
|
|
|
|
+ size="mini"
|
|
|
|
+ >
|
|
<el-radio label="1">归还</el-radio>
|
|
<el-radio label="1">归还</el-radio>
|
|
<el-radio label="0">无需归还</el-radio>
|
|
<el-radio label="0">无需归还</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
@@ -428,14 +490,35 @@
|
|
</el-form-item>-->
|
|
</el-form-item>-->
|
|
<!-- <div class="jiben">打印人信息</div> -->
|
|
<!-- <div class="jiben">打印人信息</div> -->
|
|
<el-form-item label="打印人" prop="printfileName">
|
|
<el-form-item label="打印人" prop="printfileName">
|
|
- <el-select v-model="dyform.printfileName" filterable clearable placeholder="请选择打印人">
|
|
|
|
- <el-option v-for="item in rylist" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="dyform.printfileName"
|
|
|
|
+ filterable
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择打印人"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in rylist"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ ></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<div class="jiben jiben2">打印说明</div>
|
|
<div class="jiben jiben2">打印说明</div>
|
|
<div
|
|
<div
|
|
- style="width:98.5%;height:45px;font-size:14px;line-height:45px;color:#fff;border-bottom:1px solid #fff;margin-bottom:20px;padding-left:15px;"
|
|
|
|
- >其他要求:{{yaoqiu}}</div>
|
|
|
|
|
|
+ style="
|
|
|
|
+ width: 98.5%;
|
|
|
|
+ height: 45px;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ line-height: 45px;
|
|
|
|
+ color: #fff;
|
|
|
|
+ border-bottom: 1px solid #fff;
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+ padding-left: 15px;
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ 其他要求:{{ yaoqiu }}
|
|
|
|
+ </div>
|
|
<el-form-item label prop="explainInfo">
|
|
<el-form-item label prop="explainInfo">
|
|
<el-input
|
|
<el-input
|
|
v-model="dyform.explainInfo"
|
|
v-model="dyform.explainInfo"
|
|
@@ -472,7 +555,7 @@ import {
|
|
exportManage,
|
|
exportManage,
|
|
printFile,
|
|
printFile,
|
|
listPeople,
|
|
listPeople,
|
|
- printCode
|
|
|
|
|
|
+ printCode,
|
|
} from "@/api/PrintsManage/manage";
|
|
} from "@/api/PrintsManage/manage";
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
import Cookies from "js-cookie";
|
|
import Cookies from "js-cookie";
|
|
@@ -490,23 +573,23 @@ export default {
|
|
// 数量限制
|
|
// 数量限制
|
|
limit: {
|
|
limit: {
|
|
type: Number,
|
|
type: Number,
|
|
- default: 5
|
|
|
|
|
|
+ default: 5,
|
|
},
|
|
},
|
|
// 大小限制(MB)
|
|
// 大小限制(MB)
|
|
fileSize: {
|
|
fileSize: {
|
|
type: Number,
|
|
type: Number,
|
|
- default: 5
|
|
|
|
|
|
+ default: 5,
|
|
},
|
|
},
|
|
// 文件类型, 例如['png', 'jpg', 'jpeg']
|
|
// 文件类型, 例如['png', 'jpg', 'jpeg']
|
|
fileType: {
|
|
fileType: {
|
|
type: Array,
|
|
type: Array,
|
|
- default: () => ["doc", "xls", "ppt", "txt", "pdf"]
|
|
|
|
|
|
+ default: () => ["doc", "xls", "ppt", "txt", "pdf"],
|
|
},
|
|
},
|
|
// 是否显示提示
|
|
// 是否显示提示
|
|
isShowTip: {
|
|
isShowTip: {
|
|
type: Boolean,
|
|
type: Boolean,
|
|
- default: true
|
|
|
|
- }
|
|
|
|
|
|
+ default: true,
|
|
|
|
+ },
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -551,7 +634,7 @@ export default {
|
|
receiveId: null,
|
|
receiveId: null,
|
|
receiveName: null,
|
|
receiveName: null,
|
|
sFile: null,
|
|
sFile: null,
|
|
- printInfo: null
|
|
|
|
|
|
+ printInfo: null,
|
|
},
|
|
},
|
|
// 表单参数
|
|
// 表单参数
|
|
form: {},
|
|
form: {},
|
|
@@ -564,7 +647,7 @@ export default {
|
|
uploadFileUrl:
|
|
uploadFileUrl:
|
|
process.env.VUE_APP_BASE_API + "/PrintsManage/manage/printFile", // 上传的图片服务器地址
|
|
process.env.VUE_APP_BASE_API + "/PrintsManage/manage/printFile", // 上传的图片服务器地址
|
|
headers: {
|
|
headers: {
|
|
- Authorization: "Bearer " + getToken()
|
|
|
|
|
|
+ Authorization: "Bearer " + getToken(),
|
|
},
|
|
},
|
|
fileList: [],
|
|
fileList: [],
|
|
faith: null,
|
|
faith: null,
|
|
@@ -572,17 +655,17 @@ export default {
|
|
islist: [],
|
|
islist: [],
|
|
yaoqiu: "",
|
|
yaoqiu: "",
|
|
dyopen2: false,
|
|
dyopen2: false,
|
|
- tableau: null
|
|
|
|
|
|
+ tableau: null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.getList();
|
|
this.getList();
|
|
//级别
|
|
//级别
|
|
- this.getDicts("level").then(response => {
|
|
|
|
|
|
+ this.getDicts("level").then((response) => {
|
|
this.levelMs = response.data;
|
|
this.levelMs = response.data;
|
|
});
|
|
});
|
|
//是否
|
|
//是否
|
|
- this.getDicts("sys_is").then(response => {
|
|
|
|
|
|
+ this.getDicts("sys_is").then((response) => {
|
|
this.islist = response.data;
|
|
this.islist = response.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -590,7 +673,7 @@ export default {
|
|
/** 查询集中文印主列表 */
|
|
/** 查询集中文印主列表 */
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- listManage(this.queryParams).then(response => {
|
|
|
|
|
|
+ listManage(this.queryParams).then((response) => {
|
|
this.manageList = response.rows;
|
|
this.manageList = response.rows;
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -629,7 +712,7 @@ export default {
|
|
isReturn: null,
|
|
isReturn: null,
|
|
printNumber: null,
|
|
printNumber: null,
|
|
isPrintTwo: null,
|
|
isPrintTwo: null,
|
|
- isPrintColor: null
|
|
|
|
|
|
+ isPrintColor: null,
|
|
};
|
|
};
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
},
|
|
},
|
|
@@ -646,7 +729,7 @@ export default {
|
|
printId: null,
|
|
printId: null,
|
|
statusG: null,
|
|
statusG: null,
|
|
isPrintTwo: null,
|
|
isPrintTwo: null,
|
|
- isPrintColor: null
|
|
|
|
|
|
+ isPrintColor: null,
|
|
};
|
|
};
|
|
this.resetForm("dyform");
|
|
this.resetForm("dyform");
|
|
},
|
|
},
|
|
@@ -662,7 +745,7 @@ export default {
|
|
},
|
|
},
|
|
// 多选框选中数据
|
|
// 多选框选中数据
|
|
handleSelectionChange(selection) {
|
|
handleSelectionChange(selection) {
|
|
- this.ids = selection.map(item => item.id);
|
|
|
|
|
|
+ this.ids = selection.map((item) => item.id);
|
|
this.single = selection.length !== 1;
|
|
this.single = selection.length !== 1;
|
|
this.multiple = !selection.length;
|
|
this.multiple = !selection.length;
|
|
},
|
|
},
|
|
@@ -678,7 +761,7 @@ export default {
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
this.reset();
|
|
this.reset();
|
|
const id = row.id || this.ids;
|
|
const id = row.id || this.ids;
|
|
- getManage(id).then(response => {
|
|
|
|
|
|
+ getManage(id).then((response) => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
this.form.isPrintColor = response.data.isPrintColor + "";
|
|
this.form.isPrintColor = response.data.isPrintColor + "";
|
|
this.form.isPrintTwo = response.data.isPrintTwo + "";
|
|
this.form.isPrintTwo = response.data.isPrintTwo + "";
|
|
@@ -688,16 +771,16 @@ export default {
|
|
},
|
|
},
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
submitForm() {
|
|
submitForm() {
|
|
- this.$refs["form"].validate(valid => {
|
|
|
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
if (this.form.id != null) {
|
|
if (this.form.id != null) {
|
|
- updateManage(this.form).then(response => {
|
|
|
|
|
|
+ updateManage(this.form).then((response) => {
|
|
this.$modal.msgSuccess("修改成功");
|
|
this.$modal.msgSuccess("修改成功");
|
|
this.open = false;
|
|
this.open = false;
|
|
this.getList();
|
|
this.getList();
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
- addManage(this.form).then(response => {
|
|
|
|
|
|
+ addManage(this.form).then((response) => {
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.open = false;
|
|
this.open = false;
|
|
this.getList();
|
|
this.getList();
|
|
@@ -711,7 +794,7 @@ export default {
|
|
const ids = row.id || this.ids;
|
|
const ids = row.id || this.ids;
|
|
this.$modal
|
|
this.$modal
|
|
.confirm("是否确认删除该数据项?")
|
|
.confirm("是否确认删除该数据项?")
|
|
- .then(function() {
|
|
|
|
|
|
+ .then(function () {
|
|
return delManage(ids);
|
|
return delManage(ids);
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
@@ -729,7 +812,7 @@ export default {
|
|
this.exportLoading = true;
|
|
this.exportLoading = true;
|
|
return exportManage(queryParams);
|
|
return exportManage(queryParams);
|
|
})
|
|
})
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.$download.name(response.msg);
|
|
this.$download.name(response.msg);
|
|
this.exportLoading = false;
|
|
this.exportLoading = false;
|
|
})
|
|
})
|
|
@@ -755,7 +838,7 @@ export default {
|
|
fileExtension = file.name.slice(file.name.lastIndexOf(".") + 1);
|
|
fileExtension = file.name.slice(file.name.lastIndexOf(".") + 1);
|
|
this.form.type = fileExtension;
|
|
this.form.type = fileExtension;
|
|
}
|
|
}
|
|
- const isTypeOk = this.fileType.some(type => {
|
|
|
|
|
|
+ const isTypeOk = this.fileType.some((type) => {
|
|
if (file.type.indexOf(type) > -1) return true;
|
|
if (file.type.indexOf(type) > -1) return true;
|
|
if (fileExtension && fileExtension.indexOf(type) > -1) return true;
|
|
if (fileExtension && fileExtension.indexOf(type) > -1) return true;
|
|
return false;
|
|
return false;
|
|
@@ -821,7 +904,7 @@ export default {
|
|
},
|
|
},
|
|
//获取人员
|
|
//获取人员
|
|
getrylist() {
|
|
getrylist() {
|
|
- listPeople().then(res => {
|
|
|
|
|
|
+ listPeople().then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.rylist = res.rows;
|
|
this.rylist = res.rows;
|
|
}
|
|
}
|
|
@@ -834,23 +917,21 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.dyform.statusG = 0;
|
|
this.dyform.statusG = 0;
|
|
}
|
|
}
|
|
- printCode(this.dyform).then(res => {
|
|
|
|
|
|
+ printCode(this.dyform).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
console.log(res);
|
|
console.log(res);
|
|
this.dyopen = false;
|
|
this.dyopen = false;
|
|
this.getList();
|
|
this.getList();
|
|
// var open=window.open();
|
|
// var open=window.open();
|
|
// let url='http://192.168.5.188:8080/profile/print/';
|
|
// let url='http://192.168.5.188:8080/profile/print/';
|
|
- let url='http://192.168.5.66:8089/profile/print/';
|
|
|
|
- location.href =
|
|
|
|
- url + res.printFileName;
|
|
|
|
-
|
|
|
|
|
|
+ let url = "http://192.168.5.66:8089/profile/print/";
|
|
|
|
+ location.href = url + res.printFileName;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
// open.location.href="http://192.168.5.188:8080/priofile/print/202203211244.docx";
|
|
// open.location.href="http://192.168.5.188:8080/priofile/print/202203211244.docx";
|
|
// window.open( `https://view.officeapps.live.com/op/view.aspx?src=http://192.168.5.188:8080/profile/print/202203211428.docx`, "_blank");
|
|
// window.open( `https://view.officeapps.live.com/op/view.aspx?src=http://192.168.5.188:8080/profile/print/202203211428.docx`, "_blank");
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style scoped>
|
|
<style scoped>
|
|
@@ -1042,6 +1123,6 @@ export default {
|
|
color: #bdbdbd4f !important;
|
|
color: #bdbdbd4f !important;
|
|
}
|
|
}
|
|
::v-deep .el-dialog__footer {
|
|
::v-deep .el-dialog__footer {
|
|
- padding-right: 30px !important;
|
|
|
|
|
|
+ padding-right: 30px !important;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|