|
|
@@ -20,6 +20,7 @@ import cn.muchinfo.rma.global.data.AccountData
|
|
|
import cn.muchinfo.rma.global.data.OrderQuoteMyqData
|
|
|
import cn.muchinfo.rma.global.data.PermancePlanTmpData
|
|
|
import cn.muchinfo.rma.global.data.WrUserFriendData
|
|
|
+import cn.muchinfo.rma.global.toShowTime3
|
|
|
import cn.muchinfo.rma.global.utils.TimeUtils
|
|
|
import cn.muchinfo.rma.lifecycle.bindOptional
|
|
|
import cn.muchinfo.rma.view.autoWidget.*
|
|
|
@@ -98,6 +99,9 @@ class TradeCircleListedBuyUI(
|
|
|
//挂牌有效期
|
|
|
lateinit var validity_of_listing: TextView
|
|
|
|
|
|
+ //交收月
|
|
|
+ lateinit var delivery_month : TextView
|
|
|
+
|
|
|
//选择的履约模版数据
|
|
|
val selectPerformanceStepData: MutableLiveData<PermancePlanTmpData> = MutableLiveData()
|
|
|
|
|
|
@@ -289,7 +293,12 @@ class TradeCircleListedBuyUI(
|
|
|
}
|
|
|
|
|
|
textView {
|
|
|
- text = data.enumdicname
|
|
|
+ if (hasType == "1") {
|
|
|
+ text = data.enumdicname
|
|
|
+ }else{
|
|
|
+ text = listedData.WrFtWrstandard?.enumdicname
|
|
|
+ }
|
|
|
+
|
|
|
textSizeAuto = 34
|
|
|
textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
}.lparams(wrapContent, wrapContent) {
|
|
|
@@ -360,7 +369,11 @@ class TradeCircleListedBuyUI(
|
|
|
}.lparams(0, autoSize(132), 1f)
|
|
|
|
|
|
textView {
|
|
|
- text = data.enumdicname
|
|
|
+ if (hasType == "1") {
|
|
|
+ text = data.enumdicname
|
|
|
+ }else{
|
|
|
+ text = listedData.WrFtWrstandard?.enumdicname
|
|
|
+ }
|
|
|
textSizeAuto = 31
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
}.lparams(wrapContent, wrapContent) {
|
|
|
@@ -436,6 +449,42 @@ class TradeCircleListedBuyUI(
|
|
|
|
|
|
linearLayout {
|
|
|
onThrottleFirstClick {
|
|
|
+ activity.showDataSelectDialog(type = "2") {
|
|
|
+ delivery_month.text = this
|
|
|
+ }
|
|
|
+ }
|
|
|
+ gravity = Gravity.CENTER_VERTICAL
|
|
|
+ textView {
|
|
|
+ text = "交收月"
|
|
|
+ textSizeAuto = 34
|
|
|
+ textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
+ }.lparams(autoSize(214), wrapContent) {
|
|
|
+ marginStart = autoSize(36)
|
|
|
+ }
|
|
|
+
|
|
|
+ textView {
|
|
|
+// viewModel.marketRunData.bindOptional(context){
|
|
|
+// text = it?.tradedate?.toShowTime3("yyyy-MM","yyyyMMdd")
|
|
|
+// }
|
|
|
+ text = com.blankj.utilcode.util.TimeUtils.getNowString()?.toShowTime3("yyyy-MM")
|
|
|
+ delivery_month = this
|
|
|
+ textSizeAuto = 34
|
|
|
+ textColorInt = R.color.rma_black_33
|
|
|
+ }.lparams(wrapContent, wrapContent)
|
|
|
+
|
|
|
+ emptyView()
|
|
|
+
|
|
|
+ imageView {
|
|
|
+ imageResource = R.mipmap.rma_search_by_time
|
|
|
+ }.lparams(autoSize(38), autoSize(38)) {
|
|
|
+ marginEnd = autoSize(36)
|
|
|
+ }
|
|
|
+ }.lparams(matchParent, autoSize(143))
|
|
|
+
|
|
|
+ itemView()
|
|
|
+
|
|
|
+ linearLayout {
|
|
|
+ onThrottleFirstClick {
|
|
|
activity.showDataSelectDialog(type = "1") {
|
|
|
validity_of_listing.text = this
|
|
|
}
|