|
@@ -10,7 +10,7 @@
|
|
|
<el-form-item>
|
|
|
<span class="workName">{{detailName}}</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item style="float:right;">
|
|
|
+ <el-form-item style="float:right;" v-if="permissions.countCost">
|
|
|
<span style="font-size:18px;">{{ $t('xiang-mu-cheng-ben') }}:<span class="themeFontColor">{{cost.toFixed(2)}}{{ $t('yuan') }}</span></span>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -194,13 +194,9 @@
|
|
|
formatter: function (params,ticket,callback) {
|
|
|
var res
|
|
|
if(_this.user.userNameNeedTranslate == 1 && _this.radio == _this.$t('ren-yuan')) {
|
|
|
- // res = '' + "<br/>"+_this.$t('workcost')+" : " + params[0].data.money
|
|
|
- // + _this.$t('yuan')+"<br/>"+_this.$t('screening.workTime')+" : " + params[0].data.cost + _this.$t('time.hour');
|
|
|
res = ((_this.permissions.countCost) ? _this.$t('workcost') + ":" + params[0].data.money + _this.$t('yuan') + "</br>" : '') +
|
|
|
((_this.permissions.countHours) ? _this.$t('screening.workTime') + ":" + params[0].data.cost + _this.$t('time.hour') + "</br>" : '')
|
|
|
} else {
|
|
|
- // res = params[0].name + "<br/>"+_this.$t('workcost')+" : " + params[0].data.money
|
|
|
- // + _this.$t('yuan')+"<br/>"+_this.$t('screening.workTime')+" : " + params[0].data.cost + _this.$t('time.hour');
|
|
|
res = ((_this.permissions.countCost) ? _this.$t('workcost') + ":" + params[0].data.money + _this.$t('yuan') + "</br>" : '') +
|
|
|
((_this.permissions.countHours) ? _this.$t('screening.workTime') + ":" + params[0].data.cost + _this.$t('time.hour') + "</br>" : '')
|
|
|
}
|