Commit 3e5e7089 authored by zhengke's avatar zhengke

修改

parent 78c3dabb
...@@ -741,7 +741,7 @@ ...@@ -741,7 +741,7 @@
<span class="span_all">应付:¥{{moneyFormat(moneyAll.ticketyf)}}</span> <span class="span_all">应付:¥{{moneyFormat(moneyAll.ticketyf)}}</span>
<span class="span_all">实付:¥{{moneyFormat(moneyAll.ticketsf)}}</span> <span class="span_all">实付:¥{{moneyFormat(moneyAll.ticketsf)}}</span>
</span> </span>
<input v-if="DataList.TeamBalance.ShouldReceive==0" type="button" class="hollowFixedBtn" value="设为机票损失" @click="Setloss('','all')" style="height:24px;padding:0 10px"/> <input v-if="DataList.TeamBalance.ShouldReceive==0&&EditBtn" type="button" class="hollowFixedBtn" value="设为机票损失" @click="Setloss('','all')" style="height:24px;padding:0 10px"/>
</div> </div>
</div> </div>
...@@ -763,7 +763,7 @@ ...@@ -763,7 +763,7 @@
<td> <td>
<el-checkbox v-model="item.checked"></el-checkbox> <el-checkbox v-model="item.checked"></el-checkbox>
<span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span> <span class="Team_income" @click="goUrl('FinancialDocumentsDetail',item.FrID)">{{item.FrID}}</span>
<input v-if="DataList.TeamBalance.ShouldReceive==0 && isContain(item.CostTypeList)" type="button" class="hollowFixedBtn" value="设为损失" @click="Setloss(item.FrID,'sigal')" style="height:24px;padding:0 10px"/> <input v-if="(DataList.TeamBalance.ShouldReceive==0 && isContain(item.CostTypeList))&&EditBtn" type="button" class="hollowFixedBtn" value="设为损失" @click="Setloss(item.FrID,'sigal')" style="height:24px;padding:0 10px"/>
</td> </td>
<td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td> <td><span v-for="subItem in item.CostTypeList" :key="subItem.subCode">{{subItem}}<br /></span></td>
<td> <td>
...@@ -1632,6 +1632,7 @@ ...@@ -1632,6 +1632,7 @@
EndTime:'', EndTime:'',
}, },
dataDocList:[], dataDocList:[],
EditBtn:false
}; };
}, },
methods: { methods: {
...@@ -1700,6 +1701,15 @@ ...@@ -1700,6 +1701,15 @@
return true; return true;
} }
}, },
GetAuth() {
var actionCode = this.$AuthCode.S_Travel_AirLoss;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.EditBtn = true;
}
});
},
Setloss(ID,type) { Setloss(ID,type) {
var that = this; var that = this;
let msg={ let msg={
...@@ -2244,6 +2254,7 @@ ...@@ -2244,6 +2254,7 @@
this.getList(); this.getList();
this.getdataInfo(); this.getdataInfo();
this.getDocList(); this.getDocList();
this.GetAuth();
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment