ll
liukangdong
2024-12-23 5c53a09ff28e5be90af9c1bc0534a4320fc5aec0
h5/pages/operation/device.vue
@@ -83,7 +83,8 @@
   import {
      uploadUrl,
      ywDevicePost,
      ywDeviceCreate
      ywDeviceCreate,
      getPointRecordByCode
   } from '@/api'
   import dayjs from 'dayjs';
   import {
@@ -122,7 +123,7 @@
         },
         handleP() {
            const {
               param,
               param,
               fileList
            } = this
            ywDeviceCreate({
@@ -285,8 +286,19 @@
                     },
                     (decodeText, decodeResult) => {
                        if (decodeText) { //这里decodeText就是通过扫描二维码得到的内容
                           this.$set(this.param, 'deviceCode', decodeText)
                           this.stopScan(); //关闭扫码功能
                           this.$set(this.param, 'deviceCode', decodeText)
                           this.stopScan(); //关闭扫码功能
                           getPointRecordByCode({
                              // taskId: this.id,
                              pointCode: decodeText
                           }).then(ress => {
                              if (ress.data) {
                                 console.log('ress', ress.data);
                              } else {
                                 this.showToast('未匹配到巡检点,请重新扫描')
                              }
                           })
                        }
                     },
                     (err) => {