|
|
@@ -138,7 +138,7 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 维修师傅 -->
|
|
|
- <view class="item_time" v-if="item.type === 2 || item.type === 3 || item.type === 4 || item.type === 6">
|
|
|
+ <view class="item_time" v-if="item.type === 2 || item.type === 3 || item.type === 4 || item.type === 6 || item.type === 5">
|
|
|
<view class="time_msg">
|
|
|
维修师傅:
|
|
|
<text>{{ item.workerName }}</text>
|
|
|
@@ -146,7 +146,7 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 师傅电话 -->
|
|
|
- <view class="item_box" v-if="item.type === 2 || item.type === 3 || item.type === 4 || item.type === 6">
|
|
|
+ <view class="item_box" v-if="item.type === 2 || item.type === 3 || item.type === 4 || item.type === 6 || item.type === 5">
|
|
|
<view class="box_key">师傅电话:</view>
|
|
|
<view class="box_value phone" @click="handleCallPhone(item.workerPhone)">
|
|
|
{{ item.workerPhone }}
|
|
|
@@ -155,9 +155,9 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 维修费用 -->
|
|
|
- <view class="item_box" v-if="item.type === 3 || item.type === 4">
|
|
|
+ <view class="item_box" v-if="item.type === 3 || item.type === 4 || item.type === 5">
|
|
|
<view class="box_key">维修费用:</view>
|
|
|
- <view class="box_value2 phone" @click="checkFeeDetail">
|
|
|
+ <view class="box_value2 phone" @click="checkFeeDetail(item)">
|
|
|
{{ item.money }}元
|
|
|
<img src="../../static/images/repairsImg/eye.png" />
|
|
|
</view>
|
|
|
@@ -171,11 +171,11 @@
|
|
|
<view class="btn_box type" v-if="item.type === 1 && btns.includes('接单')" @click="handleOrderReceiving">接单</view>
|
|
|
<view class="btn_box type2" v-if="item.type === 1 && btns.includes('转单')" @click="handleTransferOrder">转单</view>
|
|
|
<view class="btn_box type2" v-if="item.type === 1 && btns.includes('派单')" @click="handleSendOrder">派单</view>
|
|
|
- <view class="btn_box type" v-if="item.type === 2 && btns.includes('报价')" @click="handleOffer">报价</view>
|
|
|
+ <view class="btn_box type" v-if="item.type === 2 && btns.includes('报价')" @click="handleOffer(item)">报价</view>
|
|
|
<view class="btn_box type2" v-if="item.type === 2 && btns.includes('维修完成')" @click="handleFinish">维修完成</view>
|
|
|
|
|
|
<view class="btn_box type" v-if="item.type === 3 && btns.includes('审核')" @click="handleAudit(item.status)">审核</view>
|
|
|
- <view class="btn_box type" v-if="item.type === 5" @click="handleChangeOffer">改价</view>
|
|
|
+ <view class="btn_box type" v-if="item.type === 5" @click="handleChangeOffer(item)">改价</view>
|
|
|
<view class="btn_box type2" v-if="item.type === 5" @click="handleLeaveWords">留言</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -219,21 +219,25 @@
|
|
|
维修费用
|
|
|
<text @click="$refs.popup_fee[0].close()">×</text>
|
|
|
</view>
|
|
|
- <view class="fee_box">
|
|
|
- 耗材:
|
|
|
- <text>螺丝刀</text>
|
|
|
- </view>
|
|
|
- <view class="fee_box">
|
|
|
- 耗材单价:
|
|
|
- <text>1元</text>
|
|
|
- </view>
|
|
|
- <view class="fee_box">
|
|
|
- 耗材数量:
|
|
|
- <text>2</text>
|
|
|
- </view>
|
|
|
- <view class="fee_box">
|
|
|
- 耗材费用:
|
|
|
- <text>2元</text>
|
|
|
+ <view class="fee_content">
|
|
|
+ <view class="fee_item" v-for="(element, index2) in goodsList" :key="index2">
|
|
|
+ <view class="fee_box">
|
|
|
+ 耗材:
|
|
|
+ <text>{{ element.name }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="fee_box">
|
|
|
+ 耗材单价:
|
|
|
+ <text>{{ element.price }}元</text>
|
|
|
+ </view>
|
|
|
+ <view class="fee_box">
|
|
|
+ 耗材数量:
|
|
|
+ <text>{{ element.num }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="fee_box">
|
|
|
+ 耗材费用:
|
|
|
+ <text>{{ element.count }}元</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
@@ -320,8 +324,16 @@ export default {
|
|
|
],
|
|
|
workerName: '老张',
|
|
|
workerPhone: '13659585689',
|
|
|
- money: 50,
|
|
|
- status: 1
|
|
|
+ money: 10,
|
|
|
+ status: 1,
|
|
|
+ goodsList: [
|
|
|
+ {
|
|
|
+ name: '螺丝刀',
|
|
|
+ price: 5,
|
|
|
+ num: 2,
|
|
|
+ count: 10
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
id: 369,
|
|
|
@@ -342,8 +354,22 @@ export default {
|
|
|
],
|
|
|
workerName: '老张',
|
|
|
workerPhone: '13659585689',
|
|
|
- money: 50,
|
|
|
- status: 2
|
|
|
+ money: 12,
|
|
|
+ status: 2,
|
|
|
+ goodsList: [
|
|
|
+ {
|
|
|
+ name: '螺丝刀',
|
|
|
+ price: 5,
|
|
|
+ num: 2,
|
|
|
+ count: 10
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '螺丝',
|
|
|
+ price: 1,
|
|
|
+ num: 2,
|
|
|
+ count: 2
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
],
|
|
|
temList2: [
|
|
|
@@ -405,7 +431,15 @@ export default {
|
|
|
workerName: '老张',
|
|
|
workerPhone: '13659585689',
|
|
|
money: 50,
|
|
|
- status: 1
|
|
|
+ status: 1,
|
|
|
+ goodsList: [
|
|
|
+ {
|
|
|
+ name: '螺丝刀',
|
|
|
+ price: 5,
|
|
|
+ num: 2,
|
|
|
+ count: 10
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
id: 369,
|
|
|
@@ -427,7 +461,15 @@ export default {
|
|
|
workerName: '老张',
|
|
|
workerPhone: '13659585689',
|
|
|
money: 50,
|
|
|
- status: 2
|
|
|
+ status: 2,
|
|
|
+ goodsList: [
|
|
|
+ {
|
|
|
+ name: '螺丝刀',
|
|
|
+ price: 5,
|
|
|
+ num: 2,
|
|
|
+ count: 10
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
id: 4,
|
|
|
@@ -448,7 +490,21 @@ export default {
|
|
|
],
|
|
|
workerName: '老张',
|
|
|
workerPhone: '13659585689',
|
|
|
- money: 50
|
|
|
+ money: 50,
|
|
|
+ goodsList: [
|
|
|
+ {
|
|
|
+ name: '螺丝刀',
|
|
|
+ price: 5,
|
|
|
+ num: 2,
|
|
|
+ count: 10
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '螺丝',
|
|
|
+ price: 1,
|
|
|
+ num: 2,
|
|
|
+ count: 2
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
id: 5,
|
|
|
@@ -469,7 +525,15 @@ export default {
|
|
|
],
|
|
|
workerName: '老张',
|
|
|
workerPhone: '13659585689',
|
|
|
- money: 50
|
|
|
+ money: 50,
|
|
|
+ goodsList: [
|
|
|
+ {
|
|
|
+ name: '螺丝刀',
|
|
|
+ price: 5,
|
|
|
+ num: 2,
|
|
|
+ count: 10
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
id: 6,
|
|
|
@@ -490,9 +554,25 @@ export default {
|
|
|
],
|
|
|
workerName: '老张',
|
|
|
workerPhone: '13659585689',
|
|
|
- money: 50
|
|
|
+ money: 50,
|
|
|
+ goodsList: [
|
|
|
+ {
|
|
|
+ name: '螺丝刀',
|
|
|
+ price: 5,
|
|
|
+ num: 2,
|
|
|
+ count: 10
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '螺丝',
|
|
|
+ price: 1,
|
|
|
+ num: 2,
|
|
|
+ count: 2
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ // 维修费用弹窗数组
|
|
|
+ goodsList: []
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -564,15 +644,17 @@ export default {
|
|
|
this.activeIndex = val
|
|
|
},
|
|
|
// 报价按钮回调
|
|
|
- handleOffer() {
|
|
|
+ handleOffer(item) {
|
|
|
+ let info = encodeURIComponent(JSON.stringify(item))
|
|
|
uni.navigateTo({
|
|
|
- url: '/pagesRepairs/offer/offer'
|
|
|
+ url: `/pagesRepairs/offer/offer?info=${info}`
|
|
|
})
|
|
|
},
|
|
|
// 改价按钮回调
|
|
|
- handleChangeOffer() {
|
|
|
+ handleChangeOffer(item) {
|
|
|
+ let info = encodeURIComponent(JSON.stringify(item))
|
|
|
uni.navigateTo({
|
|
|
- url: '/pagesRepairs/offer/offer?type=1'
|
|
|
+ url: `/pagesRepairs/offer/offer?info=${info}&type=1`
|
|
|
})
|
|
|
},
|
|
|
// 维修完成按钮回调
|
|
|
@@ -631,7 +713,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 查看维修费用回调
|
|
|
- checkFeeDetail() {
|
|
|
+ checkFeeDetail(item) {
|
|
|
+ // console.log(item)
|
|
|
+ this.goodsList = item.goodsList
|
|
|
this.$refs.popup_fee[0].open('center')
|
|
|
},
|
|
|
// 点击电话号码回调
|
|
|
@@ -1046,16 +1130,24 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .fee_box {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- padding-left: 42rpx;
|
|
|
- height: 80rpx;
|
|
|
- // font-size: 28rpx;
|
|
|
- color: #808080;
|
|
|
-
|
|
|
- text {
|
|
|
- color: #000000;
|
|
|
+ .fee_content {
|
|
|
+ max-height: 50vh;
|
|
|
+ overflow-y: auto;
|
|
|
+
|
|
|
+ .fee_item {
|
|
|
+ border-bottom: 1rpx solid #e6e6e6;
|
|
|
+ .fee_box {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding-left: 42rpx;
|
|
|
+ height: 80rpx;
|
|
|
+ // font-size: 28rpx;
|
|
|
+ color: #808080;
|
|
|
+
|
|
|
+ text {
|
|
|
+ color: #000000;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|