Browse Source

提交代码

Lijy 2 ngày trước cách đây
mục cha
commit
67faa572c1

+ 6 - 1
fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/index.vue

@@ -59,6 +59,11 @@
                             style="height:0.6rem;padding:0 0.16667rem;" :loading="cardRefLoading" loading-size="0.26667rem"
                             @click.stop.native="cardtimeRefresh(form.createDate)"
                             v-if="!substitute && (user.timeType.syncDingding == 1 || user.timeType.syncCorpwxTime == 1)"></van-button>
+
+                            <van-button icon="replay" native-type="button" type="default" size="mini"
+                            style="height:0.6rem;padding:0 0.16667rem;" :loading="cardRefLoading" loading-size="0.26667rem"
+                            @click.stop.native="cardtimeRefresh(form.createDate)"
+                            v-if="substitute && fillingAgent.name && (user.timeType.syncDingding == 1 || user.timeType.syncCorpwxTime == 1)"></van-button>
                         </template>
                         <template v-if="user.companyId == 7536">
                             <van-button icon="replay" native-type="button" type="default" size="mini"
@@ -2572,7 +2577,7 @@ export default {
                     this.$set(item, 'overtimeHours', 4)
                 }
             }
-            if (this.report.timeBasecostList.length != 0 && this.user.company.packageProject == 1) {
+            if (this.report.timeBasecostList && this.report.timeBasecostList.length != 0 && this.user.company.packageProject == 1) {
                 this.$set(item, 'basecostId', this.report.timeBasecostList[0].id)
                 this.$set(item, 'basecostName', this.report.timeBasecostList[0].name)
             }