|
@@ -3,12 +3,13 @@
|
|
<y-data-view-page-layout title="市场管理首页" class="staff-admin-index">
|
|
<y-data-view-page-layout title="市场管理首页" class="staff-admin-index">
|
|
<y-data-view-module>
|
|
<y-data-view-module>
|
|
<div style="width: 1660px">
|
|
<div style="width: 1660px">
|
|
- <y-d-v-over-view style="width: 250px" title="本年签约目标" :typeId="1" :ico="require('@/assets/statics/pg8.png')" :data="[{text:marketStaticsInfo.yearSaleTarget,value:'元'}]" @click.native="openSet('本年签约目标')"></y-d-v-over-view>
|
|
|
|
- <y-d-v-over-view style="width: 250px" title="本年回款目标" :typeId="2" :ico="require('@/assets/statics/pg8.png')" :data="[{text:marketStaticsInfo.yearPaymentTarget,value:'元'}]" @click.native="openSet('本年回款目标')"></y-d-v-over-view>
|
|
|
|
- <y-d-v-over-view style="width: 250px" title="潜在商机" :typeId="3" :ico="require('@/assets/statics/pg8.png')" :data="[{text:marketStaticsInfo.businessNum,value:'个'}]" @click.native="toBusinessPage()"></y-d-v-over-view>
|
|
|
|
- <y-d-v-over-view style="width: 250px" title="本年已签约" :typeId="4" :ico="require('@/assets/statics/pg9.png')" :data="[{text:marketStaticsInfo.yearSaleDone,value:'元'}]" @click.native="toItemPage()"></y-d-v-over-view>
|
|
|
|
- <y-d-v-over-view style="width: 250px" title="本年已回款" :typeId="5" :ico="require('@/assets/statics/pg9.png')" :data="[{text:marketStaticsInfo.yearPaymentDone,value:'元'}]" @click.native="toPaymentPage('year')"></y-d-v-over-view>
|
|
|
|
- <y-d-v-over-view style="width: 250px" title="本月已回款" :typeId="6" :ico="require('@/assets/statics/pg9.png')" :data="[{text:marketStaticsInfo.monthPaymentDone,value:'元'}]" @click.native="toPaymentPage('month')"></y-d-v-over-view>
|
|
|
|
|
|
+ <y-d-v-over-view style="width: 220px" title="本年签约目标" :typeId="1" :ico="require('@/assets/statics/pg8.png')" :data="[{text:marketStaticsInfo.yearSaleTarget,value:'元'}]" @click.native="openSet('本年签约目标')"></y-d-v-over-view>
|
|
|
|
+ <y-d-v-over-view style="width: 220px" title="本年回款目标" :typeId="2" :ico="require('@/assets/statics/pg8.png')" :data="[{text:marketStaticsInfo.yearPaymentTarget,value:'元'}]" @click.native="openSet('本年回款目标')"></y-d-v-over-view>
|
|
|
|
+ <y-d-v-over-view style="width: 220px" title="潜在商机" :typeId="3" :ico="require('@/assets/statics/pg8.png')" :data="[{text:marketStaticsInfo.businessNum,value:'个'}]" @click.native="toBusinessPage()"></y-d-v-over-view>
|
|
|
|
+ <y-d-v-over-view style="width: 220px" title="预计签约金额" :typeId="6" :ico="require('@/assets/statics/pg9.png')" :data="[{text:marketStaticsInfo.estimateAmount,value:'元'}]" @click.native="toBusinessPage()"></y-d-v-over-view>
|
|
|
|
+ <y-d-v-over-view style="width: 220px" title="本年已签约" :typeId="4" :ico="require('@/assets/statics/pg9.png')" :data="[{text:marketStaticsInfo.yearSaleDone,value:'元'}]" @click.native="toItemPage()"></y-d-v-over-view>
|
|
|
|
+ <y-d-v-over-view style="width: 220px" title="本年已回款" :typeId="5" :ico="require('@/assets/statics/pg9.png')" :data="[{text:marketStaticsInfo.yearPaymentDone,value:'元'}]" @click.native="toPaymentPage('year')"></y-d-v-over-view>
|
|
|
|
+ <y-d-v-over-view style="width: 220px" title="本月已回款" :typeId="6" :ico="require('@/assets/statics/pg9.png')" :data="[{text:marketStaticsInfo.monthPaymentDone,value:'元'}]" @click.native="toPaymentPage('month')"></y-d-v-over-view>
|
|
</div>
|
|
</div>
|
|
</y-data-view-module>
|
|
</y-data-view-module>
|
|
<div class="calendar-class">
|
|
<div class="calendar-class">
|
|
@@ -38,11 +39,12 @@
|
|
<y-data-view-module>
|
|
<y-data-view-module>
|
|
<el-button type="warning" style="position: absolute;top:20px;right:60px;font-weight: bolder;cursor: pointer" @click="dialogVisible = true" >添加内容</el-button>
|
|
<el-button type="warning" style="position: absolute;top:20px;right:60px;font-weight: bolder;cursor: pointer" @click="dialogVisible = true" >添加内容</el-button>
|
|
<div class="plan-class">
|
|
<div class="plan-class">
|
|
- <div style="width: 530px;display: flex" v-for="(item,index) in dynamicTags">
|
|
|
|
|
|
+ <div style="width: 530px;display: flex " v-for="(item,index) in dynamicTags">
|
|
<span style="display:inline-block;width:500px;word-break: break-all; white-space:normal;margin: 10px 10px 10px 10px;line-height: 25px;">
|
|
<span style="display:inline-block;width:500px;word-break: break-all; white-space:normal;margin: 10px 10px 10px 10px;line-height: 25px;">
|
|
{{ index+1 }}、{{ item.content }}
|
|
{{ index+1 }}、{{ item.content }}
|
|
</span>
|
|
</span>
|
|
- <el-icon class="el-icon-circle-close" style="color: red;cursor:pointer;" @click.native="deltag(item.id)"/>
|
|
|
|
|
|
+ <el-icon class="el-icon-edit-outline" style="color: red;cursor:pointer; margin-left: 5px" @click.native="editNote(item)"/>
|
|
|
|
+ <el-icon class="el-icon-circle-close" style="color: red;cursor:pointer; margin-left: 5px" @click.native="deltag(item.id)"/>
|
|
</div>
|
|
</div>
|
|
<span v-if="dynamicTags.length<8 & dynamicTags.length!=0" style="display:inline-block;width:530px;height:400px;word-break: break-all; white-space:normal;margin: 10px 10px 10px 10px;line-height: 25px;" >
|
|
<span v-if="dynamicTags.length<8 & dynamicTags.length!=0" style="display:inline-block;width:530px;height:400px;word-break: break-all; white-space:normal;margin: 10px 10px 10px 10px;line-height: 25px;" >
|
|
</span>
|
|
</span>
|
|
@@ -181,7 +183,8 @@
|
|
amount:null
|
|
amount:null
|
|
},
|
|
},
|
|
setName:'',
|
|
setName:'',
|
|
- tableData:[]
|
|
|
|
|
|
+ tableData:[],
|
|
|
|
+ noteId:null,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -194,6 +197,11 @@
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ editNote(item){
|
|
|
|
+ this.dialogVisible = true;
|
|
|
|
+ this.textareadata = item.content;
|
|
|
|
+ this.noteId = item.id;
|
|
|
|
+ },
|
|
toItemPage(){
|
|
toItemPage(){
|
|
this.$router.push(`/item/list/mine?isCurYear=true`);
|
|
this.$router.push(`/item/list/mine?isCurYear=true`);
|
|
},
|
|
},
|
|
@@ -285,21 +293,38 @@
|
|
let data = {
|
|
let data = {
|
|
noteDate:this.currentDate,
|
|
noteDate:this.currentDate,
|
|
content:this.textareadata,
|
|
content:this.textareadata,
|
|
- userId: this.$store.getters.userInfo.id
|
|
|
|
- }
|
|
|
|
- this.$api.note.add(data).then(data => {
|
|
|
|
- if (data.code ===200){
|
|
|
|
- this.$message.success('保存成功')
|
|
|
|
- this.dialogVisible=false
|
|
|
|
- this.textareadata = ''
|
|
|
|
- this.tagdata()
|
|
|
|
- this.editId = ''
|
|
|
|
- this.getCanlendarList();
|
|
|
|
- }else{
|
|
|
|
- this.$message.success(data.msg)
|
|
|
|
- }
|
|
|
|
|
|
+ userId: this.$store.getters.userInfo.id,
|
|
|
|
+ id:this.noteId
|
|
|
|
+ };
|
|
|
|
+ if(data.id){
|
|
|
|
+ this.$api.note.edit(data).then(data => {
|
|
|
|
+ if (data.code ===200){
|
|
|
|
+ this.$message.success('修改成功');
|
|
|
|
+ this.dialogVisible=false
|
|
|
|
+ this.textareadata = '';
|
|
|
|
+ this.tagdata();
|
|
|
|
+ this.editId = '';
|
|
|
|
+ this.getCanlendarList();
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.success(data.msg)
|
|
|
|
+ }
|
|
|
|
+ this.noteId = null;
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.$api.note.add(data).then(data => {
|
|
|
|
+ if (data.code ===200){
|
|
|
|
+ this.$message.success('保存成功');
|
|
|
|
+ this.dialogVisible=false;
|
|
|
|
+ this.textareadata = '';
|
|
|
|
+ this.tagdata();
|
|
|
|
+ this.editId = '';
|
|
|
|
+ this.getCanlendarList();
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.success(data.msg)
|
|
|
|
+ }
|
|
|
|
|
|
- })
|
|
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
tagdata(){
|
|
tagdata(){
|
|
let data = {
|
|
let data = {
|
|
@@ -344,7 +369,6 @@
|
|
clearTimeout(this.timer);
|
|
clearTimeout(this.timer);
|
|
},
|
|
},
|
|
openDrawer(date){
|
|
openDrawer(date){
|
|
- console.log(date);
|
|
|
|
this.dialog = true
|
|
this.dialog = true
|
|
this.currentDate = date.day;
|
|
this.currentDate = date.day;
|
|
this.tagdata();
|
|
this.tagdata();
|