首巡末 判断不合格问题修复
模具 设备 图表图例修改
| | |
| | | "name" : "智云LMES", |
| | | "appid" : "__UNI__B002F49", |
| | | "description" : "", |
| | | "versionName" : "3.005", |
| | | "versionCode" : 305, |
| | | "versionName" : "3.006", |
| | | "versionCode" : 306, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | |
| | | trigger: 'item' |
| | | }, |
| | | legend: { |
| | | top: 'bottom' |
| | | top: 'bottom', |
| | | itemWidth: 12, // 图例图标宽度(可选,让布局更紧凑) |
| | | itemHeight: 12, // 图例图标高度(可选) |
| | | textStyle: { |
| | | fontSize: 11 // 字体大小(可选,避免太占空间) |
| | | } |
| | | }, |
| | | series: [{ |
| | | name: '点检次数', |
| | |
| | | trigger: 'item' |
| | | }, |
| | | legend: { |
| | | top: 'bottom' |
| | | top: 'bottom', |
| | | itemWidth: 12, // 图例图标宽度(可选,让布局更紧凑) |
| | | itemHeight: 12, // 图例图标高度(可选) |
| | | textStyle: { |
| | | fontSize: 11 // 字体大小(可选,避免太占空间) |
| | | } |
| | | }, |
| | | series: [{ |
| | | name: '保养次数', |
| | |
| | | condition: { |
| | | year: dayjs(new Date()).format("YYYY"), |
| | | month: dayjs(new Date()).format("M"), |
| | | dimension: '器具' |
| | | dimension: '保养项目' |
| | | } |
| | | }; |
| | | }, |
| | |
| | | trigger: 'item' |
| | | }, |
| | | legend: { |
| | | top: 'bottom' |
| | | top: 'bottom', |
| | | itemWidth: 12, // 图例图标宽度(可选,让布局更紧凑) |
| | | itemHeight: 12, // 图例图标高度(可选) |
| | | textStyle: { |
| | | fontSize: 11 // 字体大小(可选,避免太占空间) |
| | | } |
| | | }, |
| | | series: [{ |
| | | name: '保养次数', |
| | |
| | | condition: { |
| | | year: dayjs(new Date()).format("YYYY"), |
| | | month: dayjs(new Date()).format("M"), |
| | | dimension: '器具' |
| | | dimension: '责任人' |
| | | } |
| | | }; |
| | | }, |
| | |
| | | trigger: 'item' |
| | | }, |
| | | legend: { |
| | | top: 'bottom' |
| | | top: 'bottom', |
| | | itemWidth: 12, // 图例图标宽度(可选,让布局更紧凑) |
| | | itemHeight: 12, // 图例图标高度(可选) |
| | | textStyle: { |
| | | fontSize: 11 // 字体大小(可选,避免太占空间) |
| | | } |
| | | }, |
| | | series: [{ |
| | | name: '维修项目比例', |
| | |
| | | }); |
| | | return false; |
| | | } |
| | | this.hform.HCheckQty = this.hform.HCheckQty || 0 |
| | | if (this.hform.HCheckQty == 0) { |
| | | CommonUtils.showTips({ |
| | | message: "检验数量不得为0!", |
| | |
| | | for (let key in this.checkItems) { |
| | | if (this.checkItems.hasOwnProperty(key)) { |
| | | let element = this.checkItems[key]; |
| | | if(element.HResult == 0){ |
| | | if(element.HResult == 2){ |
| | | count ++ |
| | | } |
| | | |
| | |
| | | // 判断 最后结果为不合格的情况下,检验项目中是否有不合格项 |
| | | if(this.hform.HLastResult == 0 || this.hform.HLastResult == false){ |
| | | let count = 0 |
| | | console.log('this.checkItems: ',this.checkItems); |
| | | for (let key in this.checkItems) { |
| | | if (this.checkItems.hasOwnProperty(key)) { |
| | | let element = this.checkItems[key]; |
| | | if(element.HResult == 0){ |
| | | if(element.HResult == 2){ |
| | | count ++ |
| | | } |
| | | |
| | |
| | | for (let key in this.checkItems) { |
| | | if (this.checkItems.hasOwnProperty(key)) { |
| | | let element = this.checkItems[key]; |
| | | if(element.HResult == 0){ |
| | | if(element.HResult == 2){ |
| | | count ++ |
| | | } |
| | | |
| | |
| | | methods: { |
| | | async ApplyLanguagePack(lang, forceUpdate = false) { |
| | | // // 读取语言包并加载 |
| | | let { |
| | | data, |
| | | getRemoteFile |
| | | } = await getLanguagePackJson(lang) |
| | | if (getRemoteFile) { |
| | | this.$i18n.setLocaleMessage(lang, data) |
| | | } |
| | | // let { |
| | | // data, |
| | | // getRemoteFile |
| | | // } = await getLanguagePackJson(lang) |
| | | // if (getRemoteFile) { |
| | | // this.$i18n.setLocaleMessage(lang, data) |
| | | // } |
| | | this.$i18n.locale = lang |
| | | }, |
| | | onLanguageChangeHandler(e) { |
| | |
| | | }, |
| | | add(){ |
| | | uni.navigateTo({ |
| | | url:'./detail?OperationType=1' |
| | | url:'./qitachukudanjiaoyan?OperationType=1' |
| | | }) |
| | | }, |
| | | //编辑 |