|
@@ -70,9 +70,13 @@
|
|
|
<el-button type="primary" @click="handleBtnSaveDealWith(0)">保存</el-button>
|
|
|
<el-button type="warning" @click="handleBtnSaveDealWith(1)">物料流转</el-button>
|
|
|
<el-button type="success" @click="handlePrintDealWith('print_suc')">受理通知单</el-button>
|
|
|
+ <el-button style="background-color: forestgreen;border-color: forestgreen;color: white;"
|
|
|
+ @click="handlePrintDealWith('print_onegzd')">一次性告知单</el-button>
|
|
|
<el-button type="info" @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_onegzd" style="background-color: forestgreen;border-color: forestgreen;color: white;display: none;"
|
|
|
+ v-print="printYcxgzdObj">一次性告知单</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 @click="handleConnDesktop">远程连接</el-button>
|
|
@@ -472,6 +476,16 @@ export default {
|
|
|
closeCallback(vue) {
|
|
|
}
|
|
|
},
|
|
|
+ printYcxgzdObj: {
|
|
|
+ id: "print_ycxgzd",
|
|
|
+ popTitle: "一次性告知单",
|
|
|
+ extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
|
|
|
+ openCallback(vue) {
|
|
|
+ vue.savePrintLog('print_ycxgzd', 5)
|
|
|
+ },
|
|
|
+ closeCallback(vue) {
|
|
|
+ }
|
|
|
+ },
|
|
|
printFailObj: {
|
|
|
id: "print_ycxgzd_fail",
|
|
|
popTitle: "补正材料告知书",
|
|
@@ -673,9 +687,12 @@ export default {
|
|
|
* {$materialConditions}:申请条件
|
|
|
* {$materialList}:材料列表
|
|
|
*/
|
|
|
- dealWithPrintInfo(objs) {
|
|
|
+ dealWithPrintInfo(objs, elm) {
|
|
|
let printObj = this.currMatter.print ? this.currMatter.print : {}
|
|
|
let pintContent = printObj.content ? printObj.content : ''
|
|
|
+ if (elm == 'print_onegzd') {
|
|
|
+ pintContent = printObj.disposableContent ? printObj.disposableContent : ''
|
|
|
+ }
|
|
|
pintContent = pintContent.replace(/{\$materialNum}/g, objs.length)
|
|
|
pintContent = pintContent.replace(/{\$materialConditions}/g, this.currMaterial.conditions)
|
|
|
let itemHtml = ''
|
|
@@ -975,14 +992,14 @@ export default {
|
|
|
handlePrintDealWith(elm) {
|
|
|
this.$refs['dealWithForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- if (elm == 'print_suc') {
|
|
|
+ if (elm == 'print_suc' || elm == 'print_onegzd') {
|
|
|
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)
|
|
|
+ this.dealWithPrintInfo(objs, elm)
|
|
|
document.getElementById(elm).click()
|
|
|
}
|
|
|
if (elm == 'print_fail') {
|