| | |
| | | {{messageDescr}} |
| | | </div> |
| | | <div v-show="fileList.length!==0" style="width: 96%;margin: auto;"> |
| | | <van-uploader multiple v-model="fileList" multiple :max-count="3" /> |
| | | <van-uploader multiple :deletable='false' v-model="fileList" multiple :max-count="fileList.length" /> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | {{messageDescr3}} |
| | | </div> |
| | | <div v-show="fileList2.length!==0" style="width: 96%;margin: auto;"> |
| | | <van-uploader multiple v-model="fileList2" multiple :max-count="3" /> |
| | | <van-uploader :deletable='false' multiple v-model="fileList2" multiple :max-count="fileList2.length" /> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | messageDescr3: '', //更换备件 |
| | | falseArray2: falseArray, |
| | | baseUrl: 'http://121.196.36.24:8001', //ip基础地址 |
| | | // resultValue: '', //验证结果 |
| | | } |
| | | }, |
| | | watch: { |
| | | 'topContent2.length': { |
| | | handler(newValue, oldValue) { |
| | | if (newValue !== oldValue) { |
| | | // this.topContent2 = topContent |
| | | // this.$forceUpdate() |
| | | if (topContent[0] && topContent[0].repair_code) { |
| | | this.$forceUpdate() |
| | | this.topContentClcik(topContent[0].repair_code, topContent[0].eqpcode, topContent[0] |
| | |
| | | arrowTypeChangeUp(repair_code) { |
| | | topContent.forEach(item => { |
| | | item.arrowType = true |
| | | // if (item.repair_code === repair_code) { |
| | | // // item.resultValue= |
| | | // item.arrowType = true |
| | | // } |
| | | }) |
| | | this.$forceUpdate() |
| | | }, |
| | |
| | | item.arrowType = true |
| | | if (item.repair_code === repair_code) { |
| | | item.arrowType = false |
| | | item.resultValue = '' |
| | | item.resultValue = item.resultValue?item.resultValue:'' |
| | | this.messageDescr = '' |
| | | this.messageDescr2 = '' |
| | | this.messageDescr3 = '' |
| | | this.fileList = [] |
| | | this.fileList2 = [] |
| | | // this.resultValue ='' |
| | | this.getDetail(item.repair_code, item.eqpcode, item.wksp_code) |
| | | } |
| | | }) |
| | | this.$forceUpdate() |
| | | }, |
| | | submit() { |
| | | |
| | | // if(this.resultValue===''){ |
| | | // return |
| | | // } |
| | | |
| | | const result = topContent.find(item => item.repair_code === radioValue) |
| | | |
| | | const formData = new FormData() |
| | |
| | | item.resultValue = val |
| | | } |
| | | }) |
| | | // this.resultValue = val |
| | | this.$forceUpdate() |
| | | }, |
| | | topScanClick() { |
| | |
| | | topContentClcik(repair_code, eqpcode, wksp_code) { |
| | | radioValue = repair_code |
| | | // this.resultValue = '' |
| | | // topContent.forEach(item => { |
| | | // if (item.repair_code === repair_code) { |
| | | topContent.forEach(item => { |
| | | if (item.repair_code !== repair_code) { |
| | | item.resultValue='' |
| | | // this.getDetail(item.repair_code, item.eqpcode, item.wksp_code) |
| | | // } |
| | | // }) |
| | | } |
| | | }) |
| | | |
| | | this.$forceUpdate() |
| | | }, |