|
|
|
|
@ -35,7 +35,6 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
rightFace: 0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
instrumentId: 0,
|
|
|
|
|
isClock: false,
|
|
|
|
|
xinde: '',
|
|
|
|
|
imglist: [],
|
|
|
|
|
@ -55,7 +54,11 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
componentDidHide() { }
|
|
|
|
|
|
|
|
|
|
onLoad(option) {
|
|
|
|
|
console.log(option.data);
|
|
|
|
|
|
|
|
|
|
let data = JSON.parse(option.data)
|
|
|
|
|
console.log(data);
|
|
|
|
|
|
|
|
|
|
let { reportData } = this.state
|
|
|
|
|
reportData.curDate = option.date
|
|
|
|
|
data.GearData.map(item => {
|
|
|
|
|
@ -74,14 +77,15 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
reportData.shuifenGear.rightFace = gear
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.setState({ reportData, modeId: option.modeId, instrumentId: option.id });
|
|
|
|
|
this.moistureTest()
|
|
|
|
|
|
|
|
|
|
this.setState({ reportData, modeId: option.modeId });
|
|
|
|
|
this.moistureTest(option.id, reportData.curDate)
|
|
|
|
|
}
|
|
|
|
|
async initData() { }
|
|
|
|
|
async moistureTest() {
|
|
|
|
|
async moistureTest(id, curDate) {
|
|
|
|
|
let data = {
|
|
|
|
|
queryDate: this.state.reportData.curDate,
|
|
|
|
|
instrumentId: this.state.instrumentId
|
|
|
|
|
queryDate: curDate,
|
|
|
|
|
instrumentId: id
|
|
|
|
|
}
|
|
|
|
|
let res = await InstrumentInfo.fr200.moistureTest(data);
|
|
|
|
|
|
|
|
|
|
@ -95,7 +99,7 @@ class MoistureTestReport extends Component<any, any> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let { name, imgUrl, reportData, reportData1, isClock, xinde, imglist, id, show, modeId, instrumentId } = this.state
|
|
|
|
|
let { name, imgUrl, reportData, reportData1, isClock, xinde, imglist, id, show, modeId } = this.state
|
|
|
|
|
|
|
|
|
|
const getStatusData = (level) => {
|
|
|
|
|
var bgCssData = {
|
|
|
|
|
|