--no commit message
Showing
1 changed file
with
0 additions
and
172 deletions
| 1 | <template> | ||
| 2 | <div class="zslq"> | ||
| 3 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px"> | ||
| 4 | <el-row> | ||
| 5 | <el-col :span="8"> | ||
| 6 | <el-form-item label="发证人姓名"> | ||
| 7 | <el-input v-model="ruleForm.fzrmc" disabled></el-input> | ||
| 8 | </el-form-item> | ||
| 9 | </el-col> | ||
| 10 | <el-col :span="8"> | ||
| 11 | <el-form-item label="发证时间"> | ||
| 12 | <el-input v-model="ruleForm.fzsj" disabled></el-input> | ||
| 13 | </el-form-item> | ||
| 14 | </el-col> | ||
| 15 | <el-col :span="8"> | ||
| 16 | <el-form-item label="发证数量"> | ||
| 17 | <el-input v-model="ruleForm.fzsl" disabled></el-input> | ||
| 18 | </el-form-item> | ||
| 19 | </el-col> | ||
| 20 | </el-row> | ||
| 21 | |||
| 22 | <lb-table border :column="tableData.columns" :data="tableData.data" :pagination="false" :heightNum="400"> | ||
| 23 | </lb-table> | ||
| 24 | <el-row> | ||
| 25 | <el-col :span="6"> | ||
| 26 | <el-form-item label="领证人" prop="lzrxm"> | ||
| 27 | <el-input v-model="ruleForm.lzrxm"></el-input> | ||
| 28 | </el-form-item> | ||
| 29 | </el-col> | ||
| 30 | <el-col :span="6"> | ||
| 31 | <el-form-item label="证件类型" prop="lzrzjlb"> | ||
| 32 | <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择"> | ||
| 33 | <el-option v-for="item in zjzlData" :key="item.dcode" :label="item.dname" :value="item.dcode"> | ||
| 34 | </el-option> | ||
| 35 | </el-select> | ||
| 36 | </el-form-item> | ||
| 37 | </el-col> | ||
| 38 | <el-col :span="6"> | ||
| 39 | <el-form-item label="证件号" prop="lzrzjh"> | ||
| 40 | <el-input v-model="ruleForm.lzrzjh"></el-input> | ||
| 41 | </el-form-item> | ||
| 42 | </el-col> | ||
| 43 | <el-col :span="6"> | ||
| 44 | <el-form-item label="领证人电话" prop="lzrdh"> | ||
| 45 | <el-input v-model="ruleForm.lzrdh"></el-input> | ||
| 46 | </el-form-item> | ||
| 47 | </el-col> | ||
| 48 | </el-row> | ||
| 49 | </el-form> | ||
| 50 | <div class="text-center"> | ||
| 51 | <el-button @click="$popupCacel">取消</el-button> | ||
| 52 | <el-button type="primary" @click="handleSubmit" plain>领取</el-button> | ||
| 53 | </div> | ||
| 54 | </div> | ||
| 55 | </template> | ||
| 56 | |||
| 57 | <script> | ||
| 58 | import store from '@/store/index.js' | ||
| 59 | import table from "@/utils/mixin/table"; | ||
| 60 | import { getUnclaimedBdcqz, issueCertificate } from "@/api/bdcqz.js"; | ||
| 61 | import { datas } from "../javascript/fzxxdata"; | ||
| 62 | export default { | ||
| 63 | props: { | ||
| 64 | formData: { | ||
| 65 | type: Object, | ||
| 66 | default: function () { | ||
| 67 | return {}; | ||
| 68 | } | ||
| 69 | } | ||
| 70 | }, | ||
| 71 | mixins: [table], | ||
| 72 | data () { | ||
| 73 | return { | ||
| 74 | zjzlData: store.getters.dictData['A30'], | ||
| 75 | ruleForm: { | ||
| 76 | fzrmc: '', | ||
| 77 | fzsj: '', | ||
| 78 | fzsl: '', | ||
| 79 | bdcqzList: [], | ||
| 80 | lzrxm: '', | ||
| 81 | lzrzjlb: '', | ||
| 82 | lzrzjh: '', | ||
| 83 | lzrdh: '' | ||
| 84 | }, | ||
| 85 | rules: { | ||
| 86 | lzrxm: [ | ||
| 87 | { required: true, message: '请输入领证人', trigger: 'blur' } | ||
| 88 | ], | ||
| 89 | lzrzjlb: [ | ||
| 90 | { required: true, message: '请选择证件类型', trigger: 'change' } | ||
| 91 | ], | ||
| 92 | lzrzjh: [ | ||
| 93 | { required: true, message: '请输入证件号', trigger: 'blur' } | ||
| 94 | ], | ||
| 95 | lzrdh: [ | ||
| 96 | { required: true, message: '请输入电话号码', trigger: 'blur' } | ||
| 97 | ], | ||
| 98 | }, | ||
| 99 | tableData: { | ||
| 100 | total: 0, | ||
| 101 | columns: datas.columns().lzgrid, | ||
| 102 | data: [], | ||
| 103 | }, | ||
| 104 | } | ||
| 105 | }, | ||
| 106 | // watch: { | ||
| 107 | // value (val) { | ||
| 108 | // if (val) { | ||
| 109 | // this.loadGrid(); | ||
| 110 | // } | ||
| 111 | // }, | ||
| 112 | // }, | ||
| 113 | mounted () { | ||
| 114 | if (this.formData.bsmSlsq) { | ||
| 115 | console.log(this.formData.bsmSlsq); | ||
| 116 | getUnclaimedBdcqz({ bsmSlsq: this.formData.bsmSlsq }).then(res => { | ||
| 117 | console.log("res", res); | ||
| 118 | if (res.code === 200) { | ||
| 119 | this.tableData.data = res.result.list; | ||
| 120 | this.ruleForm.bdcqzList = res.result.list; | ||
| 121 | this.ruleForm.fzrmc = res.result.fzrmc | ||
| 122 | this.ruleForm.fzsj = res.result.fzsj | ||
| 123 | this.ruleForm.fzsl = res.result.fzsl | ||
| 124 | |||
| 125 | } | ||
| 126 | }) | ||
| 127 | } | ||
| 128 | }, | ||
| 129 | methods: { | ||
| 130 | //列表初始化 | ||
| 131 | loadGrid () { | ||
| 132 | console.log(this.value); | ||
| 133 | console.log(this.$route.query.bsmSlsq); | ||
| 134 | getUnclaimedBdcqz({ bsmSlsq: this.$route.query.bsmSlsq }).then(res => { | ||
| 135 | console.log("res", res); | ||
| 136 | if (res.code === 200) { | ||
| 137 | this.tableData.data = res.result.list; | ||
| 138 | this.ruleForm.fzrmc = res.result.fzrmc | ||
| 139 | this.ruleForm.fzsj = res.result.fzsj | ||
| 140 | this.ruleForm.fzsl = res.result.fzsl | ||
| 141 | |||
| 142 | } | ||
| 143 | }) | ||
| 144 | }, | ||
| 145 | // 领取证书 | ||
| 146 | handleSubmit () { | ||
| 147 | this.$refs.ruleForm.validate(valid => { | ||
| 148 | if (valid) { | ||
| 149 | console.log("this.ruleForm", this.ruleForm); | ||
| 150 | issueCertificate(this.ruleForm).then(res => { | ||
| 151 | if (res.code == 200) { | ||
| 152 | this.$message.success('领取成功'); | ||
| 153 | this.$popupCacel(); | ||
| 154 | // console.log("this.$parent", this.$parent); | ||
| 155 | // this.$parent.queryClick(); | ||
| 156 | |||
| 157 | } else { | ||
| 158 | this.$message.error(res.message) | ||
| 159 | } | ||
| 160 | }) | ||
| 161 | } else { | ||
| 162 | this.$message.error("请填写领取人信息!") | ||
| 163 | return false; | ||
| 164 | } | ||
| 165 | }); | ||
| 166 | }, | ||
| 167 | } | ||
| 168 | } | ||
| 169 | </script> | ||
| 170 | <style scoped lang="scss"> | ||
| 171 | @import "~@/styles/mixin.scss"; | ||
| 172 | </style> |
-
Please register or sign in to post a comment