|
|
|
@ -36,12 +36,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-rt">
|
|
|
|
|
<!-- <van-icon class="icon-box" v-hasPermi="['procurement:payApply:show']" @click="handleShow(itemData.id)" name="eye-o" color="#05A9FF" size="25" />
|
|
|
|
|
<van-icon class="icon-box" v-hasPermi="['procurement:payApply:edit']" @click="handleEdit(itemData.id, itemData.status, itemData.creator)" name="edit" :color="!(itemData.status==0 || (itemData.status==3 && itemData.id ==itemData.creator)) ?'#ccc':''" size="25" />
|
|
|
|
|
<van-icon class="icon-box" v-hasPermi="['bs:payment-apply:delete']" @click="handleDel(itemData.id, itemData.status, itemData.creator)" name="delete-o" :color="!(itemData.status==0 || (itemData.status==3 && itemData.id ==itemData.creator)) ?'#ccc':'#EC3359'" size="25" /> -->
|
|
|
|
|
<van-icon class="icon-box" v-hasPermi="['procurement:payApply:edit']" @click="handleEdit(itemData.id, itemData.status)" name="edit" :color="itemData.status!=0 && itemData.status!=3 ?'#ccc':''" size="25" />
|
|
|
|
|
<van-icon class="icon-box" v-hasPermi="['bs:payment-apply:delete']" @click="handleDel(itemData.id, itemData.status)" name="delete-o" :color="itemData.status!=0 && itemData.status!=3 ?'#ccc':'#EC3359'" size="25" /> -->
|
|
|
|
|
|
|
|
|
|
<span class="icon-box" @click="handleShow(itemData.id)" v-hasPermi="['procurement:payApply:show']" :style="`color:#05A9FF;`">查看</span>
|
|
|
|
|
<span class="icon-box" @click="handleEdit(itemData.id, itemData.status, itemData.creator)" v-hasPermi="['procurement:payApply:edit']" :style="`color:${!(!(itemData.status==0 || (itemData.status==3 && itemData.id ==itemData.creator))) ?'#05A9FF':'#ccc'};`">修改</span>
|
|
|
|
|
<span class="icon-box" @click="handleDel(itemData.id, itemData.status, itemData.creator)" v-hasPermi="['bs:payment-apply:delete']" :style="`color:${!(!(itemData.status==0 || (itemData.status==3 && itemData.id ==itemData.creator))) ?'#05A9FF':'#ccc'};`">删除</span>
|
|
|
|
|
<span class="icon-box" @click="handleEdit(itemData.id, itemData.status)" v-hasPermi="['procurement:payApply:edit']" :style="`color:${!(itemData.status!=0 && itemData.status!=3) ?'#05A9FF':'#ccc'};`">修改</span>
|
|
|
|
|
<span class="icon-box" @click="handleDel(itemData.id, itemData.status)" v-hasPermi="['bs:payment-apply:delete']" :style="`color:${!(itemData.status!=0 && itemData.status!=3) ?'#05A9FF':'#ccc'};`">删除</span>
|
|
|
|
|
<span class="icon-box" @click="handleConfirm(itemData)" v-hasPermi="['bs:payment-apply:paymentAffirm']" :style="`color:${!(itemData.status !== 2 || (itemData.status == 2 && itemData.payMentStatus == 1) ) ?'#05A9FF':'#ccc'};`">付款确认</span>
|
|
|
|
|
<span class="icon-box" @click="handleCancelConfirm(itemData)" v-hasPermi="['bs:payment-apply:paymentCancel']" :style="`color:${!(itemData.status !== 2 || (itemData.status == 2 && itemData.payMentStatus !== 1)) ?'#05A9FF':'#ccc'};`">取消确认</span>
|
|
|
|
|
<span class="icon-box" @click="handleUpload(itemData,itemData.payMentStatus == 1 && itemData.status == 2 )" v-hasPermi="['procurement:payApply:upload']" :style="`color:#05A9FF`"> {{ itemData.payMentStatus == 1 && itemData.status == 2 ? '查看凭证' : itemData.files.length ? '修改凭证' : '上传凭证'}}</span>
|
|
|
|
@ -122,8 +122,8 @@ export default {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleEdit(id, status,creator) {
|
|
|
|
|
if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) {
|
|
|
|
|
handleEdit(id, status) {
|
|
|
|
|
if (status != 0 && status != 3) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.jumoStudentId = id
|
|
|
|
@ -132,8 +132,8 @@ export default {
|
|
|
|
|
query: { id, type: 'edit' }
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
handleDel(id, status,creator) {
|
|
|
|
|
if (!(status==0 || (status ==3 && this.userInfo.id ==creator))) {
|
|
|
|
|
handleDel(id, status) {
|
|
|
|
|
if (status != 0 && status != 3) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
Dialog.confirm({
|
|
|
|
|