style:登记
Showing
3 changed files
with
98 additions
and
96 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-05-06 10:03:44 | 4 | * @LastEditTime: 2023-05-06 10:24:46 |
| 5 | --> | 5 | --> |
| 6 | <!DOCTYPE html> | 6 | <!DOCTYPE html> |
| 7 | <html> | 7 | <html> |
| ... | @@ -18,11 +18,10 @@ | ... | @@ -18,11 +18,10 @@ |
| 18 | </title> | 18 | </title> |
| 19 | </head> | 19 | </head> |
| 20 | <script> | 20 | <script> |
| 21 | const appConfig = fetch('<%= BASE_URL %>config.json') | 21 | fetch('<%= BASE_URL %>config.json') |
| 22 | .then(response => response.json()) | 22 | .then(response => response.json()) |
| 23 | .then(config => { | 23 | .then(config => { |
| 24 | window.config = config | 24 | window.config = config |
| 25 | console.log(window.config, '1111111111111111111111'); | ||
| 26 | }); | 25 | }); |
| 27 | </script> | 26 | </script> |
| 28 | 27 | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | <div> | 2 | <div> |
| 3 | <lb-table :column="column" :pagination="false" :key="key" :data="tableDataList"> | 3 | <lb-table :column="column" :pagination="false" :key="key" :heightNumSetting="true" :minHeight="150" |
| 4 | :data="tableDataList"> | ||
| 4 | </lb-table> | 5 | </lb-table> |
| 5 | <addQlr v-model="dialog" :details="details" :showButton="showButton" @updateDetail="handleupdateDetail" /> | 6 | <addQlr v-model="dialog" :details="details" :showButton="showButton" @updateDetail="handleupdateDetail" /> |
| 6 | </div> | 7 | </div> | ... | ... |
| ... | @@ -138,8 +138,8 @@ | ... | @@ -138,8 +138,8 @@ |
| 138 | <el-col :span="6" v-show="ruleForm.slywxx.gyfs == '1'"> | 138 | <el-col :span="6" v-show="ruleForm.slywxx.gyfs == '1'"> |
| 139 | <el-form-item label="是否分别持证:"> | 139 | <el-form-item label="是否分别持证:"> |
| 140 | <el-radio-group v-model="ruleForm.slywxx.sqfbcz"> | 140 | <el-radio-group v-model="ruleForm.slywxx.sqfbcz"> |
| 141 | <el-radio :label = 1>是</el-radio> | 141 | <el-radio :label=1>是</el-radio> |
| 142 | <el-radio :label = 0>否</el-radio> | 142 | <el-radio :label=0>否</el-radio> |
| 143 | </el-radio-group> | 143 | </el-radio-group> |
| 144 | </el-form-item> | 144 | </el-form-item> |
| 145 | </el-col> | 145 | </el-col> |
| ... | @@ -152,16 +152,15 @@ | ... | @@ -152,16 +152,15 @@ |
| 152 | </el-form-item> | 152 | </el-form-item> |
| 153 | </el-col> | 153 | </el-col> |
| 154 | </el-row> | 154 | </el-row> |
| 155 | <qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList" | 155 | <qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList" :key="key" |
| 156 | :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" /> | 156 | :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" /> |
| 157 | 157 | ||
| 158 | |||
| 159 | <div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0"> | 158 | <div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0"> |
| 160 | <div class="slxx_title title-block"> | 159 | <div class="slxx_title title-block"> |
| 161 | 义务人信息 | 160 | 义务人信息 |
| 162 | <div class="triangle"></div> | 161 | <div class="triangle"></div> |
| 163 | </div> | 162 | </div> |
| 164 | <qlrCommonTable v-if="ruleForm.ywrList" :tableData="ruleForm.ywrList" @upDateQlrxxList="upDateYwrxxList" | 163 | <qlrCommonTable v-if="ruleForm.ywrList" :tableData="ruleForm.ywrList" :key="key" @upDateQlrxxList="upDateYwrxxList" |
| 165 | :viewtype="$route.query.viewtype" /> | 164 | :viewtype="$route.query.viewtype" /> |
| 166 | </div> | 165 | </div> |
| 167 | 166 | ||
| ... | @@ -188,53 +187,56 @@ | ... | @@ -188,53 +187,56 @@ |
| 188 | </div> | 187 | </div> |
| 189 | </template> | 188 | </template> |
| 190 | <script> | 189 | <script> |
| 191 | import { mapGetters } from "vuex" | 190 | import { mapGetters } from "vuex" |
| 192 | import { Init, saveData } from "@/api/workflow/jsydsyqFlow.js" | 191 | import { Init, saveData } from "@/api/workflow/jsydsyqFlow.js" |
| 193 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable" | 192 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable" |
| 194 | export default { | 193 | export default { |
| 195 | mounted () { | 194 | mounted () { |
| 196 | this.propsParam = this.$attrs; | 195 | this.propsParam = this.$attrs; |
| 197 | var formdata = new FormData(); | 196 | var formdata = new FormData(); |
| 198 | let that = this | 197 | let that = this |
| 199 | this.$startLoading(); | 198 | this.$startLoading(); |
| 200 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 199 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 201 | formdata.append("djlx", this.propsParam.djlx); | 200 | formdata.append("djlx", this.propsParam.djlx); |
| 202 | Init(formdata).then((res) => { | 201 | Init(formdata).then((res) => { |
| 203 | this.$nextTick(() => { | 202 | this.$nextTick(() => { |
| 204 | that.ruleForm = res.result; | 203 | that.ruleForm = res.result; |
| 205 | that.$endLoading(); | 204 | that.$endLoading(); |
| 206 | that.isShow = true; | 205 | that.isShow = true; |
| 207 | this.czrOptions=this.ruleForm.qlrList; | 206 | this.czrOptions = this.ruleForm.qlrList; |
| 207 | }) | ||
| 208 | }) | 208 | }) |
| 209 | }) | ||
| 210 | }, | ||
| 211 | components: { qlrCommonTable }, | ||
| 212 | computed: { | ||
| 213 | ...mapGetters(["dictData", "flag"]) | ||
| 214 | }, | ||
| 215 | data () { | ||
| 216 | return { | ||
| 217 | isShow: false, | ||
| 218 | disabled: true, | ||
| 219 | czrOptions: [], | ||
| 220 | ruleForm: {}, | ||
| 221 | //传递参数 | ||
| 222 | propsParam: {}, | ||
| 223 | rules: {} | ||
| 224 | } | ||
| 225 | }, | ||
| 226 | methods: { | ||
| 227 | // 更新权利人信息 | ||
| 228 | upDateQlrxxList (val) { | ||
| 229 | this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val)) | ||
| 230 | this.czrOptions=this.ruleForm.qlrList; | ||
| 231 | }, | 209 | }, |
| 232 | // 更新义务人信息 | 210 | components: { qlrCommonTable }, |
| 233 | upDateYwrxxList (val) { | 211 | computed: { |
| 234 | this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val)) | 212 | ...mapGetters(["dictData", "flag"]) |
| 213 | }, | ||
| 214 | data () { | ||
| 215 | return { | ||
| 216 | key: 0, | ||
| 217 | isShow: false, | ||
| 218 | disabled: true, | ||
| 219 | czrOptions: [], | ||
| 220 | ruleForm: {}, | ||
| 221 | //传递参数 | ||
| 222 | propsParam: {}, | ||
| 223 | rules: {} | ||
| 224 | } | ||
| 235 | }, | 225 | }, |
| 236 | onSubmit () { | 226 | methods: { |
| 237 | if (this.ruleForm.qlrList.length == 0) { | 227 | // 更新权利人信息 |
| 228 | upDateQlrxxList (val) { | ||
| 229 | this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val)) | ||
| 230 | this.czrOptions = this.ruleForm.qlrList; | ||
| 231 | this.key++ | ||
| 232 | }, | ||
| 233 | // 更新义务人信息 | ||
| 234 | upDateYwrxxList (val) { | ||
| 235 | this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val)) | ||
| 236 | this.key++ | ||
| 237 | }, | ||
| 238 | onSubmit () { | ||
| 239 | if (this.ruleForm.qlrList.length == 0) { | ||
| 238 | this.$message({ | 240 | this.$message({ |
| 239 | showClose: true, | 241 | showClose: true, |
| 240 | message: "请确认权利人信息", | 242 | message: "请确认权利人信息", |
| ... | @@ -242,53 +244,53 @@ export default { | ... | @@ -242,53 +244,53 @@ export default { |
| 242 | }); | 244 | }); |
| 243 | return false; | 245 | return false; |
| 244 | } | 246 | } |
| 245 | 247 | ||
| 246 | if (this.ruleForm.slywxx.gyfs == "0") { | 248 | if (this.ruleForm.slywxx.gyfs == "0") { |
| 247 | if (this.ruleForm.qlrList.length > 1) { | 249 | if (this.ruleForm.qlrList.length > 1) { |
| 248 | this.$message({ | 250 | this.$message({ |
| 249 | showClose: true, | 251 | showClose: true, |
| 250 | message: "共有方式:单独所有,权利人只能是一个人", | 252 | message: "共有方式:单独所有,权利人只能是一个人", |
| 251 | type: "error", | 253 | type: "error", |
| 252 | }); | 254 | }); |
| 253 | return false; | 255 | return false; |
| 256 | } | ||
| 257 | this.ruleForm.qlrList[0].sfczr = "1"; | ||
| 254 | } | 258 | } |
| 255 | this.ruleForm.qlrList[0].sfczr="1"; | 259 | if (this.ruleForm.slywxx.gyfs == "1") { |
| 256 | } | 260 | //是否分别持证 |
| 257 | if (this.ruleForm.slywxx.gyfs == "1") { | 261 | if (this.ruleForm.slywxx.sqfbcz == '1') { //是 |
| 258 | //是否分别持证 | 262 | this.ruleForm.qlrList.forEach((item, index) => { |
| 259 | if(this.ruleForm.slywxx.sqfbcz == '1'){ //是 | ||
| 260 | this.ruleForm.qlrList.forEach((item, index) => { | ||
| 261 | item.sfczr = "1"; | ||
| 262 | }); | ||
| 263 | }else{ | ||
| 264 | this.ruleForm.qlrList.forEach((item, index) => { | ||
| 265 | if(item.zjh==this.ruleForm.czr){ | ||
| 266 | item.sfczr = "1"; | 263 | item.sfczr = "1"; |
| 267 | } | 264 | }); |
| 268 | }); | 265 | } else { |
| 269 | } | 266 | this.ruleForm.qlrList.forEach((item, index) => { |
| 270 | } | 267 | if (item.zjh == this.ruleForm.czr) { |
| 271 | 268 | item.sfczr = "1"; | |
| 272 | saveData(this.ruleForm).then((res) => { | 269 | } |
| 273 | if (res.code === 200) { | 270 | }); |
| 274 | this.$message({ | 271 | } |
| 275 | showClose: true, | ||
| 276 | message: "保存成功!", | ||
| 277 | type: "success", | ||
| 278 | }); | ||
| 279 | } else { | ||
| 280 | this.$message({ | ||
| 281 | showClose: true, | ||
| 282 | message: res.message, | ||
| 283 | type: "error", | ||
| 284 | }); | ||
| 285 | } | 272 | } |
| 286 | }); | 273 | |
| 274 | saveData(this.ruleForm).then((res) => { | ||
| 275 | if (res.code === 200) { | ||
| 276 | this.$message({ | ||
| 277 | showClose: true, | ||
| 278 | message: "保存成功!", | ||
| 279 | type: "success", | ||
| 280 | }); | ||
| 281 | } else { | ||
| 282 | this.$message({ | ||
| 283 | showClose: true, | ||
| 284 | message: res.message, | ||
| 285 | type: "error", | ||
| 286 | }); | ||
| 287 | } | ||
| 288 | }); | ||
| 289 | }, | ||
| 287 | }, | 290 | }, |
| 288 | }, | 291 | }; |
| 289 | }; | ||
| 290 | </script> | 292 | </script> |
| 291 | <style scoped lang='scss'> | 293 | <style scoped lang='scss'> |
| 292 | @import "~@/styles/public.scss"; | 294 | @import "~@/styles/public.scss"; |
| 293 | @import "~@/styles/slxx/slxx.scss"; | 295 | @import "~@/styles/slxx/slxx.scss"; |
| 294 | </style> | 296 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment