This commit is contained in:
zds
2022-11-17 14:44:42 +08:00
parent 08123cbf5e
commit 7c2fe0ea60
2 changed files with 10 additions and 16 deletions

View File

@@ -355,21 +355,6 @@ public class PhysicalMstServiceImpl implements PhysicalMstService {
}
}
/**
* 判断一级质检单主表明细表状态是否为质检中 不是则更新为质检中
*/
/* JSONObject jsonSheetDtl = sheetDtlTab.query("material_id = '" + form.getString("material_id") + "' and pcsn = '" + form.getString("pcsn") + "'").uniqueResult(0);
JSONObject jsonSheetMst = sheetMstTab.query("inspection_id = '" + jsonSheetDtl.getString("inspection_id") + "'").uniqueResult(0);
if (!StrUtil.equals(jsonSheetDtl.getString("bill_status"), "30")) {
jsonSheetDtl.put("bill_status", "30");
sheetDtlTab.update(jsonSheetDtl);
}
if (!StrUtil.equals(jsonSheetMst.getString("bill_status"), "30")) {
jsonSheetMst.put("bill_status", "30");
sheetMstTab.update(jsonSheetMst);
}*/
}

View File

@@ -150,6 +150,7 @@
type="success"
icon="el-icon-refresh"
size="mini"
:disabled="open_flag"
@click="phySync"
>
理化同步
@@ -315,6 +316,7 @@ export default {
materShow: false,
materType: '11',
visiable1: false,
open_flag: false,
inspection_id: null,
statusList: [],
permission: {
@@ -441,9 +443,16 @@ export default {
const data = {
'data': _selectData
}
this.open_flag = true
this.crud.loading = true
crudPhysicalMst.hpySync(data).then(res => {
this.crud.toQuery()
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.loading = false
this.open_flag = false
this.crud.toQuery()
}).catch(() => {
this.crud.loading = false
this.open_flag = false
})
}
}