| | |
| | | <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> |
| | |
| | | <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"> |
| | |
| | | updateTime: '', |
| | | updateUserName: '' |
| | | }, |
| | | type: 'modi' |
| | | fixtype: 'modi' |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | |
| | | _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 = '添加报销审批' |
| | |
| | | } |
| | | } |
| | | _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 |
| | | } |
| | | }) |
| | |
| | | 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) |