Browse Source

首件检验记录bug

hella_online_20240829
zhang_li 3 months ago
parent
commit
b0bf7fdd62
  1. 8
      src/views/qms/inspectionRecordFirst/addForm.vue

8
src/views/qms/inspectionRecordFirst/addForm.vue

@ -1169,8 +1169,12 @@ const searchTableSuccess = async (formField, searchField, val, type, row) => {
_searchCondition.filters = filters
const InspectionSchemeArray = await InspectionSchemeApi.InspectionSchemePage(_searchCondition)
const InspectionSchemeObj = InspectionSchemeArray.list[0]
data.value.samplePieceSize = InspectionSchemeObj.samplePieceSize
data.value.inspectionSchemeCode = InspectionSchemeObj.code
data.value.samplePieceSize = InspectionSchemeObj?.samplePieceSize || ''
data.value.inspectionSchemeCode = InspectionSchemeObj?.code || ''
if (!data.value.inspectionSchemeCode) {
data.value.subList = []
return;
}
let list = await InspectionJobDetailApi.getBySchemeCode(data.value.inspectionSchemeCode)
editableTabsValue.value = 1
list.forEach((item, index) => {

Loading…
Cancel
Save