Commit 3e43dae6 by liangjianmin

feat(approve): refactor detail page with modal approval workflow and uView config

- Update uView configuration to use setConfig with unit and component size settings
- Add approval modal component with radio selection and textarea for remarks
- Refactor detail page field bindings to use snake_case API response format
- Simplify order information section and remove agent fee details
- Add bottom action buttons for cancel and review approval
- Implement modal state management for approval workflow
- Add approve-modal styling with proper padding and layout
- Format code with consistent spacing and indentation in main.js
parent 448118af
...@@ -183,4 +183,30 @@ ...@@ -183,4 +183,30 @@
align-items: center; align-items: center;
z-index: 100; z-index: 100;
} }
.approve-modal {
padding: 40rpx 32rpx;
padding-bottom: calc(40rpx + env(safe-area-inset-bottom));
.modal-title {
font-size: 34rpx;
font-weight: 700;
color: #1e293b;
text-align: center;
margin-bottom: 40rpx;
}
.modal-body {
margin-bottom: 40rpx;
.modal-textarea-wrap {
margin-top: 32rpx;
}
}
.modal-footer {
display: flex;
align-items: center;
}
}
} }
import App from './App' import App from './App'
import {request} from './util/util.js' import { request } from './util/util.js'
import uView from '@/uni_modules/uview-ui' import uView from '@/uni_modules/uview-ui'
// #ifndef VUE3 // #ifndef VUE3
import Vue from 'vue' import Vue from 'vue'
Vue.use(uView) Vue.use(uView)
uni.$u.config.unit = 'rpx'
uni.$u.setConfig({
config: {
unit: 'rpx'
},
props: {
radio: {
size: 30,
labelSize: 30
},
checkbox: {
labelSize: 30
},
text: {
size: 30
},
input: {
fontSize: 30
},
textarea: {
fontSize: 30
}
}
})
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.prototype.request = request; Vue.prototype.request = request;
App.mpType = 'app' App.mpType = 'app'
const app = new Vue({ const app = new Vue({
...App ...App
}) })
app.$mount() app.$mount()
// #endif // #endif
......
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
*/ */
handleApprove(item) { handleApprove(item) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/approve/detail' url: `/pages/approve/detail?id=${item.id}`
}); });
} }
} }
......
...@@ -58,7 +58,11 @@ const API = { ...@@ -58,7 +58,11 @@ const API = {
/** /**
* 获取审批列表 * 获取审批列表
*/ */
feeApproveList: API_BASE + '/api/approve/feeApproveList' feeApproveList: API_BASE + '/api/approve/feeApproveList',
/**
* 费用审批状态修改
*/
updateFeeApproveStatus: API_BASE + '/api/approve/updateFeeApproveStatus'
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment