2025.9.10 改bug
parent
0dc4773324
commit
a77758104e
|
@ -495,7 +495,7 @@ class DannerRepairState extends State<DannerRepair> {
|
||||||
/// 整改计划
|
/// 整改计划
|
||||||
Widget _acceptPlan() {
|
Widget _acceptPlan() {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 10),
|
padding: EdgeInsets.symmetric(horizontal: 15),
|
||||||
child: MediaPickerRow(
|
child: MediaPickerRow(
|
||||||
maxCount: 4,
|
maxCount: 4,
|
||||||
onChanged: (List<File> files) {
|
onChanged: (List<File> files) {
|
||||||
|
|
|
@ -189,7 +189,7 @@ class _CheckPersonDetailState extends State<CheckPersonDetail> {
|
||||||
|
|
||||||
inspectorForm['OPERATOR'] = SessionService.instance.loginUserId;
|
inspectorForm['OPERATOR'] = SessionService.instance.loginUserId;
|
||||||
inspectorForm['ACTION_USER'] = SessionService.instance.username;
|
inspectorForm['ACTION_USER'] = SessionService.instance.username;
|
||||||
|
inspectorForm['INSPECTION_USER_SIGN_TIME'] = DateFormat('yyyy-MM-dd HH:mm:ss').format(DateTime.now());
|
||||||
try {
|
try {
|
||||||
// 准备上传文件路径(兼容多种 signImgList 存法)
|
// 准备上传文件路径(兼容多种 signImgList 存法)
|
||||||
String filePath = signImages.first;
|
String filePath = signImages.first;
|
||||||
|
|
|
@ -240,9 +240,12 @@ class _CheckPersonListPageState extends State<CheckPersonListPage> {
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Expanded(
|
||||||
"检查时间: ${item['INSPECTION_TIME_START'] ?? ''}至${item['INSPECTION_TIME_END'] ?? ''}",
|
child: Text(
|
||||||
|
"检查时间: ${item['INSPECTION_TIME_START'] ?? ''}至${item['INSPECTION_TIME_END'] ?? ''}",
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
|
|
|
@ -265,6 +265,7 @@ class _DangerProjectPageState extends State<DangerProjectPage> {
|
||||||
|
|
||||||
Widget _itemCell(final screenWidth, final item) {
|
Widget _itemCell(final screenWidth, final item) {
|
||||||
final TextEditingController _controller = TextEditingController();
|
final TextEditingController _controller = TextEditingController();
|
||||||
|
_controller.text=item["CHECK_QUALIFIED"];
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 10),
|
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 10),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
@ -334,17 +335,35 @@ class _DangerProjectPageState extends State<DangerProjectPage> {
|
||||||
color: const Color(0xFFF1F1F1),
|
color: const Color(0xFFF1F1F1),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: screenWidth,
|
width: screenWidth,
|
||||||
padding: const EdgeInsets.all(10),
|
child:Column(
|
||||||
child:
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
// TextField(
|
children: [
|
||||||
// controller: _controller,
|
if (item["OPERATION_TYPE"] != 1 )
|
||||||
// decoration: InputDecoration(
|
TextField(
|
||||||
// labelText: '输入框',
|
onChanged: (value) {
|
||||||
// hintText: '请输入内容',
|
item["CHECK_QUALIFIED"]=value;
|
||||||
// ),
|
print('当前输入内容: $value');
|
||||||
// ),
|
// 在这里处理文字改变逻辑
|
||||||
|
},
|
||||||
|
decoration: InputDecoration(
|
||||||
|
hintText: '检查详细描述(必填项)',
|
||||||
|
),
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 12.0, // 输入文字的大小
|
||||||
|
color: Colors.black,
|
||||||
|
),
|
||||||
|
controller: _controller,
|
||||||
|
),
|
||||||
|
if (item["OPERATION_TYPE"] == 1 )
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.all(10),
|
||||||
|
child: Text(item["CHECK_QUALIFIED"], style: const TextStyle(color: Colors.black, fontSize: 12)),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Text(item["CHECK_QUALIFIED"], style: const TextStyle(color: Colors.black, fontSize: 12)),
|
|
||||||
)),
|
)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -401,6 +420,11 @@ class _DangerProjectPageState extends State<DangerProjectPage> {
|
||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
if(item["HASHIDDEN"]> 0){
|
||||||
|
ToastUtil.showNormal(context, "此检查内容存在未处理隐患,无法检查");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
setState(() {
|
setState(() {
|
||||||
if (value != "option2") {
|
if (value != "option2") {
|
||||||
SessionService.instance.setUnqualifiedInspectionItemIDJson("");
|
SessionService.instance.setUnqualifiedInspectionItemIDJson("");
|
||||||
|
@ -555,6 +579,7 @@ class _DangerProjectPageState extends State<DangerProjectPage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _submitInvestigationItems() async {
|
Future<void> _submitInvestigationItems() async {
|
||||||
|
try {
|
||||||
//获取定位
|
//获取定位
|
||||||
await fetchAndSaveBd09(context);
|
await fetchAndSaveBd09(context);
|
||||||
final prefs = await SharedPreferences.getInstance();
|
final prefs = await SharedPreferences.getInstance();
|
||||||
|
@ -566,7 +591,16 @@ class _DangerProjectPageState extends State<DangerProjectPage> {
|
||||||
String ids = "";
|
String ids = "";
|
||||||
for (int i = 0; i < listDates.length; i++) {
|
for (int i = 0; i < listDates.length; i++) {
|
||||||
final item = listDates[i];
|
final item = listDates[i];
|
||||||
if (item["REFERENCE_BASIS"] == "option1") {
|
if(item["HASHIDDEN"]> 0){
|
||||||
|
upDataItemList.add({
|
||||||
|
"CUSTOM_ITEM_ID": item["CUSTOM_ITEM_ID"],
|
||||||
|
"LISTCHECKITEM_ID": item["LISTCHECKITEM_ID"],
|
||||||
|
"RECORDITEM_ID": item["RECORDITEM_ID"],
|
||||||
|
"ISNORMAL": null,
|
||||||
|
"CHECK_RESULT": item["CHECK_QUALIFIED"],
|
||||||
|
});
|
||||||
|
|
||||||
|
}else if (item["REFERENCE_BASIS"] == "option1") {
|
||||||
upDataItemList.add({
|
upDataItemList.add({
|
||||||
"CUSTOM_ITEM_ID": item["CUSTOM_ITEM_ID"],
|
"CUSTOM_ITEM_ID": item["CUSTOM_ITEM_ID"],
|
||||||
"LISTCHECKITEM_ID": item["LISTCHECKITEM_ID"],
|
"LISTCHECKITEM_ID": item["LISTCHECKITEM_ID"],
|
||||||
|
@ -603,6 +637,7 @@ class _DangerProjectPageState extends State<DangerProjectPage> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (hasNoSelectItem) {
|
if (hasNoSelectItem) {
|
||||||
ToastUtil.showNormal(context, "还有未选择的排查项");
|
ToastUtil.showNormal(context, "还有未选择的排查项");
|
||||||
LoadingDialogHelper.hide();
|
LoadingDialogHelper.hide();
|
||||||
|
@ -610,7 +645,7 @@ class _DangerProjectPageState extends State<DangerProjectPage> {
|
||||||
}
|
}
|
||||||
String itemsString = jsonEncode(upDataItemList);
|
String itemsString = jsonEncode(upDataItemList);
|
||||||
String CHECKRECORD_ID = widget.checkrecordId ?? "";
|
String CHECKRECORD_ID = widget.checkrecordId ?? "";
|
||||||
try {
|
|
||||||
final Map<String, dynamic> result;
|
final Map<String, dynamic> result;
|
||||||
if (widget.type == 1) {
|
if (widget.type == 1) {
|
||||||
result = await ApiService.submitInvestigationItemsYinHuan(widget.item, longitude, latitude, itemsString, ids, CHECKRECORD_ID);
|
result = await ApiService.submitInvestigationItemsYinHuan(widget.item, longitude, latitude, itemsString, ids, CHECKRECORD_ID);
|
||||||
|
|
|
@ -476,6 +476,8 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
|
||||||
|
|
||||||
_startDate = null;
|
_startDate = null;
|
||||||
_endDate = null;
|
_endDate = null;
|
||||||
|
startTime="";
|
||||||
|
endTime="";
|
||||||
|
|
||||||
itemNameOne="请选择";
|
itemNameOne="请选择";
|
||||||
itemNameTwo="请选择";
|
itemNameTwo="请选择";
|
||||||
|
@ -521,6 +523,7 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Text(title, style: const TextStyle(fontSize: 14)),
|
Text(title, style: const TextStyle(fontSize: 14)),
|
||||||
const SizedBox(height: 20),
|
const SizedBox(height: 20),
|
||||||
|
|
Loading…
Reference in New Issue