1fdc5b7c by 夏齐

Merge remote-tracking branch 'origin/master'

2 parents 922dd419 174f857d
......@@ -66,16 +66,16 @@ export default {
label: "姓名/名称"
},
{
prop: "dlrzjlx",
prop: "zjzl",
label: "证件种类"
},
{
prop: "dlrzjh",
prop: "zjh",
label: "证件号"
},
{
prop: "fr",
label: "法人"
prop: "dh",
label: "联系电话"
},
{
label: '修改',
......
......@@ -32,7 +32,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="联系电话" prop="dh" :rules="$rules.common.phone">
<el-form-item label="联系电话" prop="dh">
<el-input v-model="ruleForm.dh" maxlength="11"></el-input>
</el-form-item>
</el-col>
......
......@@ -146,6 +146,11 @@
</el-row>
<InformationTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList"
:viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" />
<div class="slxx_title title-block">
义务人信息
<div class="triangle"></div> </div>
<InformationTable :tableData="ruleForm.ywrList" @upDateQlrxxList="upDateYwrxxList"
:viewtype="$route.query.viewtype" />
<div class="slxx_title title-block">
登记原因
<div class="triangle"></div>
......@@ -169,22 +174,17 @@
</template>
<script>
import InformationTable from "@/views/workflow/components/InformationTable";
import { Init, fristReg } from "@/api/jsydsyqFlow.js";
import { Init, saveData } from "@/api/jsydsyqFlow.js";
import { mapGetters } from "vuex";
export default {
async created () {
async created() {
this.propsParam = this.$attrs;
var formdata = new FormData();
formdata.append("bsmSldy", this.propsParam.bsmSldy);
formdata.append("djlx", this.propsParam.djlx);
Init(formdata).then((res) => {
if (res.code === 200 && res.result) {
this.ruleForm = {
...res.result,
...res.result.zdjbxxdatas,
...res.result.qlxxdatas,
...res.result.jsydsyqdatas,
};
this.ruleForm = res.result;
}
});
},
......@@ -192,7 +192,7 @@ export default {
computed: {
...mapGetters(["dictData", "flag"]),
},
data () {
data() {
return {
disabled: true,
czrOptions: [],
......@@ -228,7 +228,14 @@ export default {
};
},
methods: {
list (bsmSldy) {
// 更新权利人信息
upDateQlrxxList (val) {
this.ruleForm.qlrList = _.cloneDeep(val);
}, // 更新权利人信息
upDateYwrxxList (val) {
this.ruleForm.ywrList = _.cloneDeep(val);
},
list(bsmSldy) {
var formdata = new FormData();
formdata.append("bsmSldy", bsmSldy);
Init(formdata).then((res) => {
......@@ -242,8 +249,8 @@ export default {
}
});
},
onSubmit () {
fristReg(this.ruleForm).then((res) => {
onSubmit() {
saveData(this.ruleForm).then((res) => {
if (res.code === 200 && res.result) {
console.log(res);
//this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas }
......