优化
This commit is contained in:
@@ -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);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -150,6 +150,7 @@
|
|||||||
type="success"
|
type="success"
|
||||||
icon="el-icon-refresh"
|
icon="el-icon-refresh"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
:disabled="open_flag"
|
||||||
@click="phySync"
|
@click="phySync"
|
||||||
>
|
>
|
||||||
理化同步
|
理化同步
|
||||||
@@ -315,6 +316,7 @@ export default {
|
|||||||
materShow: false,
|
materShow: false,
|
||||||
materType: '11',
|
materType: '11',
|
||||||
visiable1: false,
|
visiable1: false,
|
||||||
|
open_flag: false,
|
||||||
inspection_id: null,
|
inspection_id: null,
|
||||||
statusList: [],
|
statusList: [],
|
||||||
permission: {
|
permission: {
|
||||||
@@ -441,9 +443,16 @@ export default {
|
|||||||
const data = {
|
const data = {
|
||||||
'data': _selectData
|
'data': _selectData
|
||||||
}
|
}
|
||||||
|
this.open_flag = true
|
||||||
|
this.crud.loading = true
|
||||||
crudPhysicalMst.hpySync(data).then(res => {
|
crudPhysicalMst.hpySync(data).then(res => {
|
||||||
this.crud.toQuery()
|
|
||||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user