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;"> <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) {