Commit 6e4d01bc by 张立顺

fix bug

1 parent edeef15e
...@@ -435,7 +435,7 @@ Page({ ...@@ -435,7 +435,7 @@ Page({
const mainTechnicianList = [ const mainTechnicianList = [
...(mainSelected?.map(val => ({ ...(mainSelected?.map(val => ({
id: val.id, id: val.id,
technicianId: val.technicianId, technicianId: val.technicianId || val.id,
technicianName: val.staffName, technicianName: val.staffName,
technicianUuid: val.uuid, technicianUuid: val.uuid,
technicianType: 0, technicianType: 0,
...@@ -444,7 +444,7 @@ Page({ ...@@ -444,7 +444,7 @@ Page({
})) || []), })) || []),
...(deputySelected?.map(val => ({ ...(deputySelected?.map(val => ({
id: val.id, id: val.id,
technicianId: val.technicianId, technicianId: val.technicianId || val.id,
technicianName: val.staffName, technicianName: val.staffName,
technicianUuid: val.uuid, technicianUuid: val.uuid,
technicianType: 1, technicianType: 1,
...@@ -482,6 +482,8 @@ Page({ ...@@ -482,6 +482,8 @@ Page({
this.setData({ this.setData({
requesting: true requesting: true
}) })
console.log(params)
return
api.confirmConstruction(params).then(res => { api.confirmConstruction(params).then(res => {
let { code, message } = res let { code, message } = res
if (code == 0) { if (code == 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!