| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud :option="option" |
| | | <avue-crud |
| | | :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | | :page.sync="page" |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad"> |
| | | @on-load="onLoad" |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | plain |
| | | v-if="permission.record_delete" |
| | | @click="handleDelete">删 除 |
| | | @click="handleDelete" |
| | | >删 除 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" |
| | | slot="menu"> |
| | | <el-button icon="icon-zhengjian" |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | icon="icon-zhengjian" |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleCredentialsr(row)">附件查阅</el-button> |
| | | <el-button icon="el-icon-edit" |
| | | @click.stop="handleCredentialsr(row)" |
| | | >附件查阅</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | v-show="row.type != 0 && row.type != 1" |
| | | @click.stop="rowDel(row)">备案审批 |
| | | @click.stop="rowDel(row)" |
| | | v-show="row.type == 2" |
| | | >审批 |
| | | </el-button> |
| | | <el-button icon="el-icon-edit" |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | :size="size" |
| | | :type="type" |
| | | v-show="row.type == 0" |
| | | @click.stop="rowPrint(row)">回执打印 |
| | | @click.stop="rowPrint(row)" |
| | | >回执打印 |
| | | </el-button> |
| | | </template> |
| | | <template class="tdtype" |
| | | slot-scope="{ row }" |
| | | slot="type"> |
| | | <template class="tdtype" slot-scope="{ row }" slot="type"> |
| | | <el-tag class="dtype"> |
| | | {{ row.type == "0" ? "通过" : row.type == "1" ? "不通过" : "待审核" }} |
| | | <i class="gz" |
| | | v-if="row.type == '0'"></i> |
| | | <i class="yj" |
| | | v-if="row.type == '1'"></i> |
| | | <i class="zc" |
| | | v-if="row.type == '2'"></i> |
| | | <i class="gz" v-if="row.type == '0'"></i> |
| | | <i class="yj" v-if="row.type == '1'"></i> |
| | | <i class="zc" v-if="row.type == '2'"></i> |
| | | </el-tag> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | | <el-dialog :visible.sync="dialogVisible" |
| | | <el-dialog |
| | | :visible.sync="dialogVisible" |
| | | :modal-append-to-body="false" |
| | | width="920px" |
| | | top="15vh"> |
| | | <div id="examine_box" |
| | | v-if="dialogVisible"> |
| | | top="15vh" |
| | | > |
| | | <div id="examine_box" v-if="dialogVisible"> |
| | | <div class="exam-box"> |
| | | <h3>回执单</h3> |
| | | <p> |
| | | 南昌市公安局已收到 <span>{{ rowData == null ? '' : rowData.enterprisename }}</span> 的相关备案申请! |
| | | 南昌市公安局已收到 |
| | | <span>{{ rowData == null ? "" : rowData.enterprisename }}</span> |
| | | 的相关备案申请! |
| | | </p> |
| | | |
| | | <div class="examine-bottom"> |
| | | <ul> |
| | | <li> 审批单位:<span>南昌市公安局</span> </li> |
| | | <li> 日期:<span>{{ rowData == null ? '' : rowData.examinetime }}</span> </li> |
| | | <li> |
| | | 日期:<span>{{ |
| | | rowData == null ? "" : rowData.examinetime |
| | | }}</span> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <span slot="footer" |
| | | class="dialog-footer"> |
| | | <el-button type="primary" |
| | | @click="Print">打 印</el-button> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="Print">打 印</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="" |
| | | :visible.sync="dialogVisiblecc" |
| | | width="30%" |
| | | :modal-append-to-body="false" |
| | | > |
| | | <span>是否通过审核?</span> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="closecc">通过</el-button> |
| | | <el-button type="primary" @click="subcc">不通过</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </basic-container> |
| | |
| | | export default { |
| | | data () { |
| | | return { |
| | | dialogVisiblecc: false, //许可证审核抽屉 |
| | | xukezData: {}, |
| | | |
| | | dialogVisible: false, // 备案审批打印的 |
| | | form: {}, |
| | | query: {}, |
| | |
| | | ], |
| | | }, |
| | | { |
| | | label: "成立日期", |
| | | label: "注册时间", |
| | | prop: "establishtime", |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入成立日期", |
| | | message: "请输入注册时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | |
| | | ], |
| | | }, |
| | | { |
| | | label: "审批时间", |
| | | hide: true, |
| | | prop: "examinetime", |
| | | type: "date", |
| | | format: "yyyy-MM-dd HH:mm:ss", |
| | | valueFormat: "yyyy-MM-dd HH:mm:ss", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请输入审批时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | label: "发证时间", |
| | | hide: true, |
| | | prop: "officetime", |
| | |
| | | ); |
| | | }, |
| | | rowDel (row) { |
| | | this.$confirm("确定对选择的备案进行审批?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | row.type = "0"; |
| | | row.examinetime = this.getCurrentTime(); |
| | | return update(row); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | }); |
| | | }); |
| | | this.dialogVisiblecc = true; |
| | | this.xukezData = row; |
| | | }, |
| | | closecc() { |
| | | this.xukezData.type = "0"; |
| | | this.dialogVisiblecc = false; |
| | | return update(this.xukezData); |
| | | }, |
| | | subcc() { |
| | | this.xukezData.type = "1"; |
| | | this.dialogVisiblecc = false; |
| | | return update(this.xukezData); |
| | | }, |
| | | // 审批打印 |
| | | rowPrint (row) { |
| | |
| | | getCurrentTime () { |
| | | let date = new Date(); |
| | | let dateYear = date.getFullYear(); //获取年 |
| | | let dateMonth = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1); //获取月 |
| | | let dateDate = date.getDate() < 10 ? '0' + date.getDate() : date.getDate(); //获取当日 |
| | | let dateMonth = |
| | | date.getMonth() + 1 < 10 |
| | | ? "0" + (date.getMonth() + 1) |
| | | : date.getMonth() + 1; //获取月 |
| | | let dateDate = |
| | | date.getDate() < 10 ? "0" + date.getDate() : date.getDate(); //获取当日 |
| | | |
| | | let dateHours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours(); //获取小时 |
| | | let dateMinutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes(); //获取分钟 |
| | | let dateSeconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds(); //获取秒 |
| | | let dateHours = |
| | | date.getHours() < 10 ? "0" + date.getHours() : date.getHours(); //获取小时 |
| | | let dateMinutes = |
| | | date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(); //获取分钟 |
| | | let dateSeconds = |
| | | date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); //获取秒 |
| | | |
| | | return dateYear + '-' + dateMonth + '-' + dateDate + ' ' + dateHours + ':' + dateMinutes + ':' + |
| | | return ( |
| | | dateYear + |
| | | "-" + |
| | | dateMonth + |
| | | "-" + |
| | | dateDate + |
| | | " " + |
| | | dateHours + |
| | | ":" + |
| | | dateMinutes + |
| | | ":" + |
| | | dateSeconds |
| | | ); |
| | | }, |
| | | handleDelete () { |
| | | if (this.selectionList.length === 0) { |