|
@@ -44,6 +44,16 @@
|
|
|
<el-form-item :label="$t(`下次跟进计划`)" prop="nextplan" :rules="{ required: false, message: $t('请填写下次跟进计划'), trigger: 'blur'}" v-if="$route.path === '/projectChangeDetail' || $route.path === '/customerDetail' || $route.path === '/PublicCustomerDetail'">
|
|
<el-form-item :label="$t(`下次跟进计划`)" prop="nextplan" :rules="{ required: false, message: $t('请填写下次跟进计划'), trigger: 'blur'}" v-if="$route.path === '/projectChangeDetail' || $route.path === '/customerDetail' || $route.path === '/PublicCustomerDetail'">
|
|
|
<el-input type="textarea" :autosize="{ minRows: 2, maxRows: 18 }" v-model="form.nextplan" :placeholder="$t(`请输入下次跟进计划`)" autocomplete="off"></el-input>
|
|
<el-input type="textarea" :autosize="{ minRows: 2, maxRows: 18 }" v-model="form.nextplan" :placeholder="$t(`请输入下次跟进计划`)" autocomplete="off"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item :label="$t(`变更项目阶段`)" prop="squarestage" :rules="{ required: true, message: $t('请选择项目阶段'), trigger: 'change'}" v-if="$route.path === '/projectChangeDetail'">
|
|
|
|
|
+ <el-select v-model="form.squarestage" :placeholder="$t(`请选择项目阶段`)" @focus="squarestageFocus" style="width: 100%" disabled>
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in squarestageList"
|
|
|
|
|
+ :key="item.stagename"
|
|
|
|
|
+ :label="$t(item.stagename)"
|
|
|
|
|
+ :value="item.stagename">
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
<div class="flex-align-center flex-between pionter" v-for="file in data.attinfos" :key="file.index">
|
|
<div class="flex-align-center flex-between pionter" v-for="file in data.attinfos" :key="file.index">
|
|
|
<div class="flex-align-center">
|
|
<div class="flex-align-center">
|
|
|
<img width="30" :src="checkFileType(file.postfix) === 'file'?require('@/assets/file_icons/file.svg'):file.url" class="inline-16" alt="">
|
|
<img width="30" :src="checkFileType(file.postfix) === 'file'?require('@/assets/file_icons/file.svg'):file.url" class="inline-16" alt="">
|
|
@@ -79,7 +89,7 @@ import upload from '@/components/upload/hw_obs_upload.vue'
|
|
|
import previewImage from '@/components/previewImage/index.vue'
|
|
import previewImage from '@/components/previewImage/index.vue'
|
|
|
import contactsList from '@/template/projectChange/contactsList.vue'
|
|
import contactsList from '@/template/projectChange/contactsList.vue'
|
|
|
export default {
|
|
export default {
|
|
|
- props:['data','ownertable','status','disabled','isOperation','bindDataFile'],
|
|
|
|
|
|
|
+ props:['data','ownertable','status','disabled','isOperation','bindDataFile','editData'],
|
|
|
components:{
|
|
components:{
|
|
|
upload,
|
|
upload,
|
|
|
previewImage,
|
|
previewImage,
|
|
@@ -96,12 +106,14 @@ export default {
|
|
|
dataextendContactsid:[],
|
|
dataextendContactsid:[],
|
|
|
dataextend: {
|
|
dataextend: {
|
|
|
contactsid: [] // 跟进对象
|
|
contactsid: [] // 跟进对象
|
|
|
- }//扩展参数
|
|
|
|
|
|
|
+ },//扩展参数
|
|
|
|
|
+ squarestage:''
|
|
|
},
|
|
},
|
|
|
followUpType:[],
|
|
followUpType:[],
|
|
|
selectTag:[],
|
|
selectTag:[],
|
|
|
folderid:JSON.parse(sessionStorage.getItem('folderid')).appfolderid,
|
|
folderid:JSON.parse(sessionStorage.getItem('folderid')).appfolderid,
|
|
|
- attachmentids:[]
|
|
|
|
|
|
|
+ attachmentids:[],
|
|
|
|
|
+ squarestageList:[]
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -127,12 +139,38 @@ export default {
|
|
|
|
|
|
|
|
// 更新接口
|
|
// 更新接口
|
|
|
submitLog () {
|
|
submitLog () {
|
|
|
|
|
+ if (this.squarestageList.length == 0){
|
|
|
|
|
+ this.stageData()
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.squarestageList.forEach(item=>{
|
|
|
|
|
+ if (item.stagename === this.form.squarestage){
|
|
|
|
|
+ this.form.sa_project_stageid = item.sa_project_stageid
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
this.$refs.form.validate(async(valid)=>{
|
|
this.$refs.form.validate(async(valid)=>{
|
|
|
if (!valid) return false
|
|
if (!valid) return false
|
|
|
let resource = this.$route.matched[1].meta.title
|
|
let resource = this.$route.matched[1].meta.title
|
|
|
- const res = await this.$api.requested({
|
|
|
|
|
- "id": 20220930121601,
|
|
|
|
|
- "content": {
|
|
|
|
|
|
|
+ let content = {}
|
|
|
|
|
+ if (this.$route.path === '/projectChangeDetail'){
|
|
|
|
|
+ content = {
|
|
|
|
|
+ "sys_datafollowupid":this.data.sys_datafollowupid,
|
|
|
|
|
+ "ownertable":this.ownertable,
|
|
|
|
|
+ "ownerid":this.$route.query.id,
|
|
|
|
|
+ "type":this.form.type,
|
|
|
|
|
+ "content":this.form.content,
|
|
|
|
|
+ "target":this.form.target,//目的
|
|
|
|
|
+ "results":this.form.results,//结果
|
|
|
|
|
+ "nextplan":this.form.nextplan,//下次跟进计划
|
|
|
|
|
+ "dataextend": {
|
|
|
|
|
+ "contactsid": this.form.dataextend.contactsid // 跟进对象
|
|
|
|
|
+ },
|
|
|
|
|
+ "resource":resource,
|
|
|
|
|
+ "squarestage":this.form.squarestage,
|
|
|
|
|
+ "sa_project_stageid":this.form.sa_project_stageid
|
|
|
|
|
+ }
|
|
|
|
|
+ }else {
|
|
|
|
|
+ content = {
|
|
|
"sys_datafollowupid":this.data.sys_datafollowupid,
|
|
"sys_datafollowupid":this.data.sys_datafollowupid,
|
|
|
"ownertable":this.ownertable,
|
|
"ownertable":this.ownertable,
|
|
|
"ownerid":this.$route.query.id,
|
|
"ownerid":this.$route.query.id,
|
|
@@ -144,8 +182,12 @@ export default {
|
|
|
"dataextend": {
|
|
"dataextend": {
|
|
|
"contactsid": this.form.dataextend.contactsid // 跟进对象
|
|
"contactsid": this.form.dataextend.contactsid // 跟进对象
|
|
|
},
|
|
},
|
|
|
- "resource":resource
|
|
|
|
|
|
|
+ "resource":resource,
|
|
|
}
|
|
}
|
|
|
|
|
+ }
|
|
|
|
|
+ const res = await this.$api.requested({
|
|
|
|
|
+ "id": 20220930121601,
|
|
|
|
|
+ "content": content
|
|
|
})
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
this.tool.showMessage(res,()=>{
|
|
|
this.form.content = ''
|
|
this.form.content = ''
|
|
@@ -158,6 +200,7 @@ export default {
|
|
|
|
|
|
|
|
}).then(rs=>{
|
|
}).then(rs=>{
|
|
|
this.attachmentids = []
|
|
this.attachmentids = []
|
|
|
|
|
+ this.squarestageList = []
|
|
|
this.dialogFormVisible = false
|
|
this.dialogFormVisible = false
|
|
|
this.$emit('onSuccess')
|
|
this.$emit('onSuccess')
|
|
|
})
|
|
})
|
|
@@ -212,8 +255,29 @@ export default {
|
|
|
this.selectTag = []
|
|
this.selectTag = []
|
|
|
this.form.dataextend.contactsid = []
|
|
this.form.dataextend.contactsid = []
|
|
|
this.form.dataextendContactsid = []
|
|
this.form.dataextendContactsid = []
|
|
|
|
|
+ this.squarestageList = []
|
|
|
this.$refs.form.resetFields()
|
|
this.$refs.form.resetFields()
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ async squarestageFocus(){
|
|
|
|
|
+ if (this.squarestageList.length == 0){
|
|
|
|
|
+ this.stageData()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ /*获取阶段*/
|
|
|
|
|
+ async stageData(){
|
|
|
|
|
+ const res = await this.$api.requested({
|
|
|
|
|
+ "id": 20221024102402,
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "sa_projectid":this.$route.query.id
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ this.squarestageList = res.data
|
|
|
|
|
+ this.squarestageList.forEach(item=>{
|
|
|
|
|
+ if (item.stagename === this.form.squarestage){
|
|
|
|
|
+ this.form.sa_project_stageid = item.sa_project_stageid
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|