|
@@ -17,7 +17,10 @@ export default {
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 6,
|
|
|
- attributes: { placeholder: '请输入' },
|
|
|
+ attributes: {
|
|
|
+ placeholder: '请输入',
|
|
|
+ disabled: this.formData.status == "OK"
|
|
|
+ },
|
|
|
formItemAttributes: {
|
|
|
label: '客户名称',
|
|
|
prop: 'userName',
|
|
@@ -32,7 +35,10 @@ export default {
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 6,
|
|
|
- attributes: { placeholder: '请输入' },
|
|
|
+ attributes: {
|
|
|
+ placeholder: '请输入',
|
|
|
+ disabled: this.formData.status == "OK"
|
|
|
+ },
|
|
|
formItemAttributes: {
|
|
|
label: '联系人',
|
|
|
prop: 'linkName',
|
|
@@ -42,7 +48,10 @@ export default {
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 6,
|
|
|
- attributes: { placeholder: '请输入', maxlength: 11 },
|
|
|
+ attributes: {
|
|
|
+ placeholder: '请输入',
|
|
|
+ disabled: this.formData.status == "OK", maxlength: 11
|
|
|
+ },
|
|
|
formItemAttributes: {
|
|
|
label: '客户电话',
|
|
|
prop: 'userMobile',
|
|
@@ -52,7 +61,10 @@ export default {
|
|
|
{
|
|
|
name: 'el-input',
|
|
|
md: 6,
|
|
|
- attributes: { placeholder: '请输入', maxlength: 11 },
|
|
|
+ attributes: {
|
|
|
+ placeholder: '请输入',
|
|
|
+ disabled: this.formData.status == "OK", maxlength: 11
|
|
|
+ },
|
|
|
formItemAttributes: {
|
|
|
label: '客户电话2',
|
|
|
prop: 'userMobile2',
|
|
@@ -68,7 +80,9 @@ export default {
|
|
|
rules: [...required],
|
|
|
},
|
|
|
options: this.provinceList.map((v, i) => ({ value: v.id, label: v.name })),
|
|
|
- attributes: { disabled: false, clearable: true, filterable: true, placeholder: '请选择' },
|
|
|
+ attributes: {
|
|
|
+ disabled: this.formData.status == "OK", clearable: true, filterable: true, placeholder: '请选择'
|
|
|
+ },
|
|
|
events: {
|
|
|
change: (val) => {
|
|
|
// 获取省名称
|
|
@@ -92,7 +106,9 @@ export default {
|
|
|
rules: [...required],
|
|
|
},
|
|
|
options: this.cityList.map((v, i) => ({ value: v.id, label: v.name })),
|
|
|
- attributes: { disabled: false, clearable: true, filterable: true, placeholder: '请选择' },
|
|
|
+ attributes: {
|
|
|
+ disabled: this.formData.status == "OK", clearable: true, filterable: true, placeholder: '请选择'
|
|
|
+ },
|
|
|
events: {
|
|
|
change: (val) => {
|
|
|
// 获取市名称
|
|
@@ -116,7 +132,9 @@ export default {
|
|
|
rules: [...required],
|
|
|
},
|
|
|
options: this.areaList.map((v, i) => ({ value: v.id, label: v.name })),
|
|
|
- attributes: { disabled: false, clearable: true, filterable: true, placeholder: '请选择' },
|
|
|
+ attributes: {
|
|
|
+ disabled: this.formData.status == "OK", clearable: true, filterable: true, placeholder: '请选择'
|
|
|
+ },
|
|
|
events: {
|
|
|
change: (val) => {
|
|
|
// 获取区名称
|
|
@@ -140,7 +158,9 @@ export default {
|
|
|
rules: [...required],
|
|
|
},
|
|
|
options: this.streetList.map((v, i) => ({ value: v.id, label: v.name })),
|
|
|
- attributes: { disabled: false, clearable: true, filterable: true, placeholder: '请选择' },
|
|
|
+ attributes: {
|
|
|
+ disabled: this.formData.status == "OK", clearable: true, filterable: true, placeholder: '请选择'
|
|
|
+ },
|
|
|
events: {
|
|
|
change: (val) => {
|
|
|
// 获取街道名称
|
|
@@ -160,6 +180,7 @@ export default {
|
|
|
render: (h, { props }) => {
|
|
|
return (
|
|
|
<geographicalPosi
|
|
|
+ disabled={this.formData.status == "OK"}
|
|
|
formData={this.formData}
|
|
|
onSelectPosi={data => {
|
|
|
// 获取经纬度
|
|
@@ -207,7 +228,10 @@ export default {
|
|
|
name: 'el-input',
|
|
|
md: 24,
|
|
|
formItemAttributes: { label: '详细地址', prop: 'address', rules: [...required] },
|
|
|
- attributes: { placeholder: '详细地址' }
|
|
|
+ attributes: {
|
|
|
+ placeholder: '详细地址',
|
|
|
+ disabled: this.formData.status == "OK"
|
|
|
+ }
|
|
|
},
|
|
|
]
|
|
|
}
|