| | |
| | | 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 = '' |
| | |
| | | </template> |
| | | </van-nav-bar> |
| | | |
| | | |
| | | <div v-if="topContent.length===0"> |
| | | <div class="sacnBody"> |
| | | <div class="scanImg" @click="topScanClick()"></div> |
| | | <div class="scanText">扫描保养工位</div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div v-else> |
| | | |
| | | <div class="head"> |
| | | <div class="head_block"> |
| | |
| | | |
| | | <div class="" style="width: 40%;display: flex;justify-content: space-around;"> |
| | | <van-button class="buttonSmall" :disabled='item.isDisabled' size="small" |
| | | :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">正常</van-button> |
| | | :plain="item.isOK!=='OK'" @click="bwClick(item,'OK')" type="primary">正常 |
| | | </van-button> |
| | | <van-button class="buttonSmall" size="small" :plain="item.isOK!=='NG'" |
| | | @click="bwClick(item,'NG')" :disabled='item.isDisabled' type="danger">异常 |
| | | </van-button> |
| | |
| | | </div> |
| | | |
| | | |
| | | <div style=""> |
| | | |
| | | <div class="footer"> |
| | | <div class="head_block" style="margin-bottom: 20rpx;align-items: center;"> |
| | | <div class="head_left"> |
| | |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | // 月 年选择 |
| | | onSelectSheet(val) { |
| | | dropdownValue = val |
| | | dropdownValue = val.code |
| | | this.$forceUpdate() |
| | | this.sheetFlag = false |
| | | }, |
| | | //提交 |
| | | submit() { |
| | | let children = [] |
| | | centerContent.forEach(item => { |
| | |
| | | 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') { |
| | |
| | | vanFieldBlur() { |
| | | this.$forceUpdate() |
| | | }, |
| | | //扫描保养工位点击不同选择项 |
| | | topContentClcik(code) { |
| | | radioValue = code |
| | | this.$forceUpdate() |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | //保养结果点击 |
| | | resultClick(val) { |
| | | resultValue = val |
| | | this.$forceUpdate() |
| | | }, |
| | | |
| | | selected(id) { |
| | | alert(id) |
| | | }, |
| | | |
| | | // 扫描保养工位扫描 |
| | | topScanClick() { |
| | | createWithoutTitle('../../components/barcode_scan.html', { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | // 部位正常 异常按钮点击 |
| | | bwClick(item, val) { |
| | | item.isOK = val |
| | |
| | | </script> |
| | | <style type="text/css"> |
| | | @import url('../../css/global.css'); |
| | | |
| | | body { |
| | | background-color: #fff; |
| | | } |
| | | |
| | | .body { |
| | | min-height: 600px; |
| | | background-color: grey; |
| | | margin-top: 0px; |
| | | background-color: #fff; |
| | | position: relative; |
| | | } |
| | | |
| | | .van-nav-bar__content { |
| | | background-color: #2651d8; |
| | | height: 44px; |
| | | } |
| | | |
| | | .van-nav-bar__title { |
| | | color: #fff; |
| | | letter-spacing: 2px; |
| | | } |
| | | |
| | | .van-nav-bar__arrow { |
| | | color: #fff !important; |
| | | } |
| | | |
| | | .createElementDiv { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | margin-bottom: 10px; |
| | | margin-left: 20px; |
| | | } |
| | | |
| | | .vanFieldInput { |
| | | height: 36px; |
| | | line-height: 36px; |
| | | align-items: center; |
| | | /* width: 200px; */ |
| | | |
| | | padding: 0; |
| | | padding-left: 10px; |
| | | /* border-radius: 5px; */ |
| | | margin: 5px 0; |
| | | /* background-color: #fff; */ |
| | | } |
| | | |
| | | .buttonSmall { |
| | | /* border-radius: 5px; */ |
| | | } |
| | | |
| | | .vanButtonInfo { |
| | | width: 100%; |
| | | letter-spacing: 2px; |
| | | height: 50px; |
| | | font-size: 18px; |
| | | /* margin-left: 0; */ |
| | | |
| | | } |
| | | </style> |
| | | </html> |