|
@@ -245,8 +245,8 @@ class LabourRequestEditController extends GetxController with DioCancelableMixin
|
|
|
items: list,
|
|
|
initialSelectIndex: selectedIndex,
|
|
|
onPickerChanged: (_, index) {
|
|
|
- state.selectPositionId = state.editDetailEntity!.positionList[index].value!.toString();
|
|
|
- state.selectPositionName = state.editDetailEntity!.positionList[index].txt!.toString();
|
|
|
+ state.selectPositionId = state.editDetailEntity!.positionList[index - 1].value!.toString();
|
|
|
+ state.selectPositionName = state.editDetailEntity!.positionList[index - 1].txt!.toString();
|
|
|
update();
|
|
|
},
|
|
|
);
|