Browse Source

fix:人员抽检excel导出被抽检人员(根据idCode)

main
pengwei 4 months ago
parent
commit
1ddafc798d
  1. 21
      src/views/mobileSupervise/Sampling.vue

21
src/views/mobileSupervise/Sampling.vue

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

Loading…
Cancel
Save