Compare commits

..

No commits in common. "2582a547c3fe6858924c4bcadb882715d44b2cef" and "2fcb288a5097ee2af920de2844dd3e968e64ef03" have entirely different histories.

11 changed files with 37 additions and 152 deletions

View File

@ -493,7 +493,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = 59;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8AKCJ9LW7D;
ENABLE_BITCODE = NO;
@ -503,6 +503,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.2.0;
PRODUCT_BUNDLE_IDENTIFIER = uni.UNI85F7A17;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@ -687,7 +688,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = 59;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8AKCJ9LW7D;
ENABLE_BITCODE = NO;
@ -697,6 +698,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.2.0;
PRODUCT_BUNDLE_IDENTIFIER = uni.UNI85F7A17;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@ -718,7 +720,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = 59;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8AKCJ9LW7D;
ENABLE_BITCODE = NO;
@ -728,6 +730,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.2.0;
PRODUCT_BUNDLE_IDENTIFIER = uni.UNI85F7A17;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";

View File

@ -118,55 +118,11 @@ class _DepartmentPickerHiddenTypeState
void _onSearchChanged() {
final q = _searchController.text.toLowerCase().trim();
// setState(() {
// filtered = q.isEmpty ? original : _filterCategories(original, q);
// });
//
setState(() {
if (q.isEmpty) {
filtered = original;
expandedSet.clear(); //
} else {
filtered = _filterCategories(original, q);
//
_expandAllMatchingNodes(filtered);
}
filtered = q.isEmpty ? original : _filterCategories(original, q);
});
}
//
void _expandAllMatchingNodes(List<Category> categories) {
for (var category in categories) {
//
expandedSet.add(category.id);
//
if (category.children.isNotEmpty) {
_expandAllMatchingNodes(category.children);
}
//
_expandParentNodes(category.id);
}
}
//
void _expandParentNodes(String id) {
var currentId = id;
var parent = parentMap[currentId];
while (parent != null) {
expandedSet.add(parent.id);
currentId = parent.id;
parent = parentMap[currentId];
}
}
List<Category> _filterCategories(List<Category> list, String q) {
final res = <Category>[];
for (var cat in list) {

View File

@ -24,10 +24,10 @@ class ApiService {
// static const String baseFacePath = "http://192.168.0.25:38199"; //
///
// static const String basePath = "https://qaaqwh.qhdsafety.com/integrated_whb";
static const String basePath = "https://qaaqwh.qhdsafety.com/integrated_whb";
// static const String basePath = "http://192.168.20.240:8500/integrated_whb";//
// static const String basePath = "http://192.168.0.25:28199";//
static const String basePath = "http://192.168.0.45:28199";//
// static const String basePath = "http://192.168.0.45:28199";//
///
static const String baseImgPath = "https://file.zcloudchina.com/YTHFile";
@ -2052,7 +2052,6 @@ U6Hzm1ninpWeE+awIDAQAB
String correctiveDepartment,
String isIndex,
String keyWord,
String laiYuanId,
) {
return HttpManager().request(
basePath,
@ -2064,7 +2063,7 @@ U6Hzm1ninpWeE+awIDAQAB
"ENDTIME": endDate.isEmpty?"":"$endDate 23:59:59",
"HIDDENLEVEL": level,
"HIDDEN_RISKSTANDARD": riskStandard,
// "SOURCE": laiYuanId,
// "SOURCE": riskStandard,
"STATE": state,
"DEPARTMENT_ID": departmentId,
"RECTIFICATIONDEPT": correctiveDepartment,

View File

@ -76,20 +76,20 @@ class _DangerWaitListPageState extends State<DangerWaitListPage> {
void getListData(int type,bool addList,String keyWord){
switch(widget.appItem ){
case 1://
_getDangerRecord(-1,_page,"","","","","","","","",keyWord,addList,"");
_getDangerRecord(-1,_page,"","","","","","","","",keyWord,addList);
// _getListTree();
break;
case 2://
_getDangerRecord(2,_page,"","","","","","","","",keyWord,addList,"");
_getDangerRecord(2,_page,"","","","","","","","",keyWord,addList);
break;
case 3://
_getDangerRecord(5,_page,"","","","","-1","","","",keyWord,addList,"");
_getDangerRecord(5,_page,"","","","","-1","","","",keyWord,addList);
break;
case 4://
_getDangerRecord(3,_page,"","","","","","3","","",keyWord,addList,"");
_getDangerRecord(3,_page,"","","","","","3","","",keyWord,addList);
break;
case 5://
_getDangerRecord(4,_page,"","","","","","4","","1",keyWord,addList,"");
_getDangerRecord(4,_page,"","","","","","4","","1",keyWord,addList);
break;
}
@ -133,11 +133,11 @@ class _DangerWaitListPageState extends State<DangerWaitListPage> {
child: DangerWaitDrawer(
"",
onClose: (String selectedCategoryId,String selectedDepartmentId,String investigationMethodOption,
String hazardLevelOption,String dangerStatusOption,String startDate,String endDate,String laiYuanId) {
String hazardLevelOption,String dangerStatusOption,String startDate,String endDate) {
_page=1;
_getDangerRecord(-1,_page,startDate,endDate,hazardLevelOption,investigationMethodOption,
dangerStatusOption,selectedCategoryId,selectedDepartmentId,"",searchKey,false,laiYuanId);
dangerStatusOption,selectedCategoryId,selectedDepartmentId,"",searchKey,false);
},
),
@ -365,7 +365,7 @@ class _DangerWaitListPageState extends State<DangerWaitListPage> {
Future<void> _getDangerRecord(int type, int currentPage,
String startDate,String endDate,String level,String riskStandard,String state,
String departmentId,String correctiveDepartment,
String isIndex,String keyWord,bool loadMore,String laiYuanId) async {
String isIndex,String keyWord,bool loadMore) async {
try {
if (_isLoading) return;
_isLoading = true;
@ -373,7 +373,7 @@ class _DangerWaitListPageState extends State<DangerWaitListPage> {
LoadingDialogHelper.show();
final result = await ApiService.getHiddenTreatmentList( type, currentPage,
startDate, endDate, level, riskStandard, state,
departmentId, correctiveDepartment, isIndex, keyWord,laiYuanId);
departmentId, correctiveDepartment, isIndex, keyWord);
LoadingDialogHelper.hide();
if (result['result'] == 'success') {
@ -468,10 +468,8 @@ class _DangerWaitListPageState extends State<DangerWaitListPage> {
return "隐患来源:标准排查";
}else if("4"==type){
return "隐患来源:专项检查";
}else if("5"==type){
return "隐患来源:安全检查";
}else{
return "隐患来源:NFC设备巡检";
return "隐患来源:安全检查";
}
}

View File

@ -690,8 +690,8 @@ class _HiddenDangerAcceptancePageState extends State<HiddenDangerAcceptancePage>
String _getSourceText(String? source) {
switch (source) {
case '1': return '隐患快报';
case '2': return '隐患排查';
case '3': return '标准排查';
case '2': return '隐患排查清单检查';
case '3': return '标准排查清单检查';
case '4': return '专项检查';
case '5': return '安全检查';
case '6': return 'NFC设备巡检';

View File

@ -496,8 +496,8 @@ class _HiddenRecordDetailPageState extends State<HiddenRecordDetailPage> {
switch (source) {
case '1': return '隐患快报';
case '2': return '隐患排查';
case '3': return '标准排查';
case '2': return '隐患排查清单检查';
case '3': return '标准排查清单检查';
case '4': return '专项检查';
case '5': return '安全检查';
case '6': return 'NFC设备巡检';

View File

@ -787,8 +787,8 @@ class _PendingRectificationDetailPageState extends State<PendingRectificationDet
String _getSourceText(String? source) {
switch (source) {
case '1': return '隐患快报';
case '2': return '隐患排查';
case '3': return '标准排查';
case '2': return '隐患排查清单检查';
case '3': return '标准排查清单检查';
case '4': return '专项检查';
case '5': return '安全检查';
case '6': return 'NFC设备巡检';

View File

@ -247,16 +247,13 @@ class _SafetyCommitmentDhListState extends State<SafetyCommitmentDhList> {
),
),
const SizedBox(height: 8),
Text('承诺时间: ${item['START_TIME']??""}-${item['END_TIME']??""}'),
const SizedBox(height: 5),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text('承诺时间: ${item['SIGN_TIME']??""}'),
Text('承诺人: ${item['SIGN_USER_NAME']??""}'),
// Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Text('承诺时间: ${item['SIGN_TIME']??""}'),
// Text('承诺人: ${item['SIGN_USER_NAME']??""}'),
// ],
// ),
],
),
],
),
),

View File

@ -31,10 +31,6 @@ class DangerWaitBean {
final String itemNameOne;
final String itemNameTwo;
final String laiYuanId;
final String laiYuanName;
DangerWaitBean({
required this.selectedCategoryId,
required this.selectedDepartmentId,
@ -47,8 +43,7 @@ class DangerWaitBean {
required this.endTime,
required this.itemNameOne,
required this.itemNameTwo,
required this.laiYuanId,
required this.laiYuanName,
});
@ -59,7 +54,6 @@ class DangerWaitBean {
String startTime,String endTime,
String itemNameOne,String itemNameTwo,
String laiYuanId,String laiYuanName,
) {
return DangerWaitBean(
selectedCategoryId:selectedCategoryId,
@ -73,8 +67,6 @@ class DangerWaitBean {
endTime:endTime,
itemNameOne:itemNameOne,
itemNameTwo:itemNameTwo,
laiYuanId:laiYuanId,
laiYuanName:laiYuanName,
);
}
@ -84,7 +76,7 @@ class DangerWaitBean {
"investigationMethodOption":investigationMethodOption,"investigationMethodId":investigationMethodId,
"hazardLevelOption":hazardLevelOption,"dangerStatusOption":dangerStatusOption,
"startTime":startTime,"endTime":endTime,
"itemNameOne":itemNameOne,"itemNameTwo":itemNameTwo,"laiYuanId":laiYuanId,"laiYuanName":laiYuanName,};
"itemNameOne":itemNameOne,"itemNameTwo":itemNameTwo,};
}
}
@ -93,7 +85,7 @@ class DangerWaitBean {
class DangerWaitDrawer extends StatefulWidget {
const DangerWaitDrawer(this.treeJson, {super.key,required this.onClose});
final Function(String,String,String,String,String,String,String,String) onClose; //
final Function(String,String,String,String,String,String,String) onClose; //
final String treeJson;
// final DangerWaitBean waitBean;
@ -131,12 +123,6 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
String itemNameOne="请选择";
String itemNameTwo="请选择";
//
List<WaitListBean> laiYuanList =[];
String laiYuanId="";
String laiYuanName="请选择";
// List<Map<String, dynamic>>
late List<Map<String, dynamic>> departmentList ;
@ -145,7 +131,6 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
final List<String> investigationMethod = ["风险排查隐患", "隐患排查隐患"];
final List<String> hazardLevel = [" 一般风险 ", " 重大风险 "];
final List<String> dangerStatus = ["未整改", "已整改", "已验收", "已过期"];
final List<String> laiYuanStatus = ["隐患快报", "隐患排查", "标准排查", "专项检查", "安全检查", "NFC设备巡检"];
@override
void initState() {
@ -177,8 +162,6 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
}
itemNameOne= dangerWaitBean["itemNameOne"];
itemNameTwo= dangerWaitBean["itemNameTwo"];
laiYuanId= dangerWaitBean["laiYuanId"];
laiYuanName= dangerWaitBean["laiYuanName"];
}
@ -186,16 +169,6 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
print("解析失败: $e");
}
//
// setState(() {
// for(int i=0;i<laiYuanStatus.length;i++){
// WaitListBean waitListBean=WaitListBean(id: "${i+1}", name: laiYuanStatus[i], parentId: "");
// laiYuanList.add(waitListBean);
// }
// });
// // JSON
// jsonList = json.decode(widget.treeJson);
// departmentList = List<Map<String, dynamic>>.from(jsonList);
@ -288,27 +261,6 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
);
}
//
void showCategoryPickerTwo() {
showModalBottomSheet(
context: context,
isScrollControlled: true,
barrierColor: Colors.black54,
backgroundColor: Colors.transparent,
builder: (ctx) => WaitListPicker(
data: laiYuanList,
onSelected: (item) {
setState(() {
laiYuanId=item!.id;
laiYuanName=item!.name;
setResult();
});
},
),
);
}
return SafeArea(
child:
SingleChildScrollView( //
@ -362,18 +314,6 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
// },
),
// const SizedBox(height: 6),
// //
// _buildDropdownBox(
// "隐患来源",
// display: laiYuanName ?? '请选择',
// onTap: () {
// showCategoryPickerTwo();
// }
// ),
const SizedBox(height: 12),
const Text(
"排查方式",
@ -395,8 +335,6 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
itemCount: investigationMethod.length,
itemBuilder: _itemGridviewItem
),
// Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: List.generate(investigationMethod.length, (idx) {
@ -570,9 +508,6 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
itemNameOne="请选择";
itemNameTwo="请选择";
laiYuanId="";
laiYuanName="请选择";
setResult();
// widget.onClose("","","","","","","");
@ -763,9 +698,7 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
_selectedCategoryId ?? "", _selectedDepartmentId?? "",
_investigationMethodOption,investigationMethodId,
_hazardLevelOption, _dangerStatusOption,
startTime, endTime,itemNameOne, itemNameTwo,laiYuanId,laiYuanName);
startTime, endTime,itemNameOne, itemNameTwo);
String jsonString = jsonEncode(waitBean.toJson());
SessionService.instance.setDangerWaitInfo(jsonString);
@ -778,7 +711,6 @@ class DangerWaitDrawerState extends State<DangerWaitDrawer> {
_dangerStatusOption!=-1?dangerStatusId[_dangerStatusOption]:"",
_startDate!=null?startTime:"",
_endDate!=null?endTime:"",
laiYuanId?? ""
); //
}

View File

@ -53,7 +53,7 @@ class _MineDutyDetailPage extends State<MineDutyDetailPage> {
//
if (widget.item["REVIEW_STATUS"] != '2')
_buildInfoRowTwo("审批人:", "${FormUtils.hasValue(widget.item, "REVIEW_USER_NAME") ? widget.item["REVIEW_USER_NAME"] : ""}${FormUtils.hasValue(widget.item, "REVIEW_USER_DEPARTMENTNAME") ? "[${widget.item["REVIEW_USER_DEPARTMENTNAME"]}]": ""}",),
_buildInfoRowTwo("审批人:", "${FormUtils.hasValue(widget.item, "REVIEW_USER_NAME") ? widget.item["REVIEW_USER_NAME"] : "unfind"}[${FormUtils.hasValue(widget.item, "REVIEW_USER_DEPARTMENTNAME") ? widget.item["REVIEW_USER_DEPARTMENTNAME"] : "unfind"}]",),
// Container(
// padding: const EdgeInsets.symmetric(
// horizontal: 5,

0
lib/rename_script.sh Normal file → Executable file
View File