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

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

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

Loading…
Cancel
Save