|
|
@ -123,7 +123,7 @@ class _BusinessAndFixDetailPageState extends State<BusinessAndFixDetailPage> {
|
|
|
|
builder: (context) {
|
|
|
|
builder: (context) {
|
|
|
|
final userProvider =
|
|
|
|
final userProvider =
|
|
|
|
Provider.of<UserProvider>(context, listen: false);
|
|
|
|
Provider.of<UserProvider>(context, listen: false);
|
|
|
|
if (userProvider.infoModel.canOperation) {
|
|
|
|
if (userProvider.infoModel.canOperation&&widget.model.status<2) {
|
|
|
|
return AkuMaterialButton(
|
|
|
|
return AkuMaterialButton(
|
|
|
|
color: AppStyle.primaryColor,
|
|
|
|
color: AppStyle.primaryColor,
|
|
|
|
nullColor: AppStyle.minorColor,
|
|
|
|
nullColor: AppStyle.minorColor,
|
|
|
@ -141,7 +141,7 @@ class _BusinessAndFixDetailPageState extends State<BusinessAndFixDetailPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else if (widget.model.status == 3) {
|
|
|
|
} else if (widget.model.status == 2) {
|
|
|
|
if (userProvider.infoModel.canOperation) {
|
|
|
|
if (userProvider.infoModel.canOperation) {
|
|
|
|
return AkuMaterialButton(
|
|
|
|
return AkuMaterialButton(
|
|
|
|
color: AppStyle.primaryColor,
|
|
|
|
color: AppStyle.primaryColor,
|
|
|
@ -180,7 +180,7 @@ class _BusinessAndFixDetailPageState extends State<BusinessAndFixDetailPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if ((widget.model.status >= 4 && widget.model.status <= 4) &&
|
|
|
|
} else if ((widget.model.status==3) &&
|
|
|
|
userProvider.infoModel.canPickUpTicket)
|
|
|
|
userProvider.infoModel.canPickUpTicket)
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
height: 96.w,
|
|
|
|
height: 96.w,
|
|
|
@ -227,7 +227,7 @@ class _BusinessAndFixDetailPageState extends State<BusinessAndFixDetailPage> {
|
|
|
|
color: AppStyle.primaryColor,
|
|
|
|
color: AppStyle.primaryColor,
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
Get.to(FixWorkFinishPage(
|
|
|
|
Get.to(FixWorkFinishPage(
|
|
|
|
fixModel :widget.model,
|
|
|
|
fixModel: widget.model,
|
|
|
|
model: _detailModel,
|
|
|
|
model: _detailModel,
|
|
|
|
dispatchType:
|
|
|
|
dispatchType:
|
|
|
|
_detailModel.dispatchType.dispatchType == 1));
|
|
|
|
_detailModel.dispatchType.dispatchType == 1));
|
|
|
@ -307,11 +307,13 @@ class _BusinessAndFixDetailPageState extends State<BusinessAndFixDetailPage> {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
_buildTypeTile(
|
|
|
|
_buildTypeTile(
|
|
|
|
'派单类型',
|
|
|
|
'派单类型',
|
|
|
|
_dispatchModels == null
|
|
|
|
canTap
|
|
|
|
? null
|
|
|
|
? _dispatchModels == null
|
|
|
|
: _dispatchModels[_dispatchModels.indexWhere(
|
|
|
|
? null
|
|
|
|
(element) => element.showValue == _reportModel.type)]
|
|
|
|
: _dispatchModels[_dispatchModels.indexWhere(
|
|
|
|
.showName,
|
|
|
|
(element) => element.showValue == _reportModel.type)]
|
|
|
|
|
|
|
|
.showName
|
|
|
|
|
|
|
|
: AkuMap.dispatchType[_detailModel.dispatchType.dispatchType],
|
|
|
|
canTap,
|
|
|
|
canTap,
|
|
|
|
helpContent: '请选择服务类型',
|
|
|
|
helpContent: '请选择服务类型',
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
@ -336,11 +338,13 @@ class _BusinessAndFixDetailPageState extends State<BusinessAndFixDetailPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_buildTypeTile(
|
|
|
|
_buildTypeTile(
|
|
|
|
'工单时限',
|
|
|
|
'工单时限',
|
|
|
|
_timeLimitModels == null
|
|
|
|
canTap
|
|
|
|
? null
|
|
|
|
? _timeLimitModels == null
|
|
|
|
: _timeLimitModels[_timeLimitModels.indexWhere((element) =>
|
|
|
|
? null
|
|
|
|
element.id == _reportModel.workOrderTimeLimit)]
|
|
|
|
: _timeLimitModels[_timeLimitModels.indexWhere((element) =>
|
|
|
|
?.name,
|
|
|
|
element.id == _reportModel.workOrderTimeLimit)]
|
|
|
|
|
|
|
|
?.name
|
|
|
|
|
|
|
|
: _detailModel.dispatchType.workOrderLimitName,
|
|
|
|
canTap,
|
|
|
|
canTap,
|
|
|
|
helpContent: '请选择工单时限',
|
|
|
|
helpContent: '请选择工单时限',
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
@ -365,11 +369,13 @@ class _BusinessAndFixDetailPageState extends State<BusinessAndFixDetailPage> {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
_buildTypeTile(
|
|
|
|
_buildTypeTile(
|
|
|
|
'工单子类',
|
|
|
|
'工单子类',
|
|
|
|
_workTypeModels == null
|
|
|
|
canTap
|
|
|
|
? null
|
|
|
|
? _workTypeModels == null
|
|
|
|
: _workTypeModels[_workTypeModels.indexWhere((element) =>
|
|
|
|
? null
|
|
|
|
element.id == _reportModel.workOrderTypeDetail)]
|
|
|
|
: _workTypeModels[_workTypeModels.indexWhere((element) =>
|
|
|
|
.name,
|
|
|
|
element.id == _reportModel.workOrderTypeDetail)]
|
|
|
|
|
|
|
|
.name
|
|
|
|
|
|
|
|
: _detailModel.dispatchType.workOrderSubclassName,
|
|
|
|
canTap,
|
|
|
|
canTap,
|
|
|
|
helpContent: '请选择工单子类',
|
|
|
|
helpContent: '请选择工单子类',
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
|