Browse Source

新增订单流转

master
longjieli 4 months ago
parent
commit
0d88a97885
4 changed files with 30 additions and 1 deletions
  1. +2
    -0
      api/api.js
  2. +7
    -0
      pages.json
  3. +6
    -1
      pages/finish/finish.vue
  4. +15
    -0
      pages/order/order.vue

+ 2
- 0
api/api.js View File

@ -34,6 +34,8 @@ const config = {
getUserAgreement : { url : '/school/login/getUserAgreement', method : 'GET', auth : false , limit : 500},
//获取维修项目
getRepairList : { url : '/school-api/getRepairList', method : 'GET', auth : false , limit : 500},
//获取流转明细
getOrderFlowList : { url : '/school-api/getOrderFlowList', method : 'GET', auth : false , limit : 500},
}


+ 7
- 0
pages.json View File

@ -52,6 +52,13 @@
"style": {
"navigationBarTitleText": "我的维修单"
}
},
{
"path" : "pages/roam/roam",
"style" :
{
"navigationBarTitleText" : "订单流转"
}
}
],
"globalStyle": {


+ 6
- 1
pages/finish/finish.vue View File

@ -4,9 +4,14 @@
<!-- <navbar title="结单" :leftClick="leftClick"></navbar> -->
<uv-form labelPosition="top" :model="form" errorType="toast" :rules="rules" ref="form" labelWidth="140">
<uv-form-item @click="processingPickerOpen" label="处理结果" prop="successTitle">
<!-- <uv-form-item @click="processingPickerOpen" label="处理结果" prop="successTitle">
<uv-input readonly placeholder="请选择处理结果" v-model="form.successTitle"
:fontSize="30"></uv-input>
</uv-form-item> -->
<uv-form-item label="处理结果" prop="successTitle">
<uv-input placeholder="请选择处理结果" v-model="form.successTitle"
:fontSize="30"></uv-input>
</uv-form-item>
<uv-form-item label="收费金额" prop="successPrice">


+ 15
- 0
pages/order/order.vue View File

@ -19,6 +19,7 @@
<uv-read-more :shadowStyle="shadowStyle" show-height="80rpx" fontSize="30rpx" :toggle="true">
<view>
{{ item.context }}
<view class="phone">学生电话:{{ item.phone }}</view>
</view>
</uv-read-more>
</view>
@ -31,6 +32,8 @@
<uv-tags :text="item.project" plain size="mini" type="primary"></uv-tags>
</view>
<view class="btns">
<view @click="toRoam(item.id)" class="btn roam">流转记录
</view>
<view v-if="userInfo.isDai == '1' && !item.cleckState || item.cleckState == '0'" @click="toReject(item.id)" class="btn">驳回
</view>
<view v-if="userInfo.isDai == '1' && !item.cleckState || item.cleckState == '0'" @click="toFinish(item.id)" class="btn">结单
@ -49,6 +52,7 @@
import {
mapState,
} from 'vuex'
import roamVue from '../roam/roam.vue'
export default {
data() {
return {
@ -130,6 +134,13 @@
this.total = res.result.total
}
})
},
//
toRoam(id){
uni.navigateTo({
url: `/pages/roam/roam?orderId=${id}`
})
}
},
computed: {
@ -248,4 +259,8 @@
.btn:nth-child(2) {
background: #3c9cff;
}
.roam {
background: #ccc;
}
</style>

Loading…
Cancel
Save