|
@@ -1489,7 +1489,7 @@
|
|
</div>
|
|
</div>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="denyReasonDialog = false" >{{$t('btn.cancel')}}</el-button>
|
|
<el-button @click="denyReasonDialog = false" >{{$t('btn.cancel')}}</el-button>
|
|
- <el-button type="primary" @click="deny()" >{{$t('btn.submit')}}</el-button>
|
|
|
|
|
|
+ <el-button type="primary" :loading="isDenying" @click="deny()" >{{$t('btn.submit')}}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 通过弹出框 -->
|
|
<!-- 通过弹出框 -->
|
|
@@ -1600,6 +1600,14 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column prop="departmentName" label="部门" >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ <span v-if="user.userNameNeedTranslate == 1"><ww-open-data type='departmentName' :openid='scope.row.departmentName'></ww-open-data></span>
|
|
|
|
+ <span v-if="user.userNameNeedTranslate != 1">{{scope.row.departmentName}}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop="startTime" :label="$t('screening.workinghoursss')" ></el-table-column>
|
|
<el-table-column prop="startTime" :label="$t('screening.workinghoursss')" ></el-table-column>
|
|
<el-table-column prop="endTime" :label="$t('screening.off-dutytime')" ></el-table-column>
|
|
<el-table-column prop="endTime" :label="$t('screening.off-dutytime')" ></el-table-column>
|
|
<el-table-column prop="workHours" :label="$t('other.actualworkinghours')" align="right">
|
|
<el-table-column prop="workHours" :label="$t('other.actualworkinghours')" align="right">
|
|
@@ -1750,6 +1758,7 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ isDenying: false,
|
|
targetWeekDate: null,//填写周报中的周日期
|
|
targetWeekDate: null,//填写周报中的周日期
|
|
importCardTimeVisi: false,
|
|
importCardTimeVisi: false,
|
|
startRatioExporting: false,
|
|
startRatioExporting: false,
|
|
@@ -6718,6 +6727,7 @@
|
|
},
|
|
},
|
|
showDenyDialog(id,i, item) {
|
|
showDenyDialog(id,i, item) {
|
|
this.denyReasonDialog = true;
|
|
this.denyReasonDialog = true;
|
|
|
|
+ this.isDenying = false;
|
|
let day = (this.choseDay+1) > 9 ? "-" + (this.choseDay + 1) : "-0" + (this.choseDay + 1);
|
|
let day = (this.choseDay+1) > 9 ? "-" + (this.choseDay + 1) : "-0" + (this.choseDay + 1);
|
|
var ids = item.id;
|
|
var ids = item.id;
|
|
// var data = item.data;
|
|
// var data = item.data;
|
|
@@ -6729,10 +6739,11 @@
|
|
// 未通过日报
|
|
// 未通过日报
|
|
deny() {
|
|
deny() {
|
|
this.logining = true;
|
|
this.logining = true;
|
|
-
|
|
|
|
|
|
+ this.isDenying = true;
|
|
this.http.post( this.port.report.deny, this.denyForm,
|
|
this.http.post( this.port.report.deny, this.denyForm,
|
|
res => {
|
|
res => {
|
|
this.logining = false;
|
|
this.logining = false;
|
|
|
|
+ this.isDenying = false;
|
|
if (res.code == "ok") {
|
|
if (res.code == "ok") {
|
|
this.$message({
|
|
this.$message({
|
|
message: this.denyForm.i==0?this.$t('message.rejectedsuccessfully'):this.$t('Revocationofsuccess'),
|
|
message: this.denyForm.i==0?this.$t('message.rejectedsuccessfully'):this.$t('Revocationofsuccess'),
|