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