|
@@ -621,6 +621,7 @@
|
|
|
</block>
|
|
|
<!-- 服务中 -->
|
|
|
<block v-if="orderStatus_v == 'FWZ' || orderStatus_v == 'YCD'">
|
|
|
+ <u-button plain type="primary" text="变更小工" @tap="biangengxiaogong()"></u-button>
|
|
|
<u-button
|
|
|
plain
|
|
|
type="primary"
|
|
@@ -642,7 +643,7 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
</zj-page-layout>
|
|
|
-
|
|
|
+ <selectionWorkers v-if="item" :detail="item" :type="selectionWorkersType" :callback="callback" />
|
|
|
<u-popup :show="isShowFeedback" @close="isShowFeedback = false" closeable round="10">
|
|
|
<view class="feedback-dialog">
|
|
|
<view class="title">服务路由</view>
|
|
@@ -657,11 +658,12 @@
|
|
|
<script>
|
|
|
import zjDialogPicker from '@/components/zj-dialog/zj-dialog-picker.vue'
|
|
|
import Logistics from '@/components/logistics2/common-logistics.vue'
|
|
|
-
|
|
|
+import selectionWorkers from '@/components/selectionWorkers.vue'
|
|
|
export default {
|
|
|
components: {
|
|
|
zjDialogPicker,
|
|
|
- Logistics
|
|
|
+ Logistics,
|
|
|
+ selectionWorkers
|
|
|
},
|
|
|
|
|
|
filters: {
|
|
@@ -709,7 +711,10 @@ export default {
|
|
|
|
|
|
isShowFeedback: false,
|
|
|
feedbackList: [],
|
|
|
- behavior: ''
|
|
|
+ behavior: '',
|
|
|
+ selectionWorkersType: '',
|
|
|
+ item: null,
|
|
|
+ callback: null
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -1004,16 +1009,75 @@ export default {
|
|
|
.catch(() => {})
|
|
|
},
|
|
|
|
|
|
+ // 变更小工
|
|
|
+ biangengxiaogong() {
|
|
|
+ this.selectionWorkersType = 3
|
|
|
+ this.item = { ...this.detail }
|
|
|
+ this.callback = () => {
|
|
|
+ this.$successToast()
|
|
|
+ this.getDetail()
|
|
|
+ this.crossPage.$emit('refreshWorkorderList', '')
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.item = null
|
|
|
+ this.selectionWorkersType = null
|
|
|
+ this.callback = null
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
// 接单
|
|
|
actionReceive() {
|
|
|
+ this.selectionWorkersType = 1
|
|
|
+ this.item = { ...this.detail }
|
|
|
+ this.callback = () => {
|
|
|
+ this.$successToast()
|
|
|
+ this.getDetail()
|
|
|
+ this.crossPage.$emit('refreshWorkorderList', '')
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.item = null
|
|
|
+ this.selectionWorkersType = null
|
|
|
+ this.callback = null
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // this.$modal({
|
|
|
+ // title: '接单确认',
|
|
|
+ // content: '确认接单?'
|
|
|
+ // })
|
|
|
+ // .then(() => {
|
|
|
+ // this.$api
|
|
|
+ // .post('/pg/order/base/rece', {
|
|
|
+ // orderBaseId: this.id
|
|
|
+ // })
|
|
|
+ // .then(res => {
|
|
|
+ // this.$successToast()
|
|
|
+ // this.getDetail()
|
|
|
+ // this.crossPage.$emit('refreshWorkorderList', '')
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+ // .catch(() => {})
|
|
|
+ },
|
|
|
+
|
|
|
+ qdOrder(item) {
|
|
|
+ // this.selectionWorkersType = 2
|
|
|
+ // this.item = { ...item }
|
|
|
+ // this.callback = () => {
|
|
|
+ // this.$successToast()
|
|
|
+ // this.getDetail()
|
|
|
+ // this.crossPage.$emit('refreshWorkorderList', '')
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.item = null
|
|
|
+ // this.selectionWorkersType = null
|
|
|
+ // this.callback = null
|
|
|
+ // })
|
|
|
+ // }
|
|
|
this.$modal({
|
|
|
- title: '接单确认',
|
|
|
- content: '确认接单?'
|
|
|
+ title: '抢单确认',
|
|
|
+ content: '确认抢单?'
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.$api
|
|
|
- .post('/pg/order/base/rece', {
|
|
|
- orderBaseId: this.id
|
|
|
+ .post('/pg/order/base/qd', {
|
|
|
+ orderBaseId: item.id
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.$successToast()
|
|
@@ -1063,25 +1127,6 @@ export default {
|
|
|
this.$navToPage({
|
|
|
url: `/packageWorkorder/pages/overDetail?id=${this.id}`
|
|
|
})
|
|
|
- },
|
|
|
-
|
|
|
- qdOrder(item) {
|
|
|
- this.$modal({
|
|
|
- title: '抢单确认',
|
|
|
- content: '确认抢单?'
|
|
|
- })
|
|
|
- .then(() => {
|
|
|
- this.$api
|
|
|
- .post('/pg/order/base/qd', {
|
|
|
- orderBaseId: item.id
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- this.$successToast()
|
|
|
- this.getDetail()
|
|
|
- this.crossPage.$emit('refreshWorkorderList', '')
|
|
|
- })
|
|
|
- })
|
|
|
- .catch(() => {})
|
|
|
}
|
|
|
}
|
|
|
}
|