main
fanfan 8 months ago
parent 022cf7f9dc
commit 388469fdff
  1. 3
      pages/invoice/edit.vue
  2. 12
      pages/invoice/index.vue

@ -252,6 +252,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page{
margin-bottom: 50rpx;
}
.invoice { .invoice {
&-goods { &-goods {
padding: 0 20rpx 0 40rpx; padding: 0 20rpx 0 40rpx;

@ -20,7 +20,7 @@
{{tabIndex == i?'已设为默认':'设为默认'}} {{tabIndex == i?'已设为默认':'设为默认'}}
</view> </view>
<view class="d"> <view class="d">
<text @click.stop="onEdit(item)">编辑</text> <text @click.stop="toDetail(item.id)">编辑</text>
<text @click.stop="onDel(item.id)">删除</text> <text @click.stop="onDel(item.id)">删除</text>
</view> </view>
</view> </view>
@ -89,20 +89,14 @@
.orderId .orderId
}) })
}, },
onEdit(item) {
uni.navigateTo({
url: "/pages/invoice/edit?detail=" + JSON.stringify(item) + '&source=' + 4
.orderId
})
},
toDetail(id) { toDetail(id) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/invoice/detail?id=" + id url: "/pages/invoice/editset?id=" + id
}) })
}, },
onAddInvoice() { onAddInvoice() {
uni.navigateTo({ uni.navigateTo({
url: "/pages/invoice/edit?source=" + 3 url: "/pages/invoice/editset"
}) })
}, },
} }

Loading…
Cancel
Save