企业编辑有问题,暂时屏蔽功能

dev
wangpeng 2024-04-23 21:49:07 +08:00
parent 80ab578870
commit 0bae4cb6ac
2 changed files with 38 additions and 24 deletions

View File

@ -58,7 +58,7 @@
<el-cascader id="POSSESSION" ref="POSSESSION" v-model="form.POSSESSION" :options="areaList" :props="areaProps" placeholder="请选择省市县" style="width: 100%" @change="changeArea" @visible-change="changeArea1"/> <el-cascader id="POSSESSION" ref="POSSESSION" v-model="form.POSSESSION" :options="areaList" :props="areaProps" placeholder="请选择省市县" style="width: 100%" @change="changeArea" @visible-change="changeArea1"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <!-- <el-col :span="12">
<el-form-item label="监管类型" prop="REGULARTYPE"> <el-form-item label="监管类型" prop="REGULARTYPE">
<Treeselect <Treeselect
:options="varOList" :options="varOList"
@ -70,7 +70,7 @@
style="width: 100%;" style="width: 100%;"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>-->
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
@ -412,7 +412,7 @@
</span> </span>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top"> <el-tooltip class="item" effect="dark" content="删除" placement="top">
<span class="Delete" @click="deleteImage(index)"><i class="el-icon-delete" /></span> <span class="Delete" @click="deleteOfficialSealFile"><i class="el-icon-delete" /></span>
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>
@ -685,7 +685,7 @@ export default {
callback() callback()
} }
}).catch((e) => { }).catch((e) => {
callback()
}) })
} }
return { return {
@ -837,7 +837,7 @@ export default {
WHETHER_PRE_SALE_SERVICE: '', WHETHER_PRE_SALE_SERVICE: '',
WHETHER_AFTER_SALES_SERVICE: '', WHETHER_AFTER_SALES_SERVICE: '',
VIPLEVEL: '', VIPLEVEL: '',
MARKETING_PERSON: '', MARKETING_PERSON: this.USER_ID,
STATUS: '', STATUS: '',
VIP_GEAR: '' VIP_GEAR: ''
}, },
@ -1171,7 +1171,7 @@ export default {
const POSSESSION = data.pd.POSSESSION const POSSESSION = data.pd.POSSESSION
await this.getAreaOpts(POSSESSION, this.areaList, 0) await this.getAreaOpts(POSSESSION, this.areaList, 0)
this.OLDFOURTYPE = data.pd.FOURTYPE this.OLDFOURTYPE = data.pd.FOURTYPE
data.pd.MARKETING_PERSON = data.pd.MARKETING_PERSON || '' data.pd.MARKETING_PERSON = data.pd.MARKETING_PERSON || this.USER_ID
if (data.pd.MARKETING_PERSON == null || data.pd.MARKETING_PERSON == '') { if (data.pd.MARKETING_PERSON == null || data.pd.MARKETING_PERSON == '') {
this.isOldData = '1' this.isOldData = '1'
} }
@ -1179,7 +1179,7 @@ export default {
console.log(this.form) console.log(this.form)
this.changeArea() this.changeArea()
this.form.FOURTYPE = data.pd.FOURTYPE ? data.pd.FOURTYPE + '' : '1' this.form.FOURTYPE = data.pd.FOURTYPE ? data.pd.FOURTYPE + '' : '1'
this.form.INDUSTRY_TYPE = JSON.parse(data.pd.INDUSTRY_TYPE) // this.form.INDUSTRY_TYPE = JSON.parse(data.pd.INDUSTRY_TYPE)
if (data.pd.ecoOption && data.pd.ecoOption.length > 0) { if (data.pd.ecoOption && data.pd.ecoOption.length > 0) {
this.jjlxList = data.pd.ecoOption this.jjlxList = data.pd.ecoOption
} else { } else {
@ -1203,22 +1203,26 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ecoCascader.presentText = this.censusRegisterPlaceName this.$refs.ecoCascader.presentText = this.censusRegisterPlaceName
}) })
if (this.form.CORP_OF_TYPE2 && this.form.CORP_OF_TYPE2 != '') { // if (this.form.CORP_OF_TYPE2 && this.form.CORP_OF_TYPE2 != '') {
const node = {} // const node = {}
node.id = this.form.CORP_OF_TYPE2 // node.id = this.form.CORP_OF_TYPE2
this.$nextTick(() => { // this.$nextTick(() => {
this.$refs.corpOfTypeRef.handleNodeClick(node) // this.$refs.corpOfTypeRef.handleNodeClick(node)
}) // })
} else if (this.form.CORP_OF_TYPE && this.form.CORP_OF_TYPE != '') { // } else if (this.form.CORP_OF_TYPE && this.form.CORP_OF_TYPE != '') {
const node = {} // const node = {}
node.id = this.form.CORP_OF_TYPE // node.id = this.form.CORP_OF_TYPE
this.$nextTick(() => { // this.$nextTick(() => {
this.$refs.corpOfTypeRef.handleNodeClick(node) // this.$refs.corpOfTypeRef.handleNodeClick(node)
}) // })
} // }
this.$forceUpdate() this.$forceUpdate()
this.bus_images = data.busImgs this.bus_images = data.busImgs
this.official_seal_file = data.official_seal_file console.log(data.pd.OFFICIAL_SEAL_PATH)
if (data.pd.OFFICIAL_SEAL_PATH) {
this.official_seal_file.push({ FILEPATH: data.pd.OFFICIAL_SEAL_PATH })
this.officialSealUpload = true
}
if (data.pd.FOURTYPE == 1) { if (data.pd.FOURTYPE == 1) {
this.four_images = data.fourImgs this.four_images = data.fourImgs
} }
@ -1249,7 +1253,17 @@ export default {
resolve() resolve()
}) })
}, },
deleteOfficialSealFile() {
this.$confirm('确定要删除吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.official_seal_file.splice(0, 1)
this.officialSealUpload = false
}).catch(() => {
})
},
deleteImage(index) { deleteImage(index) {
this.$confirm('确定要删除吗?', { this.$confirm('确定要删除吗?', {
confirmButtonText: '确定', confirmButtonText: '确定',

View File

@ -258,7 +258,7 @@
</div> </div>
<div class="ui-height" /> <div class="ui-height" />
<div class="ui-foot"> <div class="ui-foot">
<el-button type="primary" icon="el-icon-edit" @click="handleEdit(row)"></el-button> <!-- <el-button type="primary" icon="el-icon-edit" @click="handleEdit"></el-button>-->
<el-button type="info" @click="goBack"></el-button> <el-button type="info" @click="goBack"></el-button>
</div> </div>
@ -309,7 +309,7 @@ export default {
this.$parent.activeName = 'CorpList' this.$parent.activeName = 'CorpList'
}, },
// //
handleEdit(row) { handleEdit() {
this.$parent.activeName = 'corpEdit' this.$parent.activeName = 'corpEdit'
}, },
chooseMap() { chooseMap() {