|
@@ -1,6 +1,6 @@
|
|
|
import React, { Component } from "react";
|
|
|
import Taro, { getCurrentInstance } from "@tarojs/taro";
|
|
|
-import { Text, View, Picker } from "@tarojs/components";
|
|
|
+import { Text, View, Image } from "@tarojs/components";
|
|
|
import ImagePicker from "../../components/common/imagePicker";
|
|
|
import InquiryModal from "../../components/common/inquiryModal";
|
|
|
import AuditModal from "../../components/common/auditModal";
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
} from "../../utils/tools";
|
|
|
import { AtTextarea, AtButton, AtIcon } from "taro-ui";
|
|
|
import { resourceAddress } from "../../utils/config";
|
|
|
+import Right from '../../image/right.png'
|
|
|
|
|
|
import "taro-ui/dist/style/components/form.scss";
|
|
|
import "taro-ui/dist/style/components/button.scss";
|
|
@@ -26,7 +27,7 @@ import "taro-ui/dist/style/components/icon.scss";
|
|
|
import "taro-ui/dist/style/components/textarea.scss";
|
|
|
import "taro-ui/dist/style/components/input.scss";
|
|
|
|
|
|
-import "../drafts/index.less";
|
|
|
+import "./index.less";
|
|
|
|
|
|
class Drafts extends Component {
|
|
|
$instance = getCurrentInstance();
|
|
@@ -164,6 +165,10 @@ class Drafts extends Component {
|
|
|
|
|
|
render() {
|
|
|
const { data, list, total, bankData, attachmentUrl } = this.state
|
|
|
+ const icon = {
|
|
|
+ width: '50px',
|
|
|
+ height: '20px'
|
|
|
+ }
|
|
|
return (
|
|
|
<View className="subform">
|
|
|
<View className="title">{getAccountName(data.type, data.typeOther)}</View>
|
|
@@ -253,21 +258,22 @@ class Drafts extends Component {
|
|
|
? <View className="unItem" key={item.id}>
|
|
|
<View className="formItem">
|
|
|
<View className="formName">交通工具:</View>
|
|
|
- <View className="formValue">{getVehicleName(item.vehicle, item.vehicleOther)}</View>
|
|
|
+ <View className="formValue">{getVehicleName(item.vehicle, item.vehicleOther)} </View>
|
|
|
</View>
|
|
|
<View className="formItem">
|
|
|
<View className="formName">时间:</View>
|
|
|
<View className="formValue">
|
|
|
- <View className="ftxt">{item.startTimeStr}</View>
|
|
|
- <View style={{ width: "34px", textAlign: "center" }}>至</View>
|
|
|
- <View className="ftxt">{item.endTimeStr}</View>
|
|
|
+ <View className="ftxt">{item.startTimeStr.slice(0, 16)}</View>
|
|
|
+ <View style={{ width: "50px", textAlign: "center" }}>至</View>
|
|
|
+ <View className="ftxt">{item.endTimeStr.slice(0, 16)}</View>
|
|
|
</View>
|
|
|
</View>
|
|
|
<View className="formItem">
|
|
|
<View className="formName">地点:</View>
|
|
|
<View className="formValue">
|
|
|
<View className="ftxt">{item.startDistrict}</View>
|
|
|
- <View style={{ width: "34px", textAlign: "center" }}>⇀</View>
|
|
|
+ {/* <View style={{ width: "34px", textAlign: "center" }}>⇀</View> */}
|
|
|
+ <Image src={Right} style={icon} mode='aspectFit' />
|
|
|
<View className="ftxt">{item.endDistrict}</View>
|
|
|
</View>
|
|
|
</View>
|
|
@@ -278,7 +284,7 @@ class Drafts extends Component {
|
|
|
</View>
|
|
|
: <View className="formItem" key={item.id}>
|
|
|
<View className="formName" style={{ width: "86px" }}>{getTypeName(item.type) + ":"}</View>
|
|
|
- <View className="formValues">{item.amount}(元)</View>
|
|
|
+ <View className="formValue">{item.amount}(元)</View>
|
|
|
</View>
|
|
|
)
|
|
|
}
|
|
@@ -340,8 +346,8 @@ class Drafts extends Component {
|
|
|
<View className="formValue">{item.openBankAddress}</View>
|
|
|
</View>
|
|
|
<View className="formItem">
|
|
|
- <View className="formName">金额(元):</View>
|
|
|
- <View className="formValue">{item.amount}</View>
|
|
|
+ <View className="formName">金额:</View>
|
|
|
+ <View className="formValue">{item.amount}(元)</View>
|
|
|
</View>
|
|
|
</View>
|
|
|
)
|