style:受理申请
Showing
8 changed files
with
565 additions
and
558 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-05-17 10:43:15 | 4 | * @LastEditTime: 2023-05-24 17:11:21 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
| ... | @@ -238,7 +238,7 @@ | ... | @@ -238,7 +238,7 @@ |
| 238 | </el-row> | 238 | </el-row> |
| 239 | 239 | ||
| 240 | </div> | 240 | </div> |
| 241 | <el-row class="btn" v-if="!$route.query.viewtype"> | 241 | <el-row class="btn" v-if="!$route.query.viewtype && propsParam.issave=='0'"> |
| 242 | <el-form-item> | 242 | <el-form-item> |
| 243 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> | 243 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> |
| 244 | </el-form-item> | 244 | </el-form-item> |
| ... | @@ -294,6 +294,7 @@ | ... | @@ -294,6 +294,7 @@ |
| 294 | message: "保存成功!", | 294 | message: "保存成功!", |
| 295 | type: "success", | 295 | type: "success", |
| 296 | }); | 296 | }); |
| 297 | this.$store.dispatch('user/refreshPage', true); | ||
| 297 | } else { | 298 | } else { |
| 298 | this.$message({ | 299 | this.$message({ |
| 299 | showClose: true, | 300 | showClose: true, | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-05-17 10:43:19 | 4 | * @LastEditTime: 2023-05-24 17:12:40 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 受理信息 --> | 7 | <!-- 受理信息 --> |
| ... | @@ -234,7 +234,7 @@ | ... | @@ -234,7 +234,7 @@ |
| 234 | </el-row> | 234 | </el-row> |
| 235 | 235 | ||
| 236 | </div> | 236 | </div> |
| 237 | <el-row class="btn" v-if="!$route.query.viewtype"> | 237 | <el-row class="btn" v-if="!$route.query.viewtype && propsParam.issave=='0'"> |
| 238 | <el-form-item> | 238 | <el-form-item> |
| 239 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> | 239 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> |
| 240 | </el-form-item> | 240 | </el-form-item> |
| ... | @@ -290,6 +290,7 @@ | ... | @@ -290,6 +290,7 @@ |
| 290 | message: "保存成功!", | 290 | message: "保存成功!", |
| 291 | type: "success", | 291 | type: "success", |
| 292 | }); | 292 | }); |
| 293 | this.$store.dispatch('user/refreshPage', true); | ||
| 293 | } else { | 294 | } else { |
| 294 | this.$message({ | 295 | this.$message({ |
| 295 | showClose: true, | 296 | showClose: true, | ... | ... |
| ... | @@ -223,7 +223,7 @@ | ... | @@ -223,7 +223,7 @@ |
| 223 | </el-col> | 223 | </el-col> |
| 224 | </el-row> | 224 | </el-row> |
| 225 | </div> | 225 | </div> |
| 226 | <el-row class="btn" v-if="!$route.query.viewtype && ableOperation"> | 226 | <el-row class="btn" v-if="!$route.query.viewtype && ableOperation && propsParam.issave=='0'"> |
| 227 | <el-form-item> | 227 | <el-form-item> |
| 228 | <el-button type="primary" @click="onSubmit">保存</el-button> | 228 | <el-button type="primary" @click="onSubmit">保存</el-button> |
| 229 | </el-form-item> | 229 | </el-form-item> |
| ... | @@ -232,100 +232,101 @@ | ... | @@ -232,100 +232,101 @@ |
| 232 | </div> | 232 | </div> |
| 233 | </template> | 233 | </template> |
| 234 | <script> | 234 | <script> |
| 235 | import { mapGetters } from "vuex" | 235 | import { mapGetters } from "vuex" |
| 236 | import { Init, saveData } from "@/api/workflow/nydsyqFlow.js" | 236 | import { Init, saveData } from "@/api/workflow/nydsyqFlow.js" |
| 237 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable" | 237 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable" |
| 238 | import JtcyTable from "@/views/workflow/components/JtcyTable" | 238 | import JtcyTable from "@/views/workflow/components/JtcyTable" |
| 239 | export default { | 239 | export default { |
| 240 | mounted () { | 240 | mounted () { |
| 241 | this.ableOperation = this.$parent.currentSelectTab.ableOperation | 241 | this.ableOperation = this.$parent.currentSelectTab.ableOperation |
| 242 | this.propsParam = this.$attrs; | 242 | this.propsParam = this.$attrs; |
| 243 | this.$startLoading(); | 243 | this.$startLoading(); |
| 244 | var formdata = new FormData(); | 244 | var formdata = new FormData(); |
| 245 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 245 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 246 | formdata.append("djlx", this.propsParam.djlx); | 246 | formdata.append("djlx", this.propsParam.djlx); |
| 247 | Init(formdata).then((res) => { | 247 | Init(formdata).then((res) => { |
| 248 | this.ruleForm = res.result; | 248 | this.ruleForm = res.result; |
| 249 | this.$endLoading(); | 249 | this.$endLoading(); |
| 250 | if (res.code === 200) { | ||
| 251 | } | ||
| 252 | else { | ||
| 253 | this.$alert(res.message, '提示'); | ||
| 254 | } | ||
| 255 | }) | ||
| 256 | }, | ||
| 257 | components: { qlrCommonTable, JtcyTable }, | ||
| 258 | computed: { | ||
| 259 | ...mapGetters(["dictData", "flag"]) | ||
| 260 | }, | ||
| 261 | watch: { | ||
| 262 | |||
| 263 | }, | ||
| 264 | data () { | ||
| 265 | return { | ||
| 266 | disabled: true, | ||
| 267 | //持证人选项 | ||
| 268 | czrOptions: [], | ||
| 269 | ruleForm: {}, | ||
| 270 | //传递参数 | ||
| 271 | propsParam: {}, | ||
| 272 | //表单是否可操作 | ||
| 273 | ableOperation: true, | ||
| 274 | rules: {} | ||
| 275 | } | ||
| 276 | }, | ||
| 277 | methods: { | ||
| 278 | onSubmit () { | ||
| 279 | saveData(this.ruleForm).then((res) => { | ||
| 280 | if (res.code === 200) { | 250 | if (res.code === 200) { |
| 281 | this.$message({ | ||
| 282 | showClose: true, | ||
| 283 | message: "保存成功!", | ||
| 284 | type: "success", | ||
| 285 | }); | ||
| 286 | } else { | ||
| 287 | this.$message({ | ||
| 288 | showClose: true, | ||
| 289 | message: res.message, | ||
| 290 | type: "error", | ||
| 291 | }); | ||
| 292 | } | 251 | } |
| 293 | }); | 252 | else { |
| 253 | this.$alert(res.message, '提示'); | ||
| 254 | } | ||
| 255 | }) | ||
| 294 | }, | 256 | }, |
| 295 | upDateQlrxxList (val) { | 257 | components: { qlrCommonTable, JtcyTable }, |
| 296 | this.ruleForm.qlrList = _.cloneDeep(val) | 258 | computed: { |
| 259 | ...mapGetters(["dictData", "flag"]) | ||
| 297 | }, | 260 | }, |
| 298 | upDateJtcyList (val) { | 261 | watch: { |
| 299 | this.ruleForm.jtcyList = _.cloneDeep(val) | 262 | |
| 300 | }, | 263 | }, |
| 301 | //水域滩涂类型变化事件 | 264 | data () { |
| 302 | changeSyttlx (e) { | 265 | return { |
| 303 | let itemLx = {} | 266 | disabled: true, |
| 304 | itemLx = this.dictData['A23'].find((item) => { | 267 | //持证人选项 |
| 305 | return item.dcode == e | 268 | czrOptions: [], |
| 306 | }) | 269 | ruleForm: {}, |
| 307 | this.ruleForm.nydsyq.syttlxmc = itemLx.dname; | 270 | //传递参数 |
| 271 | propsParam: {}, | ||
| 272 | //表单是否可操作 | ||
| 273 | ableOperation: true, | ||
| 274 | rules: {} | ||
| 275 | } | ||
| 308 | }, | 276 | }, |
| 309 | //养殖业方式变化事件 | 277 | methods: { |
| 310 | changeYzyfs (e) { | 278 | onSubmit () { |
| 311 | let itemLx = {} | 279 | saveData(this.ruleForm).then((res) => { |
| 312 | itemLx = this.dictData['A24'].find((item) => { | 280 | if (res.code === 200) { |
| 313 | return item.dcode == e | 281 | this.$message({ |
| 314 | }) | 282 | showClose: true, |
| 315 | this.ruleForm.nydsyq.yzyfsmc = itemLx.dname; | 283 | message: "保存成功!", |
| 284 | type: "success", | ||
| 285 | }); | ||
| 286 | this.$store.dispatch('user/refreshPage', true); | ||
| 287 | } else { | ||
| 288 | this.$message({ | ||
| 289 | showClose: true, | ||
| 290 | message: res.message, | ||
| 291 | type: "error", | ||
| 292 | }); | ||
| 293 | } | ||
| 294 | }); | ||
| 295 | }, | ||
| 296 | upDateQlrxxList (val) { | ||
| 297 | this.ruleForm.qlrList = _.cloneDeep(val) | ||
| 298 | }, | ||
| 299 | upDateJtcyList (val) { | ||
| 300 | this.ruleForm.jtcyList = _.cloneDeep(val) | ||
| 301 | }, | ||
| 302 | //水域滩涂类型变化事件 | ||
| 303 | changeSyttlx (e) { | ||
| 304 | let itemLx = {} | ||
| 305 | itemLx = this.dictData['A23'].find((item) => { | ||
| 306 | return item.dcode == e | ||
| 307 | }) | ||
| 308 | this.ruleForm.nydsyq.syttlxmc = itemLx.dname; | ||
| 309 | }, | ||
| 310 | //养殖业方式变化事件 | ||
| 311 | changeYzyfs (e) { | ||
| 312 | let itemLx = {} | ||
| 313 | itemLx = this.dictData['A24'].find((item) => { | ||
| 314 | return item.dcode == e | ||
| 315 | }) | ||
| 316 | this.ruleForm.nydsyq.yzyfsmc = itemLx.dname; | ||
| 317 | }, | ||
| 318 | //用地用海变化事件 | ||
| 319 | changeYdyhfl (e) { | ||
| 320 | let itemLx = {} | ||
| 321 | itemLx = this.dictData['A51'].find((item) => { | ||
| 322 | return item.dcode == e | ||
| 323 | }) | ||
| 324 | this.ruleForm.nydsyq.ydyhflmc = itemLx.dname; | ||
| 325 | } | ||
| 316 | }, | 326 | }, |
| 317 | //用地用海变化事件 | 327 | }; |
| 318 | changeYdyhfl (e) { | ||
| 319 | let itemLx = {} | ||
| 320 | itemLx = this.dictData['A51'].find((item) => { | ||
| 321 | return item.dcode == e | ||
| 322 | }) | ||
| 323 | this.ruleForm.nydsyq.ydyhflmc = itemLx.dname; | ||
| 324 | } | ||
| 325 | }, | ||
| 326 | }; | ||
| 327 | </script> | 328 | </script> |
| 328 | <style scoped lang='scss'> | 329 | <style scoped lang='scss'> |
| 329 | @import "~@/styles/public.scss"; | 330 | @import "~@/styles/public.scss"; |
| 330 | @import "~@/styles/slxx/slxx.scss"; | 331 | @import "~@/styles/slxx/slxx.scss"; |
| 331 | </style> | 332 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -229,7 +229,7 @@ | ... | @@ -229,7 +229,7 @@ |
| 229 | </el-col> | 229 | </el-col> |
| 230 | </el-row> | 230 | </el-row> |
| 231 | </div> | 231 | </div> |
| 232 | <el-row class="btn" v-if="!$route.query.viewtype"> | 232 | <el-row class="btn" v-if="!$route.query.viewtype && propsParam.issave=='0'"> |
| 233 | <el-form-item> | 233 | <el-form-item> |
| 234 | <el-button type="primary" @click="onSubmit">保存</el-button> | 234 | <el-button type="primary" @click="onSubmit">保存</el-button> |
| 235 | </el-form-item> | 235 | </el-form-item> |
| ... | @@ -238,102 +238,103 @@ | ... | @@ -238,102 +238,103 @@ |
| 238 | </div> | 238 | </div> |
| 239 | </template> | 239 | </template> |
| 240 | <script> | 240 | <script> |
| 241 | import { mapGetters } from "vuex" | 241 | import { mapGetters } from "vuex" |
| 242 | import { Init, saveData } from "@/api/workflow/nydsyqFlow.js" | 242 | import { Init, saveData } from "@/api/workflow/nydsyqFlow.js" |
| 243 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable" | 243 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable" |
| 244 | import JtcyTable from "@/views/workflow/components/JtcyTable" | 244 | import JtcyTable from "@/views/workflow/components/JtcyTable" |
| 245 | export default { | 245 | export default { |
| 246 | mounted () { | 246 | mounted () { |
| 247 | this.propsParam = this.$attrs; | 247 | this.propsParam = this.$attrs; |
| 248 | var formdata = new FormData(); | 248 | var formdata = new FormData(); |
| 249 | this.$startLoading(); | 249 | this.$startLoading(); |
| 250 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 250 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 251 | formdata.append("djlx", this.propsParam.djlx); | 251 | formdata.append("djlx", this.propsParam.djlx); |
| 252 | Init(formdata).then((res) => { | 252 | Init(formdata).then((res) => { |
| 253 | this.ruleForm = res.result; | 253 | this.ruleForm = res.result; |
| 254 | this.$endLoading(); | 254 | this.$endLoading(); |
| 255 | if (res.code === 200) { | ||
| 256 | } | ||
| 257 | else { | ||
| 258 | this.$alert(res.message, '提示'); | ||
| 259 | } | ||
| 260 | }) | ||
| 261 | }, | ||
| 262 | components: { qlrCommonTable, JtcyTable }, | ||
| 263 | computed: { | ||
| 264 | ...mapGetters(["dictData", "flag"]) | ||
| 265 | }, | ||
| 266 | watch: { | ||
| 267 | |||
| 268 | }, | ||
| 269 | data () { | ||
| 270 | return { | ||
| 271 | disabled: true, | ||
| 272 | czrOptions: [], | ||
| 273 | ruleForm: {}, | ||
| 274 | //传递参数 | ||
| 275 | propsParam: {}, | ||
| 276 | rules: {} | ||
| 277 | } | ||
| 278 | }, | ||
| 279 | methods: { | ||
| 280 | onSubmit () { | ||
| 281 | saveData(this.ruleForm).then((res) => { | ||
| 282 | if (res.code === 200) { | 255 | if (res.code === 200) { |
| 283 | this.$message({ | ||
| 284 | showClose: true, | ||
| 285 | message: "保存成功!", | ||
| 286 | type: "success", | ||
| 287 | }); | ||
| 288 | } else { | ||
| 289 | this.$message({ | ||
| 290 | showClose: true, | ||
| 291 | message: res.message, | ||
| 292 | type: "error", | ||
| 293 | }); | ||
| 294 | } | 256 | } |
| 295 | }); | 257 | else { |
| 296 | }, | 258 | this.$alert(res.message, '提示'); |
| 297 | //权利人更新 | 259 | } |
| 298 | upDateQlrxxList (val) { | 260 | }) |
| 299 | this.ruleForm.qlrList = _.cloneDeep(val) | ||
| 300 | }, | ||
| 301 | // 更新义务人信息 | ||
| 302 | upDateYwrxxList (val) { | ||
| 303 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
| 304 | }, | 261 | }, |
| 305 | //家庭成员更新 | 262 | components: { qlrCommonTable, JtcyTable }, |
| 306 | upDateJtcyList (val) { | 263 | computed: { |
| 307 | this.ruleForm.jtcyList = _.cloneDeep(val) | 264 | ...mapGetters(["dictData", "flag"]) |
| 308 | }, | 265 | }, |
| 309 | //水域滩涂类型变化事件 | 266 | watch: { |
| 310 | changeSyttlx (e) { | 267 | |
| 311 | let itemLx = {} | ||
| 312 | itemLx = this.dictData['A23'].find((item) => { | ||
| 313 | return item.dcode == e | ||
| 314 | }) | ||
| 315 | this.ruleForm.nydsyq.syttlxmc = itemLx.dname; | ||
| 316 | }, | 268 | }, |
| 317 | //养殖业方式变化事件 | 269 | data () { |
| 318 | changeYzyfs (e) { | 270 | return { |
| 319 | let itemLx = {} | 271 | disabled: true, |
| 320 | itemLx = this.dictData['A24'].find((item) => { | 272 | czrOptions: [], |
| 321 | return item.dcode == e | 273 | ruleForm: {}, |
| 322 | }) | 274 | //传递参数 |
| 323 | this.ruleForm.nydsyq.yzyfsmc = itemLx.dname; | 275 | propsParam: {}, |
| 276 | rules: {} | ||
| 277 | } | ||
| 324 | }, | 278 | }, |
| 325 | //用地用海变化事件 | 279 | methods: { |
| 326 | changeYdyhfl (e) { | 280 | onSubmit () { |
| 327 | let itemLx = {} | 281 | saveData(this.ruleForm).then((res) => { |
| 328 | itemLx = this.dictData['A51'].find((item) => { | 282 | if (res.code === 200) { |
| 329 | return item.dcode == e | 283 | this.$message({ |
| 330 | }) | 284 | showClose: true, |
| 331 | this.ruleForm.nydsyq.ydyhflmc = itemLx.dname; | 285 | message: "保存成功!", |
| 286 | type: "success", | ||
| 287 | }); | ||
| 288 | this.$store.dispatch('user/refreshPage', true); | ||
| 289 | } else { | ||
| 290 | this.$message({ | ||
| 291 | showClose: true, | ||
| 292 | message: res.message, | ||
| 293 | type: "error", | ||
| 294 | }); | ||
| 295 | } | ||
| 296 | }); | ||
| 297 | }, | ||
| 298 | //权利人更新 | ||
| 299 | upDateQlrxxList (val) { | ||
| 300 | this.ruleForm.qlrList = _.cloneDeep(val) | ||
| 301 | }, | ||
| 302 | // 更新义务人信息 | ||
| 303 | upDateYwrxxList (val) { | ||
| 304 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
| 305 | }, | ||
| 306 | //家庭成员更新 | ||
| 307 | upDateJtcyList (val) { | ||
| 308 | this.ruleForm.jtcyList = _.cloneDeep(val) | ||
| 309 | }, | ||
| 310 | //水域滩涂类型变化事件 | ||
| 311 | changeSyttlx (e) { | ||
| 312 | let itemLx = {} | ||
| 313 | itemLx = this.dictData['A23'].find((item) => { | ||
| 314 | return item.dcode == e | ||
| 315 | }) | ||
| 316 | this.ruleForm.nydsyq.syttlxmc = itemLx.dname; | ||
| 317 | }, | ||
| 318 | //养殖业方式变化事件 | ||
| 319 | changeYzyfs (e) { | ||
| 320 | let itemLx = {} | ||
| 321 | itemLx = this.dictData['A24'].find((item) => { | ||
| 322 | return item.dcode == e | ||
| 323 | }) | ||
| 324 | this.ruleForm.nydsyq.yzyfsmc = itemLx.dname; | ||
| 325 | }, | ||
| 326 | //用地用海变化事件 | ||
| 327 | changeYdyhfl (e) { | ||
| 328 | let itemLx = {} | ||
| 329 | itemLx = this.dictData['A51'].find((item) => { | ||
| 330 | return item.dcode == e | ||
| 331 | }) | ||
| 332 | this.ruleForm.nydsyq.ydyhflmc = itemLx.dname; | ||
| 333 | }, | ||
| 332 | }, | 334 | }, |
| 333 | }, | 335 | }; |
| 334 | }; | ||
| 335 | </script> | 336 | </script> |
| 336 | <style scoped lang='scss'> | 337 | <style scoped lang='scss'> |
| 337 | @import "~@/styles/public.scss"; | 338 | @import "~@/styles/public.scss"; |
| 338 | @import "~@/styles/slxx/slxx.scss"; | 339 | @import "~@/styles/slxx/slxx.scss"; |
| 339 | </style> | 340 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -164,7 +164,7 @@ | ... | @@ -164,7 +164,7 @@ |
| 164 | </el-col> | 164 | </el-col> |
| 165 | </el-row> | 165 | </el-row> |
| 166 | </div> | 166 | </div> |
| 167 | <el-row class="btn" v-if="!$route.query.viewtype"> | 167 | <el-row class="btn" v-if="!$route.query.viewtype && propsParam.issave=='0'"> |
| 168 | <el-form-item> | 168 | <el-form-item> |
| 169 | <el-button type="primary" @click="onSubmit">保存</el-button> | 169 | <el-button type="primary" @click="onSubmit">保存</el-button> |
| 170 | </el-form-item> | 170 | </el-form-item> |
| ... | @@ -173,139 +173,140 @@ | ... | @@ -173,139 +173,140 @@ |
| 173 | </div> | 173 | </div> |
| 174 | </template> | 174 | </template> |
| 175 | <script> | 175 | <script> |
| 176 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 176 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
| 177 | import { Init, saveData } from "@/api/workflow/ygdjFlow.js"; | 177 | import { Init, saveData } from "@/api/workflow/ygdjFlow.js"; |
| 178 | import { mapGetters } from "vuex"; | 178 | import { mapGetters } from "vuex"; |
| 179 | export default { | 179 | export default { |
| 180 | mounted () { | 180 | mounted () { |
| 181 | this.$startLoading(); | 181 | this.$startLoading(); |
| 182 | var formdata = new FormData(); | 182 | var formdata = new FormData(); |
| 183 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 183 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 184 | formdata.append("djlx", this.propsParam.djlx); | 184 | formdata.append("djlx", this.propsParam.djlx); |
| 185 | 185 | ||
| 186 | Init(formdata).then(res => { | 186 | Init(formdata).then(res => { |
| 187 | if (res.code === 200 && res.result) { | 187 | if (res.code === 200 && res.result) { |
| 188 | this.$endLoading(); | 188 | this.$endLoading(); |
| 189 | this.ruleForm = res.result; | 189 | this.ruleForm = res.result; |
| 190 | } | 190 | } |
| 191 | }) | 191 | }) |
| 192 | }, | ||
| 193 | components: { qlrCommonTable }, | ||
| 194 | computed: { | ||
| 195 | ...mapGetters(["dictData", "flag"]), | ||
| 196 | }, | ||
| 197 | data () { | ||
| 198 | return { | ||
| 199 | disabled: true, | ||
| 200 | tdytOption: [], | ||
| 201 | czrOptions: [], | ||
| 202 | ruleForm: {}, | ||
| 203 | //传递参数 | ||
| 204 | propsParam: this.$attrs, | ||
| 205 | rules: {}, | ||
| 206 | }; | ||
| 207 | }, | ||
| 208 | methods: { | ||
| 209 | // 更新权利人信息 | ||
| 210 | upDateQlrxxList (val) { | ||
| 211 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
| 212 | }, | 192 | }, |
| 213 | // 更新权利人信息 | 193 | components: { qlrCommonTable }, |
| 214 | upDateYwrxxList (val) { | 194 | computed: { |
| 215 | this.ruleForm.ywrList = _.cloneDeep(val); | 195 | ...mapGetters(["dictData", "flag"]), |
| 216 | }, | 196 | }, |
| 217 | onSubmit () { | 197 | data () { |
| 218 | saveData(this.ruleForm).then((res) => { | 198 | return { |
| 219 | if (res.code === 200) { | 199 | disabled: true, |
| 220 | this.$message({ | 200 | tdytOption: [], |
| 221 | showClose: true, | 201 | czrOptions: [], |
| 222 | message: "保存成功!", | 202 | ruleForm: {}, |
| 223 | type: "success", | 203 | //传递参数 |
| 224 | }); | 204 | propsParam: this.$attrs, |
| 225 | } else { | 205 | rules: {}, |
| 226 | this.$message({ | 206 | }; |
| 227 | showClose: true, | ||
| 228 | message: res.message, | ||
| 229 | type: "error", | ||
| 230 | }); | ||
| 231 | } | ||
| 232 | }); | ||
| 233 | }, | 207 | }, |
| 234 | }, | 208 | methods: { |
| 235 | }; | 209 | // 更新权利人信息 |
| 210 | upDateQlrxxList (val) { | ||
| 211 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
| 212 | }, | ||
| 213 | // 更新权利人信息 | ||
| 214 | upDateYwrxxList (val) { | ||
| 215 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
| 216 | }, | ||
| 217 | onSubmit () { | ||
| 218 | saveData(this.ruleForm).then((res) => { | ||
| 219 | if (res.code === 200) { | ||
| 220 | this.$message({ | ||
| 221 | showClose: true, | ||
| 222 | message: "保存成功!", | ||
| 223 | type: "success", | ||
| 224 | }); | ||
| 225 | this.$store.dispatch('user/refreshPage', true); | ||
| 226 | } else { | ||
| 227 | this.$message({ | ||
| 228 | showClose: true, | ||
| 229 | message: res.message, | ||
| 230 | type: "error", | ||
| 231 | }); | ||
| 232 | } | ||
| 233 | }); | ||
| 234 | }, | ||
| 235 | }, | ||
| 236 | }; | ||
| 236 | </script> | 237 | </script> |
| 237 | <style scoped lang='scss'> | 238 | <style scoped lang='scss'> |
| 238 | @import "~@/styles/public.scss"; | 239 | @import "~@/styles/public.scss"; |
| 239 | 240 | ||
| 240 | /deep/.el-form { | 241 | /deep/.el-form { |
| 241 | display: flex; | 242 | display: flex; |
| 242 | flex-direction: column; | 243 | flex-direction: column; |
| 243 | height: calc(100vh - 130px); | 244 | height: calc(100vh - 130px); |
| 244 | } | 245 | } |
| 245 | 246 | ||
| 246 | /deep/.el-form-item__label { | 247 | /deep/.el-form-item__label { |
| 247 | padding: 0; | 248 | padding: 0; |
| 248 | } | 249 | } |
| 249 | 250 | ||
| 250 | /deep/.el-radio { | 251 | /deep/.el-radio { |
| 251 | margin-right: 10px; | 252 | margin-right: 10px; |
| 252 | } | 253 | } |
| 253 | 254 | ||
| 254 | /deep/.el-select { | 255 | /deep/.el-select { |
| 255 | width: 100%; | 256 | width: 100%; |
| 256 | } | 257 | } |
| 257 | 258 | ||
| 258 | /deep/.el-form-item { | 259 | /deep/.el-form-item { |
| 259 | margin-bottom: 8px; | 260 | margin-bottom: 8px; |
| 260 | } | 261 | } |
| 261 | 262 | ||
| 262 | .marginBot0 { | 263 | .marginBot0 { |
| 263 | margin-bottom: 0 !important; | 264 | margin-bottom: 0 !important; |
| 264 | } | 265 | } |
| 265 | 266 | ||
| 266 | .slxx { | 267 | .slxx { |
| 267 | box-sizing: border-box; | 268 | box-sizing: border-box; |
| 268 | } | 269 | } |
| 269 | 270 | ||
| 270 | .slxx_con { | 271 | .slxx_con { |
| 271 | flex: 1; | 272 | flex: 1; |
| 272 | height: 100%; | 273 | height: 100%; |
| 273 | background-color: #ffffff; | 274 | background-color: #ffffff; |
| 274 | overflow-y: auto; | 275 | overflow-y: auto; |
| 275 | padding-right: 3px; | 276 | padding-right: 3px; |
| 276 | overflow-x: hidden; | 277 | overflow-x: hidden; |
| 277 | } | 278 | } |
| 278 | 279 | ||
| 279 | .submit_btn { | 280 | .submit_btn { |
| 280 | height: 50px; | 281 | height: 50px; |
| 281 | } | 282 | } |
| 282 | 283 | ||
| 283 | .slxx_title { | 284 | .slxx_title { |
| 284 | border-bottom: 1px solid $borderColor; | 285 | border-bottom: 1px solid $borderColor; |
| 285 | padding-left: 10px; | 286 | padding-left: 10px; |
| 286 | padding-bottom: 5px; | 287 | padding-bottom: 5px; |
| 287 | margin-bottom: 10px; | 288 | margin-bottom: 10px; |
| 288 | margin-top: 5px; | 289 | margin-top: 5px; |
| 289 | font-size: 16px; | 290 | font-size: 16px; |
| 290 | font-weight: 500; | 291 | font-weight: 500; |
| 291 | color: #4a4a4a; | 292 | color: #4a4a4a; |
| 292 | } | 293 | } |
| 293 | 294 | ||
| 294 | .btn { | 295 | .btn { |
| 295 | text-align: center; | 296 | text-align: center; |
| 296 | padding-top: 10px; | 297 | padding-top: 10px; |
| 297 | height: 36px; | 298 | height: 36px; |
| 298 | background-color: #ffffff; | 299 | background-color: #ffffff; |
| 299 | padding: 5px 0; | 300 | padding: 5px 0; |
| 300 | } | 301 | } |
| 301 | 302 | ||
| 302 | .textArea { | 303 | .textArea { |
| 303 | /deep/.el-textarea__inner { | 304 | /deep/.el-textarea__inner { |
| 304 | min-height: 90px !important; | 305 | min-height: 90px !important; |
| 306 | } | ||
| 305 | } | 307 | } |
| 306 | } | ||
| 307 | 308 | ||
| 308 | /deep/.el-form-item__label { | 309 | /deep/.el-form-item__label { |
| 309 | padding-bottom: 0px; | 310 | padding-bottom: 0px; |
| 310 | } | 311 | } |
| 311 | </style> | 312 | </style> | ... | ... |
| ... | @@ -167,7 +167,7 @@ | ... | @@ -167,7 +167,7 @@ |
| 167 | </el-col> | 167 | </el-col> |
| 168 | </el-row> | 168 | </el-row> |
| 169 | </div> | 169 | </div> |
| 170 | <el-row class="btn" v-if="!$route.query.viewtype"> | 170 | <el-row class="btn" v-if="!$route.query.viewtype && propsParam.issave=='0'"> |
| 171 | <el-form-item> | 171 | <el-form-item> |
| 172 | <el-button type="primary" @click="onSubmit">保存</el-button> | 172 | <el-button type="primary" @click="onSubmit">保存</el-button> |
| 173 | </el-form-item> | 173 | </el-form-item> |
| ... | @@ -176,149 +176,150 @@ | ... | @@ -176,149 +176,150 @@ |
| 176 | </div> | 176 | </div> |
| 177 | </template> | 177 | </template> |
| 178 | <script> | 178 | <script> |
| 179 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 179 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
| 180 | import { Init, saveData } from "@/api/workflow/ygdjFlow.js"; | 180 | import { Init, saveData } from "@/api/workflow/ygdjFlow.js"; |
| 181 | import { mapGetters } from "vuex"; | 181 | import { mapGetters } from "vuex"; |
| 182 | export default { | 182 | export default { |
| 183 | mounted () { | 183 | mounted () { |
| 184 | this.propsParam = this.$attrs; | 184 | this.propsParam = this.$attrs; |
| 185 | var formdata = new FormData(); | 185 | var formdata = new FormData(); |
| 186 | this.$startLoading(); | 186 | this.$startLoading(); |
| 187 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 187 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 188 | formdata.append("djlx", this.propsParam.djlx); | 188 | formdata.append("djlx", this.propsParam.djlx); |
| 189 | Init(formdata).then((res) => { | 189 | Init(formdata).then((res) => { |
| 190 | if (res.code === 200 && res.result) { | 190 | if (res.code === 200 && res.result) { |
| 191 | this.$endLoading(); | 191 | this.$endLoading(); |
| 192 | this.ruleForm = res.result; | 192 | this.ruleForm = res.result; |
| 193 | } | 193 | } |
| 194 | }); | 194 | }); |
| 195 | }, | ||
| 196 | components: { qlrCommonTable }, | ||
| 197 | computed: { | ||
| 198 | ...mapGetters(["dictData", "flag"]), | ||
| 199 | }, | ||
| 200 | data () { | ||
| 201 | return { | ||
| 202 | disabled: true, | ||
| 203 | tdytOption: [], | ||
| 204 | czrOptions: [], | ||
| 205 | ruleForm: {}, | ||
| 206 | //传递参数 | ||
| 207 | propsParam: this.$attrs, | ||
| 208 | rules: {}, | ||
| 209 | }; | ||
| 210 | }, | ||
| 211 | methods: { | ||
| 212 | onClick () { | ||
| 213 | this.$popup("房屋信息比对", "ywbl/ygdj/slxxCompareDetai", | ||
| 214 | { | ||
| 215 | formData: { | ||
| 216 | bsmSldy: this.propsParam.bsmSldy, | ||
| 217 | qllx: this.propsParam.qllx | ||
| 218 | } | ||
| 219 | }); | ||
| 220 | }, | 195 | }, |
| 221 | // 更新权利人信息 | 196 | components: { qlrCommonTable }, |
| 222 | upDateQlrxxList (val) { | 197 | computed: { |
| 223 | this.ruleForm.qlrList = _.cloneDeep(val); | 198 | ...mapGetters(["dictData", "flag"]), |
| 224 | }, | 199 | }, |
| 225 | // 更新权利人信息 | 200 | data () { |
| 226 | upDateYwrxxList (val) { | 201 | return { |
| 227 | this.ruleForm.ywrList = _.cloneDeep(val); | 202 | disabled: true, |
| 203 | tdytOption: [], | ||
| 204 | czrOptions: [], | ||
| 205 | ruleForm: {}, | ||
| 206 | //传递参数 | ||
| 207 | propsParam: this.$attrs, | ||
| 208 | rules: {}, | ||
| 209 | }; | ||
| 228 | }, | 210 | }, |
| 229 | 211 | methods: { | |
| 230 | onSubmit () { | 212 | onClick () { |
| 231 | saveData(this.ruleForm).then((res) => { | 213 | this.$popup("房屋信息比对", "ywbl/ygdj/slxxCompareDetai", |
| 232 | if (res.code === 200) { | 214 | { |
| 233 | this.$message({ | 215 | formData: { |
| 234 | showClose: true, | 216 | bsmSldy: this.propsParam.bsmSldy, |
| 235 | message: "保存成功!", | 217 | qllx: this.propsParam.qllx |
| 236 | type: "success", | 218 | } |
| 237 | }); | ||
| 238 | } else { | ||
| 239 | this.$message({ | ||
| 240 | showClose: true, | ||
| 241 | message: res.message, | ||
| 242 | type: "error", | ||
| 243 | }); | 219 | }); |
| 244 | } | 220 | }, |
| 245 | }); | 221 | // 更新权利人信息 |
| 222 | upDateQlrxxList (val) { | ||
| 223 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
| 224 | }, | ||
| 225 | // 更新权利人信息 | ||
| 226 | upDateYwrxxList (val) { | ||
| 227 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
| 228 | }, | ||
| 229 | |||
| 230 | onSubmit () { | ||
| 231 | saveData(this.ruleForm).then((res) => { | ||
| 232 | if (res.code === 200) { | ||
| 233 | this.$message({ | ||
| 234 | showClose: true, | ||
| 235 | message: "保存成功!", | ||
| 236 | type: "success", | ||
| 237 | }); | ||
| 238 | this.$store.dispatch('user/refreshPage', true); | ||
| 239 | } else { | ||
| 240 | this.$message({ | ||
| 241 | showClose: true, | ||
| 242 | message: res.message, | ||
| 243 | type: "error", | ||
| 244 | }); | ||
| 245 | } | ||
| 246 | }); | ||
| 247 | }, | ||
| 246 | }, | 248 | }, |
| 247 | }, | 249 | }; |
| 248 | }; | ||
| 249 | </script> | 250 | </script> |
| 250 | <style scoped lang='scss'> | 251 | <style scoped lang='scss'> |
| 251 | @import "~@/styles/public.scss"; | 252 | @import "~@/styles/public.scss"; |
| 252 | 253 | ||
| 253 | /deep/.el-form { | 254 | /deep/.el-form { |
| 254 | display: flex; | 255 | display: flex; |
| 255 | flex-direction: column; | 256 | flex-direction: column; |
| 256 | height: calc(100vh - 130px); | 257 | height: calc(100vh - 130px); |
| 257 | } | 258 | } |
| 258 | 259 | ||
| 259 | /deep/.el-form-item__label { | 260 | /deep/.el-form-item__label { |
| 260 | padding: 0; | 261 | padding: 0; |
| 261 | } | 262 | } |
| 262 | 263 | ||
| 263 | /deep/.el-radio { | 264 | /deep/.el-radio { |
| 264 | margin-right: 10px; | 265 | margin-right: 10px; |
| 265 | } | 266 | } |
| 266 | 267 | ||
| 267 | /deep/.el-select { | 268 | /deep/.el-select { |
| 268 | width: 100%; | 269 | width: 100%; |
| 269 | } | 270 | } |
| 270 | 271 | ||
| 271 | /deep/.el-form-item { | 272 | /deep/.el-form-item { |
| 272 | margin-bottom: 8px; | 273 | margin-bottom: 8px; |
| 273 | } | 274 | } |
| 274 | 275 | ||
| 275 | .marginBot0 { | 276 | .marginBot0 { |
| 276 | margin-bottom: 0 !important; | 277 | margin-bottom: 0 !important; |
| 277 | } | 278 | } |
| 278 | 279 | ||
| 279 | .slxx { | 280 | .slxx { |
| 280 | box-sizing: border-box; | 281 | box-sizing: border-box; |
| 281 | } | 282 | } |
| 282 | 283 | ||
| 283 | .slxx_con { | 284 | .slxx_con { |
| 284 | flex: 1; | 285 | flex: 1; |
| 285 | height: 100%; | 286 | height: 100%; |
| 286 | background-color: #ffffff; | 287 | background-color: #ffffff; |
| 287 | overflow-y: auto; | 288 | overflow-y: auto; |
| 288 | padding-right: 3px; | 289 | padding-right: 3px; |
| 289 | overflow-x: hidden; | 290 | overflow-x: hidden; |
| 290 | } | 291 | } |
| 291 | 292 | ||
| 292 | .submit_btn { | 293 | .submit_btn { |
| 293 | height: 50px; | 294 | height: 50px; |
| 294 | } | 295 | } |
| 295 | 296 | ||
| 296 | .slxx_title { | 297 | .slxx_title { |
| 297 | border-bottom: 1px solid $borderColor; | 298 | border-bottom: 1px solid $borderColor; |
| 298 | padding-left: 10px; | 299 | padding-left: 10px; |
| 299 | padding-bottom: 5px; | 300 | padding-bottom: 5px; |
| 300 | margin-bottom: 10px; | 301 | margin-bottom: 10px; |
| 301 | margin-top: 5px; | 302 | margin-top: 5px; |
| 302 | font-size: 16px; | 303 | font-size: 16px; |
| 303 | font-weight: 500; | 304 | font-weight: 500; |
| 304 | color: #4a4a4a; | 305 | color: #4a4a4a; |
| 305 | } | 306 | } |
| 306 | 307 | ||
| 307 | .btn { | 308 | .btn { |
| 308 | text-align: center; | 309 | text-align: center; |
| 309 | padding-top: 10px; | 310 | padding-top: 10px; |
| 310 | height: 36px; | 311 | height: 36px; |
| 311 | background-color: #ffffff; | 312 | background-color: #ffffff; |
| 312 | padding: 5px 0; | 313 | padding: 5px 0; |
| 313 | } | 314 | } |
| 314 | 315 | ||
| 315 | .textArea { | 316 | .textArea { |
| 316 | /deep/.el-textarea__inner { | 317 | /deep/.el-textarea__inner { |
| 317 | min-height: 90px !important; | 318 | min-height: 90px !important; |
| 319 | } | ||
| 318 | } | 320 | } |
| 319 | } | ||
| 320 | 321 | ||
| 321 | /deep/.el-form-item__label { | 322 | /deep/.el-form-item__label { |
| 322 | padding-bottom: 0px; | 323 | padding-bottom: 0px; |
| 323 | } | 324 | } |
| 324 | </style> | 325 | </style> | ... | ... |
| ... | @@ -171,7 +171,7 @@ | ... | @@ -171,7 +171,7 @@ |
| 171 | </el-col> | 171 | </el-col> |
| 172 | </el-row> | 172 | </el-row> |
| 173 | </div> | 173 | </div> |
| 174 | <el-row class="btn" v-if="!$route.query.viewtype"> | 174 | <el-row class="btn" v-if="!$route.query.viewtype && propsParam.issave=='0'"> |
| 175 | <el-form-item> | 175 | <el-form-item> |
| 176 | <el-button type="primary" @click="onSubmit">保存</el-button> | 176 | <el-button type="primary" @click="onSubmit">保存</el-button> |
| 177 | </el-form-item> | 177 | </el-form-item> |
| ... | @@ -180,73 +180,74 @@ | ... | @@ -180,73 +180,74 @@ |
| 180 | </div> | 180 | </div> |
| 181 | </template> | 181 | </template> |
| 182 | <script> | 182 | <script> |
| 183 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 183 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
| 184 | import { Init, saveData } from "@/api/workflow/ygdyFlow.js"; | 184 | import { Init, saveData } from "@/api/workflow/ygdyFlow.js"; |
| 185 | import { mapGetters } from "vuex"; | 185 | import { mapGetters } from "vuex"; |
| 186 | export default { | 186 | export default { |
| 187 | created () { | 187 | created () { |
| 188 | this.propsParam = this.$attrs; | 188 | this.propsParam = this.$attrs; |
| 189 | var formdata = new FormData(); | 189 | var formdata = new FormData(); |
| 190 | let that = this | 190 | let that = this |
| 191 | this.loading = true | 191 | this.loading = true |
| 192 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 192 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 193 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | 193 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); |
| 194 | formdata.append("djlx", this.propsParam.djlx); | 194 | formdata.append("djlx", this.propsParam.djlx); |
| 195 | Init(formdata).then((res) => { | 195 | Init(formdata).then((res) => { |
| 196 | if (res.code === 200 && res.result) { | 196 | if (res.code === 200 && res.result) { |
| 197 | that.ruleForm = res.result; | 197 | that.ruleForm = res.result; |
| 198 | setTimeout(() => { | 198 | setTimeout(() => { |
| 199 | that.loading = false | 199 | that.loading = false |
| 200 | }, 300) | 200 | }, 300) |
| 201 | } | ||
| 202 | }); | ||
| 203 | }, | ||
| 204 | components: { qlrCommonTable }, | ||
| 205 | computed: { | ||
| 206 | ...mapGetters(["dictData", "flag"]), | ||
| 207 | }, | ||
| 208 | data () { | ||
| 209 | return { | ||
| 210 | loading: false, | ||
| 211 | disabled: true, | ||
| 212 | tdytOption: [], | ||
| 213 | czrOptions: [], | ||
| 214 | ruleForm: {}, | ||
| 215 | //传递参数 | ||
| 216 | propsParam: this.$attrs, | ||
| 217 | rules: {}, | ||
| 218 | }; | ||
| 219 | }, | ||
| 220 | methods: { | ||
| 221 | // 更新权利人信息 | ||
| 222 | upDateQlrxxList (val) { | ||
| 223 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
| 224 | }, | ||
| 225 | // 更新权利人信息 | ||
| 226 | upDateYwrxxList (val) { | ||
| 227 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
| 228 | }, | ||
| 229 | onSubmit () { | ||
| 230 | saveData(this.ruleForm).then((res) => { | ||
| 231 | if (res.code === 200) { | ||
| 232 | this.$message({ | ||
| 233 | showClose: true, | ||
| 234 | message: "保存成功!", | ||
| 235 | type: "success", | ||
| 236 | }); | ||
| 237 | } else { | ||
| 238 | this.$message({ | ||
| 239 | showClose: true, | ||
| 240 | message: res.message, | ||
| 241 | type: "error", | ||
| 242 | }); | ||
| 243 | } | 201 | } |
| 244 | }); | 202 | }); |
| 245 | }, | 203 | }, |
| 246 | }, | 204 | components: { qlrCommonTable }, |
| 247 | }; | 205 | computed: { |
| 206 | ...mapGetters(["dictData", "flag"]), | ||
| 207 | }, | ||
| 208 | data () { | ||
| 209 | return { | ||
| 210 | loading: false, | ||
| 211 | disabled: true, | ||
| 212 | tdytOption: [], | ||
| 213 | czrOptions: [], | ||
| 214 | ruleForm: {}, | ||
| 215 | //传递参数 | ||
| 216 | propsParam: this.$attrs, | ||
| 217 | rules: {}, | ||
| 218 | }; | ||
| 219 | }, | ||
| 220 | methods: { | ||
| 221 | // 更新权利人信息 | ||
| 222 | upDateQlrxxList (val) { | ||
| 223 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
| 224 | }, | ||
| 225 | // 更新权利人信息 | ||
| 226 | upDateYwrxxList (val) { | ||
| 227 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
| 228 | }, | ||
| 229 | onSubmit () { | ||
| 230 | saveData(this.ruleForm).then((res) => { | ||
| 231 | if (res.code === 200) { | ||
| 232 | this.$message({ | ||
| 233 | showClose: true, | ||
| 234 | message: "保存成功!", | ||
| 235 | type: "success", | ||
| 236 | }); | ||
| 237 | this.$store.dispatch('user/refreshPage', true); | ||
| 238 | } else { | ||
| 239 | this.$message({ | ||
| 240 | showClose: true, | ||
| 241 | message: res.message, | ||
| 242 | type: "error", | ||
| 243 | }); | ||
| 244 | } | ||
| 245 | }); | ||
| 246 | }, | ||
| 247 | }, | ||
| 248 | }; | ||
| 248 | </script> | 249 | </script> |
| 249 | <style scoped lang='scss'> | 250 | <style scoped lang='scss'> |
| 250 | @import "~@/styles/public.scss"; | 251 | @import "~@/styles/public.scss"; |
| 251 | @import "~@/styles/slxx/slxx.scss"; | 252 | @import "~@/styles/slxx/slxx.scss"; |
| 252 | </style> | 253 | </style> | ... | ... |
| ... | @@ -151,7 +151,6 @@ | ... | @@ -151,7 +151,6 @@ |
| 151 | </el-col> | 151 | </el-col> |
| 152 | </el-row> | 152 | </el-row> |
| 153 | 153 | ||
| 154 | |||
| 155 | <el-row> | 154 | <el-row> |
| 156 | <el-col :span="24"> | 155 | <el-col :span="24"> |
| 157 | <el-form-item label="担保范围:"> | 156 | <el-form-item label="担保范围:"> |
| ... | @@ -236,7 +235,7 @@ | ... | @@ -236,7 +235,7 @@ |
| 236 | </el-row> | 235 | </el-row> |
| 237 | 236 | ||
| 238 | </div> | 237 | </div> |
| 239 | <el-row class="btn" v-if="!$route.query.viewtype"> | 238 | <el-row class="btn" v-if="!$route.query.viewtype && propsParam.issave=='0'"> |
| 240 | <el-form-item> | 239 | <el-form-item> |
| 241 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> | 240 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> |
| 242 | </el-form-item> | 241 | </el-form-item> |
| ... | @@ -245,79 +244,80 @@ | ... | @@ -245,79 +244,80 @@ |
| 245 | </div> | 244 | </div> |
| 246 | </template> | 245 | </template> |
| 247 | <script> | 246 | <script> |
| 248 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 247 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
| 249 | import { Init, saveData } from "@/api/workflow/zjgcdyFlow.js"; | 248 | import { Init, saveData } from "@/api/workflow/zjgcdyFlow.js"; |
| 250 | import { mapGetters } from "vuex"; | 249 | import { mapGetters } from "vuex"; |
| 251 | export default { | 250 | export default { |
| 252 | mounted () { | 251 | mounted () { |
| 253 | this.propsParam = this.$attrs; | 252 | this.propsParam = this.$attrs; |
| 254 | var formdata = new FormData(); | 253 | var formdata = new FormData(); |
| 255 | this.$startLoading(); | 254 | this.$startLoading(); |
| 256 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 255 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
| 257 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); | 256 | formdata.append("bsmSlsq", this.$route.query.bsmSlsq); |
| 258 | formdata.append("djlx", this.propsParam.djlx); | 257 | formdata.append("djlx", this.propsParam.djlx); |
| 259 | Init(formdata).then((res) => { | 258 | Init(formdata).then((res) => { |
| 260 | if (res.code === 200 && res.result) { | 259 | if (res.code === 200 && res.result) { |
| 261 | this.ruleForm = res.result; | 260 | this.ruleForm = res.result; |
| 262 | this.$endLoading(); | 261 | this.$endLoading(); |
| 263 | this.ruleForm.diyaq.sfczjzhxz = "0"; | 262 | this.ruleForm.diyaq.sfczjzhxz = "0"; |
| 264 | } | ||
| 265 | }) | ||
| 266 | }, | ||
| 267 | components: { qlrCommonTable }, | ||
| 268 | computed: { | ||
| 269 | ...mapGetters(["dictData", "flag"]), | ||
| 270 | }, | ||
| 271 | data () { | ||
| 272 | return { | ||
| 273 | disabled: true, | ||
| 274 | czrOptions: [], | ||
| 275 | ruleForm: { | ||
| 276 | slywxx: {}, | ||
| 277 | qlxxold: {}, | ||
| 278 | diyaq: {}, | ||
| 279 | gyfs: "", | ||
| 280 | }, | ||
| 281 | //传递参数 | ||
| 282 | propsParam: {}, | ||
| 283 | rules: {}, | ||
| 284 | }; | ||
| 285 | }, | ||
| 286 | methods: { | ||
| 287 | onSubmitClick () { | ||
| 288 | saveData(this.ruleForm, this.propsParam.djlx).then((res) => { | ||
| 289 | if (res.code === 200) { | ||
| 290 | this.$message({ | ||
| 291 | showClose: true, | ||
| 292 | message: "保存成功!", | ||
| 293 | type: "success", | ||
| 294 | }); | ||
| 295 | } else { | ||
| 296 | this.$message({ | ||
| 297 | showClose: true, | ||
| 298 | message: res.message, | ||
| 299 | type: "error", | ||
| 300 | }); | ||
| 301 | } | 263 | } |
| 302 | }); | 264 | }) |
| 303 | }, | 265 | }, |
| 304 | 266 | components: { qlrCommonTable }, | |
| 305 | // 更新权利人信息 | 267 | computed: { |
| 306 | upDateQlrxxList (val) { | 268 | ...mapGetters(["dictData", "flag"]), |
| 307 | if (!_.isEqual(val, this.ruleForm.qlrList)) { | 269 | }, |
| 308 | this.ruleForm.qlrList = _.cloneDeep(val); | 270 | data () { |
| 309 | } | 271 | return { |
| 272 | disabled: true, | ||
| 273 | czrOptions: [], | ||
| 274 | ruleForm: { | ||
| 275 | slywxx: {}, | ||
| 276 | qlxxold: {}, | ||
| 277 | diyaq: {}, | ||
| 278 | gyfs: "", | ||
| 279 | }, | ||
| 280 | //传递参数 | ||
| 281 | propsParam: {}, | ||
| 282 | rules: {}, | ||
| 283 | }; | ||
| 310 | }, | 284 | }, |
| 311 | // 更新义务人信息 | 285 | methods: { |
| 312 | upDateYwrxxList (val) { | 286 | onSubmitClick () { |
| 313 | if (!_.isEqual(val, this.ruleForm.ywrList)) { | 287 | saveData(this.ruleForm, this.propsParam.djlx).then((res) => { |
| 314 | this.ruleForm.ywrList = _.cloneDeep(val); | 288 | if (res.code === 200) { |
| 289 | this.$message({ | ||
| 290 | showClose: true, | ||
| 291 | message: "保存成功!", | ||
| 292 | type: "success", | ||
| 293 | }); | ||
| 294 | this.$store.dispatch('user/refreshPage', true); | ||
| 295 | } else { | ||
| 296 | this.$message({ | ||
| 297 | showClose: true, | ||
| 298 | message: res.message, | ||
| 299 | type: "error", | ||
| 300 | }); | ||
| 301 | } | ||
| 302 | }); | ||
| 303 | }, | ||
| 304 | |||
| 305 | // 更新权利人信息 | ||
| 306 | upDateQlrxxList (val) { | ||
| 307 | if (!_.isEqual(val, this.ruleForm.qlrList)) { | ||
| 308 | this.ruleForm.qlrList = _.cloneDeep(val); | ||
| 309 | } | ||
| 310 | }, | ||
| 311 | // 更新义务人信息 | ||
| 312 | upDateYwrxxList (val) { | ||
| 313 | if (!_.isEqual(val, this.ruleForm.ywrList)) { | ||
| 314 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
| 315 | } | ||
| 315 | } | 316 | } |
| 316 | } | 317 | } |
| 317 | } | 318 | }; |
| 318 | }; | ||
| 319 | </script> | 319 | </script> |
| 320 | <style scoped lang='scss'> | 320 | <style scoped lang='scss'> |
| 321 | @import "~@/styles/public.scss"; | 321 | @import "~@/styles/public.scss"; |
| 322 | @import "~@/styles/slxx/slxx.scss"; | 322 | @import "~@/styles/slxx/slxx.scss"; |
| 323 | </style> | 323 | </style> | ... | ... |
-
Please register or sign in to post a comment