App-Android(使用App+htnl5框架,解决消息推送兼容SignalR问题)
loulijun2021
2022-09-28 0e5cc5f682866e32be324024a72f54d117eb6423
pages/sbgl/dqby.html
@@ -154,7 +154,7 @@
                  dropdownValue = topContent.find(r => r.code === topContent[0].code).main_cycle
                  centerContent = res.data
                  centerContent = JSON.parse(JSON.stringify(centerContent))
                  // centerContent = JSON.parse(JSON.stringify(centerContent))
                  centerContent.forEach(item => {
                     item.isDisabled = item.isscan === 'Y'
                     item.inputValue = ''
@@ -409,11 +409,13 @@
         },
         methods: {
            // 月 年选择
            onSelectSheet(val) {
               dropdownValue = val
               dropdownValue = val.code
               this.$forceUpdate()
               this.sheetFlag = false
            },
            //提交
            submit() {
               let children = []
               centerContent.forEach(item => {
@@ -433,15 +435,11 @@
                  children: children
               }
               console.log(data, 1)
               const params = {
                  username: localStorage.getItem('username'),
                  maintcyc: dropdownValue
               }
// vant.Notify(JSON.stringify(params))
// vant.Toast(JSON.stringify(data))
               post('AppDeviceManage/AppDeviceRepairSave' + formatParams(params), data)
                  .then(res => {
                     if (res.code === '200') {
@@ -470,6 +468,7 @@
            vanFieldBlur() {
               this.$forceUpdate()
            },
            //扫描保养工位点击不同选择项
            topContentClcik(code) {
               radioValue = code
               this.$forceUpdate()
@@ -500,16 +499,11 @@
                  }
               })
            },
            //保养结果点击
            resultClick(val) {
               resultValue = val
               this.$forceUpdate()
            },
            selected(id) {
               alert(id)
            },
            // 扫描保养工位扫描
            topScanClick() {
               createWithoutTitle('../../components/barcode_scan.html', {
@@ -547,7 +541,6 @@
                  }
               });
            },
            // 部位正常 异常按钮点击
            bwClick(item, val) {
               item.isOK = val