| | |
| | | <tr v-for="(item,index) in tableData"> |
| | | <td class="scroll-item" v-for="(subitem,i) in table"> |
| | | <view class="item-content" v-if="subitem.type != 'options'"> |
| | | <input type="text" v-model="item[subitem.type]"> |
| | | <input type="text" v-model="item[subitem.type]"> |
| | | </view> |
| | | |
| | | <!-- <view class="item-content" v-if="subitem.type != 'options' && !subitem.isInput"> |
| | | <text>{{item[subitem.type]}}</text> <text v-if="subitem.type == 'taxRate' || subitem.type == 'reimbursementRatio' ">%</text> |
| | | </view> --> |
| | | |
| | | <view v-if="subitem.type == 'options'" style="color: red;" @click="delItem(index)">删除</view> |
| | | </td> |
| | |
| | | title: '修改报销审批', |
| | | radiolist2: [{ |
| | | name: '餐费', |
| | | id: 1, |
| | | disabled: false |
| | | }, |
| | | { |
| | | name: '住宿费', |
| | | id: 2, |
| | | disabled: false |
| | | }, |
| | | { |
| | | name: '车费', |
| | | id: 3, |
| | | disabled: false |
| | | }, { |
| | | name: '油费', |
| | | id: 4, |
| | | disabled: false |
| | | }, { |
| | | name: '其他', |
| | | id: 5, |
| | | disabled: false |
| | | } |
| | | ], |
| | | radiovalue2: '餐费', |
| | | radiovalue2: '', |
| | | form: [ |
| | | {name: '项目名',placeholder: '请选择',inputType: 'chose',type: 'orderId',value: '',submitVal: ''}, |
| | | {name: '报销类型',placeholder: '请选择',required:true,inputType: 'select',type: 'reimburseId',value: '',submitVal: ''}, |
| | |
| | | {name: '报销明细',placeholder: '请选择',inputType: 'table'} |
| | | ], |
| | | table: [ |
| | | {name:'事由',type: 'occupation'}, |
| | | {name:'事由',type: 'occupation',isInput:true}, |
| | | {name:'费用类型',type: 'expenseType$'}, |
| | | {name:'税率',type: 'taxRate'}, |
| | | {name:'未税本币金额',type: 'untaxedAmountInLocalCurrency'}, |
| | |
| | | {name:'操作',type: 'options'} |
| | | ], |
| | | tableData: [ |
| | | { |
| | | occupation: 'CRMREIMBURSE1699507854268', |
| | | expenseType$: '1', |
| | | taxRate: '0.0', |
| | | untaxedAmountInLocalCurrency: '1.1', |
| | | untaxedAmount: '1.3', |
| | | taxAmount: 'aaa', |
| | | invoiceValue: '213', |
| | | invoiceAmountInLocalCurrency: '123213', |
| | | reimbursementRatio: '0.0', |
| | | reimbursementAmount: 11, |
| | | reimbursementAmountInLocalCurrency:12, |
| | | cashierConfirmationAmount: 123, |
| | | userId$: '123', |
| | | deptId$: '财务部', |
| | | updateTime: '2023-11-11', |
| | | updateUserName: 'name' |
| | | }, |
| | | { |
| | | occupation: '请选择', |
| | | expenseType$: '1', |
| | | taxRate: '0.0', |
| | | untaxedAmountInLocalCurrency: '1.1', |
| | | untaxedAmount: '1.3', |
| | | taxAmount: 'aaa', |
| | | invoiceValue: '213', |
| | | invoiceAmountInLocalCurrency: 'CRMREIMBURSE1699507854268', |
| | | reimbursementRatio: '0.0', |
| | | reimbursementAmount: 11, |
| | | reimbursementAmountInLocalCurrency:12, |
| | | cashierConfirmationAmount: 123, |
| | | userId$: '123', |
| | | deptId$: '财务部', |
| | | updateTime: '2023-11-11', |
| | | updateUserName: 'name' |
| | | }, |
| | | ], |
| | | dataRule: [ |
| | | {occupation: ''} |
| | |
| | | orderIdList: [], |
| | | newDetl: { |
| | | occupation: '', |
| | | expenseType$: '1', |
| | | taxRate: '0.0', |
| | | untaxedAmountInLocalCurrency: '1.1', |
| | | untaxedAmount: '1.3', |
| | | taxAmount: 'aaa', |
| | | invoiceValue: '213', |
| | | invoiceAmountInLocalCurrency: '123213', |
| | | reimbursementRatio: '0.0', |
| | | reimbursementAmount: 11, |
| | | reimbursementAmountInLocalCurrency:12, |
| | | cashierConfirmationAmount: 123, |
| | | userId$: '123', |
| | | deptId$: '财务部', |
| | | updateTime: '2023-11-11', |
| | | updateUserName: 'name' |
| | | expenseType$: '', |
| | | expenseType: null, |
| | | taxRate: 0, |
| | | untaxedAmountInLocalCurrency: 0, |
| | | untaxedAmount: 0, |
| | | taxAmount: 0, |
| | | invoiceValue: 0, |
| | | invoiceAmountInLocalCurrency: 0, |
| | | reimbursementRatio: 0, |
| | | reimbursementAmount: 0, |
| | | reimbursementAmountInLocalCurrency:0, |
| | | cashierConfirmationAmount: 0, |
| | | userId$: '', |
| | | deptId$: '', |
| | | updateTime: '', |
| | | updateUserName: '' |
| | | }, |
| | | } |
| | | }, |
| | |
| | | popChange(n) { |
| | | // var detl=JSON.parse(JSON.stringify(this.newDetl)); // 牛逼 |
| | | let detl = {...this.newDetl} // 牛逼 |
| | | console.log('groupChange', n); |
| | | console.log(this.radiovalue2); |
| | | detl.expenseType$ = this.radiovalue2 |
| | | for (let k in this.radiolist2) { |
| | | if (this.radiolist2[k].name == this.radiovalue2) { |
| | | detl.expenseType = this.radiolist2[k].id |
| | | } |
| | | } |
| | | this.tableData.push(detl) |
| | | this.$refs.popup.close() |
| | | }, |
| | |
| | | // console.log(this.orderIdList); |
| | | // console.log(this.orderIds); |
| | | console.log(param); |
| | | this.formAdd(param) |
| | | }, |
| | | |
| | | formAdd(param) { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/reimburseOnline/from/add/auth`, |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | data: JSON.stringify(param), |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | } |
| | | }) |
| | | }, |
| | | back() { |
| | | uni.navigateBack({}) |
| | | }, |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | list: [{ |
| | | user$: "张芬", |
| | | status$: "未完成", |
| | | createTime$:"2023-11-09 13:30:54", |
| | | templateName: '项目未完成', |
| | | checkData: '否', |
| | | settle$: '等待节点3审核' |
| | | }, ] |
| | | list: [] |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | } |
| | | } |
| | | _this.list = res.data.records |
| | | console.log(_this.list); |
| | | } |
| | | // _this.list = |
| | | } |
| | |
| | | |
| | | <view style="height: 70rpx;"> |
| | | |
| | | </view>w |
| | | </view> |
| | | |
| | | <view class="floor"> |
| | | <view class="wran">删除</view> |
| | |
| | | name$: '浙江天成自控股份有限公司', |
| | | status$: '未完成', |
| | | settle$: '等待节点3审核', |
| | | detl: '报销明细', |
| | | // detl: '报销明细', |
| | | updateUserId$: '张芬', |
| | | updateTime$: '2023-11-09 13:31:42' |
| | | }, ], |
| | |
| | | label: "进度", |
| | | attribute: "settle$", |
| | | }, |
| | | { |
| | | label: "报销明细", |
| | | attribute: "detl", |
| | | }, |
| | | // { |
| | | // label: "报销明细", |
| | | // attribute: "detl", |
| | | // }, |
| | | { |
| | | label: "更新人员", |
| | | attribute: "updateUserId$", |
| | |
| | | ] |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | let _this = this |
| | | _this.list = [] |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | eventChannel.on('busunessDetl', function(data) { |
| | | _this.list.push(data.data) |
| | | console.log(data) |
| | | _this.getTableData(data.data.id) |
| | | }) |
| | | |
| | | }, |
| | | methods: { |
| | | getTableData(id) { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/reimburseOnlineDetl/list/auth`, |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | data: {order_id: id}, |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | _this.onlineDetl = res.data.records |
| | | |
| | | } |
| | | console.log(res); |
| | | } |
| | | }) |
| | | }, |
| | | modiReimburse() { |
| | | uni.navigateTo({ |
| | | url: '/pages/business/goBusiness/modiReimburseOnlineDetl' |