|
@@ -1,12 +1,12 @@
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
- <basicDetails
|
|
|
|
|
|
|
+ <basicDetails
|
|
|
ref="details"
|
|
ref="details"
|
|
|
:titleText="mainData.projectname"
|
|
:titleText="mainData.projectname"
|
|
|
formPath="projectChange"
|
|
formPath="projectChange"
|
|
|
:editData="mainData"
|
|
:editData="mainData"
|
|
|
- :mainAreaData="mainAreaData"
|
|
|
|
|
- :turnPageId="20221020143502"
|
|
|
|
|
|
|
+ :mainAreaData="mainAreaData"
|
|
|
|
|
+ :turnPageId="20221020143502"
|
|
|
idname="sa_projectid"
|
|
idname="sa_projectid"
|
|
|
:tags="[]"
|
|
:tags="[]"
|
|
|
:tabs="['详细信息','项目评估','关联客户','产品配置单','报价单','竞争对手','关联线索']"
|
|
:tabs="['详细信息','项目评估','关联客户','产品配置单','报价单','竞争对手','关联线索']"
|
|
@@ -24,14 +24,14 @@
|
|
|
style="width:100%;"
|
|
style="width:100%;"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="margin-right: 10px" class="inline-16">
|
|
|
|
|
|
|
+<!-- <div style="margin-right: 10px" class="inline-16">
|
|
|
<Check
|
|
<Check
|
|
|
|
|
|
|
|
@checkSuccess="queryMainData"
|
|
@checkSuccess="queryMainData"
|
|
|
:rowData="mainData"
|
|
:rowData="mainData"
|
|
|
style="width:100%;"
|
|
style="width:100%;"
|
|
|
/>
|
|
/>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>-->
|
|
|
<div style="margin-right: 10px" class="inline-16">
|
|
<div style="margin-right: 10px" class="inline-16">
|
|
|
<Del
|
|
<Del
|
|
|
:id="mainData.sa_projectid"
|
|
:id="mainData.sa_projectid"
|
|
@@ -50,11 +50,11 @@
|
|
|
<div style="transform: skewX(20deg);!important;color: #ffffff">{{item.stagename}}</div>
|
|
<div style="transform: skewX(20deg);!important;color: #ffffff">{{item.stagename}}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="stage__panel normal-panel" v-else :style="unselectColor">
|
|
<div class="stage__panel normal-panel" v-else :style="unselectColor">
|
|
|
- <div style="transform: skewX(20deg);!important;color: #000000" @click="changeSelect(item)">{{item.stagename}}</div>
|
|
|
|
|
|
|
+ <div style="transform: skewX(20deg);!important;color: #000000" >{{item.stagename}}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div style="float: right;margin-right:15px;">
|
|
<div style="float: right;margin-right:15px;">
|
|
|
- <el-button size="mini" type="primary" plain @click="setStage">变更阶段</el-button>
|
|
|
|
|
|
|
+ <setStage :stage="stageList" @setStage="setStage"></setStage>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -69,7 +69,7 @@
|
|
|
<andEnterprise :rowData="mainData" v-if="flag === 1"/>
|
|
<andEnterprise :rowData="mainData" v-if="flag === 1"/>
|
|
|
</div>
|
|
</div>
|
|
|
<div slot="slot3" class=" normal-panel" >
|
|
<div slot="slot3" class=" normal-panel" >
|
|
|
- <product_set :data="mainData" v-if="flag === 1" />
|
|
|
|
|
|
|
+ <product_set :data="mainData" v-if="flag === 1" @productSetSuccess="queryMainData($route.query.id)" @delSuccess="queryMainData($route.query.id)"/>
|
|
|
</div>
|
|
</div>
|
|
|
<div slot="slot4" class="normal-panel" >
|
|
<div slot="slot4" class="normal-panel" >
|
|
|
<quotation :data="mainData" v-if="flag === 1" />
|
|
<quotation :data="mainData" v-if="flag === 1" />
|
|
@@ -80,7 +80,6 @@
|
|
|
<div slot="slot6" class=" normal-panel">
|
|
<div slot="slot6" class=" normal-panel">
|
|
|
<clue v-if="mainData" :data="mainData" />
|
|
<clue v-if="mainData" :data="mainData" />
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
</basicDetails>
|
|
</basicDetails>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -96,10 +95,13 @@ import Locked from '../components/Locked'
|
|
|
import Del from '../components/del'
|
|
import Del from '../components/del'
|
|
|
import andEnterprise from './modules/andEnterprise/index'
|
|
import andEnterprise from './modules/andEnterprise/index'
|
|
|
import clue from './modules/clue/index'
|
|
import clue from './modules/clue/index'
|
|
|
|
|
+import setStage from '../components/setStage'
|
|
|
export default {
|
|
export default {
|
|
|
- components:{Quotation,product_set,Rival,BaseInfo,StageTask,putPeople,Check,Locked,andEnterprise,Del,clue},
|
|
|
|
|
|
|
+ components:{Quotation,product_set,Rival,BaseInfo,StageTask,putPeople,Check,Locked,andEnterprise,Del,clue,setStage},
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ totalPrice:0,
|
|
|
|
|
+ dialogVisible:false,
|
|
|
nowStage:'',
|
|
nowStage:'',
|
|
|
flagTag:0,
|
|
flagTag:0,
|
|
|
flag:0,
|
|
flag:0,
|
|
@@ -142,6 +144,7 @@ export default {
|
|
|
this.$emit('onSuccess')
|
|
this.$emit('onSuccess')
|
|
|
},
|
|
},
|
|
|
async queryMainData (id) {
|
|
async queryMainData (id) {
|
|
|
|
|
+ this.totalPrice = 0
|
|
|
const res = await this.$api.requested({
|
|
const res = await this.$api.requested({
|
|
|
"id": "20221021103902",
|
|
"id": "20221021103902",
|
|
|
"version":1,
|
|
"version":1,
|
|
@@ -154,6 +157,7 @@ export default {
|
|
|
/* 获取标签数据 */
|
|
/* 获取标签数据 */
|
|
|
/*this.tagObj = await this.$store.dispatch('queryTagList',{table:'sa_project',id:this.mainData.sa_projectid})*/
|
|
/*this.tagObj = await this.$store.dispatch('queryTagList',{table:'sa_project',id:this.mainData.sa_projectid})*/
|
|
|
this.flag = 1
|
|
this.flag = 1
|
|
|
|
|
+ this.productSet()
|
|
|
this.getProjectAddres()
|
|
this.getProjectAddres()
|
|
|
this.projectStage()
|
|
this.projectStage()
|
|
|
this.tagData()
|
|
this.tagData()
|
|
@@ -195,13 +199,13 @@ export default {
|
|
|
console.log(this.flagTag,'报备标签状态')
|
|
console.log(this.flagTag,'报备标签状态')
|
|
|
},
|
|
},
|
|
|
/*修改项目阶段*/
|
|
/*修改项目阶段*/
|
|
|
- async setStage(){
|
|
|
|
|
- console.log(this.nowStage)
|
|
|
|
|
|
|
+ async setStage(val){
|
|
|
|
|
+ /*console.log(this.nowStage)*/
|
|
|
const res = await this.$api.requested({
|
|
const res = await this.$api.requested({
|
|
|
"id": "20221024160102",
|
|
"id": "20221024160102",
|
|
|
"content": {
|
|
"content": {
|
|
|
- "sa_projectid":this.nowStage.sa_projectid,
|
|
|
|
|
- "sa_project_stageid":this.nowStage.sa_project_stageid
|
|
|
|
|
|
|
+ "sa_projectid":this.mainData.sa_projectid,
|
|
|
|
|
+ "sa_project_stageid":val
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
this.tool.showMessage(res,()=>{
|
|
@@ -366,6 +370,10 @@ export default {
|
|
|
label:'负责人',
|
|
label:'负责人',
|
|
|
value: this.mainData.name
|
|
value: this.mainData.name
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label:'预计签约金额',
|
|
|
|
|
+ value: this.totalPrice
|
|
|
|
|
+ },
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
/*获取项目阶段*/
|
|
/*获取项目阶段*/
|
|
@@ -389,6 +397,24 @@ export default {
|
|
|
console.log(val)
|
|
console.log(val)
|
|
|
this.nowStage = val
|
|
this.nowStage = val
|
|
|
this.selectRowindex = val.rowindex
|
|
this.selectRowindex = val.rowindex
|
|
|
|
|
+ },
|
|
|
|
|
+ /*产品配置单*/
|
|
|
|
|
+ async productSet(){
|
|
|
|
|
+ const res = await this.$api.requested({
|
|
|
|
|
+ "id": 20221021145702,
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "sa_projectid": this.$route.query.id,
|
|
|
|
|
+ "pageNumber": 1,
|
|
|
|
|
+ "pageSize": 50,
|
|
|
|
|
+ "where": {
|
|
|
|
|
+ "condition": ""
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log(res,"产品配置清单")
|
|
|
|
|
+ res.data.forEach(e=>{
|
|
|
|
|
+ this.totalPrice = this.totalPrice + e.amount
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted () {
|
|
mounted () {
|
|
@@ -401,6 +427,7 @@ export default {
|
|
|
this.getSysetms()
|
|
this.getSysetms()
|
|
|
// 验证权限
|
|
// 验证权限
|
|
|
this.tool.checkAuth(this.$route.name,'update')?'':this.$router.go(-1)
|
|
this.tool.checkAuth(this.$route.name,'update')?'':this.$router.go(-1)
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
|
|
|