|
@@ -227,7 +227,7 @@
|
|
|
<el-radio-button label="1" >{{ $t('Apportionmentofpersonnelcosts') }}</el-radio-button>
|
|
|
<el-radio-button label="2">{{ $t('Spreadallpersonnelcosts') }}</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
- <span v-if="missingFinanceUserList.length > 0" style="color:red;">检测到有 <el-link @click="showMissingDialog = true"> {{ missingFinanceUserList.length }} </el-link> 名已填工时人员在薪资表中无记录</span>
|
|
|
+ <span v-if="missingFinanceUserList.length > 0" style="color:red;">检测到有 <el-link @click="showMissingDialog = true"> {{ missingFinanceUserList.length }} </el-link> 名已填工时人员在薪资表中无记录,不参与成本分摊</span>
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item style="float:right;margin-right:20px;" v-if="permissions.financialShare">
|
|
@@ -662,7 +662,6 @@ import { error } from 'dingtalk-jsapi';
|
|
|
})
|
|
|
},
|
|
|
chosenProjectsCheckedClick() {
|
|
|
- console.log(this.chosenProjects, '数据')
|
|
|
if(this.chosenProjectsChecked) {
|
|
|
let arr = []
|
|
|
for(let i in this.allProjectList) {
|
|
@@ -898,11 +897,9 @@ import { error } from 'dingtalk-jsapi';
|
|
|
} else {
|
|
|
this.financialFlg = false
|
|
|
}
|
|
|
- console.log(this.financialFlg, '看看返回的数据是什么')
|
|
|
//上次如果没有配置过,需要初始化
|
|
|
for (var i=0;i<this.noReportUserList.length; i++) {
|
|
|
var rUser = this.noReportUserList[i];
|
|
|
- // console.log('userId====='+rUser.userId);
|
|
|
//检查当前列表中的无项目人员是否在之前的里面存在,如果不在需要加上去
|
|
|
if (this.userCostSettingList.filter(c=>c.id == rUser.userId).length == 0) {
|
|
|
var item = {name: rUser.name, id: rUser.userId};
|
|
@@ -1054,7 +1051,6 @@ import { error } from 'dingtalk-jsapi';
|
|
|
downloadByA(row) {
|
|
|
const a = document.createElement('a'); // 创建a标签
|
|
|
a.setAttribute('download', row.name);// download属性
|
|
|
- // console.log(row.url);
|
|
|
if (row.url.indexOf('upload/') == -1) {
|
|
|
row.url = '/upload/' +row.url;
|
|
|
}
|
|
@@ -1124,29 +1120,14 @@ import { error } from 'dingtalk-jsapi';
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
showItemDialog() {
|
|
|
- // console.log(this.customColsi, '后台纯的')
|
|
|
- // console.log(this.customCols, '用来编辑的')
|
|
|
this.customCols = JSON.parse(JSON.stringify(this.customColsi))
|
|
|
- // console.log(this.customColsi, '后台纯的')
|
|
|
- // console.log(this.customCols, '用来编辑的')
|
|
|
this.itemDialog = true;
|
|
|
- // this.customFieldList = {field1:null,field2:null, field3:null};
|
|
|
- // if (this.customCols.field1 !== undefined) {
|
|
|
- // this.customFieldList.field1 = this.customCols.field1;
|
|
|
- // } else if (this.customCols.field2 !== undefined) {
|
|
|
- // this.customFieldList.field2 = this.customCols.field2;
|
|
|
- // } else if (this.customCols.field3 !== undefined) {
|
|
|
- // this.customFieldList.field3 = this.customCols.field3;
|
|
|
- // }
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
//获取自定义的字段
|
|
|
getCustomColumn() {
|
|
|
this.http.post('/finance-tblcuscol/getAll', {companyId: this.user.companyId},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
- // console.log("获取自定义字段",res.data);
|
|
|
this.customColsi = res.data;
|
|
|
this.tblCols = [];
|
|
|
this.tblCols.push(this.customColsi.monthCost);
|
|
@@ -1206,6 +1187,11 @@ import { error } from 'dingtalk-jsapi';
|
|
|
// console.log(res.data, '图表数据', this.widthHtval)
|
|
|
|
|
|
var xList = [], yList = [], list = res.data.costList, totalMoneyCost = res.data.totalMoneyCost;
|
|
|
+ //计算costList合计的成本
|
|
|
+ var totalC = 0;
|
|
|
+ for (var i=0;i<list.length; i++) {
|
|
|
+ totalC += list[i].cost;
|
|
|
+ }
|
|
|
this.missingFinanceUserList = res.data.missingFinanceUserList;
|
|
|
var nopCost = 0;
|
|
|
if (res.data.noProjectItem.project != null) {
|