style;申请业务规则
Showing
7 changed files
with
124 additions
and
156 deletions
| ... | @@ -10,13 +10,22 @@ export function getSysSqdjywBysearch (data) { | ... | @@ -10,13 +10,22 @@ export function getSysSqdjywBysearch (data) { |
| 10 | data | 10 | data |
| 11 | }) | 11 | }) |
| 12 | } | 12 | } |
| 13 | // 读取明细 | 13 | /* |
| 14 | export function getSysSqdjywDetailById (id) { | 14 | 获取登记类型信息-申请业务规则 |
| 15 | */ | ||
| 16 | export function getDjlxInfo (id) { | ||
| 17 | return request({ | ||
| 18 | url: '/system/sysSqdjyw/getDjlxInfo?parentid=' + id, | ||
| 19 | method: 'post' | ||
| 20 | }) | ||
| 21 | } | ||
| 22 | |||
| 23 | /* | ||
| 24 | 读取申请登记业务信息-申请业务规则 | ||
| 25 | */ | ||
| 26 | export function getSqdjywDetail (bsmSqyw) { | ||
| 15 | return request({ | 27 | return request({ |
| 16 | url: '/system/sysSqdjyw/getSysSqdjywDetailById', | 28 | url: '/system/sysSqdjyw/getSqdjywDetail?bsmSqyw=' + bsmSqyw, |
| 17 | method: 'get', | 29 | method: 'get' |
| 18 | params: { | ||
| 19 | id: id | ||
| 20 | } | ||
| 21 | }) | 30 | }) |
| 22 | } | 31 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <!-- 编辑 --> | 2 | <!-- 编辑 --> |
| 3 | <dialogBox submitForm="submitForm" @closeDialog="closeDialog" @submitForm="handleSubmit" v-model="myValue" | 3 | <dialogBox submitForm="submitForm" @closeDialog="closeDialog" @submitForm="handleSubmit" width="80%" v-model="myValue" |
| 4 | :isSave="details.isenable == 1" title="字典信息" :saveloding="saveloding"> | 4 | :isSave="details.isenable == 1" title="字典信息" :saveloding="saveloding"> |
| 5 | <el-form :model="ruleForm" ref="ruleForm" label-width="120px"> | 5 | <el-form :model="ruleForm" ref="ruleForm" label-width="120px"> |
| 6 | <el-row :gutter="20"> | 6 | <el-row :gutter="20"> |
| ... | @@ -63,6 +63,7 @@ export default { | ... | @@ -63,6 +63,7 @@ export default { |
| 63 | }, | 63 | }, |
| 64 | { | 64 | { |
| 65 | prop: 'dcode', | 65 | prop: 'dcode', |
| 66 | width: '100', | ||
| 66 | label: '字典项编码', | 67 | label: '字典项编码', |
| 67 | render: (h, scope) => { | 68 | render: (h, scope) => { |
| 68 | return ( | 69 | return ( |
| ... | @@ -98,7 +99,7 @@ export default { | ... | @@ -98,7 +99,7 @@ export default { |
| 98 | }, | 99 | }, |
| 99 | { | 100 | { |
| 100 | prop: 'isenable', | 101 | prop: 'isenable', |
| 101 | width: '160px', | 102 | width: '160', |
| 102 | label: '是否禁用', | 103 | label: '是否禁用', |
| 103 | render: (h, scope) => { | 104 | render: (h, scope) => { |
| 104 | return ( | 105 | return ( |
| ... | @@ -112,6 +113,7 @@ export default { | ... | @@ -112,6 +113,7 @@ export default { |
| 112 | { | 113 | { |
| 113 | prop: 'normcode', | 114 | prop: 'normcode', |
| 114 | label: '部标编码', | 115 | label: '部标编码', |
| 116 | width: '100', | ||
| 115 | render: (h, scope) => { | 117 | render: (h, scope) => { |
| 116 | return ( | 118 | return ( |
| 117 | <div> | 119 | <div> |
| ... | @@ -144,7 +146,7 @@ export default { | ... | @@ -144,7 +146,7 @@ export default { |
| 144 | } | 146 | } |
| 145 | }, | 147 | }, |
| 146 | { | 148 | { |
| 147 | width: '130px', | 149 | width: '130', |
| 148 | label: '移动', | 150 | label: '移动', |
| 149 | render: (h, scope) => { | 151 | render: (h, scope) => { |
| 150 | return ( | 152 | return ( |
| ... | @@ -156,7 +158,7 @@ export default { | ... | @@ -156,7 +158,7 @@ export default { |
| 156 | } | 158 | } |
| 157 | }, | 159 | }, |
| 158 | { | 160 | { |
| 159 | width: '150px', | 161 | width: '150', |
| 160 | label: '操作', | 162 | label: '操作', |
| 161 | render: (h, scope) => { | 163 | render: (h, scope) => { |
| 162 | return ( | 164 | return ( | ... | ... |
| ... | @@ -3,16 +3,16 @@ | ... | @@ -3,16 +3,16 @@ |
| 3 | --> | 3 | --> |
| 4 | <template> | 4 | <template> |
| 5 | <div class='该组件名称'> | 5 | <div class='该组件名称'> |
| 6 | <el-form :model="ruleForm" :rules="rules" label-width="135px"> | 6 | <el-form :model="ruleForm" :rules="rules"> |
| 7 | <el-row :gutter="20"> | 7 | <el-row> |
| 8 | <el-col :span="8"> | 8 | <el-col :span="5"> |
| 9 | <el-form-item label="登记业务编码" prop="djywbm"> | 9 | <el-form-item label="登记业务编码"> |
| 10 | <el-input v-model="ruleForm.djywbm"></el-input> | 10 | {{ ruleForm.djywbm }} |
| 11 | </el-form-item> | 11 | </el-form-item> |
| 12 | </el-col> | 12 | </el-col> |
| 13 | <el-col :span="16"> | 13 | <el-col :span="12"> |
| 14 | <el-form-item label="登记业务名称" prop="djywmc"> | 14 | <el-form-item label="登记业务名称"> |
| 15 | <el-input v-model="ruleForm.djywmc"></el-input> | 15 | {{ ruleForm.djywmc }} |
| 16 | </el-form-item> | 16 | </el-form-item> |
| 17 | </el-col> | 17 | </el-col> |
| 18 | </el-row> | 18 | </el-row> |
| ... | @@ -25,23 +25,15 @@ | ... | @@ -25,23 +25,15 @@ |
| 25 | <script> | 25 | <script> |
| 26 | import { upward, down } from '@/utils/operation' | 26 | import { upward, down } from '@/utils/operation' |
| 27 | export default { | 27 | export default { |
| 28 | props: { | ||
| 29 | djqxList: { type: Array, default: [] }, | ||
| 30 | ruleForm: { | ||
| 31 | type: Object, default: {} | ||
| 32 | } | ||
| 33 | }, | ||
| 28 | data () { | 34 | data () { |
| 29 | return { | 35 | return { |
| 30 | key: 0, | 36 | key: 0, |
| 31 | ruleForm: { | ||
| 32 | djywbm: '', | ||
| 33 | djywmc: '' | ||
| 34 | }, | ||
| 35 | mcOptions: [ | ||
| 36 | { | ||
| 37 | name: '买卖', | ||
| 38 | value: '1' | ||
| 39 | }, | ||
| 40 | { | ||
| 41 | name: '买卖继承', | ||
| 42 | value: '2' | ||
| 43 | } | ||
| 44 | ], | ||
| 45 | rules: { | 37 | rules: { |
| 46 | djywbm: [ | 38 | djywbm: [ |
| 47 | { required: true, message: '登记业务编码', trigger: 'blur' }, | 39 | { required: true, message: '登记业务编码', trigger: 'blur' }, |
| ... | @@ -68,31 +60,32 @@ export default { | ... | @@ -68,31 +60,32 @@ export default { |
| 68 | type: 'index' | 60 | type: 'index' |
| 69 | }, | 61 | }, |
| 70 | { | 62 | { |
| 71 | prop: 'djqxbm', | 63 | prop: 'djywbm', |
| 64 | width: '100', | ||
| 72 | label: '登记情形编码', | 65 | label: '登记情形编码', |
| 73 | render: (h, scope) => { | 66 | render: (h, scope) => { |
| 74 | return ( | 67 | return ( |
| 75 | <el-input placeholder="登记情形编码" value={scope.row[scope.column.property]} | 68 | <el-input placeholder="登记情形编码" disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]} |
| 76 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 69 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 77 | ) | 70 | ) |
| 78 | } | 71 | } |
| 79 | }, | 72 | }, |
| 80 | { | 73 | { |
| 81 | prop: 'djqxmc', | 74 | prop: 'djywmc', |
| 82 | label: '登记情形名称', | 75 | label: '登记情形名称', |
| 83 | render: (h, scope) => { | 76 | render: (h, scope) => { |
| 84 | return ( | 77 | return ( |
| 85 | <el-input placeholder="登记情形名称" value={scope.row[scope.column.property]} | 78 | <el-input placeholder="登记情形名称" disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]} |
| 86 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 79 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 87 | ) | 80 | ) |
| 88 | } | 81 | } |
| 89 | }, | 82 | }, |
| 90 | { | 83 | { |
| 91 | label: '是否启用登记情形', | 84 | label: '是否启用登记情形', |
| 92 | width: '160', | 85 | width: '140', |
| 93 | render: (h, scope) => { | 86 | render: (h, scope) => { |
| 94 | return ( | 87 | return ( |
| 95 | <el-radio-group v-model={scope.row.sfqy} onChange={(val) => { scope.row[scope.column.property] = val }}> | 88 | <el-radio-group v-model={scope.row.sfqy} disabled={scope.row.sftsdjqx == '1'} onChange={(val) => { scope.row[scope.column.property] = val }}> |
| 96 | <el-radio label={1}>启用</el-radio> | 89 | <el-radio label={1}>启用</el-radio> |
| 97 | <el-radio label={0}>禁用</el-radio> | 90 | <el-radio label={0}>禁用</el-radio> |
| 98 | </el-radio-group> | 91 | </el-radio-group> |
| ... | @@ -100,21 +93,21 @@ export default { | ... | @@ -100,21 +93,21 @@ export default { |
| 100 | } | 93 | } |
| 101 | }, | 94 | }, |
| 102 | { | 95 | { |
| 103 | prop: 'djyymb', | 96 | prop: 'djyy', |
| 104 | label: '登记原因模板', | 97 | label: '登记原因模板', |
| 105 | render: (h, scope) => { | 98 | render: (h, scope) => { |
| 106 | return ( | 99 | return ( |
| 107 | <el-input placeholder="登记原因模板" value={scope.row[scope.column.property]} | 100 | <el-input placeholder="登记原因模板" disabled={scope.row.sftsdjqx == '1'} value={scope.row[scope.column.property]} |
| 108 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> | 101 | onInput={(val) => { scope.row[scope.column.property] = val }}></el-input> |
| 109 | ) | 102 | ) |
| 110 | } | 103 | } |
| 111 | }, | 104 | }, |
| 112 | { | 105 | { |
| 113 | label: '是否启用模板', | 106 | label: '是否启用模板', |
| 114 | width: '160', | 107 | width: '140', |
| 115 | render: (h, scope) => { | 108 | render: (h, scope) => { |
| 116 | return ( | 109 | return ( |
| 117 | <el-radio-group v-model={scope.row.sfqymb} onChange={(val) => { scope.row[scope.column.property] = val }}> | 110 | <el-radio-group v-model={scope.row.sfqymb} disabled={scope.row.sftsdjqx == '1'} onChange={(val) => { scope.row[scope.column.property] = val }}> |
| 118 | <el-radio label={1}>启用</el-radio> | 111 | <el-radio label={1}>启用</el-radio> |
| 119 | <el-radio label={0}>禁用</el-radio> | 112 | <el-radio label={0}>禁用</el-radio> |
| 120 | </el-radio-group> | 113 | </el-radio-group> |
| ... | @@ -123,7 +116,7 @@ export default { | ... | @@ -123,7 +116,7 @@ export default { |
| 123 | }, | 116 | }, |
| 124 | { | 117 | { |
| 125 | label: '移动', | 118 | label: '移动', |
| 126 | width: '90', | 119 | width: '80', |
| 127 | render: (h, scope) => { | 120 | render: (h, scope) => { |
| 128 | return ( | 121 | return ( |
| 129 | <div> | 122 | <div> |
| ... | @@ -134,23 +127,18 @@ export default { | ... | @@ -134,23 +127,18 @@ export default { |
| 134 | } | 127 | } |
| 135 | } | 128 | } |
| 136 | ], | 129 | ], |
| 137 | tableData: [{ | 130 | tableData: [] |
| 138 | djqxmc: '', | ||
| 139 | djqxbm: '', | ||
| 140 | djyymb: '', | ||
| 141 | sfqymb: 1, | ||
| 142 | sfqy: 1 | ||
| 143 | }, | ||
| 144 | { | ||
| 145 | djqxmc: '', | ||
| 146 | djqxbm: '', | ||
| 147 | djyymb: '', | ||
| 148 | sfqymb: 0, | ||
| 149 | sfqy: 0 | ||
| 150 | }] | ||
| 151 | } | 131 | } |
| 152 | }, | 132 | }, |
| 153 | watch: { | 133 | watch: { |
| 134 | djqxList: { | ||
| 135 | handler: function (newValue) { | ||
| 136 | this.tableData = newValue | ||
| 137 | console.log(this.tableData, 'this.tableDatathis.tableDatathis.tableData'); | ||
| 138 | }, | ||
| 139 | deep: true, | ||
| 140 | immediate: true | ||
| 141 | }, | ||
| 154 | tableData: { | 142 | tableData: { |
| 155 | handler (newValue, oldValue) { | 143 | handler (newValue, oldValue) { |
| 156 | this.$emit('updateValue', newValue) | 144 | this.$emit('updateValue', newValue) |
| ... | @@ -187,4 +175,7 @@ export default { | ... | @@ -187,4 +175,7 @@ export default { |
| 187 | } | 175 | } |
| 188 | </script> | 176 | </script> |
| 189 | <style scoped lang='scss'> | 177 | <style scoped lang='scss'> |
| 178 | /deep/.el-radio { | ||
| 179 | margin-right: 5px; | ||
| 180 | } | ||
| 190 | </style> | 181 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <dialogBox title="申请业务规则配置" @submitForm="submitForm" @closeDialog="closeDialog" v-model="value"> | 2 | <dialogBox title="申请业务规则配置" @submitForm="submitForm" @closeDialog="closeDialog" v-model="value"> |
| 3 | <ul class="edit-title-list"> | 3 | <ul class="edit-title-list" v-if="titleList.length > 0"> |
| 4 | <li v-for="(item, index) in titleList" @click="handleTitleSelct(item)" :key="index" | 4 | <li v-for="(item, index) in titleList" @click="handleTitleSelct(item, index)" :key="index" |
| 5 | :class="{ active: item.select }">{{ | 5 | :class="{ active: index == tn }">{{ |
| 6 | item.name | 6 | item.nodename |
| 7 | }}</li> | 7 | }}</li> |
| 8 | </ul> | 8 | </ul> |
| 9 | <div class="sqywgz-edit"> | 9 | <div class="sqywgz-edit"> |
| ... | @@ -16,18 +16,18 @@ | ... | @@ -16,18 +16,18 @@ |
| 16 | <el-form :model="ruleForm" v-if="n == 0" :rules="rules" label-width="135px" ref="ruleForm"> | 16 | <el-form :model="ruleForm" v-if="n == 0" :rules="rules" label-width="135px" ref="ruleForm"> |
| 17 | <el-row> | 17 | <el-row> |
| 18 | <el-col :span="8"> | 18 | <el-col :span="8"> |
| 19 | <el-form-item label="权利类型编码" prop="qllxbm"> | 19 | <el-form-item label="权利类型编码"> |
| 20 | <el-input v-model="ruleForm.qllxbm"></el-input> | 20 | <el-input v-model="ruleForm.qllxbm" disabled></el-input> |
| 21 | </el-form-item> | 21 | </el-form-item> |
| 22 | </el-col> | 22 | </el-col> |
| 23 | <el-col :span="8"> | 23 | <el-col :span="8"> |
| 24 | <el-form-item label="权利类型名称" prop="qllxmc"> | 24 | <el-form-item label="权利类型名称"> |
| 25 | <el-input v-model="ruleForm.qllxmc"></el-input> | 25 | <el-input v-model="ruleForm.qllxmc" disabled></el-input> |
| 26 | </el-form-item> | 26 | </el-form-item> |
| 27 | </el-col> | 27 | </el-col> |
| 28 | <el-col :span="8"> | 28 | <el-col :span="8"> |
| 29 | <el-form-item label="申请分类" prop="sqfl"> | 29 | <el-form-item label="申请分类"> |
| 30 | <el-select v-model="ruleForm.sqfl" placeholder="请选择" class="width100"> | 30 | <el-select v-model="ruleForm.sqfl" disabled placeholder="请选择" class="width100"> |
| 31 | <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> | 31 | <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> |
| 32 | </el-option> | 32 | </el-option> |
| 33 | </el-select> | 33 | </el-select> |
| ... | @@ -36,18 +36,18 @@ | ... | @@ -36,18 +36,18 @@ |
| 36 | </el-row> | 36 | </el-row> |
| 37 | <el-row> | 37 | <el-row> |
| 38 | <el-col :span="8"> | 38 | <el-col :span="8"> |
| 39 | <el-form-item label="登记类型编码" prop="djlxbm"> | 39 | <el-form-item label="登记类型编码"> |
| 40 | <el-input v-model="ruleForm.djlxbm"></el-input> | 40 | <el-input v-model="ruleForm.djlxbm" disabled></el-input> |
| 41 | </el-form-item> | 41 | </el-form-item> |
| 42 | </el-col> | 42 | </el-col> |
| 43 | <el-col :span="8"> | 43 | <el-col :span="8"> |
| 44 | <el-form-item label="登记类型名称" prop="djlxmc"> | 44 | <el-form-item label="登记类型名称"> |
| 45 | <el-input v-model="ruleForm.djlxmc"></el-input> | 45 | <el-input v-model="ruleForm.djlxmc" disabled></el-input> |
| 46 | </el-form-item> | 46 | </el-form-item> |
| 47 | </el-col> | 47 | </el-col> |
| 48 | <el-col :span="8"> | 48 | <el-col :span="8"> |
| 49 | <el-form-item label="发起业务单元类型" prop="fqywdylx"> | 49 | <el-form-item label="发起业务单元类型"> |
| 50 | <el-select v-model="ruleForm.fqywdylx" placeholder="请选择" class="width100"> | 50 | <el-select v-model="ruleForm.fqywdylx" disabled placeholder="请选择" class="width100"> |
| 51 | <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> | 51 | <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> |
| 52 | </el-option> | 52 | </el-option> |
| 53 | </el-select> | 53 | </el-select> |
| ... | @@ -56,13 +56,13 @@ | ... | @@ -56,13 +56,13 @@ |
| 56 | </el-row> | 56 | </el-row> |
| 57 | <el-row> | 57 | <el-row> |
| 58 | <el-col :span="8"> | 58 | <el-col :span="8"> |
| 59 | <el-form-item label="登记业务编码" prop="djywbm"> | 59 | <el-form-item label="登记业务编码"> |
| 60 | <el-input v-model="ruleForm.djywbm"></el-input> | 60 | <el-input v-model="ruleForm.djywbm" disabled></el-input> |
| 61 | </el-form-item> | 61 | </el-form-item> |
| 62 | </el-col> | 62 | </el-col> |
| 63 | <el-col :span="16"> | 63 | <el-col :span="16"> |
| 64 | <el-form-item label="登记业务名称" prop="djywmc"> | 64 | <el-form-item label="登记业务名称"> |
| 65 | <el-input v-model="ruleForm.djywmc"></el-input> | 65 | <el-input v-model="ruleForm.djywmc" disabled></el-input> |
| 66 | </el-form-item> | 66 | </el-form-item> |
| 67 | </el-col> | 67 | </el-col> |
| 68 | </el-row> | 68 | </el-row> |
| ... | @@ -113,7 +113,7 @@ | ... | @@ -113,7 +113,7 @@ |
| 113 | </el-col> | 113 | </el-col> |
| 114 | </el-row> | 114 | </el-row> |
| 115 | </el-form> | 115 | </el-form> |
| 116 | <djqxsd v-else-if="n == 1" @updateValue="getValue" /> | 116 | <djqxsd v-else-if="n == 1" :djqxList="djqxList" :ruleForm="ruleForm" @updateValue="getValue" /> |
| 117 | <clgzsd v-else-if="n == 2" @updateValue="getClValue" /> | 117 | <clgzsd v-else-if="n == 2" @updateValue="getClValue" /> |
| 118 | <dyztsd v-else /> | 118 | <dyztsd v-else /> |
| 119 | </div> | 119 | </div> |
| ... | @@ -126,6 +126,7 @@ import fileController from '@/api/fileController' | ... | @@ -126,6 +126,7 @@ import fileController from '@/api/fileController' |
| 126 | import djqxsd from './djqxsd.vue' | 126 | import djqxsd from './djqxsd.vue' |
| 127 | import clgzsd from './clgzsd.vue' | 127 | import clgzsd from './clgzsd.vue' |
| 128 | import dyztsd from './dyztsd.vue' | 128 | import dyztsd from './dyztsd.vue' |
| 129 | import { getSqdjywDetail } from '@/api/system' | ||
| 129 | export default { | 130 | export default { |
| 130 | components: { | 131 | components: { |
| 131 | djqxsd, | 132 | djqxsd, |
| ... | @@ -134,24 +135,25 @@ export default { | ... | @@ -134,24 +135,25 @@ export default { |
| 134 | }, | 135 | }, |
| 135 | props: { | 136 | props: { |
| 136 | value: { type: Boolean, default: false }, | 137 | value: { type: Boolean, default: false }, |
| 138 | detailList: { | ||
| 139 | type: Array, default: [] | ||
| 140 | } | ||
| 137 | }, | 141 | }, |
| 138 | data () { | 142 | watch: { |
| 139 | return { | 143 | detailList: { |
| 140 | titleList: [ | 144 | handler: function (newValue) { |
| 141 | { | 145 | console.log(newValue, 'detailListdetailListdetailListdetailList'); |
| 142 | name: '第一次登记', | 146 | this.titleList = newValue |
| 143 | select: true | 147 | this.getSqdjywDetail(newValue[0].bsmSqyw) |
| 144 | }, | ||
| 145 | { | ||
| 146 | name: '转移登记' | ||
| 147 | }, | ||
| 148 | { | ||
| 149 | name: '变更登记' | ||
| 150 | }, | 148 | }, |
| 151 | { | 149 | deep: true |
| 152 | name: '注销登记' | ||
| 153 | } | 150 | } |
| 154 | ], | 151 | }, |
| 152 | data () { | ||
| 153 | return { | ||
| 154 | djqxList: [], | ||
| 155 | tn: 0, | ||
| 156 | titleList: [], | ||
| 155 | imgUploadUrl: fileController.uploadUrl(), | 157 | imgUploadUrl: fileController.uploadUrl(), |
| 156 | n: 0, | 158 | n: 0, |
| 157 | leftList: [ | 159 | leftList: [ |
| ... | @@ -186,35 +188,8 @@ export default { | ... | @@ -186,35 +188,8 @@ export default { |
| 186 | }, | 188 | }, |
| 187 | requested: false, | 189 | requested: false, |
| 188 | fileList: [], | 190 | fileList: [], |
| 189 | options: [{ | 191 | options: [], |
| 190 | value: '选项1', | ||
| 191 | label: '黄金糕' | ||
| 192 | }], | ||
| 193 | rules: { | 192 | rules: { |
| 194 | qllxbm: [ | ||
| 195 | { required: true, message: '请输入权利类型编码', trigger: 'blur' }, | ||
| 196 | ], | ||
| 197 | qllxmc: [ | ||
| 198 | { required: true, message: '请输入权利类型名称', trigger: 'blur' }, | ||
| 199 | ], | ||
| 200 | sqfl: [ | ||
| 201 | { required: true, message: '请选择申请分类', trigger: 'change' }, | ||
| 202 | ], | ||
| 203 | djlxbm: [ | ||
| 204 | { required: true, message: '请输入登记类型编码', trigger: 'blur' }, | ||
| 205 | ], | ||
| 206 | djlxmc: [ | ||
| 207 | { required: true, message: '请输入登记类型名称', trigger: 'blur' }, | ||
| 208 | ], | ||
| 209 | fqywdylx: [ | ||
| 210 | { required: true, message: '请选择发起业务单元类型', trigger: 'change' }, | ||
| 211 | ], | ||
| 212 | djywbm: [ | ||
| 213 | { required: true, message: '请输入登记业务编码', trigger: 'blur' }, | ||
| 214 | ], | ||
| 215 | djywmc: [ | ||
| 216 | { required: true, message: '请输入登记业务名称', trigger: 'blur' }, | ||
| 217 | ], | ||
| 218 | sfqy: [ | 193 | sfqy: [ |
| 219 | { required: true, message: '请选择是否启用', trigger: 'change' }, | 194 | { required: true, message: '请选择是否启用', trigger: 'change' }, |
| 220 | ], | 195 | ], |
| ... | @@ -234,14 +209,17 @@ export default { | ... | @@ -234,14 +209,17 @@ export default { |
| 234 | }; | 209 | }; |
| 235 | }, | 210 | }, |
| 236 | methods: { | 211 | methods: { |
| 237 | handleTitleSelct (obj) { | 212 | getSqdjywDetail (bsmSqyw) { |
| 238 | this.titleList.forEach(item => { | 213 | getSqdjywDetail(bsmSqyw).then(res => { |
| 239 | if (item.select) { | 214 | let { ywDetail, djqx } = res.result |
| 240 | item.select = false | 215 | this.djqxList = djqx |
| 241 | } | 216 | this.ruleForm = ywDetail |
| 242 | }) | 217 | }) |
| 218 | }, | ||
| 219 | handleTitleSelct (obj, index) { | ||
| 243 | this.n = 0 | 220 | this.n = 0 |
| 244 | this.$set(obj, 'select', true) | 221 | this.tn = index |
| 222 | this.getSqdjywDetail(obj.bsmSqyw) | ||
| 245 | }, | 223 | }, |
| 246 | getValue (val) { | 224 | getValue (val) { |
| 247 | console.log(val); | 225 | console.log(val); | ... | ... |
| ... | @@ -29,19 +29,19 @@ | ... | @@ -29,19 +29,19 @@ |
| 29 | </div> | 29 | </div> |
| 30 | <!-- 表格 --> | 30 | <!-- 表格 --> |
| 31 | <div class="from-clues-content"> | 31 | <div class="from-clues-content"> |
| 32 | <lb-table :page-size="pageData.pageSize" :current-page.sync="pageData.currentPage" :total="tableData.total" | 32 | <lb-table :page-size="pageData.pageSize" :loading="loading" :current-page.sync="pageData.currentPage" |
| 33 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" | 33 | :total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
| 34 | :data="tableData.data"> | 34 | :column="tableData.columns" :data="tableData.data"> |
| 35 | </lb-table> | 35 | </lb-table> |
| 36 | </div> | 36 | </div> |
| 37 | <editDialog v-model="isDialog" /> | 37 | <editDialog v-model="isDialog" :detailList="detailList" /> |
| 38 | </div> | 38 | </div> |
| 39 | </template> | 39 | </template> |
| 40 | <script> | 40 | <script> |
| 41 | import table from "@/utils/mixin/table" | 41 | import table from "@/utils/mixin/table" |
| 42 | import editDialog from "./components/editDialog.vue" | 42 | import editDialog from "./components/editDialog.vue" |
| 43 | import { datas, sendThis } from "./sqywgzdata" | 43 | import { datas, sendThis } from "./sqywgzdata" |
| 44 | import { getSysSqdjywBysearch } from "@/api/sqywgz.js" | 44 | import { getSysSqdjywBysearch, getDjlxInfo } from "@/api/system.js" |
| 45 | export default { | 45 | export default { |
| 46 | name: "djbcx", | 46 | name: "djbcx", |
| 47 | components: { | 47 | components: { |
| ... | @@ -53,6 +53,7 @@ export default { | ... | @@ -53,6 +53,7 @@ export default { |
| 53 | }, | 53 | }, |
| 54 | data () { | 54 | data () { |
| 55 | return { | 55 | return { |
| 56 | loading: false, | ||
| 56 | isDialog: false, | 57 | isDialog: false, |
| 57 | queryForm: { | 58 | queryForm: { |
| 58 | qllx: "", | 59 | qllx: "", |
| ... | @@ -63,7 +64,8 @@ export default { | ... | @@ -63,7 +64,8 @@ export default { |
| 63 | total: 0, | 64 | total: 0, |
| 64 | columns: datas.columns(), | 65 | columns: datas.columns(), |
| 65 | data: [] | 66 | data: [] |
| 66 | } | 67 | }, |
| 68 | detailList: [] | ||
| 67 | } | 69 | } |
| 68 | }, | 70 | }, |
| 69 | methods: { | 71 | methods: { |
| ... | @@ -73,18 +75,22 @@ export default { | ... | @@ -73,18 +75,22 @@ export default { |
| 73 | }, | 75 | }, |
| 74 | // 初始化数据 | 76 | // 初始化数据 |
| 75 | fetchData () { | 77 | fetchData () { |
| 78 | this.loading = true | ||
| 76 | getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(res => { | 79 | getSysSqdjywBysearch({ ...this.queryForm, ...this.pageData }).then(res => { |
| 77 | if (res.code === 200) { | 80 | if (res.code === 200) { |
| 81 | this.loading = false | ||
| 78 | let { total, records } = res.result | 82 | let { total, records } = res.result |
| 79 | this.tableData.total = total | 83 | this.tableData.total = total |
| 80 | this.tableData.data = records | 84 | this.tableData.data = records |
| 81 | } | 85 | } |
| 82 | }) | 86 | }) |
| 83 | }, | 87 | }, |
| 84 | |||
| 85 | //编辑 | 88 | //编辑 |
| 86 | editClick () { | 89 | editClick (row) { |
| 87 | this.isDialog = true | 90 | this.isDialog = true |
| 91 | getDjlxInfo(row.bsmSqyw).then(res => { | ||
| 92 | this.detailList = res.result | ||
| 93 | }) | ||
| 88 | } | 94 | } |
| 89 | }, | 95 | }, |
| 90 | }; | 96 | }; | ... | ... |
| ... | @@ -38,24 +38,6 @@ class data extends filter { | ... | @@ -38,24 +38,6 @@ class data extends filter { |
| 38 | prop: "nodename",// | 38 | prop: "nodename",// |
| 39 | label: "权利类型", | 39 | label: "权利类型", |
| 40 | }, | 40 | }, |
| 41 | |||
| 42 | // { | ||
| 43 | // // prop: "djywmc",//补换证登记 || 补证 | ||
| 44 | // label: "权利类型", | ||
| 45 | // render: (h, scope) => { | ||
| 46 | // var djywmcs= scope.row.djywmc.split('||'); | ||
| 47 | // var qllx=djywmcs[0]; | ||
| 48 | // return ( | ||
| 49 | // <div> | ||
| 50 | // <span>{qllx}</span> | ||
| 51 | // </div> | ||
| 52 | // ); | ||
| 53 | // } | ||
| 54 | // }, | ||
| 55 | // { | ||
| 56 | // prop: "nodename",// | ||
| 57 | // label: "登记类型", | ||
| 58 | // }, | ||
| 59 | { | 41 | { |
| 60 | prop: "fqywdylx", | 42 | prop: "fqywdylx", |
| 61 | label: "发起业务单元类型", | 43 | label: "发起业务单元类型", |
| ... | @@ -85,7 +67,7 @@ class data extends filter { | ... | @@ -85,7 +67,7 @@ class data extends filter { |
| 85 | render: (h, scope) => { | 67 | render: (h, scope) => { |
| 86 | return ( | 68 | return ( |
| 87 | <div> | 69 | <div> |
| 88 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.editClick(scope) }}>修改</el-button> | 70 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.editClick(scope.row) }}>修改</el-button> |
| 89 | </div> | 71 | </div> |
| 90 | ) | 72 | ) |
| 91 | } | 73 | } | ... | ... |
-
Please register or sign in to post a comment