Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
8 changed files
with
416 additions
and
15 deletions
| ... | @@ -162,3 +162,11 @@ export function getCertificateList (data) { | ... | @@ -162,3 +162,11 @@ export function getCertificateList (data) { |
| 162 | data | 162 | data |
| 163 | }) | 163 | }) |
| 164 | } | 164 | } |
| 165 | // 发证 | ||
| 166 | export function issueCertificate (data) { | ||
| 167 | return request({ | ||
| 168 | url: '/business/workFlow/issueCertificate', | ||
| 169 | method: 'post', | ||
| 170 | data | ||
| 171 | }) | ||
| 172 | } | ... | ... |
| 1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
| 2 | /* | 2 | /* |
| 3 | 证书管理-获取序列号 | ||
| 4 | */ | ||
| 5 | export function getSysSerialSingle (params) { | ||
| 6 | return request({ | ||
| 7 | url: '/system/sysSerial/getSysSerialSingle', | ||
| 8 | method: 'get', | ||
| 9 | params: params | ||
| 10 | }) | ||
| 11 | } | ||
| 12 | /* | ||
| 3 | 证书管理-证书入库列表 | 13 | 证书管理-证书入库列表 |
| 4 | */ | 14 | */ |
| 5 | export function getZsglrkList (data) { | 15 | export function getZsglrkList (data) { |
| 6 | return request({ | 16 | return request({ |
| 7 | url: '/sys/zsgl//getZsglrkList', | 17 | url: '/sys/zsgl/getZsglrkList', |
| 18 | method: 'post', | ||
| 19 | data | ||
| 20 | }) | ||
| 21 | } | ||
| 22 | /* | ||
| 23 | 证书管理-新增证书入库 | ||
| 24 | */ | ||
| 25 | export function zsrk (data) { | ||
| 26 | return request({ | ||
| 27 | url: '/sys/zsgl/zsrk', | ||
| 8 | method: 'post', | 28 | method: 'post', |
| 9 | data | 29 | data |
| 10 | }) | 30 | }) |
| 31 | } | ||
| 32 | /* | ||
| 33 | 证书管理-删除证书入库 | ||
| 34 | */ | ||
| 35 | export function removeZsgl (params) { | ||
| 36 | return request({ | ||
| 37 | url: '/sys/zsgl/removeZsgl', | ||
| 38 | method: 'get', | ||
| 39 | params: params | ||
| 40 | }) | ||
| 11 | } | 41 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -21,16 +21,14 @@ | ... | @@ -21,16 +21,14 @@ |
| 21 | </el-col> | 21 | </el-col> |
| 22 | <el-col :span="6" class="btnCol"> | 22 | <el-col :span="6" class="btnCol"> |
| 23 | <el-form-item> | 23 | <el-form-item> |
| 24 | <el-button type="primary" icon="el-icon-search">查询</el-button> | 24 | <el-button type="primary" icon="el-icon-search" @click="fetchData()">查询</el-button> |
| 25 | </el-form-item> | 25 | </el-form-item> |
| 26 | </el-col> | 26 | </el-col> |
| 27 | </el-row> | 27 | </el-row> |
| 28 | </el-form> | 28 | </el-form> |
| 29 | </div> | 29 | </div> |
| 30 | <div class="from-clues-content"> | 30 | <div class="from-clues-content"> |
| 31 | <lb-table :page-size="pageData.size" border :current-page.sync="pageData.currentPage" :total="tableData.total" | 31 | <lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false"> |
| 32 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | ||
| 33 | :data="tableData.data"> | ||
| 34 | </lb-table> | 32 | </lb-table> |
| 35 | </div> | 33 | </div> |
| 36 | </div> | 34 | </div> |
| ... | @@ -69,10 +67,7 @@ export default { | ... | @@ -69,10 +67,7 @@ export default { |
| 69 | this.ruleForm.bsmSldy = this.$parent._data.unitData[0].bsmSldy | 67 | this.ruleForm.bsmSldy = this.$parent._data.unitData[0].bsmSldy |
| 70 | getCertificateList(this.ruleForm).then(res => { | 68 | getCertificateList(this.ruleForm).then(res => { |
| 71 | if (res.code === 200) { | 69 | if (res.code === 200) { |
| 72 | let { total, records } = res.result | 70 | this.tableData.data = res.result |
| 73 | this.tableData.total = total; | ||
| 74 | this.tableData.data = records ? records : [] | ||
| 75 | |||
| 76 | } | 71 | } |
| 77 | }) | 72 | }) |
| 78 | }, | 73 | }, | ... | ... |
src/views/ywbl/fqsq/components/zslq.vue
0 → 100644
| 1 | <template> | ||
| 2 | <dialogBox title="证书领取" @submitForm="submitForm" saveButton="保存" width="60%" | ||
| 3 | height='30%' @closeDialog="closeDialog" v-model="value"> | ||
| 4 | <div class="from-clues-content"> | ||
| 5 | <lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false" :heightNum="600"> | ||
| 6 | </lb-table> | ||
| 7 | </div> | ||
| 8 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" style="display:flex;"> | ||
| 9 | <el-form-item label="领证人" prop="lzrxm"> | ||
| 10 | <el-input v-model="ruleForm.lzrxm"></el-input> | ||
| 11 | </el-form-item> | ||
| 12 | <el-form-item label="证件类型" prop="lzrzjlb"> | ||
| 13 | <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择"> | ||
| 14 | <el-option v-for="item in dictData['A30']" :key="item.dcode" :label="item.dname" :value="item.dcode"> | ||
| 15 | </el-option> | ||
| 16 | </el-select> | ||
| 17 | </el-form-item> | ||
| 18 | <el-form-item label="证件号" prop="lzrzjh"> | ||
| 19 | <el-input v-model="ruleForm.lzrzjh"></el-input> | ||
| 20 | </el-form-item> | ||
| 21 | <el-form-item label="领证人电话" prop="lzrdh"> | ||
| 22 | <el-input v-model="ruleForm.lzrdh"></el-input> | ||
| 23 | </el-form-item> | ||
| 24 | </el-form> | ||
| 25 | </dialogBox> | ||
| 26 | </template> | ||
| 27 | |||
| 28 | <script> | ||
| 29 | import table from "@/utils/mixin/table"; | ||
| 30 | import { getCertificateList,issueCertificate } from "@/api/fqsq.js"; | ||
| 31 | import { datas } from "./fzxxdata"; | ||
| 32 | import { mapGetters } from 'vuex' | ||
| 33 | export default { | ||
| 34 | mixins: [table], | ||
| 35 | components: { | ||
| 36 | ...mapGetters(['dictData']), | ||
| 37 | }, | ||
| 38 | props: { | ||
| 39 | value: { type: Boolean, default: false }, | ||
| 40 | }, | ||
| 41 | data () { | ||
| 42 | return { | ||
| 43 | ruleForm: { | ||
| 44 | bsmBdcqz: [], | ||
| 45 | lzrxm: '', | ||
| 46 | lzrzjlb: '', | ||
| 47 | lzrzjh: '', | ||
| 48 | lzrdh: '' | ||
| 49 | }, | ||
| 50 | rules: { | ||
| 51 | lzrxm: [ | ||
| 52 | { required: true, message: '请输入领证人', trigger: 'blur' } | ||
| 53 | ], | ||
| 54 | lzrzjlb: [ | ||
| 55 | { required: true, message: '请选择证件类型', trigger: 'change' } | ||
| 56 | ], | ||
| 57 | lzrzjh: [ | ||
| 58 | { required: true, message: '请输入证件号', trigger: 'blur' } | ||
| 59 | ], | ||
| 60 | lzrdh: [ | ||
| 61 | { required: true, message: '请输入电话号码', trigger: 'blur' } | ||
| 62 | ], | ||
| 63 | }, | ||
| 64 | tableData: { | ||
| 65 | total: 0, | ||
| 66 | columns: datas.columns(), | ||
| 67 | data: [], | ||
| 68 | }, | ||
| 69 | } | ||
| 70 | }, | ||
| 71 | methods: { | ||
| 72 | //列表初始化 | ||
| 73 | tablelistFn(){ | ||
| 74 | var bsmSldy = this.$parent._data.unitData[0].bsmSldy | ||
| 75 | getCertificateList({"bsmSldy":bsmSldy}).then(res => { | ||
| 76 | if (res.code === 200) { | ||
| 77 | this.tableData.data = res.result | ||
| 78 | if(res.result){ | ||
| 79 | res.result.forEach((item,index)=>{ | ||
| 80 | this.ruleForm.bsmBdcqz.push(item.bsmBdcqz) | ||
| 81 | }) | ||
| 82 | } | ||
| 83 | } | ||
| 84 | }) | ||
| 85 | }, | ||
| 86 | submitForm(){ | ||
| 87 | this.$refs.ruleForm.validate(valid => { | ||
| 88 | if (valid) { | ||
| 89 | issueCertificate(this.ruleForm).then(res => { | ||
| 90 | if(res.code == 200){ | ||
| 91 | this.$message.success('保存成功') | ||
| 92 | this.$emit("input", false); | ||
| 93 | this.$refs.ruleForm.resetFields(); | ||
| 94 | }else{ | ||
| 95 | this.$message.error(res.message) | ||
| 96 | } | ||
| 97 | }) | ||
| 98 | } else { | ||
| 99 | return false; | ||
| 100 | } | ||
| 101 | }); | ||
| 102 | }, | ||
| 103 | closeDialog () { | ||
| 104 | this.$emit("input", false); | ||
| 105 | this.$refs.ruleForm.resetFields(); | ||
| 106 | }, | ||
| 107 | } | ||
| 108 | } | ||
| 109 | </script> | ||
| 110 | <style scoped lang="scss"> | ||
| 111 | @import "~@/styles/mixin.scss"; | ||
| 112 | |||
| 113 | </style> |
| ... | @@ -89,6 +89,7 @@ | ... | @@ -89,6 +89,7 @@ |
| 89 | :bsmBusiness="bsmBusiness" | 89 | :bsmBusiness="bsmBusiness" |
| 90 | :queryForm="queryForm" | 90 | :queryForm="queryForm" |
| 91 | /> | 91 | /> |
| 92 | <zslqDialog ref="zslqDialog" v-model="zslqDialog" /> | ||
| 92 | <zsylDialog v-model="zsylFlag" /> | 93 | <zsylDialog v-model="zsylFlag" /> |
| 93 | </div> | 94 | </div> |
| 94 | </template> | 95 | </template> |
| ... | @@ -98,14 +99,16 @@ import comMsg from "@/views/components/comMsg.vue"; | ... | @@ -98,14 +99,16 @@ import comMsg from "@/views/components/comMsg.vue"; |
| 98 | import zc from "./components/zc.vue"; | 99 | import zc from "./components/zc.vue"; |
| 99 | import thDialog from "./components/th.vue"; | 100 | import thDialog from "./components/th.vue"; |
| 100 | import zsylDialog from "./components/zsyl"; | 101 | import zsylDialog from "./components/zsyl"; |
| 102 | import zslqDialog from "./components/zslq"; | ||
| 101 | export default { | 103 | export default { |
| 102 | /**注册组件*/ | 104 | /**注册组件*/ |
| 103 | components: { zc, thDialog, zsylDialog, comMsg }, | 105 | components: { zc, thDialog, zsylDialog, comMsg,zslqDialog}, |
| 104 | data() { | 106 | data() { |
| 105 | return { | 107 | return { |
| 106 | zsylFlag: false, | 108 | zsylFlag: false, |
| 107 | zcDialog: false, | 109 | zcDialog: false, |
| 108 | thflag: false, | 110 | thflag: false, |
| 111 | zslqDialog: false, | ||
| 109 | queryForm: { | 112 | queryForm: { |
| 110 | bsmSlsq: "", | 113 | bsmSlsq: "", |
| 111 | bestepid: "", | 114 | bestepid: "", |
| ... | @@ -231,6 +234,10 @@ export default { | ... | @@ -231,6 +234,10 @@ export default { |
| 231 | case "tc": | 234 | case "tc": |
| 232 | window.close(); | 235 | window.close(); |
| 233 | break; | 236 | break; |
| 237 | case "zslq": | ||
| 238 | this.zslqDialog = true; | ||
| 239 | this.$refs.zslqDialog.tablelistFn(); | ||
| 240 | break; | ||
| 234 | case "db": | 241 | case "db": |
| 235 | var formdata = new FormData(); | 242 | var formdata = new FormData(); |
| 236 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | 243 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | ... | ... |
src/views/zsgl/zsrk/components/addDialog.vue
0 → 100644
| 1 | <template> | ||
| 2 | <dialogBox title="证书入库" @submitForm="submitForm" saveButton="保存" width="45%" @closeDialog="closeDialog" v-model="value"> | ||
| 3 | <div> | ||
| 4 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> | ||
| 5 | <el-row> | ||
| 6 | <el-col :span="12"> | ||
| 7 | <el-form-item label="入库编号:" prop="batchno"> | ||
| 8 | <el-input v-model="ruleForm.batchno" :disabled="true"></el-input> | ||
| 9 | </el-form-item> | ||
| 10 | </el-col> | ||
| 11 | <el-col :span="12"> | ||
| 12 | <el-form-item label="登记机构:" prop="djjg"> | ||
| 13 | <el-select v-model="ruleForm.djjg" placeholder="请选择"> | ||
| 14 | <el-option v-for="item in dictData['ywly']" :key="item.dname" :label="item.dname" :value="item.dname"></el-option> | ||
| 15 | </el-select> | ||
| 16 | </el-form-item> | ||
| 17 | </el-col> | ||
| 18 | </el-row> | ||
| 19 | <el-row> | ||
| 20 | <el-col :span="12"> | ||
| 21 | <el-form-item label="入库人员:" prop="rkry"> | ||
| 22 | <el-input v-model="ruleForm.rkry" :disabled="true"></el-input> | ||
| 23 | </el-form-item> | ||
| 24 | </el-col> | ||
| 25 | <el-col :span="12"> | ||
| 26 | <el-form-item label="入库时间:" prop="rksj"> | ||
| 27 | <el-date-picker v-model="ruleForm.rksj" type="datetime" placeholder="选择日期时间"></el-date-picker> | ||
| 28 | </el-form-item> | ||
| 29 | </el-col> | ||
| 30 | </el-row> | ||
| 31 | <div> | ||
| 32 | <el-table :data="tableForm" border style="width: 100%" :header-cell-style="{'text-align':'center',background: 'rgb(236, 245, 255)'}" :cell-style="{'text-align':'center'}"> | ||
| 33 | <el-table-column prop="name" label="纸质证书类型" width="200"></el-table-column> | ||
| 34 | <el-table-column prop="ksysxlh" label="开始印刷序列号" width="200"> | ||
| 35 | <template slot-scope="scope"> | ||
| 36 | <el-input v-model="scope.row.ksysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11"></el-input> | ||
| 37 | </template> | ||
| 38 | </el-table-column> | ||
| 39 | <el-table-column prop="jsysxlh" label="结束印刷序列号" width="200"> | ||
| 40 | <template slot-scope="scope"> | ||
| 41 | <el-input v-model="scope.row.jsysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11"></el-input> | ||
| 42 | </template> | ||
| 43 | </el-table-column> | ||
| 44 | <el-table-column prop="bs" label="本数"> | ||
| 45 | <template slot-scope="scope"> | ||
| 46 | <span v-if="scope.row.bs == 0" style="color:red">系统计算</span> | ||
| 47 | <span v-else-if="scope.row.bs < 0" style="color:red">印刷序列号有误</span> | ||
| 48 | <span v-else>{{scope.row.bs}}</span> | ||
| 49 | </template> | ||
| 50 | </el-table-column> | ||
| 51 | </el-table> | ||
| 52 | </div> | ||
| 53 | <el-form-item label="备注" style="margin-top:20px"> | ||
| 54 | <el-input type="textarea" v-model="ruleForm.bz" :rows="4"></el-input> | ||
| 55 | </el-form-item> | ||
| 56 | </el-form> | ||
| 57 | </div> | ||
| 58 | </dialogBox> | ||
| 59 | </template> | ||
| 60 | |||
| 61 | <script> | ||
| 62 | import { mapGetters } from 'vuex' | ||
| 63 | import { getSysSerialSingle,zsrk} from "@/api/zsgl.js" | ||
| 64 | export default { | ||
| 65 | components: { | ||
| 66 | }, | ||
| 67 | computed: { | ||
| 68 | ...mapGetters(['dictData']), | ||
| 69 | }, | ||
| 70 | props: { | ||
| 71 | value: { type: Boolean, default: false }, | ||
| 72 | }, | ||
| 73 | data () { | ||
| 74 | return { | ||
| 75 | tableData: {}, | ||
| 76 | ruleForm: { | ||
| 77 | batchno: '', | ||
| 78 | djjg: '', | ||
| 79 | rkry: '超级管理员', | ||
| 80 | rksj: '', | ||
| 81 | bz: '', | ||
| 82 | zsstarno: '', | ||
| 83 | zsendno: '', | ||
| 84 | zsnum: '', | ||
| 85 | zmstarno: '', | ||
| 86 | zmendno: '', | ||
| 87 | zmnum: '' | ||
| 88 | }, | ||
| 89 | tableForm: [ | ||
| 90 | { | ||
| 91 | name: '不动产权证书', | ||
| 92 | ksysxlh: '', | ||
| 93 | jsysxlh: '', | ||
| 94 | bs: 0, | ||
| 95 | zslx:1 | ||
| 96 | }, | ||
| 97 | { | ||
| 98 | name: '不动产权登记证明', | ||
| 99 | ksysxlh: '', | ||
| 100 | jsysxlh: '', | ||
| 101 | bs: 0, | ||
| 102 | zslx:2 | ||
| 103 | } | ||
| 104 | ], | ||
| 105 | ywhQueryForm: { | ||
| 106 | serialtype: 'zsrkbh', | ||
| 107 | serialname: '证书入库编号', | ||
| 108 | serialcode: 'zsrk', | ||
| 109 | digit: '5' | ||
| 110 | }, | ||
| 111 | rules: { | ||
| 112 | batchNo: [ | ||
| 113 | { required: true, message: '入库编号不能为空', trigger: 'blur' } | ||
| 114 | ], | ||
| 115 | djjg: [ | ||
| 116 | { required: true, message: '请选择登记机构', trigger: 'change' } | ||
| 117 | ], | ||
| 118 | rkry: [ | ||
| 119 | { required: true, message: '入库人员不能为空', trigger: 'blur' } | ||
| 120 | ], | ||
| 121 | rksj: [ | ||
| 122 | { required: true, message: '请选择入库时间', trigger: 'change' } | ||
| 123 | ], | ||
| 124 | }, | ||
| 125 | } | ||
| 126 | }, | ||
| 127 | methods: { | ||
| 128 | //表单提交 | ||
| 129 | submitForm () { | ||
| 130 | this.tableForm.forEach((item,index)=>{ | ||
| 131 | if(item.bs < 0){ | ||
| 132 | return; | ||
| 133 | } | ||
| 134 | }) | ||
| 135 | zsrk(this.ruleForm).then(res => { | ||
| 136 | if(res.code == 200){ | ||
| 137 | this.$message.success('保存成功') | ||
| 138 | this.$emit("input", false); | ||
| 139 | this.$refs.ruleForm.resetFields(); | ||
| 140 | this.resetTableFields(); | ||
| 141 | console.log(this.ruleForm); | ||
| 142 | console.log(this.tableForm) | ||
| 143 | }else{ | ||
| 144 | this.$message.error(res.message); | ||
| 145 | } | ||
| 146 | }) | ||
| 147 | }, | ||
| 148 | //序列号获取 | ||
| 149 | ywhSerial(){ | ||
| 150 | getSysSerialSingle(this.ywhQueryForm).then(res => { | ||
| 151 | if(res.code == 200){ | ||
| 152 | this.ruleForm.batchno = res.message; | ||
| 153 | } | ||
| 154 | }) | ||
| 155 | }, | ||
| 156 | //印刷序列号处理 | ||
| 157 | ysxlhDeal(item){ | ||
| 158 | if(item.ksysxlh && item.jsysxlh){ | ||
| 159 | if(item.ksysxlh.length == item.jsysxlh.length){ | ||
| 160 | if(item.ksysxlh.length != 11){ | ||
| 161 | item.bs = -1; | ||
| 162 | return; | ||
| 163 | } | ||
| 164 | if(item.ksysxlh > item.jsysxlh){ | ||
| 165 | item.bs = -1; | ||
| 166 | return; | ||
| 167 | } | ||
| 168 | item.bs = item.jsysxlh - item.ksysxlh + 1; | ||
| 169 | if(item.zslx == 1){ | ||
| 170 | this.ruleForm.zsstarno = item.ksysxlh; | ||
| 171 | this.ruleForm.zsendno = item.jsysxlh; | ||
| 172 | this.ruleForm.zsnum = item.bs | ||
| 173 | }else if(item.zslx == 2){ | ||
| 174 | this.ruleForm.zmstarno = item.ksysxlh; | ||
| 175 | this.ruleForm.zmendno = item.jsysxlh; | ||
| 176 | this.ruleForm.zmnum = item.bs | ||
| 177 | } | ||
| 178 | }else{ | ||
| 179 | item.bs = -1; | ||
| 180 | } | ||
| 181 | }else{ | ||
| 182 | item.bs = 0; | ||
| 183 | if(item.zslx == 1){ | ||
| 184 | this.ruleForm.zsstarno = ''; | ||
| 185 | this.ruleForm.zsendno = ''; | ||
| 186 | this.ruleForm.zsnum = item.bs | ||
| 187 | }else if(item.zslx == 2){ | ||
| 188 | this.ruleForm.zmstarno = ''; | ||
| 189 | this.ruleForm.zmendno = ''; | ||
| 190 | this.ruleForm.zmnum = item.bs | ||
| 191 | } | ||
| 192 | } | ||
| 193 | }, | ||
| 194 | resetTableFields() { | ||
| 195 | this.tableForm = [ | ||
| 196 | { | ||
| 197 | name: '不动产权证书', | ||
| 198 | ksysxlh: '', | ||
| 199 | jsysxlh: '', | ||
| 200 | bs: 0, | ||
| 201 | zslx:1 | ||
| 202 | }, | ||
| 203 | { | ||
| 204 | name: '不动产权登记证明', | ||
| 205 | ksysxlh: '', | ||
| 206 | jsysxlh: '', | ||
| 207 | bs: 0, | ||
| 208 | zslx:2 | ||
| 209 | } | ||
| 210 | ] | ||
| 211 | }, | ||
| 212 | closeDialog () { | ||
| 213 | this.$emit("input", false); | ||
| 214 | }, | ||
| 215 | } | ||
| 216 | } | ||
| 217 | </script> | ||
| 218 | <style scoped lang="scss"> | ||
| 219 | @import "~@/styles/mixin.scss"; | ||
| 220 | |||
| 221 | </style> |
| ... | @@ -19,7 +19,7 @@ | ... | @@ -19,7 +19,7 @@ |
| 19 | <el-col :span="11" class="btnCol"> | 19 | <el-col :span="11" class="btnCol"> |
| 20 | <el-form-item> | 20 | <el-form-item> |
| 21 | <el-button type="primary" @click="queryClick()">查询</el-button> | 21 | <el-button type="primary" @click="queryClick()">查询</el-button> |
| 22 | <el-button type="primary">新增</el-button> | 22 | <el-button type="primary" @click="openDialog()">新增</el-button> |
| 23 | </el-form-item> | 23 | </el-form-item> |
| 24 | </el-col> | 24 | </el-col> |
| 25 | </el-row> | 25 | </el-row> |
| ... | @@ -32,21 +32,24 @@ | ... | @@ -32,21 +32,24 @@ |
| 32 | :data="tableData.data"> | 32 | :data="tableData.data"> |
| 33 | </lb-table> | 33 | </lb-table> |
| 34 | </div> | 34 | </div> |
| 35 | <addDialog ref="addDialog" v-model="isDialog"/> | ||
| 35 | </div> | 36 | </div> |
| 36 | </template> | 37 | </template> |
| 37 | <script> | 38 | <script> |
| 38 | import table from "@/utils/mixin/table"; | 39 | import table from "@/utils/mixin/table"; |
| 39 | import { datas, sendThis } from "./zsrkdata"; | 40 | import { datas, sendThis } from "./zsrkdata"; |
| 40 | import { getZsglrkList } from "@/api/zsgl.js" | 41 | import addDialog from "./components/addDialog.vue" |
| 42 | import { getZsglrkList ,removeZsgl} from "@/api/zsgl.js" | ||
| 41 | export default { | 43 | export default { |
| 42 | name: "zsrk", | 44 | name: "zsrk", |
| 43 | components: {}, | 45 | components: {addDialog}, |
| 44 | mixins: [table], | 46 | mixins: [table], |
| 45 | mounted () { | 47 | mounted () { |
| 46 | sendThis(this); | 48 | sendThis(this); |
| 47 | }, | 49 | }, |
| 48 | data () { | 50 | data () { |
| 49 | return { | 51 | return { |
| 52 | isDialog: false, | ||
| 50 | ruleForm: { | 53 | ruleForm: { |
| 51 | rkbh: "", | 54 | rkbh: "", |
| 52 | rksj: "" | 55 | rksj: "" |
| ... | @@ -73,8 +76,32 @@ export default { | ... | @@ -73,8 +76,32 @@ export default { |
| 73 | }) | 76 | }) |
| 74 | }, | 77 | }, |
| 75 | openDialog () { | 78 | openDialog () { |
| 76 | console.log(999999999999999); | 79 | this.isDialog = true; |
| 80 | this.$nextTick(()=> { | ||
| 81 | this.$refs.addDialog.ywhSerial(); | ||
| 82 | }) | ||
| 77 | }, | 83 | }, |
| 84 | delZsrk(item){ | ||
| 85 | this.$confirm('确定要删除吗, 是否继续?', '提示', { | ||
| 86 | confirmButtonText: '确定', | ||
| 87 | cancelButtonText: '取消', | ||
| 88 | type: 'warning' | ||
| 89 | }).then(() => { | ||
| 90 | removeZsgl({"bsmBatch":item.bsmBatch}).then(res => { | ||
| 91 | if(res.code == 200){ | ||
| 92 | this.$message.success("删除成功") | ||
| 93 | this.fetchData(); | ||
| 94 | }else{ | ||
| 95 | this.$message.error(res.message) | ||
| 96 | } | ||
| 97 | }) | ||
| 98 | }).catch(() => { | ||
| 99 | this.$message({ | ||
| 100 | type: 'info', | ||
| 101 | message: '已取消删除' | ||
| 102 | }); | ||
| 103 | }); | ||
| 104 | } | ||
| 78 | }, | 105 | }, |
| 79 | }; | 106 | }; |
| 80 | </script> | 107 | </script> | ... | ... |
| ... | @@ -60,7 +60,7 @@ class data extends filter { | ... | @@ -60,7 +60,7 @@ class data extends filter { |
| 60 | case '0': | 60 | case '0': |
| 61 | return <div> | 61 | return <div> |
| 62 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>确认审核</el-button> | 62 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>确认审核</el-button> |
| 63 | <el-button type="text" icon="el-icon-delete" onClick={() => { vm.openDialog(scope.row) }}>删除</el-button> | 63 | <el-button type="text" icon="el-icon-delete" onClick={() => { vm.delZsrk(scope.row) }}>删除</el-button> |
| 64 | </div> | 64 | </div> |
| 65 | case '1': | 65 | case '1': |
| 66 | return <el-button type="text" onClick={() => { vm.openDialog(scope) }}>查看</el-button> | 66 | return <el-button type="text" onClick={() => { vm.openDialog(scope) }}>查看</el-button> | ... | ... |
-
Please register or sign in to post a comment