报销页面添加 新增发票按钮

pull/2/head
jwg 7 months ago
parent 447b83c3e3
commit 62ce60e8d6

@ -373,17 +373,28 @@
<div class="box-tp" style="margin-bottom: 1rem">
<div
class="tp-lf"
@click.stop="showRules(nitem, index, nIndex)"
>
费用 &nbsp;{{ nIndex + 1 }}
<span class="rules" style="color: #1989fa">
<span class="rules" style="color: #1989fa" @click.stop="showRules(nitem, index, nIndex)" >
<van-icon
size="18"
name="coupon-o"
color="#1989fa"
/></span
/>
</span
>
<span style="color: #1989fa; padding:5px" @click="addInvoice">
<van-icon
size="18"
name="plus"
color="#1989fa"
/>
</span>
</div>
<div
class="tp-rt"
v-if="!(item.expenseClaimDetails.length == 1)"
@ -989,6 +1000,15 @@ export default {
watch: {},
//
methods: {
//
addInvoice() {
this.$router.push({
path: '/myInvoice',
query: {
isAdd:'isAdd'
}
})
},
getTree() {
getAreaTree().then((res) => {
let tree = res.data || []

@ -104,6 +104,11 @@ export default {
},
created() {
this.handleInit()
const isAdd = this.$route.query && this.$route.query.isAdd === 'isAdd'
//
if(isAdd) {
this.handleToAdd()
}
},
methods: {
handleBack() {

Loading…
Cancel
Save