whycq
2023-11-22 2e9799cb8800725371536cb4fd30cf8b7fca8527

2个文件已修改
26 ■■■■■ 已修改文件
pages/business/goBusiness/modiReimburseOnlineDetl.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/business/goBusiness/reimburseOnlineDetl.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/business/goBusiness/modiReimburseOnlineDetl.vue
@@ -6,14 +6,6 @@
        <uni-nav-bar left-icon="left" :title="title" @clickLeft="back" @clickRight="scan"  :fixed="true"
            :border="false" rightWidth="160rpx" leftWidth="160rpx"
            >
            <!-- <block slot="right">
                <view class="city">
                    <view>
                        <text class="uni-nav-bar-text">{{user.username}}</text>
                    </view>
                    <uni-icons type="arrowdown" color="#333333" size="20" />
                </view>
            </block> -->
         </uni-nav-bar>
        <view class="container">
            <view style="height: 16rpx;"></view>
@@ -23,7 +15,7 @@
                        <view class="card-required" v-show="item.required">*</view>
                        <view >{{item.name}}</view>
                    </view>
                    <uni-combox :candidates="orderIds" placeholder="请选择项目" v-model="orderId"
                    <uni-combox :candidates="orderIds" placeholder="请选择项目" v-model="item.value"
                        @input="getOrderId()" v-if="item.inputType == 'chose'">
                    </uni-combox>
                    <view class="flex">
@@ -204,7 +196,7 @@
                        updateTime: '',
                        updateUserName: ''
                    },
                type: 'modi'
                fixtype: 'modi'
            }
        },
        onLoad(option) {
@@ -213,9 +205,10 @@
            _this.list = []
            const eventChannel = this.getOpenerEventChannel();
            eventChannel.on('reimburseOnlineDetl', function(data) {
                console.log(data);
                if (data.data == 'add') {
                    _this.title = '添加报销审批'
                    _this.type = 'add'
                    _this.fixtype = 'add'
                }
                if (data.data == 'modi') {
                    // _this.title = '添加报销审批'
@@ -226,8 +219,8 @@
                        }
                    }
                    _this.form[2].value = data.detl.list.checkData
                    _this.form[0].value = data.detl.list.name$
                    _this.getOrderId(data.detl.list.name$)
                    _this.form[0].value = data.detl.list.orderId$
                    _this.getOrderId(data.detl.list.orderId$)
                    _this.tableData = data.detl.list.detl
                }
            })
@@ -341,7 +334,8 @@
                    uni.showToast({title: '请添加报销明细', icon: "none", position: 'top'})
                    return
                }
                if (this.type == 'add') {
                console.log(this.fixtype);
                if (this.fixtype == 'add') {
                    this.formAdd(param)
                } else {
                    this.formModi(param)
pages/business/goBusiness/reimburseOnlineDetl.vue
@@ -135,7 +135,7 @@
        <view class="main-box">
            <view class="box">
                <view class="box-title">流程动态</view>
                <u-steps :current="1" direction="column">
                <u-steps :current="current" direction="column">
                    <u-steps-item :title="`${item.title} ${item.time ? item.time : ''}`" :desc="item.msg" v-for="item in steps" />
                </u-steps>
            </view>
@@ -158,6 +158,7 @@
        data() {
            return {
                steps: [],
                current: 0,
                list: [{
                    templateName: '项目未完成',
                    checkData: '否',
@@ -277,6 +278,7 @@
                    header: { 'token': uni.getStorageSync('token') },
                    success(res) {
                        res = res.data
                        _this.current = res.data.settle-1
                        _this.steps = JSON.parse(res.data.settleMsg)
                    }
                })