master
rongweikang 2 years ago
parent 642b8fd410
commit 2d213c6a05

@ -1980,7 +1980,7 @@ class IotCarePlanFR200 extends Component<any, any> {
} else if ("moistureTest" === nursingData.workMode) {
console.log("水分测试");
} else {
go("/pages/face_report/face_report?id=" + this.state.currentDevice.id);
go("/recording/pages/face_report/face_report?id=" + this.state.currentDevice.id);
}
};

@ -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 = {

Loading…
Cancel
Save