|
@@ -782,8 +782,7 @@
|
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
|
border
|
|
border
|
|
|
style="width:100%; height:310px;"
|
|
style="width:100%; height:310px;"
|
|
|
- :row-class-name="rowClassName"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ :row-class-name="rowClassName">
|
|
|
<el-table-column prop="检验项目" label="检验项目" width="270" />
|
|
<el-table-column prop="检验项目" label="检验项目" width="270" />
|
|
|
|
|
|
|
|
<el-table-column label="不检测" width="70">
|
|
<el-table-column label="不检测" width="70">
|
|
@@ -2613,9 +2612,11 @@ const processInspectionRecordsItem = async (value) => {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-};
|
|
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
const zhichengDialog = async () => {
|
|
const zhichengDialog = async () => {
|
|
|
- console.log(fujiaselectData.value)
|
|
|
|
|
|
|
+ console.log(zhibiaoselectData.value)
|
|
|
|
|
+ // return
|
|
|
let arr =[]
|
|
let arr =[]
|
|
|
zhibiaoselectData.value.map(item=>{
|
|
zhibiaoselectData.value.map(item=>{
|
|
|
if(item.zc==true){
|
|
if(item.zc==true){
|
|
@@ -2680,14 +2681,21 @@ const zhichengDialog = async () => {
|
|
|
return item
|
|
return item
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ console.log(arrs)
|
|
|
|
|
+ // return
|
|
|
if(fujiastatus==1){
|
|
if(fujiastatus==1){
|
|
|
const responses = await AdditionalInspectionRecordAdd(arrs);
|
|
const responses = await AdditionalInspectionRecordAdd(arrs);
|
|
|
fujiastatus=0
|
|
fujiastatus=0
|
|
|
- }
|
|
|
|
|
- // const response = await ProcessInspectionRecordsItemAdd(arr);
|
|
|
|
|
- const response = await ProcessInspectionRecordsItemAdd(zhibiaoselectData.value);
|
|
|
|
|
- // const responses = await AdditionalInspectionRecordAdd(zhibiaoselectData.value);
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 使用filter方法过滤掉所有result为"不检测"的对象
|
|
|
|
|
+ const filteredData = zhibiaoselectData.value.filter(item => item.selected !== "不检测");
|
|
|
|
|
+ console.log(filteredData);
|
|
|
|
|
+ // return false;
|
|
|
|
|
+ const response = await ProcessInspectionRecordsItemAdd(filteredData);
|
|
|
|
|
+ console.log(response);
|
|
|
if (response.code === 0) {
|
|
if (response.code === 0) {
|
|
|
ElMessage({
|
|
ElMessage({
|
|
|
type: 'success',
|
|
type: 'success',
|