修改
This commit is contained in:
parent
c3bf2fa4cb
commit
58979e533e
@ -103,6 +103,8 @@
|
||||
<view v-else class="" style="margin-top: 100rpx;">
|
||||
<u-empty text="暂无工单" mode="list" icon-size='240' font-size='32'></u-empty>
|
||||
</view>
|
||||
<u-modal v-model="workshow" content="确定完成该工单吗?" show-cancel-button :mask-close-able="true"
|
||||
@confirm='workupdata'></u-modal>
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
</template>
|
||||
@ -125,6 +127,8 @@
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
workshow: false,
|
||||
worklist: {},
|
||||
tabslist: [{
|
||||
name: '全部工单',
|
||||
value: '',
|
||||
@ -186,6 +190,22 @@
|
||||
this.info()
|
||||
},
|
||||
methods: {
|
||||
workupdata() {
|
||||
var obj = {
|
||||
"goodsOrderId": this.worklist.goodsOrderId,
|
||||
"orderStatus": "COMPLETED",
|
||||
}
|
||||
updateStatus(obj).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$refs.uToast.show({
|
||||
title: '工单已成功',
|
||||
type: 'success',
|
||||
duration: '1500'
|
||||
})
|
||||
this.info();
|
||||
}
|
||||
})
|
||||
},
|
||||
//前往聊天
|
||||
goseekadvicefrom(item) {
|
||||
uni.navigateTo({
|
||||
@ -200,20 +220,8 @@
|
||||
},
|
||||
//完成
|
||||
goconfirmCompletion(item) {
|
||||
var obj = {
|
||||
"goodsOrderId": item.goodsOrderId,
|
||||
"orderStatus": "COMPLETED",
|
||||
}
|
||||
updateStatus(obj).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$refs.uToast.show({
|
||||
title: '工单已成功',
|
||||
type: 'success',
|
||||
duration: '1500'
|
||||
})
|
||||
this.info();
|
||||
}
|
||||
})
|
||||
this.workshow = true
|
||||
this.worklist = item
|
||||
},
|
||||
//任务退回
|
||||
gotaskReturn(item) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user