|
|
|
|
@ -213,24 +213,13 @@ const handleSumbit =async ()=>{
|
|
|
|
|
* */ |
|
|
|
|
const handleExport = async ()=>{ |
|
|
|
|
let data = Object.assign({},editData.value) |
|
|
|
|
console.log('data',data) |
|
|
|
|
delete data.samplingPolices |
|
|
|
|
delete data.startTime |
|
|
|
|
delete data.endTime |
|
|
|
|
if(!data.samplingTime){ |
|
|
|
|
delete data.samplingTime |
|
|
|
|
} |
|
|
|
|
if(data.samplingNumber == null){ |
|
|
|
|
delete data.samplingNumber |
|
|
|
|
if(data.samplingPolices){ |
|
|
|
|
let obj = { |
|
|
|
|
policeVos: data.samplingPolices.map(s=>s.idCode).join(",") |
|
|
|
|
} |
|
|
|
|
window.open(`${BASE_PATH}/sampling/export/samplingPoling?` + new URLSearchParams(obj).toString()) |
|
|
|
|
} |
|
|
|
|
if(data.samplingObjectList){ |
|
|
|
|
data.orgStr = |
|
|
|
|
data.samplingObjectList.map(s=>s.deptId).join(",") |
|
|
|
|
delete data.samplingObjectList |
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
window.open(`${BASE_PATH}/sampling/export/samplingPoling?` + new URLSearchParams(data).toString()) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleChange =(val,key)=>{ |
|
|
|
|
|