|
@@ -585,7 +585,9 @@ const linksRawTableSelection = (rows) => {
|
|
|
}
|
|
|
|
|
|
const linksRawModalSave =async () => {
|
|
|
+ linksRawModal.value = false
|
|
|
console.log(tableRawCheckedKeysid.value,'tableRawCheckedKeysid.value');
|
|
|
+ listItemBaseData.value.rawMaterialIds=tableRawCheckedKeysid.value
|
|
|
// const { error, code, data } = await dataApi.rawMaterialSubmit({
|
|
|
// id: dataId,
|
|
|
// ids:tableRawCheckedKeysid.value,
|
|
@@ -710,18 +712,18 @@ const linksSampleModalSave =async () => {
|
|
|
const rows = tableSampleCheckedKeys.value
|
|
|
|
|
|
listItemBaseData.value.sampleIds = rowsToId(rows) || '';
|
|
|
- console.log( rowsToId(rows),' rowsToId(rows)');
|
|
|
- const { error, code, data } = await dataApi.recordsampleSubmit({
|
|
|
- id: dataId,
|
|
|
- sampleIds:rowsToId(rows) || '',
|
|
|
- })
|
|
|
- if (!error && code === 200) {
|
|
|
- window.$message?.success('操作成功')
|
|
|
- tableSampleRef.value?.clearSelection();
|
|
|
- }
|
|
|
- else {
|
|
|
- // window.$message?.warning(error)
|
|
|
- }
|
|
|
+ // console.log( rowsToId(rows),' rowsToId(rows)');
|
|
|
+ // const { error, code, data } = await dataApi.recordsampleSubmit({
|
|
|
+ // id: dataId,
|
|
|
+ // sampleIds:rowsToId(rows) || '',
|
|
|
+ // })
|
|
|
+ // if (!error && code === 200) {
|
|
|
+ // window.$message?.success('操作成功')
|
|
|
+ // tableSampleRef.value?.clearSelection();
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
+ // // window.$message?.warning(error)
|
|
|
+ // }
|
|
|
|
|
|
tableSampleCheckedKeys.value = [];
|
|
|
linksSampleModal.value = false
|
|
@@ -743,6 +745,7 @@ const tableFormSaveClick = async () => {
|
|
|
if(checkrelationString.value.length>0){
|
|
|
listItemBaseData.value.projectPosition=checkrelationString.value
|
|
|
}
|
|
|
+
|
|
|
if(tabTypeKey.value==='2'&&listItemBaseData.value.detectionResult===''){
|
|
|
window.$message?.warning('请选择报告单是否合格')
|
|
|
}else{
|