Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e83195de
authored
Feb 24, 2025
by
han xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在线填写验收报告
parent
de52d782
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
orderCenter/src/main/java/com/dayu/order/ui/adapter/OrderServerClockAdapter.java
orderCenter/src/main/res/layout/serve_datails_item.xml
orderCenter/src/main/java/com/dayu/order/ui/adapter/OrderServerClockAdapter.java
View file @
e83195de
package
com
.
dayu
.
order
.
ui
.
adapter
;
import
android.content.Intent
;
import
android.os.Bundle
;
import
android.text.TextUtils
;
import
android.view.View
;
...
...
@@ -11,7 +12,9 @@ import com.dayu.order.R;
import
com.dayu.order.api.protocol.OrderDetail
;
import
com.dayu.order.databinding.ServeDatailsItemBinding
;
import
com.dayu.order.presenter.orderdetail.OrderDetailClockPresenter
;
import
com.dayu.usercenter.ui.activity.CommeWebViewActivity
;
import
com.dayu.utils.UIUtils
;
import
com.dayu.utils.UserManager
;
import
java.util.ArrayList
;
...
...
@@ -117,6 +120,21 @@ public class OrderServerClockAdapter extends CoreAdapter<OrderDetail.RecordBean,
holder
.
serverCheck
.
setVisibility
(
View
.
VISIBLE
);
}
holder
.
serverCheck
.
setOnClickListener
(
v
->
presenter
.
dumpCheckContent
(
position
));
if
(
mDetail
.
getSpus
().
get
(
0
)
!=
null
&&
mDetail
.
getSpus
().
get
(
0
).
getNeedCheckReport
()
==
1
){
holder
.
acceptanceReport
.
setVisibility
(
View
.
VISIBLE
);
holder
.
acceptanceReport
.
setOnClickListener
(
v
->
{
String
url
=
mDetail
.
getSpus
().
get
(
0
).
getCheckReportH5
()+
"token="
+
UserManager
.
getInstance
().
getUser
().
getToken
()
+
"&created="
+
mDetail
.
getCreated
();
Bundle
bundle
=
new
Bundle
();
bundle
.
putString
(
Constants
.
URL
,
url
);
// bundle.putString(Constants.TITLE, "验收报告,请认真完成填写");
Intent
intent
=
new
Intent
(
mContext
,
CommeWebViewActivity
.
class
);
intent
.
putExtras
(
bundle
);
mContext
.
startActivity
(
intent
);
});
}
else
{
holder
.
acceptanceReport
.
setVisibility
(
View
.
GONE
);
}
}
if
(
UIUtils
.
getString
(
R
.
string
.
user_chcek
).
equals
(
item
.
getOperation
()))
{
holder
.
serverCheck
.
setOnClickListener
(
v
->
{
...
...
orderCenter/src/main/res/layout/serve_datails_item.xml
View file @
e83195de
...
...
@@ -77,6 +77,16 @@
android:textColor=
"@color/default_text_color"
android:textSize=
"12sp"
/>
<TextView
android:layout_gravity=
"right"
android:id=
"@+id/acceptance_report"
android:layout_width=
"60dp"
android:layout_height=
"22dp"
android:gravity=
"center"
tools:text=
"验收报告"
android:visibility=
"gone"
android:textColor=
"@color/cl_receiving_order_item_data"
android:textSize=
"@dimen/sp_12"
/>
<TextView
android:layout_gravity=
"right"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment