43053f50 by jiaozeping@pashanhoo.com
2 parents a1607cf3 b0c09b49
1 <template> 1 <template>
2 <dialogBox title="其他及附记模板" @submitForm="submitForm" @closeDialog="closeDialog" v-model="value"> 2 <dialogBox title="其他及附记模板" @submitForm="submitForm" width="60%" @closeDialog="closeDialog" v-model="value">
3 <div class="qtjfjmb-edit-title">
4 <b>权利信息</b>
5 </div>
6 <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="140px">
7 <el-row>
8 <el-col :span="12">
9 <el-form-item label="权利类型编码" prop="qllxbm">
10 <el-input v-model="ruleForm.qllxbm"></el-input>
11 </el-form-item>
12 </el-col>
13 <el-col :span="12">
14 <el-form-item label="权利类型名称" prop="qllxmc">
15 <el-input v-model="ruleForm.qllxmc"></el-input>
16 </el-form-item>
17 </el-col>
18 </el-row>
19 <el-row>
20 <el-col :span="12">
21 <el-form-item label="不动产权类型" prop="bdcqlx">
22 <el-select v-model="ruleForm.bdcqlx" class="width100" placeholder="请选择">
23 <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
24 </el-option>
25 </el-select>
26 </el-form-item>
27 </el-col>
28 <el-col :span="12">
29 <el-form-item label="打印模板" prop="dymb">
30 <el-input v-model="ruleForm.dymb"></el-input>
31 </el-form-item>
32 </el-col>
33 </el-row>
34 <el-row>
35 <el-col :span="24">
36 <el-form-item label="权利其他状况模板" prop="qlqtztmb">
37 <el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="ruleForm.qlqtztmb">
38 </el-input>
39 </el-form-item>
40 </el-col>
41 </el-row>
3 42
43 <div class="qtjfjmb-edit-title">
44 <b>附记内容设置</b>
45 </div>
46 <ul>
47 <li v-for="(item, index) in titleList" @click="handleSelect(index)" :class="{ 'active': n == index }"
48 :key="index">{{ item.name }}</li>
49 </ul>
50 <el-row v-if="n == 0">
51 <el-col :span="24">
52 <el-form-item label="附记模板1" prop="fjmb1">
53 <el-input type="textarea" :rows="5" placeholder="请输入内容" v-model="ruleForm.fjmb1">
54 </el-input>
55 </el-form-item>
56 </el-col>
57 </el-row>
58 <el-row v-else-if="n == 1">
59 <el-col :span="24">
60 <el-form-item label="附记模板2" prop="fjmb2">
61 <el-input type="textarea" :rows="5" placeholder="请输入内容" v-model="ruleForm.fjmb2">
62 </el-input>
63 </el-form-item>
64 </el-col>
65 </el-row>
66 </el-form>
4 </dialogBox> 67 </dialogBox>
5 </template> 68 </template>
6 69
...@@ -13,10 +76,66 @@ export default { ...@@ -13,10 +76,66 @@ export default {
13 }, 76 },
14 data () { 77 data () {
15 return { 78 return {
16 79 n: 0,
80 ruleForm: {
81 qllxbm: '',
82 qllxmc: '',
83 bdcqlx: '',
84 dymb: '',
85 qlqtztmb: '',
86 fjmb1: '',
87 fjmb2: ''
88 },
89 options: [],
90 rules: {
91 qllxbm: [
92 { required: true, message: '请输入权利类型编码', trigger: 'blur' }
93 ],
94 qllxmc: [
95 { required: true, message: '请输入权利类型名称', trigger: 'blur' }
96 ],
97 bdcqlx: [
98 { required: true, message: '请选择不动产权类型', trigger: 'change' }
99 ],
100 dymb: [
101 { required: true, message: '请输入打印模板', trigger: 'blur' }
102 ],
103 qlqtztmb: [
104 { required: true, message: '请输入权利其他状况模板', trigger: 'blur' }
105 ],
106 fjmb: [
107 { required: true, message: '请输入附记模板', trigger: 'blur' }
108 ],
109 },
110 titleList: [
111 {
112 name: '首次登记'
113 },
114 {
115 name: '转移登记'
116 },
117 {
118 name: '变更登记'
119 },
120 {
121 name: '注销登记'
122 },
123 {
124 name: '更正登记'
125 },
126 {
127 name: '补证登记'
128 },
129 {
130 name: '换证登记'
131 }
132 ]
17 } 133 }
18 }, 134 },
19 methods: { 135 methods: {
136 handleSelect (index) {
137 this.n = index
138 },
20 submitForm () { 139 submitForm () {
21 this.$emit('input', false) 140 this.$emit('input', false)
22 }, 141 },
...@@ -28,4 +147,36 @@ export default { ...@@ -28,4 +147,36 @@ export default {
28 </script> 147 </script>
29 <style scoped lang="scss"> 148 <style scoped lang="scss">
30 @import "~@/styles/mixin.scss"; 149 @import "~@/styles/mixin.scss";
150
151 .qtjfjmb-edit-title {
152 padding-bottom: 10px;
153 border-bottom: 1px solid $borderColor;
154 margin-bottom: 10px;
155 }
156
157 ul {
158 @include flex;
159 border-radius: 5px;
160 overflow: hidden;
161 margin-bottom: 20px;
162
163 .active {
164 background: $light-blue;
165 color: #fff;
166 }
167
168 li {
169 flex: 1;
170 line-height: 36px;
171 @include flex-center;
172 border: 1px solid $borderColor;
173 margin-left: -1px;
174 cursor: pointer;
175 transition: all 0.3s;
176
177 &:hover {
178 @extend .active;
179 }
180 }
181 }
31 </style> 182 </style>
......
...@@ -28,14 +28,17 @@ ...@@ -28,14 +28,17 @@
28 :data="tableData.data"> 28 :data="tableData.data">
29 </lb-table> 29 </lb-table>
30 </div> 30 </div>
31 <editDialog v-model="isDialog" />
31 </div> 32 </div>
32 </template> 33 </template>
33 <script> 34 <script>
34 import table from "@/utils/mixin/table" 35 import table from "@/utils/mixin/table"
35 import { datas, sendThis } from "./qtjfjmb" 36 import { datas, sendThis } from "./qtjfjmb"
37 import editDialog from "./components/editDialog.vue"
36 export default { 38 export default {
37 name: "djbcx", 39 name: "djbcx",
38 components: { 40 components: {
41 editDialog
39 }, 42 },
40 mixins: [table], 43 mixins: [table],
41 mounted () { 44 mounted () {
......