Browse Source

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

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

19
src/views/mobileSupervise/Sampling.vue

@ -213,25 +213,14 @@ 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){
delete data.samplingTime
} }
if(data.samplingNumber == null){ window.open(`${BASE_PATH}/sampling/export/samplingPoling?` + new URLSearchParams(obj).toString())
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)=>{
console.log(`val:${val},key:${key}`) console.log(`val:${val},key:${key}`)

Loading…
Cancel
Save