|
@@ -3,6 +3,7 @@ import { listPageV2, getDetail } from '@/api/engineeringMaintenance/basicData'
|
|
|
import { orderEnginbaseList } from '@/api/basicEngineeringData'
|
|
|
import { orderBaseUpdate } from '@/api/workOrderPool'
|
|
|
import geographicalPosi from '@/components/geographicalPosi/index.vue'
|
|
|
+import cloudCall from '../buttons/cloudCall.vue'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -199,26 +200,101 @@ export default {
|
|
|
rules: this.formOptions.linkName.isRules
|
|
|
}
|
|
|
},
|
|
|
+ // {
|
|
|
+ // isShow: this.formOptions.userMobile.isShow,
|
|
|
+ // name: 'el-input',
|
|
|
+ // md: 6,
|
|
|
+ // attributes: { disabled: !this.formOptions.userMobile.isEdit, placeholder: '请输入', maxlength: 11 },
|
|
|
+ // formItemAttributes: {
|
|
|
+ // label: '客户电话',
|
|
|
+ // prop: 'userMobile',
|
|
|
+ // rules: this.formOptions.userMobile.isRules
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
isShow: this.formOptions.userMobile.isShow,
|
|
|
- name: 'el-input',
|
|
|
+ name: 'slot-component',
|
|
|
md: 6,
|
|
|
- attributes: { disabled: !this.formOptions.userMobile.isEdit, placeholder: '请输入', maxlength: 11 },
|
|
|
formItemAttributes: {
|
|
|
label: '客户电话',
|
|
|
prop: 'userMobile',
|
|
|
rules: this.formOptions.userMobile.isRules
|
|
|
+ },
|
|
|
+ render: (h, { props, onInput }) => {
|
|
|
+ var { value } = props
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <el-input
|
|
|
+ value={value}
|
|
|
+ onInput={v => {
|
|
|
+ // 限制最多为11位有效数字
|
|
|
+ if (v && v.length > 11) {
|
|
|
+ v = v.slice(0, 11)
|
|
|
+ }
|
|
|
+ onInput(v)
|
|
|
+ }}
|
|
|
+ disabled={!this.formOptions.userMobile.isEdit}
|
|
|
+ type="number"
|
|
|
+ size="mini"
|
|
|
+ placeholder="请输入"
|
|
|
+ >
|
|
|
+ {
|
|
|
+ /* 创建区别:创建的时候不要拨打 */ this.id ? (
|
|
|
+ <cloudCall phone={value} orderInfo={this.orderInfo} slot="append"></cloudCall>
|
|
|
+ ) : null
|
|
|
+ }
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
}
|
|
|
},
|
|
|
+ // ------------------------
|
|
|
+ // {
|
|
|
+ // isShow: this.formOptions.userMobile2.isShow,
|
|
|
+ // name: 'el-input',
|
|
|
+ // md: 6,
|
|
|
+ // attributes: { disabled: !this.formOptions.userMobile2.isEdit, placeholder: '请输入', maxlength: 11 },
|
|
|
+ // formItemAttributes: {
|
|
|
+ // label: '客户电话2',
|
|
|
+ // prop: 'userMobile2',
|
|
|
+ // rules: this.formOptions.userMobile2.isRules
|
|
|
+ // }
|
|
|
+ // },
|
|
|
{
|
|
|
isShow: this.formOptions.userMobile2.isShow,
|
|
|
- name: 'el-input',
|
|
|
+ name: 'slot-component',
|
|
|
md: 6,
|
|
|
- attributes: { disabled: !this.formOptions.userMobile2.isEdit, placeholder: '请输入', maxlength: 11 },
|
|
|
formItemAttributes: {
|
|
|
label: '客户电话2',
|
|
|
prop: 'userMobile2',
|
|
|
rules: this.formOptions.userMobile2.isRules
|
|
|
+ },
|
|
|
+ render: (h, { props, onInput }) => {
|
|
|
+ var { value } = props
|
|
|
+ return (
|
|
|
+ <div>
|
|
|
+ <el-input
|
|
|
+ value={value}
|
|
|
+ onInput={v => {
|
|
|
+ // 限制最多为11位有效数字
|
|
|
+ if (v && v.length > 11) {
|
|
|
+ v = v.slice(0, 11)
|
|
|
+ }
|
|
|
+ onInput(v)
|
|
|
+ }}
|
|
|
+ disabled={!this.formOptions.userMobile2.isEdit}
|
|
|
+ type="number"
|
|
|
+ size="mini"
|
|
|
+ placeholder="请输入"
|
|
|
+ >
|
|
|
+ {
|
|
|
+ /* 创建区别:创建的时候不要拨打 */ this.id ? (
|
|
|
+ <cloudCall phone={value} orderInfo={this.orderInfo} slot="append"></cloudCall>
|
|
|
+ ) : null
|
|
|
+ }
|
|
|
+ </el-input>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
}
|
|
|
},
|
|
|
{
|