|
|
@@ -2,6 +2,11 @@
|
|
|
<div>
|
|
|
<el-button size="small" type="primary" @click="queryRule" class="inline-16 normal-btn-width">查 重</el-button>
|
|
|
<el-dialog title="重复项目" :visible.sync="dialogTableVisible" append-to-body width="1000px">
|
|
|
+ <div slot="title" class="dialog-title">
|
|
|
+ <span class="title-text">重复项目</span>
|
|
|
+ <p v-if="buttonTitle === '确定保存'" style="font-size: 14px;color: red">已存在重复项目,是否确认继续保存</p>
|
|
|
+ <p v-else style="font-size: 14px;color: red">已存在重复项目,是否确认继续创建</p>
|
|
|
+ </div>
|
|
|
<tableLayout :layout="tablecols" :data="list" :opwidth="200" height="calc(100vh - 550px)" :width="true" :custom="true">
|
|
|
<template v-slot:customcol="scope">
|
|
|
<div v-if="scope.column.columnname === 'tag'">
|
|
|
@@ -71,7 +76,6 @@ export default {
|
|
|
},
|
|
|
methods:{
|
|
|
async listData(){
|
|
|
- console.log(this.data,'项目商机data')
|
|
|
this.param.content.sa_projectid = this.data.sa_projectid || 0
|
|
|
this.fields1.forEach(item=>{
|
|
|
this.param.content[item] = this.data[item] || ""
|
|
|
@@ -122,8 +126,7 @@ export default {
|
|
|
async onSubmit(){
|
|
|
if (this.data.signdate_due !== ''){
|
|
|
const data = new Date(this.data.signdate_due)
|
|
|
- console.log(data.getFullYear())
|
|
|
- console.log(data.getMonth()+1)
|
|
|
+
|
|
|
if (data.getMonth() +1 < 10){
|
|
|
this.data.signdate_due = data.getFullYear() + '-0' + (data.getMonth() + 1)
|
|
|
}else {
|
|
|
@@ -134,8 +137,7 @@ export default {
|
|
|
}
|
|
|
if (this.data.begdate_due !== ''){
|
|
|
const data = new Date(this.data.begdate_due)
|
|
|
- console.log(data.getFullYear())
|
|
|
- console.log(data.getMonth()+1)
|
|
|
+
|
|
|
if (data.getMonth() +1 < 10){
|
|
|
this.data.begdate_due = data.getFullYear() + '-0' + (data.getMonth() + 1)
|
|
|
}else {
|
|
|
@@ -146,8 +148,7 @@ export default {
|
|
|
}
|
|
|
if (this.data.enddate_due !== ''){
|
|
|
const data = new Date(this.data.enddate_due)
|
|
|
- console.log(data.getFullYear())
|
|
|
- console.log(data.getMonth()+1)
|
|
|
+
|
|
|
if (data.getMonth() +1 < 10){
|
|
|
this.data.enddate_due = data.getFullYear() + '-0' + (data.getMonth() + 1)
|
|
|
}else {
|
|
|
@@ -161,7 +162,7 @@ export default {
|
|
|
"content": this.data
|
|
|
})
|
|
|
this.tool.showMessage(res,()=>{
|
|
|
- console.log(this.duplicates,'duplicates')
|
|
|
+
|
|
|
if (this.duplicates){
|
|
|
if (this.buttonTitle === '确定保存'){
|
|
|
this.tagData(res.data.sa_projectid)
|
|
|
@@ -178,7 +179,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
async setTag(id,data){
|
|
|
- console.log(id,data,'设置标签')
|
|
|
+
|
|
|
const res = await this.$api.requested({
|
|
|
"id": 20220929090901,
|
|
|
"content": {
|
|
|
@@ -210,8 +211,7 @@ export default {
|
|
|
},
|
|
|
id: 20220929085401
|
|
|
})
|
|
|
- console.log(res,'获取标签')
|
|
|
- console.log(this.duplicates)
|
|
|
+
|
|
|
var resTagData = []
|
|
|
resTagData = res.data.datatag
|
|
|
if (this.duplicates){
|