style:证书入库
Showing
7 changed files
with
120 additions
and
53 deletions
... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
14 | <template slot="title"> | 14 | <template slot="title"> |
15 | <item v-if="item.meta" :icon="item.meta && item.meta.icon" :title="item.meta.title" /> | 15 | <item v-if="item.meta" :icon="item.meta && item.meta.icon" :title="item.meta.title" /> |
16 | </template> | 16 | </template> |
17 | <sidebar-item v-for="child in item.children" :key="child.path" :is-nest="true" :item="child" | 17 | <sidebar-item v-for="(child, index) in item.children" :key="index" :is-nest="true" :item="child" |
18 | :base-path="resolvePath(child.path)" class="nest-menu" /> | 18 | :base-path="resolvePath(child.path)" class="nest-menu" /> |
19 | </el-submenu> | 19 | </el-submenu> |
20 | </div> | 20 | </div> | ... | ... |
... | @@ -2,10 +2,9 @@ | ... | @@ -2,10 +2,9 @@ |
2 | <div> | 2 | <div> |
3 | <el-scrollbar wrap-class="scrollbar-wrapper"> | 3 | <el-scrollbar wrap-class="scrollbar-wrapper"> |
4 | <el-menu router :default-active="activeMenu" :background-color="variables.menuBg" :text-color="variables.menuText" | 4 | <el-menu router :default-active="activeMenu" :background-color="variables.menuBg" :text-color="variables.menuText" |
5 | :unique-opened="true" :active-text-color="variables.menuActiveText" :collapse-transition="false" | 5 | :unique-opened="true" :active-text-color="variables.menuActiveText" :collapse-transition="false" mode="vertical"> |
6 | mode="vertical"> | ||
7 | <!-- 权限菜单 --> | 6 | <!-- 权限菜单 --> |
8 | <sidebar-item v-for="route in permission_routes" :key="route.path" :item="route" :base-path="route.path" /> | 7 | <sidebar-item v-for="(route, index) in permission_routes" :key="index" :item="route" :base-path="route.path" /> |
9 | <!-- 菜单全部展示 --> | 8 | <!-- 菜单全部展示 --> |
10 | <!-- <sidebar-item v-for="route in asyncRoutes" :key="route.path" :item="route" :base-path="route.path" /> --> | 9 | <!-- <sidebar-item v-for="route in asyncRoutes" :key="route.path" :item="route" :base-path="route.path" /> --> |
11 | </el-menu> | 10 | </el-menu> | ... | ... |
... | @@ -226,7 +226,7 @@ export default { | ... | @@ -226,7 +226,7 @@ export default { |
226 | @include flex; | 226 | @include flex; |
227 | flex-direction: column; | 227 | flex-direction: column; |
228 | overflow-y: hidden; | 228 | overflow-y: hidden; |
229 | max-height: 87vh; | 229 | max-height: 85vh; |
230 | padding: 0 2px; | 230 | padding: 0 2px; |
231 | 231 | ||
232 | .jtfccx-edit-con { | 232 | .jtfccx-edit-con { | ... | ... |
... | @@ -84,10 +84,9 @@ export default { | ... | @@ -84,10 +84,9 @@ export default { |
84 | if (res.code == 200) { | 84 | if (res.code == 200) { |
85 | this.resultData = res.result | 85 | this.resultData = res.result |
86 | } | 86 | } |
87 | }); | 87 | }) |
88 | |||
89 | } | 88 | } |
90 | }, | 89 | } |
91 | }; | 90 | }; |
92 | </script> | 91 | </script> |
93 | <style scoped lang="scss"> | 92 | <style scoped lang="scss"> | ... | ... |
... | @@ -58,11 +58,7 @@ import { addJtfcCxjgXx, getJtfcInfo, printJtcfInfo } from "@/api/sqcx"; | ... | @@ -58,11 +58,7 @@ import { addJtfcCxjgXx, getJtfcInfo, printJtcfInfo } from "@/api/sqcx"; |
58 | import { getPrintTemplateByCode } from "@/api/system"; | 58 | import { getPrintTemplateByCode } from "@/api/system"; |
59 | import { datas, sendThis } from "./addjtfcdata"; | 59 | import { datas, sendThis } from "./addjtfcdata"; |
60 | import { getLodop } from "@/utils/LodopFuncs" | 60 | import { getLodop } from "@/utils/LodopFuncs" |
61 | import { mapGetters } from "vuex"; | ||
62 | export default { | 61 | export default { |
63 | computed: { | ||
64 | ...mapGetters(["dictData"]), | ||
65 | }, | ||
66 | props: { | 62 | props: { |
67 | formData: { | 63 | formData: { |
68 | type: Object, | 64 | type: Object, |
... | @@ -236,7 +232,7 @@ export default { | ... | @@ -236,7 +232,7 @@ export default { |
236 | @include flex; | 232 | @include flex; |
237 | flex-direction: column; | 233 | flex-direction: column; |
238 | overflow-y: hidden; | 234 | overflow-y: hidden; |
239 | max-height: 87vh; | 235 | max-height: 85vh; |
240 | padding: 0 2px; | 236 | padding: 0 2px; |
241 | 237 | ||
242 | 238 | ... | ... |
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" :isButton="readOnly"> | 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> |
... | @@ -60,22 +60,90 @@ | ... | @@ -60,22 +60,90 @@ |
60 | <el-input type="textarea" v-model="ruleForm.bz" :rows="4" :disabled="!readOnly"></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> --> |
64 | <div> | ||
65 | <el-form ref="ruleForm" :model="ruleForm" label-width="100px" :rules="rules"> | ||
66 | <el-row> | ||
67 | <el-col :span="12"> | ||
68 | <el-form-item label="入库编号:" prop="batchno"> | ||
69 | <el-input v-model="ruleForm.batchno" :disabled="true"></el-input> | ||
70 | </el-form-item> | ||
71 | </el-col> | ||
72 | <el-col :span="12"> | ||
73 | <el-form-item label="登记机构:" prop="djjg"> | ||
74 | <el-select v-model="ruleForm.djjg" class="width100" placeholder="请选择" :disabled="!readOnly"> | ||
75 | <el-option v-for="item in DJJGLIST" :key="item.dname" :label="item.dname" :value="item.dname"> | ||
76 | </el-option> | ||
77 | </el-select> | ||
78 | </el-form-item> | ||
79 | </el-col> | ||
80 | </el-row> | ||
81 | <el-row> | ||
82 | <el-col :span="12"> | ||
83 | <el-form-item label="入库人员:"> | ||
84 | <el-input v-model="ruleForm.operator" :disabled="true"></el-input> | ||
85 | </el-form-item> | ||
86 | </el-col> | ||
87 | <el-col :span="12"> | ||
88 | <el-form-item label="入库时间:" prop="operationtime"> | ||
89 | <el-date-picker v-model="ruleForm.operationtime" class="width100" type="datetime" :disabled="!readOnly" | ||
90 | value-format="yyyy-MM-dd HH:mm:ss"> | ||
91 | </el-date-picker> | ||
92 | </el-form-item> | ||
93 | </el-col> | ||
94 | </el-row> | ||
95 | <div> | ||
96 | <el-table :data="tableForm" border style="width: 100%" | ||
97 | :header-cell-style="{ 'text-align': 'center', background: 'rgb(236, 245, 255)' }" | ||
98 | :cell-style="{ 'text-align': 'center' }"> | ||
99 | <el-table-column prop="name" label="纸质证书类型" width="200"></el-table-column> | ||
100 | <el-table-column prop="ksysxlh" label="开始印刷序列号" width="200"> | ||
101 | <template slot-scope="scope"> | ||
102 | <el-input v-model="scope.row.ksysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11" | ||
103 | oninput="value=value.replace(/[^\d.]/g,'')" :disabled="!readOnly"></el-input> | ||
104 | </template> | ||
105 | </el-table-column> | ||
106 | <el-table-column prop="jsysxlh" label="结束印刷序列号" width="200"> | ||
107 | <template slot-scope="scope"> | ||
108 | <el-input v-model="scope.row.jsysxlh" @blur="ysxlhDeal(scope.row)" maxlength="11" | ||
109 | oninput="value=value.replace(/[^\d.]/g,'')" :disabled="!readOnly"></el-input> | ||
110 | </template> | ||
111 | </el-table-column> | ||
112 | <el-table-column prop="bs" label="本数"> | ||
113 | <template slot-scope="scope"> | ||
114 | <span v-if="scope.row.bs == 0" class="font-red">系统计算</span> | ||
115 | <span v-else-if="scope.row.bs < 0" class="font-red">印刷序列号有误</span> | ||
116 | <span v-else>{{ scope.row.bs }}</span> | ||
117 | </template> | ||
118 | </el-table-column> | ||
119 | </el-table> | ||
120 | </div> | ||
121 | <el-form-item label="备注" class="middle-margin-bottom"> | ||
122 | <el-input type="textarea" v-model="ruleForm.bz" :rows="4" :disabled="!readOnly"></el-input> | ||
123 | </el-form-item> | ||
124 | <el-row v-if="readOnly"> | ||
125 | <el-form-item> | ||
126 | <el-button type="primary" @click="submitForm">保存</el-button> | ||
127 | <el-button @click="closeDialog">取消</el-button> | ||
128 | </el-form-item> | ||
129 | </el-row> | ||
130 | </el-form> | ||
131 | </div> | ||
64 | </template> | 132 | </template> |
65 | 133 | ||
66 | <script> | 134 | <script> |
67 | import { mapGetters } from 'vuex' | 135 | import store from '@/store/index.js' |
68 | import { getSysSerialSingle, zsrk,getZsglInfo} from "@/api/zsgl.js" | 136 | import { getSysSerialSingle, zsrk, getZsglInfo } from "@/api/zsgl.js" |
69 | export default { | 137 | export default { |
70 | computed: { | ||
71 | ...mapGetters(['dictData']), | ||
72 | }, | ||
73 | props: { | 138 | props: { |
74 | value: { type: Boolean, default: false }, | 139 | formData: { |
140 | type: Object, | ||
141 | default: () => { }, | ||
142 | }, | ||
75 | }, | 143 | }, |
76 | data () { | 144 | data () { |
77 | return { | 145 | return { |
78 | myValue: this.value, | 146 | DJJGLIST: store.getters.dictData['ywly'], |
79 | readOnly: false, | 147 | readOnly: false, |
80 | //表单提交数据 | 148 | //表单提交数据 |
81 | ruleForm: { | 149 | ruleForm: { |
... | @@ -128,9 +196,11 @@ export default { | ... | @@ -128,9 +196,11 @@ export default { |
128 | }, | 196 | }, |
129 | } | 197 | } |
130 | }, | 198 | }, |
131 | watch: { | 199 | mounted () { |
132 | value (val) { | 200 | if (this.formData.bsmBatch) { |
133 | this.myValue = val | 201 | this.getDetailInfo(this.formData.bsmBatch); |
202 | } else { | ||
203 | this.ywhSerial(); | ||
134 | } | 204 | } |
135 | }, | 205 | }, |
136 | methods: { | 206 | methods: { |
... | @@ -163,19 +233,19 @@ export default { | ... | @@ -163,19 +233,19 @@ export default { |
163 | }) | 233 | }) |
164 | }, | 234 | }, |
165 | //获取详情信息 | 235 | //获取详情信息 |
166 | getDetailInfo(bsmBatch) { | 236 | getDetailInfo (bsmBatch) { |
167 | getZsglInfo({"bsmBatch": bsmBatch}).then(res => { | 237 | getZsglInfo({ "bsmBatch": bsmBatch }).then(res => { |
168 | if(res.code == 200){ | 238 | if (res.code == 200) { |
169 | this.ruleForm = res.result; | 239 | this.ruleForm = res.result; |
170 | this.readOnly = false; | 240 | this.readOnly = false; |
171 | this.tableForm[0].ksysxlh = res.result.zsstarno; | 241 | this.tableForm[0].ksysxlh = res.result.zsstarno; |
172 | this.tableForm[0].jsysxlh = res.result.zsendno; | 242 | this.tableForm[0].jsysxlh = res.result.zsendno; |
173 | this.tableForm[0].bs = res.result.zsnum; | 243 | this.tableForm[0].bs = res.result.zsnum; |
174 | this.tableForm[1].ksysxlh = res.result.zmstarno; | 244 | this.tableForm[1].ksysxlh = res.result.zmstarno; |
175 | this.tableForm[1].jsysxlh = res.result.zmendno; | 245 | this.tableForm[1].jsysxlh = res.result.zmendno; |
176 | this.tableForm[1].bs = res.result.zmnum; | 246 | this.tableForm[1].bs = res.result.zmnum; |
177 | } | 247 | } |
178 | }) | 248 | }) |
179 | }, | 249 | }, |
180 | //印刷序列号处理 | 250 | //印刷序列号处理 |
181 | ysxlhDeal (item) { | 251 | ysxlhDeal (item) { |
... | @@ -244,6 +314,7 @@ export default { | ... | @@ -244,6 +314,7 @@ export default { |
244 | <style scoped lang="scss"> | 314 | <style scoped lang="scss"> |
245 | @import "~@/styles/mixin.scss"; | 315 | @import "~@/styles/mixin.scss"; |
246 | @import "~@/styles/dialogBoxheader.scss"; | 316 | @import "~@/styles/dialogBoxheader.scss"; |
317 | |||
247 | .font-red { | 318 | .font-red { |
248 | color: red | 319 | color: red |
249 | } | 320 | } | ... | ... |
... | @@ -18,8 +18,8 @@ | ... | @@ -18,8 +18,8 @@ |
18 | </el-col> | 18 | </el-col> |
19 | <el-col :span="5"> | 19 | <el-col :span="5"> |
20 | <el-form-item label="结束时间"> | 20 | <el-form-item label="结束时间"> |
21 | <el-date-picker v-model="ruleForm.rkjssj" :picker-options="pickerOptionsEnd" type="date" | 21 | <el-date-picker v-model="ruleForm.rkjssj" :picker-options="pickerOptionsEnd" type="date" placeholder="结束日期" |
22 | placeholder="结束日期" value-format="yyyy-MM-dd" clearable> | 22 | value-format="yyyy-MM-dd" clearable> |
23 | </el-date-picker> | 23 | </el-date-picker> |
24 | </el-form-item> | 24 | </el-form-item> |
25 | </el-col> | 25 | </el-col> |
... | @@ -39,19 +39,19 @@ | ... | @@ -39,19 +39,19 @@ |
39 | :data="tableData.data"> | 39 | :data="tableData.data"> |
40 | </lb-table> | 40 | </lb-table> |
41 | </div> | 41 | </div> |
42 | <addDialog ref="addDialog" v-model="isDialog" /> | 42 | <!-- 查看弹框 --> |
43 | <!-- <addDialog ref="addDialog" v-model="isDialog" /> --> | ||
43 | <viewDialog v-model="viewDialog" /> | 44 | <viewDialog v-model="viewDialog" /> |
44 | </div> | 45 | </div> |
45 | </template> | 46 | </template> |
46 | <script> | 47 | <script> |
47 | import table from "@/utils/mixin/table"; | 48 | import table from "@/utils/mixin/table"; |
48 | import { datas, sendThis } from "./zsrkdata"; | 49 | import { datas, sendThis } from "./zsrkdata"; |
49 | import addDialog from "./components/addDialog.vue"; | ||
50 | import viewDialog from "../components/viewDialog.vue"; | 50 | import viewDialog from "../components/viewDialog.vue"; |
51 | import { getZsglrkList, removeZsgl, verifyZsrk } from "@/api/zsgl.js"; | 51 | import { getZsglrkList, removeZsgl, verifyZsrk } from "@/api/zsgl.js"; |
52 | export default { | 52 | export default { |
53 | name: "zsrk", | 53 | name: "zsrk", |
54 | components: { addDialog, viewDialog }, | 54 | components: { viewDialog }, |
55 | mixins: [table], | 55 | mixins: [table], |
56 | mounted () { | 56 | mounted () { |
57 | sendThis(this); | 57 | sendThis(this); |
... | @@ -94,16 +94,18 @@ export default { | ... | @@ -94,16 +94,18 @@ export default { |
94 | }, | 94 | }, |
95 | methods: { | 95 | methods: { |
96 | openDialog (bsmBatch) { | 96 | openDialog (bsmBatch) { |
97 | if (bsmBatch) { | 97 | // if (bsmBatch) { |
98 | this.$nextTick(() => { | 98 | // this.$nextTick(() => { |
99 | this.$refs.addDialog.getDetailInfo(bsmBatch); | 99 | // this.$refs.addDialog.getDetailInfo(bsmBatch); |
100 | }) | 100 | // }) |
101 | } else { | 101 | // } else { |
102 | this.$nextTick(() => { | 102 | // this.$nextTick(() => { |
103 | this.$refs.addDialog.ywhSerial(); | 103 | // this.$refs.addDialog.ywhSerial(); |
104 | }) | 104 | // }) |
105 | } | 105 | // } |
106 | this.isDialog = true; | 106 | this.$popupDialog("证书入库", "zsgl/zsrk/components/addDialog", { |
107 | bsmBatch: bsmBatch | ||
108 | }) | ||
107 | }, | 109 | }, |
108 | queryClick () { | 110 | queryClick () { |
109 | getZsglrkList({ ...this.ruleForm, ...this.pageData }).then(res => { | 111 | getZsglrkList({ ...this.ruleForm, ...this.pageData }).then(res => { | ... | ... |
-
Please register or sign in to post a comment