|
@@ -187,6 +187,9 @@
|
|
|
<el-dialog title="受理单" :visible.sync="dialogDealWithFormVisible" :close-on-click-modal="false" width="800px">
|
|
|
<el-form :model="dealWithForm" ref="dealWithForm" :rules="dealWithFormRules" label-width="120px"
|
|
|
style="height: 60vh; overflow-y: auto;">
|
|
|
+ <el-form-item label="受理编号" prop="serialNumber">
|
|
|
+ <el-input v-model="dealWithForm.serialNumber" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="办理类型" prop="withType">
|
|
|
<el-radio-group v-model="dealWithForm.withType">
|
|
|
<el-radio :label="1">个人</el-radio>
|
|
@@ -225,15 +228,116 @@
|
|
|
</el-table>
|
|
|
</el-form>
|
|
|
<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 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 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 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 type="warning" @click="handleBtnSaveDealWith(1)">物料流转</el-button>
|
|
|
<el-button type="primary" @click="handleBtnSaveDealWith(0)">保存</el-button>
|
|
|
<el-button @click="handleCancelDealWith">取消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <!-- 物料流转单打印 -->
|
|
|
+ <el-dialog title="物料流转单打印" :visible.sync="dealDetailDialog" :close-on-click-modal="false" width="60%"
|
|
|
+ destroy-on-close append-to-body>
|
|
|
+ <el-button type="primary" size="small" icon="el-icon-printer" v-print="printObj" style="margin-left: 85%;margin-bottom: 10px;">打印</el-button>
|
|
|
+ <el-row style="height: 70vh; overflow: auto;">
|
|
|
+ <el-descriptions v-if="currDealRecord" id="print_deal_detail" class="margin-top" style="width: 100%; overflow: auto;" :column="3"
|
|
|
+ border :key="detailKey">
|
|
|
+ <el-descriptions-item :span="3" label-style="width:110px;">
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-price-tag"></i>
|
|
|
+ 受理编号
|
|
|
+ </template>
|
|
|
+ {{ currDealRecord.serialNumber }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="3">
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-full-screen"></i>
|
|
|
+ 条形码
|
|
|
+ </template>
|
|
|
+ <el-image :src="'data:image/png;base64,' + currDealRecord.barcode" style="width: 300px;"></el-image>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="3">
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-tickets"></i>
|
|
|
+ 事项名称
|
|
|
+ </template>
|
|
|
+ {{ currDealRecord.itemName }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-collection-tag"></i>
|
|
|
+ 业务类型
|
|
|
+ </template>
|
|
|
+ {{ currDealRecord.withType == 1 ? '个人' : '企业' }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-user"></i>
|
|
|
+ 联系人
|
|
|
+ </template>
|
|
|
+ {{ currDealRecord.contacts }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-mobile-phone"></i>
|
|
|
+ 联系电话
|
|
|
+ </template>
|
|
|
+ {{ currDealRecord.phone }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="3">
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-postcard"></i>
|
|
|
+ {{ currDealRecord.withType == 1 ? '身份证号码' : '企业社会信用代码' }}
|
|
|
+ </template>
|
|
|
+ {{ currDealRecord.idCard }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-user"></i>
|
|
|
+ 受理人
|
|
|
+ </template>
|
|
|
+ {{ currDealRecord.userName }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="2">
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-time"></i>
|
|
|
+ 受理时间
|
|
|
+ </template>
|
|
|
+ {{ currDealRecord.createTime }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="3">
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-document-checked"></i>
|
|
|
+ 已有材料
|
|
|
+ </template>
|
|
|
+ <template v-if="this.currDealRecord.materialList && this.currDealRecord.materialList.length > 0">
|
|
|
+ <ul>
|
|
|
+ <li v-for="(item) in this.currDealRecord.materialList" v-if="item.reasonFlag">
|
|
|
+ {{ item.verification === 1 ? (item.listName + '【' + item.dealStatusName + '】') : item.listName }}
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </template>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="3">
|
|
|
+ <template slot="label">
|
|
|
+ <i class="el-icon-document-delete"></i>
|
|
|
+ 缺失材料
|
|
|
+ </template>
|
|
|
+ <template v-if="this.currDealRecord.materialList && this.currDealRecord.materialList.length > 0">
|
|
|
+ <ul>
|
|
|
+ <li v-for="(item) in this.currDealRecord.materialList" v-if="!item.reasonFlag">
|
|
|
+ {{ item.listName + ',【原因】:' + item.reason }}
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </template>
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ </el-row>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -246,7 +350,14 @@ import {getQuestion} from '@/api/matter/question'
|
|
|
import {getVncDesktop, listAllVncDesktop} from '@/api/matter/vnc'
|
|
|
import iFrame from '@/components/iFrame/index.vue'
|
|
|
import {mapGetters} from 'vuex'
|
|
|
-import {addDealRecord, addManualVerify, addPrintLog} from "@/api/matter/record";
|
|
|
+import {
|
|
|
+ addDealRecord,
|
|
|
+ addManualVerify,
|
|
|
+ addPrintLog,
|
|
|
+ getDealRecordById, getManualVerifyByIds,
|
|
|
+ getSerialNumber,
|
|
|
+ listDealRecord
|
|
|
+} from "@/api/matter/record";
|
|
|
|
|
|
export default {
|
|
|
name: "Index",
|
|
@@ -341,7 +452,7 @@ export default {
|
|
|
],
|
|
|
printSuccessObj: {
|
|
|
id: "print_ycxgzd",
|
|
|
- popTitle: "成功一次性告知单",
|
|
|
+ popTitle: "受理通知单",
|
|
|
extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
|
|
|
openCallback(vue) {
|
|
|
vue.savePrintLog('print_ycxgzd', 1)
|
|
@@ -351,7 +462,7 @@ export default {
|
|
|
},
|
|
|
printFailObj: {
|
|
|
id: "print_ycxgzd_fail",
|
|
|
- popTitle: "失败一次性告知单",
|
|
|
+ popTitle: "补正材料告知书",
|
|
|
extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
|
|
|
openCallback(vue) {
|
|
|
vue.savePrintLog('print_ycxgzd_fail', 2)
|
|
@@ -361,6 +472,7 @@ export default {
|
|
|
},
|
|
|
dealWithKey: 0,
|
|
|
dealWithForm: {
|
|
|
+ serialNumber: '',
|
|
|
withType: 1,
|
|
|
contacts: '',
|
|
|
idCard: '',
|
|
@@ -381,6 +493,21 @@ export default {
|
|
|
{required: true, message: '请输入手机号码', trigger: 'change'},
|
|
|
{required: true, pattern: /^[1]([3-9])[0-9]{9}$/, message: '请输入正确的手机号', trigger: 'blur'}
|
|
|
]
|
|
|
+ },
|
|
|
+ dealDetailDialog: false,
|
|
|
+ currDealRecord: null,
|
|
|
+ detailKey: 0,
|
|
|
+ printObj: {
|
|
|
+ id: "print_deal_detail",
|
|
|
+ popTitle: "打印物料流转单",
|
|
|
+ extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
|
|
|
+ beforeOpenCallback() {
|
|
|
+ },
|
|
|
+ openCallback(vue) {
|
|
|
+ vue.savePrintLog('print_deal_detail', 4)
|
|
|
+ },
|
|
|
+ closeCallback(vue) {
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -687,7 +814,14 @@ export default {
|
|
|
this.dealWithForm.materials = JSON.parse(JSON.stringify(this.currMaterial.materialList))
|
|
|
}
|
|
|
this.dealWithPrintInfo()
|
|
|
- this.dialogDealWithFormVisible = true
|
|
|
+ getSerialNumber().then(response => {
|
|
|
+ if (response.msg == "success") {
|
|
|
+ this.dealWithForm.serialNumber = response.data
|
|
|
+ this.dialogDealWithFormVisible = true
|
|
|
+ } else {
|
|
|
+ this.$modal.msgError("网络连接失败,请稍候再试");
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
/** 人工核验 **/
|
|
|
handleManualVerify(data, event) {
|
|
@@ -734,6 +868,50 @@ export default {
|
|
|
this.dialogDealWithFormVisible = false
|
|
|
this.$refs['dealWithForm'].resetFields();
|
|
|
},
|
|
|
+ printDetail(id) {
|
|
|
+ let params = {
|
|
|
+ "id": id
|
|
|
+ }
|
|
|
+ getDealRecordById(params).then((response) => {
|
|
|
+ if (response.data) {
|
|
|
+ this.currDealRecord = response.data
|
|
|
+ if (this.currDealRecord.materials) {
|
|
|
+ let obj = JSON.parse(this.currDealRecord.materials)
|
|
|
+ let manualVerifyList = []
|
|
|
+ obj.forEach((item, index) => {
|
|
|
+ if (item.verification === 1) {
|
|
|
+ manualVerifyList.push(item.manualVerifyId)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (manualVerifyList && manualVerifyList.length > 0) {
|
|
|
+ getManualVerifyByIds(manualVerifyList).then(response => {
|
|
|
+ let data = response.data
|
|
|
+ obj.forEach((item, index) => {
|
|
|
+ data.forEach((d) => {
|
|
|
+ if (d.materialId == item.id) {
|
|
|
+ item.dealStatus = d.dealStatus
|
|
|
+ item.dealStatusName = d.dealStatus == 1 ? '人工核验通过' : (d.dealStatus == 2 ? '人工核验未通过' : '待核验')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.currDealRecord.materialList = obj
|
|
|
+ this.detailKey ++
|
|
|
+ })
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.currDealRecord.materialList = obj
|
|
|
+ this.detailKey ++
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.dealDetailDialog = true
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$modal.msgError("查询数据失败")
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 保存受理信息 **/
|
|
|
handleBtnSaveDealWith(withStatus) {
|
|
|
this.$refs['dealWithForm'].validate((valid) => {
|
|
@@ -751,7 +929,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
let data = JSON.parse(JSON.stringify(this.dealWithForm))
|
|
|
- data.serialNumber = ''
|
|
|
+ data.serialNumber = this.dealWithForm.serialNumber
|
|
|
data.withStatus = withStatus
|
|
|
data.matterId = this.currMatter.id
|
|
|
data.materials = JSON.stringify(this.dealWithForm.materials)
|
|
@@ -759,6 +937,9 @@ export default {
|
|
|
if (response.code == 200) {
|
|
|
this.$modal.msgSuccess("保存成功");
|
|
|
this.handleCancelDealWith()
|
|
|
+ if (withStatus == 1) {
|
|
|
+ this.printDetail(response.data)
|
|
|
+ }
|
|
|
return
|
|
|
}
|
|
|
this.$modal.msgError("保存失败")
|