|
@@ -8,12 +8,12 @@
|
|
|
:mainAreaData="mainAreaData"
|
|
|
:turnPageId="20221020143502"
|
|
|
idname="sa_projectid"
|
|
|
- tags=""
|
|
|
- :tabs="['详细信息','阶段任务','关联客户','产品配置单','报价单','竞争对手','关联线索']"
|
|
|
+ :tags="[]"
|
|
|
+ :tabs="['详细信息','工作任务','关联客户','产品配置单','报价单','竞争对手','关联线索']"
|
|
|
@pageChange="pageChange"
|
|
|
@onEditSuccess="queryMainData($route.query.id)">
|
|
|
<!-- 使用此插槽可不传[tags] -->
|
|
|
- <tagPanl slot="tags" :data="tagObj" ownertable="sa_project" :id="mainData.sa_projectid" @onSuccess="queryMainData"/>
|
|
|
+<!-- <tagPanl slot="tags" :data="tagObj" ownertable="sa_project" :id="mainData.sa_projectid" @onSuccess="queryMainData"/>-->
|
|
|
<div slot="customOperation">
|
|
|
<!-- 此区域提供了自定义操作按钮 -->
|
|
|
<div style="margin-right: 10px" class="inline-16">
|
|
@@ -54,7 +54,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="float: right;margin-right:15px;">
|
|
|
- <el-button size="mini" type="primary" plain>进入阶段</el-button>
|
|
|
+ <el-button size="mini" type="primary" plain @click="setStage">变更阶段</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -100,6 +100,7 @@ export default {
|
|
|
components:{Quotation,product_set,Rival,BaseInfo,StageTask,putPeople,Check,Locked,andEnterprise,Del,clue},
|
|
|
data () {
|
|
|
return {
|
|
|
+ nowStage:'',
|
|
|
flagTag:0,
|
|
|
flag:0,
|
|
|
mainData:'',
|
|
@@ -149,12 +150,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.mainData = res.data
|
|
|
- console.log(this.mainData);
|
|
|
+ console.log(this.mainData,"重新刷新数据");
|
|
|
/* 获取标签数据 */
|
|
|
- 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.getProjectAddres()
|
|
|
this.projectStage()
|
|
|
+ this.tagData()
|
|
|
},
|
|
|
// 监听切换数据,上一页,下一页
|
|
|
pageChange (id,rowindex) {
|
|
@@ -164,6 +166,7 @@ export default {
|
|
|
},
|
|
|
/*获取标签数据*/
|
|
|
async tagData(){
|
|
|
+ console.log(this.$refs.details.tags,'标签')
|
|
|
const res = await this.$api.requested({
|
|
|
content: {
|
|
|
ownertable: "sa_project",
|
|
@@ -188,8 +191,23 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ this.$refs.details.$refs.tag.queryTag()
|
|
|
console.log(this.flagTag,'报备标签状态')
|
|
|
},
|
|
|
+ /*修改项目阶段*/
|
|
|
+ async setStage(){
|
|
|
+ console.log(this.nowStage)
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "id": "20221024160102",
|
|
|
+ "content": {
|
|
|
+ "sa_projectid":this.nowStage.sa_projectid,
|
|
|
+ "sa_project_stageid":this.nowStage.sa_project_stageid
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
+ this.queryMainData(this.$route.query.id)
|
|
|
+ })
|
|
|
+ },
|
|
|
/*获取货品选择信息*/
|
|
|
selectionChange(val){
|
|
|
console.log("返回")
|
|
@@ -210,7 +228,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
/* 获取当前用户信息 */
|
|
|
- async getUserInfo() {
|
|
|
+ /* async getUserInfo() {
|
|
|
let res = await this.$api.requested({
|
|
|
"classname": "common.usercenter.usercenter",
|
|
|
"method": "queryUserMsg",
|
|
@@ -220,9 +238,9 @@ export default {
|
|
|
this.userInfo = res.data
|
|
|
console.log(this.userInfo);
|
|
|
|
|
|
- },
|
|
|
+ },*/
|
|
|
/* 可报备人 */
|
|
|
- async getPutPeople () {
|
|
|
+ /*async getPutPeople () {
|
|
|
let res = await this.$api.requested({
|
|
|
"id": 20221021093202,
|
|
|
"content": {
|
|
@@ -234,7 +252,7 @@ export default {
|
|
|
},
|
|
|
})
|
|
|
this.putPeople = res.data
|
|
|
- },
|
|
|
+ },*/
|
|
|
async getSysetms () {
|
|
|
/* 获取项目类型 */
|
|
|
let res = await this.$store.dispatch('optiontypeselect','projecttype')
|
|
@@ -254,20 +272,6 @@ export default {
|
|
|
})
|
|
|
this.enterpriseList = res.data
|
|
|
},
|
|
|
- /* 获取项目模板 */
|
|
|
- async getProjectPanl () {
|
|
|
- let res = await this.$api.requested({
|
|
|
- "id": "20221019085604",
|
|
|
- "content": {
|
|
|
- "pageNumber": 1,
|
|
|
- "pageSize": 99999999,
|
|
|
- "where":{
|
|
|
- "condition":""
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- this.projectPanl = res.data
|
|
|
- },
|
|
|
/* 获取项目地址 */
|
|
|
async getProjectAddres () {
|
|
|
let res = await this.$api.requested({
|
|
@@ -383,6 +387,7 @@ export default {
|
|
|
/*切换阶段*/
|
|
|
changeSelect(val){
|
|
|
console.log(val)
|
|
|
+ this.nowStage = val
|
|
|
this.selectRowindex = val.rowindex
|
|
|
}
|
|
|
},
|
|
@@ -390,9 +395,8 @@ export default {
|
|
|
},
|
|
|
async created () {
|
|
|
this.queryMainData(this.$route.query.id)
|
|
|
- this.getUserInfo()
|
|
|
- this.getPutPeople()
|
|
|
- this.getProjectPanl()
|
|
|
+ /*this.getUserInfo()
|
|
|
+ this.getPutPeople()*/
|
|
|
this.getEnterprise()
|
|
|
this.getSysetms()
|
|
|
// 验证权限
|