|
|
@@ -242,30 +242,35 @@ function handleSubmit() {
|
|
242
|
242
|
.map((item) => JSON.parse(item.response).data.fileName)
|
|
243
|
243
|
.filter(Boolean)
|
|
244
|
244
|
.join(','),
|
|
245
|
|
- executorIds: model.value.executorIds.map((item) =>JSON.parse(item)),
|
|
|
245
|
+ executorIds: model.value.executorIds.map((item) => JSON.parse(item)),
|
|
246
|
246
|
// executors: model.value.executorIds.map((item) =>
|
|
247
|
247
|
// String(JSON.parse(item).userId)
|
|
248
|
248
|
// ),
|
|
249
|
249
|
ccReceivers: model.value.ccReceivers.join(','),
|
|
250
|
|
-
|
|
251
|
250
|
// ccReceiversName: model.value.ccReceivers.map((item) =>
|
|
252
|
251
|
// String(JSON.parse(item).userId)
|
|
253
|
252
|
// ),
|
|
254
|
253
|
}
|
|
255
|
|
- if (model.value.formType === 'photo' || model.value.formType === 'inspection') {
|
|
|
254
|
+ if (
|
|
|
255
|
+ model.value.formType === 'photo' ||
|
|
|
256
|
+ model.value.formType === 'inspection'
|
|
|
257
|
+ ) {
|
|
256
|
258
|
delete submitData.templateId
|
|
257
|
259
|
} else if (model.value.formType === '3') {
|
|
258
|
260
|
// delete submitData.taskName
|
|
259
|
261
|
// submitData.formType = ''
|
|
260
|
|
- submitData.taskName = getTemplateListOptions.value.find((item) => item.id === Number(model.value.templateId))?.taskName || ''
|
|
|
262
|
+ submitData.taskName =
|
|
|
263
|
+ getTemplateListOptions.value.find(
|
|
|
264
|
+ (item) => item.id === Number(model.value.templateId)
|
|
|
265
|
+ )?.taskName || ''
|
|
261
|
266
|
}
|
|
262
|
|
- if(getoptions.value==='新增油站'){
|
|
|
267
|
+ if (getoptions.value === '新增油站') {
|
|
263
|
268
|
// submitData['executorIds']=model.value.executorIds.map((item) => JSON.parse(item))
|
|
264
|
|
- delete submitData.stationId
|
|
265
|
|
- }else if(getoptions.value==='新增访客'){
|
|
|
269
|
+ delete submitData.stationId
|
|
|
270
|
+ } else if (getoptions.value === '新增访客') {
|
|
266
|
271
|
// submitData['executorId']=model.value.executorIds.map((item) => JSON.parse(item))
|
|
267
|
272
|
// delete submitData.executorIds
|
|
268
|
|
- submitData.stationId=model.value.stationId.join(',')
|
|
|
273
|
+ submitData.stationId = model.value.stationId.join(',')
|
|
269
|
274
|
}
|
|
270
|
275
|
const res = (await addtodoaskslist(submitData)) as any
|
|
271
|
276
|
if (res?.code === 200) {
|