|
@@ -133,16 +133,21 @@
|
|
|
</el-row>
|
|
|
</el-row>
|
|
|
</el-row>
|
|
|
- <el-row id="print_ycxgzd" style="height: 100%; padding: 10px;">
|
|
|
+ <el-row id="print_ycxgzd" style="height: auto; padding: 10px;">
|
|
|
<el-row style="overflow: auto; height: calc(100% - 120px);">
|
|
|
<div class="matter-material" style="background-color: #fff;" v-html="currMatterPrintInfo"></div>
|
|
|
</el-row>
|
|
|
</el-row>
|
|
|
- <el-row id="print_ycxgzd_fail" style="height: 100%; padding: 10px;">
|
|
|
+ <el-row id="print_ycxgzd_fail" style="height: auto; padding: 10px;">
|
|
|
<el-row style="overflow: auto; height: calc(100% - 120px);">
|
|
|
<div class="matter-material" style="background-color: #fff;" v-html="currMatterFailPrintInfo"></div>
|
|
|
</el-row>
|
|
|
</el-row>
|
|
|
+ <el-row id="print_ycxgzd_deny" style="height: auto; padding: 10px;">
|
|
|
+ <el-row style="overflow: auto; height: calc(100% - 120px);">
|
|
|
+ <div class="matter-material" style="background-color: #fff;" v-html="currMatterDenyPrintInfo"></div>
|
|
|
+ </el-row>
|
|
|
+ </el-row>
|
|
|
</template>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -230,9 +235,10 @@
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="success" @click="handlePrintDealWith('print_suc')">受理通知单</el-button>
|
|
|
<el-button type="info" @click="handlePrintDealWith('print_fail')">补正材料告知书</el-button>
|
|
|
- <el-button type="danger" @click="handlePrintDealWith('print_fail')">不予受理通知书</el-button>
|
|
|
+ <el-button type="danger" @click="handlePrintDealWith('print_deny')">不予受理通知书</el-button>
|
|
|
<el-button id="print_suc" type="success" v-print="printSuccessObj" style="display: none;">受理通知单</el-button>
|
|
|
<el-button id="print_fail" type="info" v-print="printFailObj" style="display: none;">补正材料告知书</el-button>
|
|
|
+ <el-button id="print_deny" type="info" v-print="printDenyObj" style="display: none;">不予受理通知书</el-button>
|
|
|
<el-button type="warning" @click="handleBtnSaveDealWith(1)">物料流转</el-button>
|
|
|
<el-button type="primary" @click="handleBtnSaveDealWith(0)">保存</el-button>
|
|
|
<el-button @click="handleCancelDealWith">取消</el-button>
|
|
@@ -358,6 +364,7 @@ import {
|
|
|
getSerialNumber,
|
|
|
listDealRecord
|
|
|
} from "@/api/matter/record";
|
|
|
+import Cookies from "js-cookie";
|
|
|
|
|
|
export default {
|
|
|
name: "Index",
|
|
@@ -418,10 +425,12 @@ export default {
|
|
|
currMatter: undefined,
|
|
|
// 当前选中的审查事项的问题情况
|
|
|
currMatterQuestion: {},
|
|
|
- // 当前选中的审查事项的一次性告知单打印模板
|
|
|
+ // 当前选中的审查事项的一次性告知单打印模板(受理通知单)
|
|
|
currMatterPrintInfo: {},
|
|
|
- // 当前选中的审查事项的一次性告知单打印模板(失败)
|
|
|
+ // 当前选中的审查事项的一次性告知单打印模板(补正材料告知书)
|
|
|
currMatterFailPrintInfo: {},
|
|
|
+ // 当前选中的审查事项的一次性告知单打印模板(不予受理通知书)
|
|
|
+ currMatterDenyPrintInfo: {},
|
|
|
// 当前选中的审查事项问题选项情况
|
|
|
currMaterial: {},
|
|
|
// 材料清单对应的材料介绍
|
|
@@ -470,6 +479,16 @@ export default {
|
|
|
closeCallback(vue) {
|
|
|
}
|
|
|
},
|
|
|
+ printDenyObj: {
|
|
|
+ id: "print_ycxgzd_deny",
|
|
|
+ popTitle: "不予受理通知书",
|
|
|
+ extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
|
|
|
+ openCallback(vue) {
|
|
|
+ vue.savePrintLog('print_ycxgzd_deny', 3)
|
|
|
+ },
|
|
|
+ closeCallback(vue) {
|
|
|
+ }
|
|
|
+ },
|
|
|
dealWithKey: 0,
|
|
|
dealWithForm: {
|
|
|
serialNumber: '',
|
|
@@ -609,42 +628,97 @@ export default {
|
|
|
changeView(flag) {
|
|
|
this.showMatterView = flag
|
|
|
},
|
|
|
- /** 一次性告知单模板
|
|
|
+ commDrawLayoutPrint(content) {
|
|
|
+ let nTime = new Date();
|
|
|
+ let nYear = nTime.getFullYear();
|
|
|
+ let nMonth = nTime.getMonth() + 1;
|
|
|
+ let nDay = nTime.getDate();
|
|
|
+ content = content.replace(/{\$year}/g, nYear)
|
|
|
+ content = content.replace(/{\$month}/g, nMonth < 10 ? ('0' + nMonth) : nMonth)
|
|
|
+ content = content.replace(/{\$day}/g, nDay < 10 ? ('0' + nDay) : nDay)
|
|
|
+ content = content.replace(/{\$matter}/g, this.currMatter.itemName)
|
|
|
+ const username = Cookies.get("username");
|
|
|
+ content = content.replace(/{\$dealWithUser}/g, username)
|
|
|
+ content = content.replace(/{\$approveUser}/g, this.dealWithForm.contacts)
|
|
|
+ content = content.replace(/{\$serialNumber}/g, this.dealWithForm.serialNumber)
|
|
|
+ return content
|
|
|
+ },
|
|
|
+ /** 受理通知单
|
|
|
* {$year}:当前年
|
|
|
* {$month}:当前月
|
|
|
* {$day}:当前日
|
|
|
* {$matter}:事项名称
|
|
|
- * {$material}:材料清单
|
|
|
+ * {$materialNum}:材料数量
|
|
|
+ * {$dealWithUser}:受理人
|
|
|
+ * {$approveUser}:申请人
|
|
|
+ * {$serialNumber}:受理编号
|
|
|
*/
|
|
|
- dealWithPrintInfo() {
|
|
|
+ dealWithPrintInfo(num) {
|
|
|
let printObj = this.currMatter.print ? this.currMatter.print : {}
|
|
|
let pintContent = printObj.content ? printObj.content : ''
|
|
|
- let nTime = new Date();
|
|
|
- let nYear = nTime.getFullYear();
|
|
|
- let nMonth = nTime.getMonth() + 1;
|
|
|
- let nDay = nTime.getDate();
|
|
|
- pintContent = pintContent.replace(/{\$year}/g, nYear)
|
|
|
- pintContent = pintContent.replace(/{\$month}/g, nMonth < 10 ? ('0' + nMonth) : nMonth)
|
|
|
- pintContent = pintContent.replace(/{\$day}/g, nDay < 10 ? ('0' + nDay) : nDay)
|
|
|
- pintContent = pintContent.replace(/{\$matter}/g, this.currMatter.itemName)
|
|
|
+ pintContent = pintContent.replace(/{\$materialNum}/g, num)
|
|
|
+ pintContent = this.commDrawLayoutPrint(pintContent)
|
|
|
+ this.currMatterPrintInfo = pintContent
|
|
|
+ },
|
|
|
+ /** 补正材料告知书
|
|
|
+ * {$year}:当前年
|
|
|
+ * {$month}:当前月
|
|
|
+ * {$day}:当前日
|
|
|
+ * {$matter}:事项名称
|
|
|
+ * {$materialNum}:提交材料数量
|
|
|
+ * {$materials}:缺失材料信息
|
|
|
+ * {$dealWithUser}:受理人
|
|
|
+ * {$approveUser}:申请人
|
|
|
+ * {$serialNumber}:不予受理编号
|
|
|
+ */
|
|
|
+ dealWithMissPrintInfo() {
|
|
|
+ let printObj = this.currMatter.print ? this.currMatter.print : {}
|
|
|
+ let pintContent = printObj.missContent ? printObj.missContent : ''
|
|
|
let materialList = this.dealWithForm.materials
|
|
|
- let yy = '', qs = ''
|
|
|
- let nodata = '<li style="padding: 5px;">无</li>'
|
|
|
- materialList.forEach(item => {
|
|
|
- if (item.reasonFlag) {
|
|
|
- yy += '<li style="padding: 5px;">' + item.listName + '</li>'
|
|
|
+ let html = '<div>'
|
|
|
+ let num = 0, mindex = 0
|
|
|
+ if (materialList && materialList.length > 0) {
|
|
|
+ let miss = ''
|
|
|
+ materialList.forEach((item, index) => {
|
|
|
+ if (!item.reasonFlag) {
|
|
|
+ num ++
|
|
|
+ mindex ++
|
|
|
+ miss += '<p style="padding: 5px;">' + (mindex) + '. ' + item.listName + (item.reason ? (',【理由】:' + item.reason) : '') + '(□ 材料不齐全 □不符合法定形式 )</p>'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (miss) {
|
|
|
+ html += miss
|
|
|
} else {
|
|
|
- qs += '<li style="padding: 5px;">' + item.listName + ',【理由】:' + (item.reason ? item.reason : '') + '</li>'
|
|
|
+ html += '<p style="padding: 5px;">无</p>'
|
|
|
}
|
|
|
- })
|
|
|
- if (!yy) yy = nodata
|
|
|
- if (!qs) qs = nodata
|
|
|
- let html = '<br><h3>已有材料:</h3>'
|
|
|
- html += '<ul>' + yy + '</ul><hr>'
|
|
|
- html += '<br><h3>缺失材料:</h3>'
|
|
|
- html += '<ul>' + qs + '</ul>'
|
|
|
- pintContent = pintContent.replace(/{\$material}/g, html)
|
|
|
- this.currMatterPrintInfo = pintContent
|
|
|
+ } else {
|
|
|
+ html += '<p style="padding: 5px;">无</p>'
|
|
|
+ }
|
|
|
+ html += '</div>'
|
|
|
+ pintContent = pintContent.replace(/{\$materials}/g, html)
|
|
|
+ pintContent = pintContent.replace(/{\$materialNum}/g, materialList.length - num)
|
|
|
+ pintContent = this.commDrawLayoutPrint(pintContent)
|
|
|
+ this.currMatterFailPrintInfo = pintContent
|
|
|
+ },
|
|
|
+ /** 不予受理通知书
|
|
|
+ * {$year}:当前年
|
|
|
+ * {$month}:当前月
|
|
|
+ * {$day}:当前日
|
|
|
+ * {$matter}:事项名称
|
|
|
+ * {$materialNum}:材料数量
|
|
|
+ * {$dealWithUser}:受理人
|
|
|
+ * {$approveUser}:申请人
|
|
|
+ * {$serialNumber}:不予受理编号
|
|
|
+ * {$reason}:不予受理理由
|
|
|
+ */
|
|
|
+ dealWithDenyPrintInfo(reason) {
|
|
|
+ let printObj = this.currMatter.print ? this.currMatter.print : {}
|
|
|
+ let pintContent = printObj.denyContent ? printObj.denyContent : ''
|
|
|
+ let materialList = this.dealWithForm.materials
|
|
|
+ pintContent = pintContent.replace(/{\$materialNum}/g, materialList.length)
|
|
|
+ pintContent = pintContent.replace(/{\$reason}/g, reason)
|
|
|
+ pintContent = this.commDrawLayoutPrint(pintContent)
|
|
|
+ this.currMatterDenyPrintInfo = pintContent
|
|
|
},
|
|
|
/** 问题选项单击事件 **/
|
|
|
handleOptionClick(data, evt) {
|
|
@@ -813,7 +887,6 @@ export default {
|
|
|
(this.currMaterial.materialList.length == 1 && this.currMaterial.materialList[0].listName !== '无')) {
|
|
|
this.dealWithForm.materials = JSON.parse(JSON.stringify(this.currMaterial.materialList))
|
|
|
}
|
|
|
- this.dealWithPrintInfo()
|
|
|
getSerialNumber().then(response => {
|
|
|
if (response.msg == "success") {
|
|
|
this.dealWithForm.serialNumber = response.data
|
|
@@ -857,7 +930,40 @@ export default {
|
|
|
handlePrintDealWith(elm) {
|
|
|
this.$refs['dealWithForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- document.getElementById(elm).click()
|
|
|
+ if (elm == 'print_suc') {
|
|
|
+ let materialList = this.dealWithForm.materials
|
|
|
+ let objs = materialList.filter(obj => obj.reasonFlag)
|
|
|
+ if (materialList.length > 0 && objs.length == 0) {
|
|
|
+ this.$modal.msgError("请选择相关材料")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.dealWithPrintInfo(objs.length)
|
|
|
+ document.getElementById(elm).click()
|
|
|
+ }
|
|
|
+ if (elm == 'print_fail') {
|
|
|
+ let materialList = this.dealWithForm.materials
|
|
|
+ let objs = materialList.filter(obj => !obj.reasonFlag)
|
|
|
+ if (materialList.length == 0 || objs.length == 0) {
|
|
|
+ this.$modal.msgError("当前没有缺失材料")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.dealWithMissPrintInfo()
|
|
|
+ document.getElementById(elm).click()
|
|
|
+ }
|
|
|
+ if (elm == 'print_deny') {
|
|
|
+ this.$prompt('请输入不予受理的理由和依据', '温馨提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ }).then(({ value }) => {
|
|
|
+ if (!value || !value.trim()) {
|
|
|
+ this.$modal.msgError("理由和依据不能为空")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.dealWithDenyPrintInfo(value)
|
|
|
+ document.getElementById(elm).click()
|
|
|
+ }).catch(() => {
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
return false;
|
|
|
}
|
|
@@ -958,7 +1064,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
- this.dealWithPrintInfo()
|
|
|
},
|
|
|
/** 新增打印日志 **/
|
|
|
savePrintLog(elm, type) {
|