Merge remote-tracking branch 'origin/master'
commit
aed92c4bed
|
|
@ -577,7 +577,7 @@ class _DoorareaCarAddPageState extends State<DoorareaCarAddPage> {
|
||||||
|
|
||||||
for(int i=0;i<newList.length;i++){
|
for(int i=0;i<newList.length;i++){
|
||||||
newList[i]["dataId"] = newList[i]["userId"];
|
newList[i]["dataId"] = newList[i]["userId"];
|
||||||
newList[i]["dataName"] = newList[i]["userName"];
|
newList[i]["dataName"] = '${newList[i]["userName"]}(${newList[i]["corpName"]})(${newList[i]["deptName"]})' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
|
|
|
||||||
|
|
@ -559,7 +559,7 @@ class _FirstlevelCarAddPageState extends State<FirstlevelCarAddPage> {
|
||||||
|
|
||||||
for(int i=0;i<newList.length;i++){
|
for(int i=0;i<newList.length;i++){
|
||||||
newList[i]["dataId"] = newList[i]["userId"];
|
newList[i]["dataId"] = newList[i]["userId"];
|
||||||
newList[i]["dataName"] = newList[i]["userName"];
|
newList[i]["dataName"] ='${newList[i]["userName"]}(${newList[i]["corpName"]})(${newList[i]["deptName"]})' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
|
|
|
||||||
|
|
@ -638,7 +638,7 @@ class _DoorareaPersonApplyPageState extends State<DoorareaPersonApplyPage> {
|
||||||
|
|
||||||
for(int i=0;i<newList.length;i++){
|
for(int i=0;i<newList.length;i++){
|
||||||
newList[i]["dataId"] = newList[i]["userId"];
|
newList[i]["dataId"] = newList[i]["userId"];
|
||||||
newList[i]["dataName"] = newList[i]["userName"];
|
newList[i]["dataName"] = '${newList[i]["userName"]}(${newList[i]["corpName"]})(${newList[i]["deptName"]})' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
|
|
|
||||||
|
|
@ -566,7 +566,7 @@ class _FirstlevelPersonAddPageState extends State<FirstlevelPersonAddPage> {
|
||||||
|
|
||||||
for(int i=0;i<newList.length;i++){
|
for(int i=0;i<newList.length;i++){
|
||||||
newList[i]["dataId"] = newList[i]["userId"];
|
newList[i]["dataId"] = newList[i]["userId"];
|
||||||
newList[i]["dataName"] = newList[i]["userName"];
|
newList[i]["dataName"] = '${newList[i]["userName"]}(${newList[i]["corpName"]})(${newList[i]["deptName"]})' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ class _KeyTaskesCheckConfirmPageState extends State<KeyTaskesCheckConfirmPage> {
|
||||||
maxSizeInBytes: 20 * 1024 * 1024,
|
maxSizeInBytes: 20 * 1024 * 1024,
|
||||||
allowedExtensions: ['pdf'],
|
allowedExtensions: ['pdf'],
|
||||||
allowMultipleFiles: false,
|
allowMultipleFiles: false,
|
||||||
// showPhotoSelect: false,
|
showPhotoSelect: false,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (picked.isNotEmpty && picked.first.path != null) {
|
if (picked.isNotEmpty && picked.first.path != null) {
|
||||||
|
|
@ -445,8 +445,10 @@ class _KeyTaskesCheckConfirmPageState extends State<KeyTaskesCheckConfirmPage> {
|
||||||
|
|
||||||
// checkData['status'] = 1;
|
// checkData['status'] = 1;
|
||||||
checkData['signatureTime'] = signTimes.first;
|
checkData['signatureTime'] = signTimes.first;
|
||||||
checkData['isDefend'] = chooseCheckType ? 0 : 1;
|
checkData['isDefend'] = chooseCheckType ? 1 : 0;
|
||||||
checkData['inspectionId'] = widget.inspectionId;
|
checkData['inspectionId'] = widget.inspectionId;
|
||||||
|
checkData['id'] = SessionService.instance.accountId;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final result = await KeyTasksApi.setKeyTasksCheckConfirm(checkData);
|
final result = await KeyTasksApi.setKeyTasksCheckConfirm(checkData);
|
||||||
if (result['success']) {
|
if (result['success']) {
|
||||||
|
|
@ -504,7 +506,7 @@ class _KeyTaskesCheckConfirmPageState extends State<KeyTaskesCheckConfirmPage> {
|
||||||
await FileApi.uploadFiles([choosefile.path ?? ''], fileType, checkData['inspectionId'] ?? '').then((result) {
|
await FileApi.uploadFiles([choosefile.path ?? ''], fileType, checkData['inspectionId'] ?? '').then((result) {
|
||||||
if (result['success']) {
|
if (result['success']) {
|
||||||
// 检查人签字
|
// 检查人签字
|
||||||
checkData['fileUrl'] = result['data']['filePath'] ?? '';
|
checkData['fileUrl'] = result['data']['fileList'][0]['filePath'] ?? '';
|
||||||
isSuccess = true;
|
isSuccess = true;
|
||||||
} else {
|
} else {
|
||||||
LoadingDialogHelper.hide();
|
LoadingDialogHelper.hide();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue