Commit 752e8e1b authored by 华国豪's avatar 华国豪 🙄

‘修改销售新增单据页面,新增按钮权限@@@@’

parent 934683da
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<li><span>{{activeTab===1 ? '实收' : '实付'}}金额:</span>{{moneyFormat(shiMoney)}}</li> <li><span>{{activeTab===1 ? '实收' : '实付'}}金额:</span>{{moneyFormat(shiMoney)}}</li>
<li><span>{{activeTab===1 ? '待收' : '待付'}}金额:</span><span :class="{color_red:(allMoney-shiMoney)!==allMoney}">{{moneyFormat(allMoney-shiMoney)}}</span></li> <li><span>{{activeTab===1 ? '待收' : '待付'}}金额:</span><span :class="{color_red:(allMoney-shiMoney)!==allMoney}">{{moneyFormat(allMoney-shiMoney)}}</span></li>
</ul> </ul>
<input type="button" :value="`新增${activeTab===1 ? '收款' : '付款'}`" class="normalBtn" @click="addFinancialOrder()"> <input v-if="item.commissionSharePeople === userId && item.orderState !== '4' && item.orderState !== '3'"type="button" :value="`新增${activeTab===1 ? '收款' : '付款'}`" class="normalBtn" @click="addFinancialOrder()">
</div> </div>
<table border="0" cellspacing="1" cellpadding="0" class="teamRevenueExpenditureTable"> <table border="0" cellspacing="1" cellpadding="0" class="teamRevenueExpenditureTable">
<tr> <tr>
...@@ -214,6 +214,8 @@ export default { ...@@ -214,6 +214,8 @@ export default {
LogLoading: true, LogLoading: true,
allMoney: 0, allMoney: 0,
shiMoney: 0, shiMoney: 0,
userId: null,
item: {},
} }
}, methods: { }, methods: {
Financial_post_GetFinancLogList: function(id){ // 获取单据日志 Financial_post_GetFinancLogList: function(id){ // 获取单据日志
...@@ -306,7 +308,9 @@ export default { ...@@ -306,7 +308,9 @@ export default {
} }
}, },
}, mounted() { }, mounted() {
this.userId = this.getLocalStorage().EmployeeId;
let obj = JSON.parse(this.$route.query.item) let obj = JSON.parse(this.$route.query.item)
this.item = obj
this.orderId = this.msg.OrderID = obj.orderId this.orderId = this.msg.OrderID = obj.orderId
this.tcnum = obj.tcnum this.tcnum = obj.tcnum
this.tcid = obj.tcid this.tcid = obj.tcid
......
...@@ -1512,7 +1512,7 @@ ...@@ -1512,7 +1512,7 @@
</el-upload> </el-upload>
</td> </td>
<td class="groupTourOrderIcon"> <td class="groupTourOrderIcon">
<el-button-group v-if='item.isOwn==1 || userId==1||userId==5'> <el-button-group v-if='item.isOwn==1 || userId==1||userId==5 || isUpdateOrder'>
<el-tooltip class="item" effect="dark" content="修改" placement="top-start"> <el-tooltip class="item" effect="dark" content="修改" placement="top-start">
<el-button v-if="(userId==1 || userId==5 || isUpdateOrder) || ( item.isOwn==1 &&item.isOrder=='1'&&item.isHaveFinance!='1'&&item.orderState!='1'&&item.orderState!='4')" type="primary" style='background:#00C6FF; border-color:#00C6FF' icon="iconfont icon-bianji-smal" @click='getDetail(item)'></el-button> <el-button v-if="(userId==1 || userId==5 || isUpdateOrder) || ( item.isOwn==1 &&item.isOrder=='1'&&item.isHaveFinance!='1'&&item.orderState!='1'&&item.orderState!='4')" type="primary" style='background:#00C6FF; border-color:#00C6FF' icon="iconfont icon-bianji-smal" @click='getDetail(item)'></el-button>
</el-tooltip> </el-tooltip>
......
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