|
@@ -307,11 +307,15 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="form.sendName"
|
|
v-model="form.sendName"
|
|
disabled
|
|
disabled
|
|
- placeholder="请输入发送人"
|
|
|
|
|
|
+ placeholder="请输入发送人"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="文印室" prop="printRoom">
|
|
|
|
- <el-select v-model="form.printRoom" clearable placeholder="请选择文印室">
|
|
|
|
|
|
+ <el-form-item label="文印室" prop="printRoom">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="form.printRoom"
|
|
|
|
+ clearable
|
|
|
|
+ placeholder="请选择文印室"
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
v-for="dict in printRooms"
|
|
v-for="dict in printRooms"
|
|
:key="dict.dictValue"
|
|
:key="dict.dictValue"
|
|
@@ -566,7 +570,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";
|
|
@@ -577,30 +581,30 @@ window.JSZip = require("jszip");
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "Manage",
|
|
name: "Manage",
|
|
- dicts: ["level","print_room"],
|
|
|
|
|
|
+ dicts: ["level", "print_room"],
|
|
props: {
|
|
props: {
|
|
// 值
|
|
// 值
|
|
value: [String, Object, Array],
|
|
value: [String, Object, Array],
|
|
// 数量限制
|
|
// 数量限制
|
|
limit: {
|
|
limit: {
|
|
type: Number,
|
|
type: Number,
|
|
- default: 5,
|
|
|
|
|
|
+ default: 5
|
|
},
|
|
},
|
|
// 大小限制(MB)
|
|
// 大小限制(MB)
|
|
fileSize: {
|
|
fileSize: {
|
|
type: Number,
|
|
type: Number,
|
|
- default: 50,
|
|
|
|
|
|
+ default: 50
|
|
},
|
|
},
|
|
// 文件类型, 例如['png', 'jpg', 'jpeg']
|
|
// 文件类型, 例如['png', 'jpg', 'jpeg']
|
|
fileType: {
|
|
fileType: {
|
|
type: Array,
|
|
type: Array,
|
|
- default: () => ["doc", "xls", "ppt", "pdf",'zip'],
|
|
|
|
|
|
+ default: () => ["doc", "xls", "ppt", "pdf", "zip"]
|
|
},
|
|
},
|
|
// 是否显示提示
|
|
// 是否显示提示
|
|
isShowTip: {
|
|
isShowTip: {
|
|
type: Boolean,
|
|
type: Boolean,
|
|
- default: true,
|
|
|
|
- },
|
|
|
|
|
|
+ default: true
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -646,7 +650,7 @@ export default {
|
|
receiveName: null,
|
|
receiveName: null,
|
|
sFile: null,
|
|
sFile: null,
|
|
printInfo: null,
|
|
printInfo: null,
|
|
- printRoom:null,
|
|
|
|
|
|
+ printRoom: null
|
|
},
|
|
},
|
|
// 表单参数
|
|
// 表单参数
|
|
form: {},
|
|
form: {},
|
|
@@ -656,12 +660,12 @@ export default {
|
|
//级别
|
|
//级别
|
|
levelMs: [],
|
|
levelMs: [],
|
|
//文印室
|
|
//文印室
|
|
- printRooms:[],
|
|
|
|
|
|
+ printRooms: [],
|
|
baseUrl: process.env.VUE_APP_BASE_API,
|
|
baseUrl: process.env.VUE_APP_BASE_API,
|
|
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,
|
|
@@ -670,21 +674,21 @@ export default {
|
|
yaoqiu: "",
|
|
yaoqiu: "",
|
|
dyopen2: false,
|
|
dyopen2: false,
|
|
tableau: null,
|
|
tableau: null,
|
|
- yaoqiuflg:false,
|
|
|
|
|
|
+ yaoqiuflg: false
|
|
};
|
|
};
|
|
},
|
|
},
|
|
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("print_room").then((response) => {
|
|
|
|
|
|
+ this.getDicts("print_room").then(response => {
|
|
this.printRooms = response.data;
|
|
this.printRooms = response.data;
|
|
});
|
|
});
|
|
//是否
|
|
//是否
|
|
- this.getDicts("sys_is").then((response) => {
|
|
|
|
|
|
+ this.getDicts("sys_is").then(response => {
|
|
this.islist = response.data;
|
|
this.islist = response.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -692,7 +696,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;
|
|
@@ -732,7 +736,7 @@ export default {
|
|
printNumber: null,
|
|
printNumber: null,
|
|
isPrintTwo: null,
|
|
isPrintTwo: null,
|
|
isPrintColor: null,
|
|
isPrintColor: null,
|
|
- printRoom:null,
|
|
|
|
|
|
+ printRoom: null
|
|
};
|
|
};
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
},
|
|
},
|
|
@@ -750,7 +754,7 @@ export default {
|
|
statusG: null,
|
|
statusG: null,
|
|
isPrintTwo: null,
|
|
isPrintTwo: null,
|
|
isPrintColor: null,
|
|
isPrintColor: null,
|
|
- printRoom:null,
|
|
|
|
|
|
+ printRoom: null
|
|
};
|
|
};
|
|
this.resetForm("dyform");
|
|
this.resetForm("dyform");
|
|
},
|
|
},
|
|
@@ -766,7 +770,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;
|
|
},
|
|
},
|
|
@@ -782,7 +786,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 + "";
|
|
@@ -792,16 +796,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();
|
|
@@ -815,7 +819,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(() => {
|
|
@@ -833,7 +837,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;
|
|
})
|
|
})
|
|
@@ -859,7 +863,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;
|
|
@@ -869,8 +873,8 @@ export default {
|
|
`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`
|
|
`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`
|
|
);
|
|
);
|
|
this.form.name = null;
|
|
this.form.name = null;
|
|
- this.form.size=null;
|
|
|
|
- this.form.type=null;
|
|
|
|
|
|
+ this.form.size = null;
|
|
|
|
+ this.form.type = null;
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -916,24 +920,24 @@ export default {
|
|
// this.dyform.isReturn = row.isReturn + "";
|
|
// this.dyform.isReturn = row.isReturn + "";
|
|
if (row.isPrintColor == 1) {
|
|
if (row.isPrintColor == 1) {
|
|
this.yaoqiu = "彩打";
|
|
this.yaoqiu = "彩打";
|
|
- this.yaoqiuflg=true;
|
|
|
|
|
|
+ this.yaoqiuflg = true;
|
|
}
|
|
}
|
|
if (row.isPrintTwo == 1) {
|
|
if (row.isPrintTwo == 1) {
|
|
- this.yaoqiuflg=true;
|
|
|
|
|
|
+ this.yaoqiuflg = true;
|
|
if (this.yaoqiu) {
|
|
if (this.yaoqiu) {
|
|
this.yaoqiu += " 双面打";
|
|
this.yaoqiu += " 双面打";
|
|
} else {
|
|
} else {
|
|
this.yaoqiu = "双面打";
|
|
this.yaoqiu = "双面打";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (row.isPrintTwo != 1&&row.isPrintColor!=1) {
|
|
|
|
- this.yaoqiuflg=false;
|
|
|
|
|
|
+ if (row.isPrintTwo != 1 && row.isPrintColor != 1) {
|
|
|
|
+ this.yaoqiuflg = false;
|
|
}
|
|
}
|
|
this.getrylist();
|
|
this.getrylist();
|
|
},
|
|
},
|
|
//获取人员
|
|
//获取人员
|
|
getrylist() {
|
|
getrylist() {
|
|
- listPeople().then((res) => {
|
|
|
|
|
|
+ listPeople().then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.rylist = res.rows;
|
|
this.rylist = res.rows;
|
|
}
|
|
}
|
|
@@ -946,19 +950,22 @@ 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();
|
|
- location.href = process.env.VUE_APP_BASE_API+'/profile/print/' + res.printFileName;
|
|
|
|
|
|
+ location.href =
|
|
|
|
+ process.env.VUE_APP_BASE_API +
|
|
|
|
+ "/profile/print/" +
|
|
|
|
+ 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>
|