fix: add space in my continuing tickets; dutyinfo data process
parent
5cc3387008
commit
590db1f3fd
|
|
@ -194,8 +194,8 @@ export default class RepairPage extends Component<{}, RepairPageState> {
|
||||||
{pt.get().repairPage.currentTicket.hint}
|
{pt.get().repairPage.currentTicket.hint}
|
||||||
</View>
|
</View>
|
||||||
{this.state.currentTicketsIdName.map((pair, idx) => (
|
{this.state.currentTicketsIdName.map((pair, idx) => (
|
||||||
|
<View key={idx} style={{ marginBottom: '20rpx' }}>
|
||||||
<AtCard
|
<AtCard
|
||||||
key={idx}
|
|
||||||
title={pair.values().next().value} //pair.keys().next().value == ticket['device'] + ' ' + ticket['deviceModel']
|
title={pair.values().next().value} //pair.keys().next().value == ticket['device'] + ' ' + ticket['deviceModel']
|
||||||
extra={pt.get().repairPage.currentTicket.extra}
|
extra={pt.get().repairPage.currentTicket.extra}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|
@ -217,6 +217,7 @@ export default class RepairPage extends Component<{}, RepairPageState> {
|
||||||
middleButton={middleButton}
|
middleButton={middleButton}
|
||||||
/>
|
/>
|
||||||
</AtCard>
|
</AtCard>
|
||||||
|
</View>
|
||||||
))}
|
))}
|
||||||
</View>
|
</View>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -28,14 +28,14 @@ export function getDutyInfo(that: MainPage) {
|
||||||
if (!data.isInDuty) {
|
if (!data.isInDuty) {
|
||||||
that.setState({
|
that.setState({
|
||||||
dutyData: {
|
dutyData: {
|
||||||
...that.state.dutyData,
|
...data,
|
||||||
offDutyReason: pt.get().common.offDutyReason,
|
offDutyReason: pt.get().common.offDutyReason,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (data.currentDuty === '0') {
|
if (data.currentDuty === '0') {
|
||||||
that.setState({
|
that.setState({
|
||||||
dutyData: {
|
dutyData: {
|
||||||
...that.state.dutyData,
|
...data,
|
||||||
place: pt.get().common.place,
|
place: pt.get().common.place,
|
||||||
offDutyReason: pt.get().common.offDutyReason,
|
offDutyReason: pt.get().common.offDutyReason,
|
||||||
dutyRecoverTime: pt.get().common.dutyRecoverTime,
|
dutyRecoverTime: pt.get().common.dutyRecoverTime,
|
||||||
|
|
@ -45,7 +45,7 @@ export function getDutyInfo(that: MainPage) {
|
||||||
} else {
|
} else {
|
||||||
that.setState({
|
that.setState({
|
||||||
dutyData: {
|
dutyData: {
|
||||||
...that.state.dutyData,
|
...data,
|
||||||
place: pt.get().common.place,
|
place: pt.get().common.place,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue