This commit is contained in:
2023-11-14 15:42:22 +08:00
parent c3bf2fa4cb
commit 58979e533e

View File

@ -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) {