搜索运单
This commit is contained in:
parent
74e61652f6
commit
a00234912a
@ -5,12 +5,12 @@
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<!--如果您的应用需要后台定位权限,且有可能运行在Android Q设备上,并且设置了target>28,必须增加这个权限声明-->
|
||||
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
|
||||
<uses-permission android:name="android.permission.EACCES"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.EACCES" />
|
||||
<!--用于申请调用A-GPS模块-->
|
||||
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"></uses-permission>
|
||||
<!--用于写入缓存数据到扩展存储卡-->
|
||||
@ -27,11 +27,11 @@
|
||||
<!-- 判断相机是否 可以使用 如果不加以下配置 那么captureIntent.resolveActivity(context.getPackageManager())==null -->
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.media.action.IMAGE_CAPTURE"/>
|
||||
<action android:name="android.media.action.IMAGE_CAPTURE" />
|
||||
</intent>
|
||||
|
||||
<intent>
|
||||
<action android:name="android.media.action.VIDEO_CAPTURE"/>
|
||||
<action android:name="android.media.action.VIDEO_CAPTURE" />
|
||||
</intent>
|
||||
</queries>
|
||||
|
||||
@ -39,14 +39,14 @@
|
||||
<application
|
||||
android:name=".ui.App"
|
||||
android:allowBackup="true"
|
||||
android:excludeFromRecents="true"
|
||||
android:icon="@drawable/logo_cargo"
|
||||
android:label="@string/app_name"
|
||||
android:largeHeap="true"
|
||||
android:requestLegacyExternalStorage="true"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme"
|
||||
android:usesCleartextTraffic="true"
|
||||
android:excludeFromRecents="true"
|
||||
android:requestLegacyExternalStorage="true"
|
||||
android:largeHeap="true">
|
||||
android:usesCleartextTraffic="true">
|
||||
<meta-data
|
||||
android:name="CHANNEL"
|
||||
android:value="${CHANNEL_VALUE}" />
|
||||
@ -54,55 +54,131 @@
|
||||
<meta-data
|
||||
android:name="com.amap.api.v2.apikey"
|
||||
android:value="6009d63caedb3fead6f003cc5fd191ca" />
|
||||
<activity android:name=".ui.map.WebMapActivity" android:screenOrientation="portrait">
|
||||
|
||||
<activity
|
||||
android:name=".ui.map.WebMapActivity"
|
||||
android:screenOrientation="portrait">
|
||||
|
||||
</activity>
|
||||
<activity android:name=".ui.WelcomeActivity" android:screenOrientation="portrait">
|
||||
<activity
|
||||
android:name=".ui.WelcomeActivity"
|
||||
android:screenOrientation="portrait">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name=".ui.home.OrderListActivity"
|
||||
<activity
|
||||
android:name=".ui.home.OrderListActivity"
|
||||
android:screenOrientation="portrait">
|
||||
|
||||
</activity>
|
||||
<activity android:name=".ui.MainActivity" android:screenOrientation="portrait" android:windowSoftInputMode="adjustPan">
|
||||
</activity>
|
||||
<activity android:name=".ui.LoginActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.ForgetPwdActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.AddressActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.CheckCarLocActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.AddressAddActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.GoodsActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.WebActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.news.NewsActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.wallet.UpBankActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.SetupActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.OrderAllActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.auth.MyAuthActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.auth.BusinesslicenseAuthActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.GoodsSourceActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.OrderDetailsActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.OrderComplaintActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.GetUploadImageActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.auth.CertificatesAuthActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.auth.CompanyAuthActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.invoice.InvoiceActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.invoice.InvoiceHaederActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.invoice.InvoiceHaederAddActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.invoice.InvoiceHistoryActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.invoice.InvoiceDetailsActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.invoice.InvoiceCreateActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.OrderDetailsAllActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.my.auth.DangAuthActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.GoodsDischargeActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.InformationActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.NodeInfoActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.SearchAddressActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.ChoiceAddressActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.home.DisCarActivity" android:screenOrientation="portrait"/>
|
||||
<activity android:name=".ui.news.NewsXActivity" android:screenOrientation="portrait"/>
|
||||
<activity
|
||||
android:name=".ui.MainActivity"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustPan"></activity>
|
||||
<activity
|
||||
android:name=".ui.LoginActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.ForgetPwdActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.AddressActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.CheckCarLocActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.AddressAddActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.GoodsActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.WebActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.news.NewsActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.wallet.UpBankActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.SetupActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.OrderAllActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.auth.MyAuthActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.auth.BusinesslicenseAuthActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.GoodsSourceActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.OrderDetailsActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.OrderComplaintActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.GetUploadImageActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.auth.CertificatesAuthActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.auth.CompanyAuthActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.invoice.InvoiceActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.invoice.InvoiceHaederActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.invoice.InvoiceHaederAddActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.invoice.InvoiceHistoryActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.invoice.InvoiceDetailsActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.invoice.InvoiceCreateActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.OrderDetailsAllActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.my.auth.DangAuthActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.GoodsDischargeActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.InformationActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.NodeInfoActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.SearchAddressActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.ChoiceAddressActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.home.DisCarActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
<activity
|
||||
android:name=".ui.news.NewsXActivity"
|
||||
android:screenOrientation="portrait" />
|
||||
|
||||
<activity
|
||||
android:name=".ui.waybill.activity.AnotherOrderActivity"
|
||||
@ -110,6 +186,13 @@
|
||||
android:launchMode="singleTask"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustPan|stateHidden"></activity>
|
||||
<activity
|
||||
android:name=".ui.waybill.activity.SearchWaybillActivity"
|
||||
android:configChanges="keyboardHidden|orientation|locale"
|
||||
android:launchMode="singleTask"
|
||||
android:screenOrientation="portrait"
|
||||
android:windowSoftInputMode="adjustPan|stateHidden"></activity>
|
||||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="com.oneclouds.cargo.fileprovider"
|
||||
|
@ -75,6 +75,21 @@ public class WaybillRequest {
|
||||
Request re = OkHttpUtil.posts(new OkDate(UrlManager.getWaybillListV2(), "post", MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestTest.test(1,WAYBILL_LIST_V2+orderStatus,re,con,hd);
|
||||
}
|
||||
|
||||
|
||||
//搜索运单列表
|
||||
public void searchOrderList(int page,int limit,String receiverAddress){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("page",page);
|
||||
map.put("limit",limit);
|
||||
map.put("receiverAddress",receiverAddress);
|
||||
// if(orderStatus!=0){
|
||||
map.put("orderStatus",200004);
|
||||
// }
|
||||
Request re = OkHttpUtil.posts(new OkDate(UrlManager.getWaybillListV2(), "post", MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestTest.test(1,"searchOrderList",re,con,hd);
|
||||
}
|
||||
|
||||
//运单详情
|
||||
public void orderDetail(int waybillId){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
|
@ -4,10 +4,12 @@ import androidx.fragment.app.Fragment
|
||||
import androidx.fragment.app.FragmentManager
|
||||
import androidx.fragment.app.FragmentPagerAdapter
|
||||
import com.dahe.mylibrary.base.BaseFragment
|
||||
import com.dahe.mylibrary.utils.ActivityUtils
|
||||
import com.oneclouds.cargo.R
|
||||
import com.oneclouds.cargo.ui.home.OrderListActivity
|
||||
import com.oneclouds.cargo.ui.home.typelist.*
|
||||
import com.oneclouds.cargo.ui.parts.UserParts
|
||||
import com.oneclouds.cargo.ui.waybill.activity.SearchWaybillActivity
|
||||
import com.xuexiang.xui.widget.tabbar.TabSegment
|
||||
import kotlinx.android.synthetic.main.fragment_waybill_list.*
|
||||
import kotlinx.android.synthetic.main.order_list_top.*
|
||||
@ -48,6 +50,10 @@ class WayBillsFragment : BaseFragment() {
|
||||
vp.adapter = MyAdapter(this.fragmentManager)
|
||||
tabSegment.setupWithViewPager(vp, false)
|
||||
tabSegment.setMode(TabSegment.MODE_FIXED)
|
||||
|
||||
tvSearch.setOnClickListener {
|
||||
ActivityUtils.startActivity(mContext, SearchWaybillActivity::class.java)
|
||||
}
|
||||
}
|
||||
|
||||
inner class MyAdapter(fm: FragmentManager?) :
|
||||
|
@ -0,0 +1,348 @@
|
||||
package com.oneclouds.cargo.ui.waybill.activity
|
||||
|
||||
import android.accessibilityservice.AccessibilityService.SoftKeyboardController
|
||||
import android.content.ClipData
|
||||
import android.content.ClipboardManager
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.os.Message
|
||||
import android.util.Log
|
||||
import android.view.View
|
||||
import android.widget.Button
|
||||
import android.widget.ImageView
|
||||
import android.widget.LinearLayout
|
||||
import android.widget.Toast
|
||||
import com.dahe.mylibrary.base.BaseActivity
|
||||
import com.google.gson.Gson
|
||||
import com.lxj.xpopup.util.KeyboardUtils
|
||||
import com.oneclouds.cargo.R
|
||||
import com.oneclouds.cargo.bean.WaybillListBean
|
||||
import com.oneclouds.cargo.bean.WaybillListBean.DataDTO.ListDTO
|
||||
import com.oneclouds.cargo.request.WaybillRequest
|
||||
import com.oneclouds.cargo.ui.home.OrderDetailsActivity
|
||||
import com.oneclouds.cargo.ui.home.OrderDetailsAllActivity
|
||||
import com.oneclouds.cargo.ui.home.typelist.OrderList4Fragment
|
||||
import com.oneclouds.cargo.ui.parts.TypeParts
|
||||
import com.oneclouds.cargo.util.ToastUtil
|
||||
import com.oneclouds.cargo.util.adapter.AdapterAlls
|
||||
import com.oneclouds.cargo.util.adapter.ManyBean
|
||||
import com.oneclouds.cargo.util.cache.CacheGroup
|
||||
import com.oneclouds.cargo.util.http.RequsetCodeConstants
|
||||
import com.oneclouds.cargo.util.time.Timer
|
||||
import com.scwang.smart.refresh.layout.api.RefreshLayout
|
||||
import com.scwang.smart.refresh.layout.listener.OnLoadMoreListener
|
||||
import com.scwang.smart.refresh.layout.listener.OnRefreshListener
|
||||
import kotlinx.android.synthetic.main.activity_search_waybill.btnSearch
|
||||
import kotlinx.android.synthetic.main.activity_search_waybill.etSearch
|
||||
import kotlinx.android.synthetic.main.activity_search_waybill.refreshLayout
|
||||
import kotlinx.android.synthetic.main.activity_search_waybill.rv
|
||||
|
||||
/**
|
||||
* @ClassName SearchWaybillActivity
|
||||
* @Author john
|
||||
* @Date 2025/1/7 09:17
|
||||
* @Description TODO
|
||||
*/
|
||||
class SearchWaybillActivity : BaseActivity() {
|
||||
private val type = 200004
|
||||
private var index = 1
|
||||
private var dataKey = true
|
||||
private lateinit var aas: AdapterAlls
|
||||
private lateinit var olb: WaybillListBean
|
||||
private lateinit var wr :WaybillRequest
|
||||
private var timer = ""
|
||||
var sum: Int = 0
|
||||
private var list = mutableListOf<ManyBean>()
|
||||
private var keys = mutableListOf<Boolean>()
|
||||
|
||||
override fun msgMethod(m: Message) {
|
||||
super.msgMethod(m)
|
||||
when (m.what) {
|
||||
RequsetCodeConstants.SUCCESS -> {
|
||||
// sr.finishRefresh()
|
||||
// sr.finishLoadMore()
|
||||
//获取数据
|
||||
if (CacheGroup.cacheList["searchOrderList"] != null) {
|
||||
refreshLayout.finishLoadMore()
|
||||
refreshLayout.finishRefresh()
|
||||
Log.e(
|
||||
"-list-",
|
||||
CacheGroup.cacheList["searchOrderList"]+""
|
||||
)
|
||||
olb = Gson().fromJson<WaybillListBean>(
|
||||
CacheGroup.cacheList["searchOrderList"],
|
||||
WaybillListBean::class.java
|
||||
)
|
||||
if (olb.code==200){
|
||||
if (index == 1) {
|
||||
initRecyclerView()
|
||||
} else {
|
||||
if (olb.data.list.size == 0) {
|
||||
dataKey = false
|
||||
Toast.makeText(mContext, "没有更多了", Toast.LENGTH_SHORT).show()
|
||||
} else {
|
||||
addData()
|
||||
}
|
||||
}
|
||||
}else{
|
||||
ToastUtil.show(mContext, "加载失败")
|
||||
}
|
||||
|
||||
// if (olb.code == 200) {
|
||||
// if (index == 1) {
|
||||
// initData()
|
||||
// } else {
|
||||
// if (olb.data.list.size == 0) {
|
||||
// dataKey = false
|
||||
// Toast.makeText(con, "没有更多了", Toast.LENGTH_SHORT).show()
|
||||
// } else {
|
||||
// addData()
|
||||
// }
|
||||
// }
|
||||
// } else {
|
||||
// ToastUtil.show(con, "加载失败")
|
||||
// }
|
||||
CacheGroup.cacheList.remove("searchOrderList")
|
||||
}
|
||||
|
||||
|
||||
//签收
|
||||
// if (CacheGroup.cacheList["order_sign"] != null) {
|
||||
// val bb: BaseBean = gson.fromJson<BaseBean>(
|
||||
// CacheGroup.cacheList["order_sign"],
|
||||
// BaseBean::class.java
|
||||
// )
|
||||
// if (bb.code == 200) {
|
||||
// sr.autoRefresh()
|
||||
// ToastUtil.show(con, "收货成功")
|
||||
// } else {
|
||||
// sr.autoRefresh()
|
||||
// ToastUtil.show(con, bb.msg)
|
||||
// }
|
||||
// CacheGroup.cacheList.remove("order_sign")
|
||||
// }
|
||||
// //删除
|
||||
// if (CacheGroup.cacheList[OrderRequest.ORDER_DEL] != null) {
|
||||
// val bb: BaseBean = gson.fromJson<BaseBean>(
|
||||
// CacheGroup.cacheList[OrderRequest.ORDER_DEL],
|
||||
// BaseBean::class.java
|
||||
// )
|
||||
// if (bb.code == 200) {
|
||||
// sr.autoRefresh()
|
||||
// ToastUtil.show(con, "删除成功")
|
||||
// } else {
|
||||
// ToastUtil.show(con, bb.msg)
|
||||
// }
|
||||
// CacheGroup.cacheList.remove(OrderRequest.ORDER_DEL)
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
override fun getLayout() = R.layout.activity_search_waybill
|
||||
|
||||
override fun initView(savedInstanceState: Bundle?) {
|
||||
setStatusBarColor(R.color.color_theme)
|
||||
setTitleBar("搜索运单") { finish() }
|
||||
wr = WaybillRequest(mContext, hd)
|
||||
btnSearch.setOnClickListener {
|
||||
etSearch.text.toString().trim().let {
|
||||
if (it.isNotEmpty()) {
|
||||
index = 1
|
||||
refreshLayout.autoRefresh()
|
||||
// getDatas(it)
|
||||
} else {
|
||||
refreshLayout.autoRefresh()
|
||||
}
|
||||
}
|
||||
KeyboardUtils.hideSoftInput(etSearch)
|
||||
}
|
||||
initRefreshLoad()
|
||||
}
|
||||
|
||||
override fun initDate() {
|
||||
getDatas("")
|
||||
}
|
||||
|
||||
private fun getDatas(search: String){
|
||||
wr.searchOrderList(index, 10, search)
|
||||
}
|
||||
|
||||
private fun initRecyclerView() {
|
||||
list.clear()
|
||||
val lists: MutableList<ManyBean> = mutableListOf()
|
||||
for (i in olb.getData().getList().indices) {
|
||||
var str: String = olb.getData().getList().get(i).getCreateTime()
|
||||
str = Timer.formatChange(str, "yyyy-MM-dd HH:mm:ss", "yyyy-MM")
|
||||
if (str != timer) {
|
||||
timer = str
|
||||
keys.add(false)
|
||||
lists.add(ManyBean(time(timer), R.layout.order_time))
|
||||
}
|
||||
if (TypeParts.isEntrust(mContext)) {
|
||||
olb.getData().getList().get(i).setTotalFreight("")
|
||||
}
|
||||
keys.add(false)
|
||||
lists.add(ManyBean(olb.getData().getList().get(i), R.layout.order_item))
|
||||
}
|
||||
if (lists.size == 0 && index == 1) {
|
||||
keys.add(false)
|
||||
lists.add(ManyBean(time(""), R.layout.item_null))
|
||||
}
|
||||
list.addAll(lists)
|
||||
aas = rv.creates(mContext, list)
|
||||
aas.setOnItemViewListener { position: Int, o: Any, v: View, layout: Int ->
|
||||
when (layout) {
|
||||
R.layout.order_item -> {
|
||||
val ld = o as ListDTO
|
||||
val btn = v.findViewById<Button>(R.id.btn)
|
||||
val llQrsh = v.findViewById<LinearLayout>(R.id.llQrsh)
|
||||
val state_img = v.findViewById<ImageView>(R.id.state_img)
|
||||
val btnQrsh = v.findViewById<Button>(R.id.btnQrsh)
|
||||
val btnAgain = v.findViewById<Button>(R.id.btnAgain)
|
||||
btn.visibility = View.GONE
|
||||
// llQrsh.visibility = View.VISIBLE
|
||||
// btnQrsh.setOnClickListener { v1: View? ->
|
||||
// XPopup.Builder(mContext)
|
||||
// .asConfirm(
|
||||
// "确认收货", "确认 " + ld.orderNum + "收货么?",
|
||||
// "取消", "确认",
|
||||
// {
|
||||
// or.orderSigin(ld.waybillId)
|
||||
// }, null, false, R.layout.alert_ok_cancel
|
||||
// ) //最后一个参数绑定已有布局
|
||||
// .show()
|
||||
// }
|
||||
btnAgain.setOnClickListener { v1: View? ->
|
||||
// Intent in=new Intent(con, NodeInfoActivity.class);
|
||||
val `in` = Intent(mContext, AnotherOrderActivity::class.java)
|
||||
`in`.putExtra("id", ld.orderId)
|
||||
`in`.putExtra("type", type)
|
||||
startActivity(`in`)
|
||||
}
|
||||
v.setOnClickListener { v12: View? ->
|
||||
val `in` = Intent(mContext, OrderDetailsAllActivity::class.java)
|
||||
`in`.putExtra("id", ld.orderId)
|
||||
startActivity(`in`)
|
||||
}
|
||||
v.setOnLongClickListener { v13: View? ->
|
||||
// 获取TextView中的文本
|
||||
val text = ld.orderNum
|
||||
|
||||
// 获取剪切板管理器
|
||||
val clipboard =
|
||||
mContext.getSystemService(CLIPBOARD_SERVICE) as ClipboardManager
|
||||
if (clipboard != null) {
|
||||
// 创建一个剪切数据对象
|
||||
val clip = ClipData.newPlainText("label", text)
|
||||
// 将数据设置到剪切板
|
||||
clipboard.setPrimaryClip(clip)
|
||||
ToastUtil.show(mContext, text + "复制到剪切板")
|
||||
}
|
||||
true
|
||||
}
|
||||
if (ld.makeStatus == 107001) {
|
||||
state_img.visibility = View.VISIBLE
|
||||
state_img.setImageResource(R.mipmap.invoicing_state)
|
||||
} else if (ld.makeStatus == 107002) {
|
||||
state_img.visibility = View.VISIBLE
|
||||
state_img.setImageResource(R.mipmap.invoicing)
|
||||
} else if (ld.makeStatus == 107003) {
|
||||
state_img.visibility = View.VISIBLE
|
||||
state_img.setImageResource(R.mipmap.invoicing_no)
|
||||
} else {
|
||||
}
|
||||
v.top = resources.getDimensionPixelOffset(R.dimen.dp_10)
|
||||
if (ld.status > 102002) {
|
||||
btn.text = "查看运单"
|
||||
}
|
||||
if (ld.status == 102001) {
|
||||
btn.text = "删除"
|
||||
}
|
||||
btn.setOnClickListener { v1: View? ->
|
||||
if (ld.status > 102002) {
|
||||
Log.e("查看", "查看")
|
||||
val `in` = Intent(mContext, OrderDetailsActivity::class.java)
|
||||
`in`.putExtra("id", ld.waybillId)
|
||||
startActivity(`in`)
|
||||
}
|
||||
// else {
|
||||
// if (ld.status == 102002) {
|
||||
// XPopup.Builder(getActivity())
|
||||
// .isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个
|
||||
// .asConfirm(
|
||||
// "请确认", "是否撤销此订单?",
|
||||
// "取消", "确认",
|
||||
// {
|
||||
// or.orderRevoke(ld.orderId)
|
||||
// }, null, false, R.layout.alert_ok_cancel
|
||||
// ) //最后一个参数绑定已有布局
|
||||
// .show()
|
||||
// } else {
|
||||
// XPopup.Builder(getActivity())
|
||||
// .isDestroyOnDismiss(true) //对于只使用一次的弹窗,推荐设置这个
|
||||
// .asConfirm(
|
||||
// "请确认", "是否删除此订单?",
|
||||
// "取消", "确认",
|
||||
// {
|
||||
// Log.e("删除", "删除")
|
||||
// or.orderDelete(ld.orderId)
|
||||
// }, null, false, R.layout.alert_ok_cancel
|
||||
// ) //最后一个参数绑定已有布局
|
||||
// .show()
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun addData() {
|
||||
val lists: MutableList<ManyBean> = ArrayList()
|
||||
for (listDTO in olb.data.list) {
|
||||
var str = listDTO.createTime
|
||||
str = Timer.formatChange(str, "yyyy-MM-dd HH:mm:ss", "yyyy-MM")
|
||||
if (str != timer) {
|
||||
timer = str
|
||||
lists.add(ManyBean(time(timer), R.layout.order_time))
|
||||
}
|
||||
lists.add(ManyBean(listDTO, R.layout.order_item))
|
||||
}
|
||||
rv.adds(lists)
|
||||
}
|
||||
|
||||
fun initRefreshLoad() {
|
||||
refreshLayout.setOnRefreshListener(OnRefreshListener { refreshLayout: RefreshLayout? ->
|
||||
Log.e("下拉刷新", "pps")
|
||||
index = 1
|
||||
dataKey = true
|
||||
timer = ""
|
||||
getDatas(etSearch.text.toString().trim())
|
||||
KeyboardUtils.hideSoftInput(etSearch)
|
||||
})
|
||||
refreshLayout.setOnLoadMoreListener(OnLoadMoreListener { refreshLayout: RefreshLayout ->
|
||||
Log.e(
|
||||
"上拉加载",
|
||||
"次数$index"
|
||||
)
|
||||
if (dataKey) {
|
||||
index++
|
||||
getDatas(etSearch.text.toString().trim())
|
||||
} else {
|
||||
Toast.makeText(mContext, "没有更多了", Toast.LENGTH_SHORT).show()
|
||||
refreshLayout.finishLoadMore()
|
||||
}
|
||||
KeyboardUtils.hideSoftInput(etSearch)
|
||||
})
|
||||
refreshLayout.autoRefresh()
|
||||
}
|
||||
}
|
||||
|
||||
class time(var timer: String)
|
@ -4,7 +4,7 @@
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#fff5f5f5" />
|
||||
<corners
|
||||
android:radius="@dimen/dp_22"
|
||||
android:radius="@dimen/dp_23"
|
||||
></corners>
|
||||
</shape>
|
||||
</item>
|
||||
|
67
app/src/main/res/layout/activity_search_waybill.xml
Normal file
67
app/src/main/res/layout/activity_search_waybill.xml
Normal file
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/activity_invoice"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg_theme"
|
||||
android:orientation="vertical">
|
||||
|
||||
<include layout="@layout/common_toolbar" />
|
||||
<!-- <include layout="@layout/assembly_title_block" />-->
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_60"
|
||||
android:paddingLeft="@dimen/dp_15"
|
||||
android:paddingRight="@dimen/dp_15">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/etSearch"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_46"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@drawable/search_bg"
|
||||
android:drawableLeft="@drawable/search"
|
||||
android:drawablePadding="@dimen/dp_10"
|
||||
android:gravity="center_vertical"
|
||||
android:hint="搜索运单"
|
||||
android:maxLines="1"
|
||||
android:paddingLeft="@dimen/dp_10"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/sp_18" />
|
||||
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnSearch"
|
||||
android:layout_width="@dimen/dp_76"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginRight="@dimen/dp_2"
|
||||
android:layout_marginBottom="@dimen/dp_3"
|
||||
android:background="@drawable/shape_search_bg"
|
||||
android:text="搜索"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_16" />
|
||||
</RelativeLayout>
|
||||
|
||||
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
||||
android:id="@+id/refreshLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.scwang.smart.refresh.header.MaterialHeader
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<com.oneclouds.cargo.util.view.BaseRecyclerView
|
||||
android:id="@+id/rv"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:overScrollMode="never"></com.oneclouds.cargo.util.view.BaseRecyclerView>
|
||||
|
||||
<com.scwang.smart.refresh.footer.BallPulseFooter
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||||
</LinearLayout>
|
@ -25,18 +25,18 @@
|
||||
android:layout_height="wrap_content"/>
|
||||
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
||||
</LinearLayout>
|
||||
<!-- <Button-->
|
||||
<!-- android:id="@+id/submit"-->
|
||||
<!-- android:layout_marginBottom="@dimen/dp_34"-->
|
||||
<!-- android:layout_alignParentBottom="true"-->
|
||||
<!-- android:layout_marginLeft="@dimen/dp_20"-->
|
||||
<!-- android:layout_marginRight="@dimen/dp_20"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="@dimen/dp_44"-->
|
||||
<!-- android:background="@drawable/bg_btn"-->
|
||||
<!-- android:text="提交开票申请"-->
|
||||
<!-- android:textColor="#ffffffff"-->
|
||||
<!-- android:textSize="@dimen/sp_16"-->
|
||||
<!-- android:visibility="gone"-->
|
||||
<!-- />-->
|
||||
<!-- <Button-->
|
||||
<!-- android:id="@+id/submit"-->
|
||||
<!-- android:layout_marginBottom="@dimen/dp_34"-->
|
||||
<!-- android:layout_alignParentBottom="true"-->
|
||||
<!-- android:layout_marginLeft="@dimen/dp_20"-->
|
||||
<!-- android:layout_marginRight="@dimen/dp_20"-->
|
||||
<!-- android:layout_width="match_parent"-->
|
||||
<!-- android:layout_height="@dimen/dp_44"-->
|
||||
<!-- android:background="@drawable/bg_btn"-->
|
||||
<!-- android:text="提交开票申请"-->
|
||||
<!-- android:textColor="#ffffffff"-->
|
||||
<!-- android:textSize="@dimen/sp_16"-->
|
||||
<!-- android:visibility="gone"-->
|
||||
<!-- />-->
|
||||
</RelativeLayout>
|
@ -1,187 +1,247 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/order_list_top">
|
||||
<RelativeLayout
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_width="@dimen/dp_104"
|
||||
android:layout_height="@dimen/dp_54"
|
||||
android:background="@drawable/order_list_top_bg"
|
||||
android:elevation="@dimen/dp_1">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/waybillNum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="30"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="单"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_marginRight="@dimen/dp_26"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:background="#fff"/>
|
||||
<TextView
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="总发货运单"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_12"
|
||||
/>
|
||||
android:orientation="vertical">
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_26"
|
||||
android:layout_height="@dimen/dp_28"
|
||||
android:src="@mipmap/icon_order_top1"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"/>
|
||||
</RelativeLayout>
|
||||
<RelativeLayout
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_width="@dimen/dp_104"
|
||||
android:layout_height="@dimen/dp_54"
|
||||
android:background="@drawable/order_list_top_bg"
|
||||
android:elevation="@dimen/dp_1">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_52"
|
||||
android:paddingLeft="@dimen/dp_15"
|
||||
android:paddingRight="@dimen/dp_15">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvSearch"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/distance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="30"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="公里"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_marginRight="@dimen/dp_26"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:background="#fff"/>
|
||||
<TextView
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="总发货里程"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_12"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_34"
|
||||
android:layout_height="@dimen/dp_26"
|
||||
android:src="@mipmap/icon_order_top2"
|
||||
android:layout_height="@dimen/dp_42"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:background="@drawable/search_bg"
|
||||
android:drawableLeft="@drawable/search"
|
||||
android:drawablePadding="@dimen/dp_10"
|
||||
android:gravity="center_vertical"
|
||||
android:hint="搜索运单"
|
||||
android:maxLines="1"
|
||||
android:paddingLeft="@dimen/dp_10"
|
||||
android:singleLine="true"
|
||||
android:textSize="@dimen/sp_18"/>
|
||||
|
||||
|
||||
|
||||
<Button
|
||||
android:visibility="gone"
|
||||
android:id="@+id/btnSearch"
|
||||
android:layout_marginBottom="@dimen/dp_3"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_width="@dimen/dp_76"
|
||||
android:layout_height="@dimen/dp_40"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"/>
|
||||
android:layout_marginRight="@dimen/dp_2"
|
||||
android:background="@drawable/shape_search_bg"
|
||||
android:text="搜索"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/sp_16"/>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:layout_marginRight="@dimen/dp_20"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_width="@dimen/dp_104"
|
||||
android:layout_height="@dimen/dp_54"
|
||||
android:background="@drawable/order_list_top_bg"
|
||||
android:elevation="@dimen/dp_1">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
android:id="@+id/order_list_top"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="@dimen/dp_104"
|
||||
android:layout_height="@dimen/dp_54"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:background="@drawable/order_list_top_bg"
|
||||
android:elevation="@dimen/dp_1">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/freight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="0"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14"
|
||||
/>
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="元"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<View
|
||||
android:layout_marginRight="@dimen/dp_26"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:background="#fff"/>
|
||||
<TextView
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="总运费支出"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_12"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_27"
|
||||
android:layout_height="@dimen/dp_27"
|
||||
android:src="@mipmap/icon_order_top3"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/waybillNum"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="30"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="单"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginRight="@dimen/dp_26"
|
||||
android:background="#fff" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:text="总发货运单"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_26"
|
||||
android:layout_height="@dimen/dp_28"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:src="@mipmap/icon_order_top1" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="@dimen/dp_104"
|
||||
android:layout_height="@dimen/dp_54"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:background="@drawable/order_list_top_bg"
|
||||
android:elevation="@dimen/dp_1">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/distance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="30"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="公里"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginRight="@dimen/dp_26"
|
||||
android:background="#fff" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:text="总发货里程"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_34"
|
||||
android:layout_height="@dimen/dp_26"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:src="@mipmap/icon_order_top2" />
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="@dimen/dp_104"
|
||||
android:layout_height="@dimen/dp_54"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"/>
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_marginTop="@dimen/dp_12"
|
||||
android:layout_marginRight="@dimen/dp_20"
|
||||
android:layout_marginBottom="@dimen/dp_12"
|
||||
android:background="@drawable/order_list_top_bg"
|
||||
android:elevation="@dimen/dp_1">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/freight"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="0"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="元"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_14" />
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/dp_1"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:layout_marginRight="@dimen/dp_26"
|
||||
android:background="#fff" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/dp_8"
|
||||
android:layout_marginTop="@dimen/dp_4"
|
||||
android:text="总运费支出"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="@dimen/sp_12" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/dp_27"
|
||||
android:layout_height="@dimen/dp_27"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:src="@mipmap/icon_order_top3" />
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
Loading…
Reference in New Issue
Block a user