| | |
| | | |
| | | <script type="text/javascript"> |
| | | var topContent = [ |
| | | |
| | | // { |
| | | // code: 'SB001', |
| | | // code: 'SB003', |
| | | // name: '齿轮箱组', |
| | | // wksp_code: "CJ002", |
| | | // wksp_name: '装配车间', |
| | | // eqpchkmain_code: "djbz002" |
| | | // }, |
| | | // { |
| | | // code: 'SB003', |
| | | // code: 'SB001', |
| | | // name: '齿轮箱组', |
| | | // wksp_code: "CJ002", |
| | | // wksp_name: '装配车间', |
| | |
| | | }).then(res => { |
| | | if (res.code === '200') { |
| | | 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 = '' |
| | |
| | | immediate: true, |
| | | }, |
| | | |
| | | 'topContent.length': { |
| | | handler(newValue, oldValue) { |
| | | if (newValue !== oldValue) { |
| | | this.$forceUpdate() |
| | | // if (topContent[0]&&topContent[0].code) { |
| | | // this.$forceUpdate() |
| | | // this.topContentClcik(topContent[0].code) |
| | | // } |
| | | } |
| | | }, |
| | | deep: true, |
| | | immediate: true, |
| | | }, |
| | | // 'topContent.length': { |
| | | // handler(newValue, oldValue) { |
| | | // if (newValue !== oldValue) { |
| | | // this.$forceUpdate() |
| | | // // if (topContent[0]&&topContent[0].code) { |
| | | // // this.$forceUpdate() |
| | | // // this.topContentClcik(topContent[0].code) |
| | | // // } |
| | | // } |
| | | // }, |
| | | // deep: true, |
| | | // immediate: true, |
| | | // }, |
| | | 'number2.length': { |
| | | handler(newValue, oldValue) { |
| | | this.$forceUpdate() |
| | |
| | | deep: true, |
| | | immediate: true, |
| | | }, |
| | | 'number.length': { |
| | | handler(newValue, oldValue) { |
| | | this.$forceUpdate() |
| | | }, |
| | | deep: true, |
| | | immediate: true, |
| | | }, |
| | | // 'number.length': { |
| | | // handler(newValue, oldValue) { |
| | | // this.$forceUpdate() |
| | | // }, |
| | | // deep: true, |
| | | // immediate: true, |
| | | // }, |
| | | }, |
| | | created() {}, |
| | | mounted() {}, |
| | |
| | | result: resultValue, |
| | | children: children |
| | | } |
| | | |
| | | console.log(data, 1) |
| | | |
| | | post('AppDeviceManage/AppDeviceCheckSave?username=' + localStorage.getItem('username'), data) |
| | | .then(res => { |
| | | if (res.code === '200') { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | resultClick(val) { |
| | | resultValue = val |
| | | this.$forceUpdate() |
| | | }, |
| | | |
| | | selected(id) { |
| | | alert(id) |
| | | }, |
| | | |
| | | // 扫描点检工位扫描 |
| | | topScanClick() { |
| | | createWithoutTitle('../../components/barcode_scan.html', { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | // 部位正常 异常按钮点击 |
| | | bwClick(item, val) { |
| | | item.isOK = val |