Commit 80906998 authored by 周昊's avatar 周昊

1、修改新建项目关联经营状态、是否为物业错误问题

parent 74fc1a4d
......@@ -43,7 +43,7 @@
<van-radio
v-for="option in item.options"
:key="option.name"
:name="option.name"
:name="option.hasOwnProperty('value')?option.value:option.name"
>{{ option.name }}</van-radio
>
</van-radio-group>
......
......@@ -97,21 +97,24 @@
name="propertyManagement"
label="是否为物业"
placeholder="请选择"
:rules="[{ required: true, message: '是否为物业不能为空' }]"
:rules="[{
validator:(val)=>val=='',
message:'是否为物业不能为空'
}]"
>
<template #input>
<van-radio-group
v-model="form.propertyManagement"
direction="horizontal"
>
<van-radio name="是"></van-radio>
<van-radio name="否"></van-radio>
<van-radio :name="true"></van-radio>
<van-radio :name="false"></van-radio>
</van-radio-group>
</template>
</van-field>
<!-- <van-popup v-model="showSource" position="bottom">
<van-picker
show-toolbar
s how-toolbar
value-key="name"
:columns="columnsSource"
@confirm="onConSource"
......@@ -413,6 +416,8 @@ export default {
form: {
name: "",
projectBusiness: "",
businessStatus:'',
propertyManagement:''
},
projectId: "", // 所属工程
projectName: "", // 所属工程
......@@ -483,6 +488,10 @@ export default {
});
},
methods: {
valFn(val){
console.log(val);
return val==''
},
// 业态
businessConfirm(value) {
this.business.show = false;
......@@ -699,6 +708,7 @@ export default {
}
},
onSubmit(values) {
debugger
// this.$toast.loading({
// message: "加载中...",
// forbidClick: true,
......@@ -855,6 +865,8 @@ export default {
this.form.projectId = value.id;
this.form.projectName = value.name;
this.form.projectBusiness = value.business;
this.form.businessStatus = value.businessStatus;
this.form.propertyManagement = value.propertyManagement;
this.showSource = false;
},
// 项目负责人
......@@ -937,6 +949,8 @@ export default {
this.form.projectId = e.id;
this.form.projectName = e.name;
this.form.projectBusiness = e.business;
this.form.businessStatus = e.businessStatus;
this.form.propertyManagement = e.propertyManagement;
this.show = false;
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment