证书管理
Showing
7 changed files
with
87 additions
and
27 deletions
| ... | @@ -125,3 +125,13 @@ export function getZssyqkInfo (params) { | ... | @@ -125,3 +125,13 @@ export function getZssyqkInfo (params) { |
| 125 | params | 125 | params |
| 126 | }) | 126 | }) |
| 127 | } | 127 | } |
| 128 | /* | ||
| 129 | 证书管理-证书入库/分发详情 | ||
| 130 | */ | ||
| 131 | export function getZsglInfo (params) { | ||
| 132 | return request({ | ||
| 133 | url: '/sys/zsgl/getZsglInfo', | ||
| 134 | method: 'get', | ||
| 135 | params | ||
| 136 | }) | ||
| 137 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <dialogBox title="证书分发" @submitForm="submitForm" saveButton="保存" width="50%" :isFullscreen="false" | 2 | <dialogBox title="证书分发" @submitForm="submitForm" saveButton="保存" width="50%" :isFullscreen="false" |
| 3 | @closeDialog="closeDialog" v-model="myValue"> | 3 | @closeDialog="closeDialog" v-model="myValue" :isButton="readOnly"> |
| 4 | <div> | 4 | <div> |
| 5 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> | 5 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> |
| 6 | <el-row> | 6 | <el-row> |
| ... | @@ -10,8 +10,9 @@ | ... | @@ -10,8 +10,9 @@ |
| 10 | </el-form-item> | 10 | </el-form-item> |
| 11 | </el-col> | 11 | </el-col> |
| 12 | <el-col :span="12"> | 12 | <el-col :span="12"> |
| 13 | <el-form-item label="领取时间:" prop="rksj"> | 13 | <el-form-item label="领取时间:" prop="operationtime"> |
| 14 | <el-date-picker v-model="ruleForm.rksj" class="width100" type="datetime" placeholder="选择日期时间"> | 14 | <el-date-picker v-model="ruleForm.operationtime" class="width100" type="datetime" |
| 15 | placeholder="选择日期时间" :disabled="!readOnly" value-format="yyyy-MM-dd HH:mm:ss"> | ||
| 15 | </el-date-picker> | 16 | </el-date-picker> |
| 16 | </el-form-item> | 17 | </el-form-item> |
| 17 | </el-col> | 18 | </el-col> |
| ... | @@ -19,12 +20,12 @@ | ... | @@ -19,12 +20,12 @@ |
| 19 | <el-row> | 20 | <el-row> |
| 20 | <el-col :span="12"> | 21 | <el-col :span="12"> |
| 21 | <el-form-item label="入库人员:"> | 22 | <el-form-item label="入库人员:"> |
| 22 | <el-input v-model="ruleForm.rkry" :disabled="true"></el-input> | 23 | <el-input v-model="ruleForm.operator" :disabled="true"></el-input> |
| 23 | </el-form-item> | 24 | </el-form-item> |
| 24 | </el-col> | 25 | </el-col> |
| 25 | <el-col :span="12"> | 26 | <el-col :span="12"> |
| 26 | <el-form-item label="领取人:" prop="receiver"> | 27 | <el-form-item label="领取人:" prop="receiver"> |
| 27 | <el-select v-model="ruleForm.receiver" class="width100" placeholder="请选择"> | 28 | <el-select v-model="ruleForm.receiver" class="width100" placeholder="请选择" :disabled="!readOnly"> |
| 28 | <el-option v-for="item in usernames" :key="item" :label="item" :value="item"></el-option> | 29 | <el-option v-for="item in usernames" :key="item" :label="item" :value="item"></el-option> |
| 29 | </el-select> | 30 | </el-select> |
| 30 | </el-form-item> | 31 | </el-form-item> |
| ... | @@ -39,7 +40,7 @@ | ... | @@ -39,7 +40,7 @@ |
| 39 | <el-table-column prop="bs" label="本数"> | 40 | <el-table-column prop="bs" label="本数"> |
| 40 | <template slot-scope="scope"> | 41 | <template slot-scope="scope"> |
| 41 | <el-input v-model="scope.row.bs" @blur="ysxlhDeal(scope.row)" | 42 | <el-input v-model="scope.row.bs" @blur="ysxlhDeal(scope.row)" |
| 42 | oninput="value=value.replace(/[^\d.]/g,'')" maxlength="6"></el-input> | 43 | oninput="value=value.replace(/[^\d.]/g,'')" maxlength="6" :disabled="!readOnly"></el-input> |
| 43 | </template> | 44 | </template> |
| 44 | </el-table-column> | 45 | </el-table-column> |
| 45 | <el-table-column prop="jsysxlh" label="结束印刷序列号" width="200"> | 46 | <el-table-column prop="jsysxlh" label="结束印刷序列号" width="200"> |
| ... | @@ -51,7 +52,7 @@ | ... | @@ -51,7 +52,7 @@ |
| 51 | </el-table> | 52 | </el-table> |
| 52 | </div> | 53 | </div> |
| 53 | <el-form-item label="备注" class="middle-margin-bottom"> | 54 | <el-form-item label="备注" class="middle-margin-bottom"> |
| 54 | <el-input type="textarea" v-model="ruleForm.bz" :rows="4"></el-input> | 55 | <el-input type="textarea" v-model="ruleForm.bz" :rows="4" :disabled="!readOnly"></el-input> |
| 55 | </el-form-item> | 56 | </el-form-item> |
| 56 | </el-form> | 57 | </el-form> |
| 57 | </div> | 58 | </div> |
| ... | @@ -59,7 +60,7 @@ | ... | @@ -59,7 +60,7 @@ |
| 59 | </template> | 60 | </template> |
| 60 | 61 | ||
| 61 | <script> | 62 | <script> |
| 62 | import { getZsStartNo, getSysSerialSingle, getZsEndNo, zsff } from "@/api/zsgl.js" | 63 | import { getZsStartNo, getSysSerialSingle, getZsEndNo, zsff ,getZsglInfo} from "@/api/zsgl.js" |
| 63 | export default { | 64 | export default { |
| 64 | components: { | 65 | components: { |
| 65 | }, | 66 | }, |
| ... | @@ -71,12 +72,13 @@ export default { | ... | @@ -71,12 +72,13 @@ export default { |
| 71 | data () { | 72 | data () { |
| 72 | return { | 73 | return { |
| 73 | myValue: this.value, | 74 | myValue: this.value, |
| 75 | readOnly: false, | ||
| 74 | //表单提交数据 | 76 | //表单提交数据 |
| 75 | ruleForm: { | 77 | ruleForm: { |
| 76 | batchno: '', | 78 | batchno: '', |
| 77 | receiver: '', | 79 | receiver: '', |
| 78 | rkry: '超级管理员', | 80 | operator: '超级管理员', |
| 79 | rksj: '', | 81 | operationtime: '', |
| 80 | bz: '', | 82 | bz: '', |
| 81 | zsstarno: '', | 83 | zsstarno: '', |
| 82 | zsendno: '', | 84 | zsendno: '', |
| ... | @@ -149,9 +151,26 @@ export default { | ... | @@ -149,9 +151,26 @@ export default { |
| 149 | getSysSerialSingle(this.ywhQueryForm).then(res => { | 151 | getSysSerialSingle(this.ywhQueryForm).then(res => { |
| 150 | if (res.code == 200) { | 152 | if (res.code == 200) { |
| 151 | this.ruleForm.batchno = res.message; | 153 | this.ruleForm.batchno = res.message; |
| 154 | this.readOnly = true; | ||
| 152 | } | 155 | } |
| 153 | }) | 156 | }) |
| 154 | }, | 157 | }, |
| 158 | //获取详情信息 | ||
| 159 | getDetailInfo(bsmBatch) { | ||
| 160 | getZsglInfo({"bsmBatch": bsmBatch}).then(res => { | ||
| 161 | if(res.code == 200){ | ||
| 162 | this.ruleForm = res.result; | ||
| 163 | this.readOnly = false; | ||
| 164 | this.tableForm[0].ksysxlh = res.result.zsstarno; | ||
| 165 | this.tableForm[0].jsysxlh = res.result.zsendno; | ||
| 166 | this.tableForm[0].bs = res.result.zsnum; | ||
| 167 | this.tableForm[1].ksysxlh = res.result.zmstarno; | ||
| 168 | this.tableForm[1].jsysxlh = res.result.zmendno; | ||
| 169 | this.tableForm[1].bs = res.result.zmnum; | ||
| 170 | } | ||
| 171 | }) | ||
| 172 | }, | ||
| 173 | //初始化开始序列号 | ||
| 155 | initStartNo () { | 174 | initStartNo () { |
| 156 | getZsStartNo().then(res => { | 175 | getZsStartNo().then(res => { |
| 157 | if (res.code == 200) { | 176 | if (res.code == 200) { |
| ... | @@ -213,6 +232,7 @@ export default { | ... | @@ -213,6 +232,7 @@ export default { |
| 213 | closeDialog () { | 232 | closeDialog () { |
| 214 | this.$emit("input", false); | 233 | this.$emit("input", false); |
| 215 | this.$refs['ruleForm'].resetFields(); | 234 | this.$refs['ruleForm'].resetFields(); |
| 235 | this.resetTableFields(); | ||
| 216 | } | 236 | } |
| 217 | } | 237 | } |
| 218 | } | 238 | } | ... | ... |
| ... | @@ -84,12 +84,18 @@ export default { | ... | @@ -84,12 +84,18 @@ export default { |
| 84 | } | 84 | } |
| 85 | }) | 85 | }) |
| 86 | }, | 86 | }, |
| 87 | openDialog () { | 87 | openDialog (bsmBatch) { |
| 88 | this.isDialog = true; | 88 | if(bsmBatch){ |
| 89 | this.$nextTick(() => { | ||
| 90 | this.$refs.addDialog.getDetailInfo(bsmBatch); | ||
| 91 | }) | ||
| 92 | }else{ | ||
| 89 | this.$nextTick(() => { | 93 | this.$nextTick(() => { |
| 90 | this.$refs.addDialog.ywhSerial(); | 94 | this.$refs.addDialog.ywhSerial(); |
| 91 | this.$refs.addDialog.initStartNo(); | 95 | this.$refs.addDialog.initStartNo(); |
| 92 | }) | 96 | }) |
| 97 | } | ||
| 98 | this.isDialog = true; | ||
| 93 | }, | 99 | }, |
| 94 | queryClick () { | 100 | queryClick () { |
| 95 | this.fetchData() | 101 | this.fetchData() | ... | ... |
| ... | @@ -70,7 +70,7 @@ class data extends filter { | ... | @@ -70,7 +70,7 @@ class data extends filter { |
| 70 | <el-button type="text" icon="el-icon-delete" onClick={() => { vm.delZsff(scope.row) }}>删除</el-button> | 70 | <el-button type="text" icon="el-icon-delete" onClick={() => { vm.delZsff(scope.row) }}>删除</el-button> |
| 71 | </div> | 71 | </div> |
| 72 | case '1': | 72 | case '1': |
| 73 | return <el-button type="text" onClick={() => { vm.viewDialog = true }}>查看</el-button> | 73 | return <el-button type="text" onClick={() => { vm.openDialog(scope.row.bsmBatch) }}>查看</el-button> |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| 76 | } | 76 | } | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <dialogBox title="证书入库" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="50%" | 2 | <dialogBox title="证书入库" @submitForm="submitForm" saveButton="保存" :isFullscreen="false" width="50%" |
| 3 | @closeDialog="closeDialog" v-model="myValue"> | 3 | @closeDialog="closeDialog" v-model="myValue" :isButton="readOnly"> |
| 4 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> | 4 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> |
| 5 | <el-row> | 5 | <el-row> |
| 6 | <el-col :span="12"> | 6 | <el-col :span="12"> |
| ... | @@ -10,7 +10,7 @@ | ... | @@ -10,7 +10,7 @@ |
| 10 | </el-col> | 10 | </el-col> |
| 11 | <el-col :span="12"> | 11 | <el-col :span="12"> |
| 12 | <el-form-item label="登记机构:" prop="djjg"> | 12 | <el-form-item label="登记机构:" prop="djjg"> |
| 13 | <el-select v-model="ruleForm.djjg" class="width100" placeholder="请选择"> | 13 | <el-select v-model="ruleForm.djjg" class="width100" placeholder="请选择" :disabled="!readOnly"> |
| 14 | <el-option v-for="item in dictData['ywly']" :key="item.dname" :label="item.dname" :value="item.dname"> | 14 | <el-option v-for="item in dictData['ywly']" :key="item.dname" :label="item.dname" :value="item.dname"> |
| 15 | </el-option> | 15 | </el-option> |
| 16 | </el-select> | 16 | </el-select> |
| ... | @@ -20,12 +20,12 @@ | ... | @@ -20,12 +20,12 @@ |
| 20 | <el-row> | 20 | <el-row> |
| 21 | <el-col :span="12"> | 21 | <el-col :span="12"> |
| 22 | <el-form-item label="入库人员:"> | 22 | <el-form-item label="入库人员:"> |
| 23 | <el-input v-model="ruleForm.rkry" :disabled="true"></el-input> | 23 | <el-input v-model="ruleForm.operator" :disabled="true"></el-input> |
| 24 | </el-form-item> | 24 | </el-form-item> |
| 25 | </el-col> | 25 | </el-col> |
| 26 | <el-col :span="12"> | 26 | <el-col :span="12"> |
| 27 | <el-form-item label="入库时间:" prop="rksj"> | 27 | <el-form-item label="入库时间:" prop="operationtime"> |
| 28 | <el-date-picker v-model="ruleForm.rksj" class="width100" type="datetime"> | 28 | <el-date-picker v-model="ruleForm.operationtime" class="width100" type="datetime" :disabled="!readOnly" value-format="yyyy-MM-dd HH:mm:ss"> |
| 29 | </el-date-picker> | 29 | </el-date-picker> |
| 30 | </el-form-item> | 30 | </el-form-item> |
| 31 | </el-col> | 31 | </el-col> |
| ... | @@ -38,13 +38,13 @@ | ... | @@ -38,13 +38,13 @@ |
| 38 | <el-table-column prop="ksysxlh" label="开始印刷序列号" width="200"> | 38 | <el-table-column prop="ksysxlh" label="开始印刷序列号" width="200"> |
| 39 | <template slot-scope="scope"> | 39 | <template slot-scope="scope"> |
| 40 | <el-input v-model="scope.row.ksysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11" | 40 | <el-input v-model="scope.row.ksysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11" |
| 41 | oninput="value=value.replace(/[^\d.]/g,'')"></el-input> | 41 | oninput="value=value.replace(/[^\d.]/g,'')" :disabled="!readOnly"></el-input> |
| 42 | </template> | 42 | </template> |
| 43 | </el-table-column> | 43 | </el-table-column> |
| 44 | <el-table-column prop="jsysxlh" label="结束印刷序列号" width="200"> | 44 | <el-table-column prop="jsysxlh" label="结束印刷序列号" width="200"> |
| 45 | <template slot-scope="scope"> | 45 | <template slot-scope="scope"> |
| 46 | <el-input v-model="scope.row.jsysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11" | 46 | <el-input v-model="scope.row.jsysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11" |
| 47 | oninput="value=value.replace(/[^\d.]/g,'')"></el-input> | 47 | oninput="value=value.replace(/[^\d.]/g,'')" :disabled="!readOnly"></el-input> |
| 48 | </template> | 48 | </template> |
| 49 | </el-table-column> | 49 | </el-table-column> |
| 50 | <el-table-column prop="bs" label="本数"> | 50 | <el-table-column prop="bs" label="本数"> |
| ... | @@ -57,7 +57,7 @@ | ... | @@ -57,7 +57,7 @@ |
| 57 | </el-table> | 57 | </el-table> |
| 58 | </div> | 58 | </div> |
| 59 | <el-form-item label="备注" class="middle-margin-bottom"> | 59 | <el-form-item label="备注" class="middle-margin-bottom"> |
| 60 | <el-input type="textarea" v-model="ruleForm.bz" :rows="4"></el-input> | 60 | <el-input type="textarea" v-model="ruleForm.bz" :rows="4" :disabled="!readOnly"></el-input> |
| 61 | </el-form-item> | 61 | </el-form-item> |
| 62 | </el-form> | 62 | </el-form> |
| 63 | </dialogBox> | 63 | </dialogBox> |
| ... | @@ -65,7 +65,7 @@ | ... | @@ -65,7 +65,7 @@ |
| 65 | 65 | ||
| 66 | <script> | 66 | <script> |
| 67 | import { mapGetters } from 'vuex' | 67 | import { mapGetters } from 'vuex' |
| 68 | import { getSysSerialSingle, zsrk } from "@/api/zsgl.js" | 68 | import { getSysSerialSingle, zsrk,getZsglInfo} from "@/api/zsgl.js" |
| 69 | export default { | 69 | export default { |
| 70 | computed: { | 70 | computed: { |
| 71 | ...mapGetters(['dictData']), | 71 | ...mapGetters(['dictData']), |
| ... | @@ -76,12 +76,13 @@ export default { | ... | @@ -76,12 +76,13 @@ export default { |
| 76 | data () { | 76 | data () { |
| 77 | return { | 77 | return { |
| 78 | myValue: this.value, | 78 | myValue: this.value, |
| 79 | readOnly: false, | ||
| 79 | //表单提交数据 | 80 | //表单提交数据 |
| 80 | ruleForm: { | 81 | ruleForm: { |
| 81 | batchno: '', | 82 | batchno: '', |
| 82 | djjg: '', | 83 | djjg: '', |
| 83 | rkry: '超级管理员', | 84 | operator: '超级管理员', |
| 84 | rksj: '', | 85 | operationtime: '', |
| 85 | bz: '', | 86 | bz: '', |
| 86 | zsstarno: '', | 87 | zsstarno: '', |
| 87 | zsendno: '', | 88 | zsendno: '', |
| ... | @@ -157,6 +158,22 @@ export default { | ... | @@ -157,6 +158,22 @@ export default { |
| 157 | getSysSerialSingle(this.ywhQueryForm).then(res => { | 158 | getSysSerialSingle(this.ywhQueryForm).then(res => { |
| 158 | if (res.code == 200) { | 159 | if (res.code == 200) { |
| 159 | this.ruleForm.batchno = res.message; | 160 | this.ruleForm.batchno = res.message; |
| 161 | this.readOnly = true; | ||
| 162 | } | ||
| 163 | }) | ||
| 164 | }, | ||
| 165 | //获取详情信息 | ||
| 166 | getDetailInfo(bsmBatch) { | ||
| 167 | getZsglInfo({"bsmBatch": bsmBatch}).then(res => { | ||
| 168 | if(res.code == 200){ | ||
| 169 | this.ruleForm = res.result; | ||
| 170 | this.readOnly = false; | ||
| 171 | this.tableForm[0].ksysxlh = res.result.zsstarno; | ||
| 172 | this.tableForm[0].jsysxlh = res.result.zsendno; | ||
| 173 | this.tableForm[0].bs = res.result.zsnum; | ||
| 174 | this.tableForm[1].ksysxlh = res.result.zmstarno; | ||
| 175 | this.tableForm[1].jsysxlh = res.result.zmendno; | ||
| 176 | this.tableForm[1].bs = res.result.zmnum; | ||
| 160 | } | 177 | } |
| 161 | }) | 178 | }) |
| 162 | }, | 179 | }, |
| ... | @@ -219,6 +236,7 @@ export default { | ... | @@ -219,6 +236,7 @@ export default { |
| 219 | closeDialog () { | 236 | closeDialog () { |
| 220 | this.$emit("input", false); | 237 | this.$emit("input", false); |
| 221 | this.$refs['ruleForm'].resetFields(); | 238 | this.$refs['ruleForm'].resetFields(); |
| 239 | this.resetTableFields(); | ||
| 222 | } | 240 | } |
| 223 | } | 241 | } |
| 224 | } | 242 | } | ... | ... |
| ... | @@ -77,11 +77,17 @@ export default { | ... | @@ -77,11 +77,17 @@ export default { |
| 77 | } | 77 | } |
| 78 | }) | 78 | }) |
| 79 | }, | 79 | }, |
| 80 | openDialog () { | 80 | openDialog (bsmBatch) { |
| 81 | if(bsmBatch){ | ||
| 82 | this.$nextTick(() => { | ||
| 83 | this.$refs.addDialog.getDetailInfo(bsmBatch); | ||
| 84 | }) | ||
| 85 | }else{ | ||
| 81 | this.$nextTick(() => { | 86 | this.$nextTick(() => { |
| 82 | this.$refs.addDialog.ywhSerial(); | 87 | this.$refs.addDialog.ywhSerial(); |
| 83 | this.isDialog = true; | ||
| 84 | }) | 88 | }) |
| 89 | } | ||
| 90 | this.isDialog = true; | ||
| 85 | }, | 91 | }, |
| 86 | queryClick () { | 92 | queryClick () { |
| 87 | this.fetchData() | 93 | this.fetchData() | ... | ... |
| ... | @@ -70,7 +70,7 @@ class data extends filter { | ... | @@ -70,7 +70,7 @@ class data extends filter { |
| 70 | <el-button type="text" icon="el-icon-delete" onClick={() => { vm.delZsrk(scope.row) }}>删除</el-button> | 70 | <el-button type="text" icon="el-icon-delete" onClick={() => { vm.delZsrk(scope.row) }}>删除</el-button> |
| 71 | </div> | 71 | </div> |
| 72 | case '1': | 72 | case '1': |
| 73 | return <el-button type="text" onClick={() => { vm.viewDialog = true }}>查看</el-button> | 73 | return <el-button type="text" onClick={() => { vm.openDialog(scope.row.bsmBatch) }}>查看</el-button> |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| 76 | } | 76 | } | ... | ... |
-
Please register or sign in to post a comment