|
@@ -5,10 +5,10 @@
|
|
|
<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:'个'}]" ></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:'元'}]" ></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:'元'}]" ></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:'元'}]" ></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>
|
|
|
</div>
|
|
|
</y-data-view-module>
|
|
|
<div class="calendar-class">
|
|
@@ -79,6 +79,41 @@
|
|
|
:visible.sync="setDialogFormVisible"
|
|
|
:close-on-click-modal="false"
|
|
|
>
|
|
|
+ <template>
|
|
|
+ <el-table
|
|
|
+ :data="tableData"
|
|
|
+ border
|
|
|
+ style="width: 100%">
|
|
|
+ <el-table-column
|
|
|
+ prop="date"
|
|
|
+ label="姓名"
|
|
|
+ align="center"
|
|
|
+ width="280px">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.userName }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column v-if="setName==='本年签约目标' "
|
|
|
+ prop="name"
|
|
|
+ label="签约目标"
|
|
|
+ align="center"
|
|
|
+ width="278px">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.saleTarget }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column v-if="setName==='本年回款目标' "
|
|
|
+ prop="name"
|
|
|
+ label="回款目标"
|
|
|
+ align="center"
|
|
|
+ width="278px">
|
|
|
+ <template slot-scope="{row}">
|
|
|
+ <span>{{ row.paymentTarget }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </template>
|
|
|
+ <br>
|
|
|
<el-form
|
|
|
ref="setForm"
|
|
|
:model="temp"
|
|
@@ -86,8 +121,8 @@
|
|
|
label-width="110px"
|
|
|
style="width: 400px; margin-left:50px;"
|
|
|
>
|
|
|
- <el-form-item label="金额:" prop="amount">
|
|
|
- <el-input v-model.number="temp.amount" class="filter-item"/>
|
|
|
+ <el-form-item label="我的目标:" prop="amount">
|
|
|
+ <el-input v-model.number="temp.amount" class="filter-item" type="number"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="">
|
|
|
<el-button @click="setDialogFormVisible = false">
|
|
@@ -141,9 +176,12 @@
|
|
|
calandarList:[],
|
|
|
setDialogFormVisible:false,
|
|
|
temp:{
|
|
|
+ saleTarget:null,
|
|
|
+ paymentTarget:null,
|
|
|
amount:null
|
|
|
},
|
|
|
- setName:''
|
|
|
+ setName:'',
|
|
|
+ tableData:[]
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -155,10 +193,27 @@
|
|
|
return this.currentDate +" 工作计划";
|
|
|
},
|
|
|
},
|
|
|
- mounted() {
|
|
|
-
|
|
|
- },
|
|
|
methods: {
|
|
|
+ toItemPage(){
|
|
|
+ const date = new Date();
|
|
|
+ const curYear = date.getFullYear();
|
|
|
+ this.$router.push(`/item/list/me?businessNo=${curYear}`);
|
|
|
+ },
|
|
|
+ toBusinessPage() {
|
|
|
+ this.$router.push(`/market/business`)
|
|
|
+ },
|
|
|
+ toPaymentPage(val) {
|
|
|
+ const date = new Date();
|
|
|
+ if (val === 'year'){
|
|
|
+ const curYear = date.getFullYear();
|
|
|
+ this.$router.push(`/market/payment/list?year=${curYear}`)
|
|
|
+ }
|
|
|
+ if (val === 'month'){
|
|
|
+ const curYear = date.getFullYear();
|
|
|
+ const curMonth = date.getMonth() +1;
|
|
|
+ this.$router.push(`/market/payment/list?year=${curYear}&month=${curMonth}`)
|
|
|
+ }
|
|
|
+ },
|
|
|
saveSet(){
|
|
|
if (isNaN(this.temp.amount) || this.temp.amount===null){
|
|
|
this.$notify({
|
|
@@ -169,17 +224,17 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- let field = 'YEAR_SALE_TARGET';
|
|
|
+ if (this.setName === '本年签约目标'){
|
|
|
+ this.temp.saleTarget = this.temp.amount;
|
|
|
+ }
|
|
|
if (this.setName === '本年回款目标'){
|
|
|
- field = 'YEAR_PAYMENT_TARGET';
|
|
|
+ this.temp.paymentTarget = this.temp.amount;
|
|
|
}
|
|
|
let data = {
|
|
|
- description:this.setName,
|
|
|
- value:this.temp.amount,
|
|
|
- name:'MARKET',
|
|
|
- field:field
|
|
|
+ saleTarget:this.temp.saleTarget,
|
|
|
+ paymentTarget:this.temp.paymentTarget
|
|
|
};
|
|
|
- this.$api.globalConfig.add(data).then(data => {
|
|
|
+ this.$api.userTarget.add(data).then(data => {
|
|
|
if (data.code === 200) {
|
|
|
this.setDialogFormVisible = false;
|
|
|
this.$notify({
|
|
@@ -195,6 +250,13 @@
|
|
|
})
|
|
|
},
|
|
|
openSet(key){
|
|
|
+ this.$api.userTarget.list().then(data=>{
|
|
|
+ if (data.code ===200){
|
|
|
+ this.tableData = data.data
|
|
|
+ }else{
|
|
|
+ this.$message.success(data.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
this.temp.amount = null;
|
|
|
this.setName = key;
|
|
|
this.setDialogFormVisible = true;
|