#
whycq
2023-11-23 d3009fb2a181b7c78ed24e27b5d450a7ad1fa386
pages/business/goBusiness/reimburseOnline.vue
@@ -3,7 +3,6 @@
      <view class="status_bar">
         <!-- 这里是状态栏 -->
      </view>
      <uni-nav-bar left-icon="left" title="报销申请" @clickLeft="back" @clickRight="scan"  :fixed="true"
         :border="false" rightWidth="160rpx" leftWidth="160rpx"
         >
@@ -16,7 +15,11 @@
            </view>
         </block>
       </uni-nav-bar>
      <!-- todo:搜索 -->
      <!-- 搜索框 -->
      <view class="search-bg">
         <u-search placeholder="输入" v-model="keyword" :clearabled="true" @custom="search()" @search="search()"></u-search>
      </view>
      <view class="main-box">
         <view class="box" v-for="item in list" @click="goDetl(item)">
            <view style="display: flex;">
@@ -32,7 +35,7 @@
         </view>
      </view>
      
      <u-empty v-if="true" icon="../../../static/image/emptyList.png" v-show="list.length <= 0" />
      <view class="fxbtn">
         <uni-icons type="plusempty" color="#fff" @click="add()" ></uni-icons>
      </view>
@@ -44,10 +47,11 @@
   export default {
      data() {
         return {
            keyword: '',
            user: {
               username: '',
               id: 0,
               type: ''
               type: 'user_id'
            },
            falg: true,
            list: []
@@ -56,23 +60,21 @@
      onShow() {
         let that = this
         uni.$on('isRefresh',function(data){
            console.log(data);
            that.user.username = data.title
            that.user.id = data.id
            that.user.type = data.key
            that.falg = false
         })
         setTimeout(()=> {
            this.getReimburseOnline()
         },50)
         if (this.falg) {
            this.getDetail()
         }
         setTimeout(()=> {
            this.getReimburseOnline()
         },50)
      },
      methods: {
         async getDetail() {
            let res = await user.getDetail()
            console.log(res);
            if (res.code === 200) {
               this.user.username = res.data.username
               this.user.id = res.data.id
@@ -116,6 +118,7 @@
               header: { 'token': uni.getStorageSync('token') },
               data: param,
               success(res) {
                  console.log(res);
                  res = res.data
                  if (res.code === 200) {
                     for (let k of res.data.records) {