This commit is contained in:
曹辉 2023-04-12 14:13:29 +08:00
parent 7a30e6b097
commit 741b9f2015
3 changed files with 8 additions and 7 deletions

View File

@ -177,7 +177,7 @@
// //
gotaskDetails(item) { gotaskDetails(item) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/taskDetails/taskDetails?orderDetailsId=${item.orderNo}` url: `/pages/taskDetails/taskDetails?orderNo=${item.orderNo}`
}) })
}, },
}, },

View File

@ -223,6 +223,7 @@
success(res) { success(res) {
that.list.onDutyPictureUrl = JSON.parse(res.data) that.list.onDutyPictureUrl = JSON.parse(res.data)
.imgUrl .imgUrl
that.list.orderNo = that.itemlist.orderNo
orderConfirm(that.list).then(res => { orderConfirm(that.list).then(res => {
if (res.code == 200) { if (res.code == 200) {
that.$refs.uToast.show({ that.$refs.uToast.show({

View File

@ -98,13 +98,13 @@
latitude: null, latitude: null,
longitude: null, longitude: null,
}, },
orderDetailsId: null, //id orderNo: null, //orderno
} }
}, },
methods: { methods: {
// //
taskDetailsinfo(orderDetailsId) { taskDetailsinfo(orderNo) {
taskDetails(orderDetailsId).then(res => { taskDetails(orderNo).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.list = res.data this.list = res.data
} }
@ -125,7 +125,7 @@
type: 'success', type: 'success',
duration: '1500' duration: '1500'
}) })
this.taskDetailsinfo(this.orderDetailsId) this.taskDetailsinfo(this.orderNo)
} }
}) })
}, },
@ -169,7 +169,7 @@
}, },
}, },
onLoad(options) { onLoad(options) {
this.orderDetailsId = options.orderDetailsId this.orderNo = options.orderNo
}, },
onShow() { onShow() {
var that = this var that = this
@ -177,7 +177,7 @@
if (value) { if (value) {
that.nursePersonId = value that.nursePersonId = value
} else {} } else {}
this.taskDetailsinfo(this.orderDetailsId) this.taskDetailsinfo(this.orderNo)
}, },
} }
</script> </script>