|
|
@@ -1,4 +1,4 @@
|
|
|
-import { Post } from "../../../../lib/request/method";
|
|
|
+import { Post } from "../../../../lib/request/method";
|
|
|
Page({
|
|
|
data: {
|
|
|
id: "",
|
|
|
@@ -16,17 +16,16 @@ Page({
|
|
|
showAppointmentInfo: false,
|
|
|
},
|
|
|
onLoad(options: any) {
|
|
|
- console.log(options, '传过来的参数')
|
|
|
if (options.id) {
|
|
|
this.getVerifyRecordList(options.id);
|
|
|
}
|
|
|
},
|
|
|
- // 生成二维码
|
|
|
- generateQRCode(qrCodeUrl:any) {
|
|
|
- this.setData({
|
|
|
- qrCodeUrl
|
|
|
- });
|
|
|
- },
|
|
|
+ // 生成二维码
|
|
|
+ generateQRCode(qrCodeUrl: any) {
|
|
|
+ this.setData({
|
|
|
+ qrCodeUrl
|
|
|
+ });
|
|
|
+ },
|
|
|
// 获取核销记录列表
|
|
|
async getVerifyRecordList(id: number) {
|
|
|
try {
|
|
|
@@ -39,21 +38,19 @@ Page({
|
|
|
},
|
|
|
}
|
|
|
);
|
|
|
- console.log(res, "res===核销记录列表")
|
|
|
- if(res && res.patientConditioningSwagItemOffline && JSON.stringify(res.patientConditioningSwagItemOffline) !== '{}'){
|
|
|
+ if (res && res.patientConditioningSwagItemOffline && JSON.stringify(res.patientConditioningSwagItemOffline) !== '{}') {
|
|
|
this.setData({
|
|
|
showAppointmentInfo: true,
|
|
|
});
|
|
|
this.setData({
|
|
|
appointmentInfo: res.patientConditioningSwagItemOffline,
|
|
|
});
|
|
|
- this.generateQRCode(this.data.appointmentInfo.cpSupplierQrCode);
|
|
|
- }else{
|
|
|
+ this.generateQRCode(this.data.appointmentInfo.cpSupplierQrCode);
|
|
|
+ } else {
|
|
|
this.setData({
|
|
|
showAppointmentInfo: false,
|
|
|
});
|
|
|
}
|
|
|
- console.log(this.data.appointmentInfo, "this.data.appointmentInfo")
|
|
|
if (res && res.patientConditioningSwagItemOfflines && res.patientConditioningSwagItemOfflines.length > 0) {
|
|
|
this.setData({
|
|
|
recordList: res.patientConditioningSwagItemOfflines,
|