Commit dbe567ce authored by qinj's avatar qinj

是否可编辑

parent 50fc6c88
...@@ -3,16 +3,15 @@ ...@@ -3,16 +3,15 @@
<Title :title="title"> <Title :title="title">
<span>*</span>为必填项 <span>*</span>为必填项
</Title> </Title>
<div class="basic-info"> <div class="basic-info" v-loading='loading'>
<ele-form-section v-model="formData" <ele-form-section v-model="formData"
:rules="rules" :rules="rules"
v-loading='loading'
:sections="sections"> :sections="sections">
<template v-slot:ExtLockRsp_SDK="{ formData }"> <template v-slot:ExtLockRsp_SDK="{ formData }">
<!-- 插槽内容有el-form-item组件包裹 --> <!-- 插槽内容有el-form-item组件包裹 -->
<el-select v-if="formData.ExtProcessNode_SDK==2" <el-select v-if="formData.ExtProcessNode_SDK==2"
v-model="formData.ExtLockRsp_SDK" v-model="formData.ExtLockRsp_SDK"
:disabled="!formData.ExtProcessNode_SDK==2"
style="width: 91%" style="width: 91%"
multiple multiple
filterable filterable
...@@ -33,7 +32,6 @@ ...@@ -33,7 +32,6 @@
<!-- 插槽内容有el-form-item组件包裹 --> <!-- 插槽内容有el-form-item组件包裹 -->
<el-select v-if="formData.ExtProcessNode_SDK==2" <el-select v-if="formData.ExtProcessNode_SDK==2"
v-model="formData.ExtLockCity_SDK" v-model="formData.ExtLockCity_SDK"
:disabled="!formData.ExtProcessNode_SDK==2"
style="width: 91%" style="width: 91%"
multiple multiple
filterable filterable
...@@ -54,9 +52,8 @@ ...@@ -54,9 +52,8 @@
<!-- 插槽内容有el-form-item组件包裹 --> <!-- 插槽内容有el-form-item组件包裹 -->
<el-select v-if="formData.ExtProcessNode_SDK==2" <el-select v-if="formData.ExtProcessNode_SDK==2"
v-model="formData.ExtChannelType_SDK" v-model="formData.ExtChannelType_SDK"
:disabled="!formData.ExtProcessNode_SDK==2"
style="width: 91%" style="width: 91%"
filterable
placeholder="请选择" placeholder="请选择"
no-match-text="无匹配数据"> no-match-text="无匹配数据">
<el-option v-for="item in cOptions" <el-option v-for="item in cOptions"
...@@ -342,7 +339,7 @@ export default { ...@@ -342,7 +339,7 @@ export default {
cOptions: [], cOptions: [],
// 同 vue-ele-form // 同 vue-ele-form
rules: { rules: {
ExtChannelType_SDK: { required: true, message: '请选择签约渠道类型' }, ExtChannelType_SDK: {required: true, message: '请选择签约渠道类型',trigger: 'change' },
ExtLockRsp_SDK: { required: true, message: '请选择锁定RSP' }, ExtLockRsp_SDK: { required: true, message: '请选择锁定RSP' },
ExtLockCity_SDK: { required: true, message: '请选择城市覆盖范围' }, ExtLockCity_SDK: { required: true, message: '请选择城市覆盖范围' },
} }
...@@ -356,7 +353,6 @@ export default { ...@@ -356,7 +353,6 @@ export default {
this.id = this.$route.query.id this.id = this.$route.query.id
this.getList() this.getList()
this.getHistoryList() this.getHistoryList()
this.getChannelType()
this.getFile() this.getFile()
}, },
methods: { methods: {
...@@ -374,12 +370,9 @@ export default { ...@@ -374,12 +370,9 @@ export default {
this.loading=true this.loading=true
getCustomer({ objectID: this.id }).then((resp) => { getCustomer({ objectID: this.id }).then((resp) => {
this.loading=false this.loading=false
resp.results[0].ExtChannelType_SDK = null resp.results[0].ExtChannelType_SDK=null
resp.results[0].ExtChannelType_SDKText=null
this.formData = resp.results[0] this.formData = resp.results[0]
this.formData.ExtChannelType_SDK=null
if (this.formData.ExtProcessNode_SDK != 2) {
this.rules.ExtChannelType_SDK = []
}
lockRsp({ extProvince_SDK: resp.results[0].ExtProvince_SDK }).then((resp) => { lockRsp({ extProvince_SDK: resp.results[0].ExtProvince_SDK }).then((resp) => {
this.province = resp.results this.province = resp.results
}) })
...@@ -387,13 +380,12 @@ export default { ...@@ -387,13 +380,12 @@ export default {
this.$request(Country.searchCity, app).then((resp) => { this.$request(Country.searchCity, app).then((resp) => {
this.apptions = resp.results this.apptions = resp.results
}) })
})
},
getChannelType() {
typeSearch({ code: 'ExtChannelType_SDK', module: 'Customer', content: 'CCP' }).then((resp) => { typeSearch({ code: 'ExtChannelType_SDK', module: 'Customer', content: 'CCP' }).then((resp) => {
this.cOptions = resp this.cOptions = resp
}) })
})
}, },
getHistoryList() { getHistoryList() {
processHistory({ businessObjectID: this.id }).then((resp) => { processHistory({ businessObjectID: this.id }).then((resp) => {
this.tableData = resp.results this.tableData = resp.results
......
...@@ -3,10 +3,9 @@ ...@@ -3,10 +3,9 @@
<Title :title="title"> <Title :title="title">
<span>*</span>为必填项 <span>*</span>为必填项
</Title> </Title>
<div class="basic-info"> <div class="basic-info" v-loading='loading'>
<ele-form-section v-model="formData" <ele-form-section v-model="formData"
:rules="rules" :rules="rules"
v-loading='loading'
:sections="sections"> :sections="sections">
<template v-slot:ExtLockCity_SDK="{ formData }"> <template v-slot:ExtLockCity_SDK="{ formData }">
<!-- 插槽内容有el-form-item组件包裹 --> <!-- 插槽内容有el-form-item组件包裹 -->
......
...@@ -51,10 +51,10 @@ ...@@ -51,10 +51,10 @@
</div> </div>
</div> </div>
</div> </div>
<div class="basic-info"> <div class="basic-info"
v-loading='loading'>
<ele-form-section v-model="formData" <ele-form-section v-model="formData"
:rules="rules" :rules="rules"
v-loading="btnloading"
:sections="sections" :sections="sections"
ref="formData"> ref="formData">
<template v-slot:ExtLeader_SDK="{ formData }"> <template v-slot:ExtLeader_SDK="{ formData }">
...@@ -338,9 +338,9 @@ export default { ...@@ -338,9 +338,9 @@ export default {
}) })
}, },
getList() { getList() {
this.btnloading = true this.loading = true
getCustomer({ objectID: this.id }).then((resp) => { getCustomer({ objectID: this.id }).then((resp) => {
this.btnloading = false this.loading = false
this.formData = resp.results[0] this.formData = resp.results[0]
lockRsp({ extProvince_SDK: resp.results[0].ExtProvince_SDK }).then((resp) => { lockRsp({ extProvince_SDK: resp.results[0].ExtProvince_SDK }).then((resp) => {
this.province = resp.results this.province = resp.results
......
...@@ -58,10 +58,10 @@ ...@@ -58,10 +58,10 @@
</div> </div>
</div> </div>
</div> </div>
<div class="basic-info"> <div class="basic-info"
v-loading="loading">
<ele-form-section v-model="formData" <ele-form-section v-model="formData"
:rules="rules" :rules="rules"
v-loading="btnloading"
:sections="sections"> :sections="sections">
<template v-slot:ExtLeader_SDK="{ formData }"> <template v-slot:ExtLeader_SDK="{ formData }">
...@@ -461,9 +461,9 @@ export default { ...@@ -461,9 +461,9 @@ export default {
methods: { methods: {
getList() { getList() {
console.log('objectId', this.id) console.log('objectId', this.id)
this.btnloading = true this.loading = true
getCustomer({ objectID: this.id }).then((resp) => { getCustomer({ objectID: this.id }).then((resp) => {
this.btnloading = false this.loading = false
this.formData = resp.results[0] this.formData = resp.results[0]
const app = { provinceCode: resp.results[0].ExtProvince_SDK } const app = { provinceCode: resp.results[0].ExtProvince_SDK }
this.$request(Country.searchCity, app).then((resp) => { this.$request(Country.searchCity, app).then((resp) => {
......
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