|
|
|
|
@ -190,7 +190,7 @@ export default class InstrumentClickInUpload extends Component<any, any> {
|
|
|
|
|
|
|
|
|
|
// 提交打卡
|
|
|
|
|
handleSubmit = async () => {
|
|
|
|
|
let { punchInInfo } = this.state;
|
|
|
|
|
let { punchInInfo,instrumentDetail } = this.state;
|
|
|
|
|
let obj = punchInInfo;
|
|
|
|
|
if (obj.clockImageList.length === 0) {
|
|
|
|
|
msg("至少上传一张图片");
|
|
|
|
|
@ -232,6 +232,13 @@ export default class InstrumentClickInUpload extends Component<any, any> {
|
|
|
|
|
clockImageList: imgList,
|
|
|
|
|
clockContent: obj.clockContent,
|
|
|
|
|
};
|
|
|
|
|
let params = {
|
|
|
|
|
instrumentId: instrumentDetail.id,
|
|
|
|
|
};
|
|
|
|
|
// 上传护理完成的仪器ID
|
|
|
|
|
let instrumentRes = await InstrumentInfo.apiClock.addClockInstrument(params);
|
|
|
|
|
console.log(instrumentRes,'添加仪器成功');
|
|
|
|
|
|
|
|
|
|
let res = await InstrumentInfo.apiClock.postInsertClockLog(clockParmas);
|
|
|
|
|
if (res.data.code === 200) {
|
|
|
|
|
msg("打卡成功");
|
|
|
|
|
|