0ff0feb9 by 蔡俊立
2 parents b6291a76 04b94314
...@@ -66,16 +66,16 @@ export default { ...@@ -66,16 +66,16 @@ export default {
66 label: "姓名/名称" 66 label: "姓名/名称"
67 }, 67 },
68 { 68 {
69 prop: "dlrzjlx", 69 prop: "zjzl",
70 label: "证件种类" 70 label: "证件种类"
71 }, 71 },
72 { 72 {
73 prop: "dlrzjh", 73 prop: "zjh",
74 label: "证件号" 74 label: "证件号"
75 }, 75 },
76 { 76 {
77 prop: "fr", 77 prop: "dh",
78 label: "法人" 78 label: "联系电话"
79 }, 79 },
80 { 80 {
81 label: '修改', 81 label: '修改',
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
32 </el-form-item> 32 </el-form-item>
33 </el-col> 33 </el-col>
34 <el-col :span="8"> 34 <el-col :span="8">
35 <el-form-item label="联系电话" prop="dh" :rules="$rules.common.phone"> 35 <el-form-item label="联系电话" prop="dh">
36 <el-input v-model="ruleForm.dh" maxlength="11"></el-input> 36 <el-input v-model="ruleForm.dh" maxlength="11"></el-input>
37 </el-form-item> 37 </el-form-item>
38 </el-col> 38 </el-col>
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
133 <el-row :gutter="10"> 133 <el-row :gutter="10">
134 <el-col :span="14" v-if="ruleForm.qlxx"> 134 <el-col :span="14" v-if="ruleForm.qlxx">
135 <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:"> 135 <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:">
136 <el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.qlxx.gyfs"> 136 <el-radio-group :disabled="$route.query.viewtype==1" v-model="ruleForm.slywxx.gyfs">
137 <el-radio label="1">单独所有</el-radio> 137 <el-radio label="1">单独所有</el-radio>
138 <el-radio label="2">共同共有</el-radio> 138 <el-radio label="2">共同共有</el-radio>
139 <el-radio label="3">按份所有</el-radio> 139 <el-radio label="3">按份所有</el-radio>
...@@ -160,6 +160,12 @@ ...@@ -160,6 +160,12 @@
160 <InformationTable v-if="ruleForm.qlxx" @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList" 160 <InformationTable v-if="ruleForm.qlxx" @upDateQlrxxList="upDateQlrxxList" :tableData="ruleForm.qlrList"
161 :gyfs="ruleForm.qlxx.gyfs" /> 161 :gyfs="ruleForm.qlxx.gyfs" />
162 <div class="slxx_title title-block"> 162 <div class="slxx_title title-block">
163 义务人信息
164 <div class="triangle"></div>
165 </div>
166 <InformationTable v-if="ruleForm.qlxx" @upDateQlrxxList="upDateYwrxxList" :tableData="ruleForm.ywrList"
167 :gyfs="ruleForm.qlxx.gyfs" />
168 <div class="slxx_title title-block">
163 登记原因 169 登记原因
164 <div class="triangle"></div> 170 <div class="triangle"></div>
165 </div> 171 </div>
...@@ -221,7 +227,11 @@ export default { ...@@ -221,7 +227,11 @@ export default {
221 methods: { 227 methods: {
222 // 更新权利人信息 228 // 更新权利人信息
223 upDateQlrxxList (val) { 229 upDateQlrxxList (val) {
224 this.ruleForm.qlrxx = val 230 this.ruleForm.qlrList = _.cloneDeep(val);
231 },
232 // 更新权利人信息
233 upDateYwrxxList (val) {
234 this.ruleForm.ywrList = _.cloneDeep(val);
225 }, 235 },
226 list (bsmSldy) { 236 list (bsmSldy) {
227 var formdata = new FormData(); 237 var formdata = new FormData();
......
...@@ -147,6 +147,11 @@ ...@@ -147,6 +147,11 @@
147 <InformationTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList" 147 <InformationTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList"
148 :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" /> 148 :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" />
149 <div class="slxx_title title-block"> 149 <div class="slxx_title title-block">
150 义务人信息
151 <div class="triangle"></div> </div>
152 <InformationTable :tableData="ruleForm.ywrList" @upDateQlrxxList="upDateYwrxxList"
153 :viewtype="$route.query.viewtype" />
154 <div class="slxx_title title-block">
150 登记原因 155 登记原因
151 <div class="triangle"></div> 156 <div class="triangle"></div>
152 </div> 157 </div>
...@@ -169,22 +174,17 @@ ...@@ -169,22 +174,17 @@
169 </template> 174 </template>
170 <script> 175 <script>
171 import InformationTable from "@/views/workflow/components/InformationTable"; 176 import InformationTable from "@/views/workflow/components/InformationTable";
172 import { Init, fristReg } from "@/api/jsydsyqFlow.js"; 177 import { Init, saveData } from "@/api/jsydsyqFlow.js";
173 import { mapGetters } from "vuex"; 178 import { mapGetters } from "vuex";
174 export default { 179 export default {
175 async created () { 180 async created() {
176 this.propsParam = this.$attrs; 181 this.propsParam = this.$attrs;
177 var formdata = new FormData(); 182 var formdata = new FormData();
178 formdata.append("bsmSldy", this.propsParam.bsmSldy); 183 formdata.append("bsmSldy", this.propsParam.bsmSldy);
179 formdata.append("djlx", this.propsParam.djlx); 184 formdata.append("djlx", this.propsParam.djlx);
180 Init(formdata).then((res) => { 185 Init(formdata).then((res) => {
181 if (res.code === 200 && res.result) { 186 if (res.code === 200 && res.result) {
182 this.ruleForm = { 187 this.ruleForm = res.result;
183 ...res.result,
184 ...res.result.zdjbxxdatas,
185 ...res.result.qlxxdatas,
186 ...res.result.jsydsyqdatas,
187 };
188 } 188 }
189 }); 189 });
190 }, 190 },
...@@ -192,7 +192,7 @@ export default { ...@@ -192,7 +192,7 @@ export default {
192 computed: { 192 computed: {
193 ...mapGetters(["dictData", "flag"]), 193 ...mapGetters(["dictData", "flag"]),
194 }, 194 },
195 data () { 195 data() {
196 return { 196 return {
197 disabled: true, 197 disabled: true,
198 czrOptions: [], 198 czrOptions: [],
...@@ -228,7 +228,14 @@ export default { ...@@ -228,7 +228,14 @@ export default {
228 }; 228 };
229 }, 229 },
230 methods: { 230 methods: {
231 list (bsmSldy) { 231 // 更新权利人信息
232 upDateQlrxxList (val) {
233 this.ruleForm.qlrList = _.cloneDeep(val);
234 }, // 更新权利人信息
235 upDateYwrxxList (val) {
236 this.ruleForm.ywrList = _.cloneDeep(val);
237 },
238 list(bsmSldy) {
232 var formdata = new FormData(); 239 var formdata = new FormData();
233 formdata.append("bsmSldy", bsmSldy); 240 formdata.append("bsmSldy", bsmSldy);
234 Init(formdata).then((res) => { 241 Init(formdata).then((res) => {
...@@ -242,8 +249,8 @@ export default { ...@@ -242,8 +249,8 @@ export default {
242 } 249 }
243 }); 250 });
244 }, 251 },
245 onSubmit () { 252 onSubmit() {
246 fristReg(this.ruleForm).then((res) => { 253 saveData(this.ruleForm).then((res) => {
247 if (res.code === 200 && res.result) { 254 if (res.code === 200 && res.result) {
248 console.log(res); 255 console.log(res);
249 //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } 256 //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas }
......