Skip to content
项目
Groups
代码片段
帮助
正在加载...
Sign in / Register
Toggle navigation
W
workoffice
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图表
统计图
Create a new issue
作业
提交
议题看板
Open sidebar
冷广德
workoffice
Commits
71b0faa8
提交
71b0faa8
authored
3月 15, 2020
作者:
lgd
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.bat页面商店第一个页面,产品页面展示
2.//TODO erp用户激活,忘记密码测试,bat,mes,消息,我的,刷新token
上级
2cc94808
全部展开
显示空白字符变更
内嵌
并排
正在显示
20 个修改的文件
包含
709 行增加
和
11 行删除
+709
-11
build.gradle
app/build.gradle
+1
-1
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+8
-0
ProductBean.java
app/src/main/java/com/wd/workoffice/bean/ProductBean.java
+0
-0
ApiService.java
app/src/main/java/com/wd/workoffice/retrofit/ApiService.java
+14
-0
StoreSaleActivity.java
.../com/wd/workoffice/ui/activity/bat/StoreSaleActivity.java
+9
-3
StoreSaleClientActivity.java
...d/workoffice/ui/activity/bat/StoreSaleClientActivity.java
+6
-3
StoreSaleProductActivity.java
.../workoffice/ui/activity/bat/StoreSaleProductActivity.java
+222
-0
StoreProcductAdapter.java
...va/com/wd/workoffice/ui/adapter/StoreProcductAdapter.java
+32
-0
DialogUtils.java
app/src/main/java/com/wd/workoffice/util/DialogUtils.java
+0
-1
AddAndReduceView.java
.../main/java/com/wd/workoffice/widget/AddAndReduceView.java
+77
-0
shape_add_cart.xml
app/src/main/res/drawable/shape_add_cart.xml
+7
-0
activity_bat_sale_client.xml
app/src/main/res/layout/activity_bat_sale_client.xml
+1
-1
activity_bat_sale_product.xml
app/src/main/res/layout/activity_bat_sale_product.xml
+9
-2
item_store_product.xml
app/src/main/res/layout/item_store_product.xml
+149
-0
view_add_cart.xml
app/src/main/res/layout/view_add_cart.xml
+110
-0
view_add_remove.xml
app/src/main/res/layout/view_add_remove.xml
+37
-0
menu_modify.xml
app/src/main/res/menu/menu_modify.xml
+9
-0
menu_my_edit_info.xml
app/src/main/res/menu/menu_my_edit_info.xml
+9
-0
menu_store_cart.xml
app/src/main/res/menu/menu_store_cart.xml
+9
-0
product_add_cart.png
app/src/main/res/mipmap-xhdpi/product_add_cart.png
+0
-0
没有找到文件。
app/build.gradle
浏览文件 @
71b0faa8
...
...
@@ -103,5 +103,5 @@ dependencies {
implementation
'com.github.tbruyelle:rxpermissions:0.10.2'
implementation
'com.ashokvarma.android:bottom-navigation-bar:2.2.0'
implementation
'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.45-androidx'
implementation
'com.qmuiteam:qmui:
1.4.0
'
implementation
'com.qmuiteam:qmui:
2.0.0-alpha04
'
}
app/src/main/AndroidManifest.xml
浏览文件 @
71b0faa8
...
...
@@ -113,6 +113,14 @@
android:screenOrientation=
"portrait"
android:theme=
"@style/Work.Base"
android:windowSoftInputMode=
"adjustPan"
/>
<activity
android:name=
".ui.activity.bat.StoreSaleProductActivity"
android:configChanges=
"keyboardHidden|orientation"
android:label=
"选择产品"
android:launchMode=
"singleTop"
android:screenOrientation=
"portrait"
android:theme=
"@style/Work.Base"
android:windowSoftInputMode=
"adjustPan"
/>
<provider
android:name=
"androidx.core.content.FileProvider"
android:authorities=
"com.wd.workoffice.fileprovider"
...
...
app/src/main/java/com/wd/workoffice/bean/ProductBean.java
0 → 100644
浏览文件 @
71b0faa8
差异被折叠。
点击展开。
app/src/main/java/com/wd/workoffice/retrofit/ApiService.java
浏览文件 @
71b0faa8
...
...
@@ -232,4 +232,18 @@ public interface ApiService {
*/
@GET
(
"/transitpart/page/list/current-user/part-type"
)
Observable
<
BaseBean
>
getClient
(
@QueryMap
Map
<
String
,
Object
>
param
);
/**
* 根据关联往来单位(类别为客户)和生产厂(产品上架部门) --> 获取产品列表
*
* @param outDeptId
* @param transitPartId 销售订单(客户id),外采购订单(供应商id)
*
* processType 销售流程PROCESS_SALE
* 外采购流程PROCESS_PURCHAS
* @return
*/
@GET
(
"product/page/list/by/outDept/transit-part"
)
Observable
<
BaseBean
>
getProductList
(
@QueryMap
Map
<
String
,
Object
>
param
);
}
app/src/main/java/com/wd/workoffice/ui/activity/bat/StoreSaleActivity.java
浏览文件 @
71b0faa8
...
...
@@ -24,9 +24,12 @@ import butterknife.BindView;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
/*
/*
*
* 商店-销售
*/
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public
class
StoreSaleActivity
extends
WorkToolBarActivity
implements
BatSaleContract
.
View
{
@BindView
(
R
.
id
.
tv_client
)
...
...
@@ -52,7 +55,7 @@ public class StoreSaleActivity extends WorkToolBarActivity implements BatSaleCon
List
<
String
>
depNameList
=
new
ArrayList
<>();
private
DepBean
chooseDep
;
private
Integer
clientId
;
private
List
<
String
>
processNameList
=
new
ArrayList
<>();
private
List
<
String
>
processNameList
=
new
ArrayList
<>();
private
List
<
ProcessBean
>
processList
;
private
ProcessBean
chooseProcess
;
...
...
@@ -109,6 +112,9 @@ public class StoreSaleActivity extends WorkToolBarActivity implements BatSaleCon
toast
(
"请选择子流程"
);
return
;
}
startActivity
(
StoreSaleProductActivity
.
class
,
"depId"
,
chooseDep
.
getId
()
+
""
,
"process"
,
chooseProcess
.
getName
(),
"clientName"
,
tvClient
.
getText
().
toString
(),
"depName"
,
chooseDep
.
getName
());
break
;
}
}
...
...
app/src/main/java/com/wd/workoffice/ui/activity/bat/StoreSaleClientActivity.java
浏览文件 @
71b0faa8
...
...
@@ -27,10 +27,12 @@ import butterknife.ButterKnife;
import
butterknife.OnClick
;
import
flexible.xd.android_base.network.rtfhttp.Transformer
;
import
io.reactivex.disposables.Disposable
;
/*
/**
* 商店-销售-选择客户
*/
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public
class
StoreSaleClientActivity
extends
WorkToolBarActivity
{
@BindView
(
R
.
id
.
et_key
)
...
...
@@ -131,6 +133,7 @@ public class StoreSaleClientActivity extends WorkToolBarActivity {
public
void
onViewClicked
()
{
param
.
put
(
"name"
,
etKey
.
getText
().
toString
());
param
.
put
(
"current"
,
1
);
page
=
1
;
getData
();
}
}
app/src/main/java/com/wd/workoffice/ui/activity/bat/StoreSaleProductActivity.java
0 → 100644
浏览文件 @
71b0faa8
package
com
.
wd
.
workoffice
.
ui
.
activity
.
bat
;
import
android.text.TextUtils
;
import
android.view.LayoutInflater
;
import
android.view.Menu
;
import
android.view.MenuItem
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.EditText
;
import
android.widget.TextView
;
import
com.alibaba.fastjson.JSON
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.app.BaseBean
;
import
com.wd.workoffice.app.WorkToolBarActivity
;
import
com.wd.workoffice.bean.ProcessBean
;
import
com.wd.workoffice.bean.ProductBean
;
import
com.wd.workoffice.bean.workEnum.PermissType
;
import
com.wd.workoffice.retrofit.RtfUtils
;
import
com.wd.workoffice.retrofit.WorkObserver
;
import
com.wd.workoffice.ui.adapter.StoreProcductAdapter
;
import
com.wd.workoffice.util.WorkUtils
;
import
com.wd.workoffice.widget.AddAndReduceView
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
androidx.appcompat.app.AlertDialog
;
import
androidx.recyclerview.widget.LinearLayoutManager
;
import
androidx.recyclerview.widget.RecyclerView
;
import
butterknife.BindView
;
import
butterknife.ButterKnife
;
import
butterknife.OnClick
;
import
flexible.xd.android_base.network.rtfhttp.Transformer
;
import
io.reactivex.disposables.Disposable
;
/**
* 商店-销售-产品
* author : flexible
* email : lgd19940421@163.com
* github: https://github.com/FlexibleXd
**/
public
class
StoreSaleProductActivity
extends
WorkToolBarActivity
{
@BindView
(
R
.
id
.
tv_order_type
)
TextView
tvOrderType
;
@BindView
(
R
.
id
.
tv_factory
)
TextView
tvFactory
;
@BindView
(
R
.
id
.
tv_process
)
TextView
tvProcess
;
@BindView
(
R
.
id
.
tv_client
)
TextView
tvClient
;
@BindView
(
R
.
id
.
tv_choose
)
TextView
tvChoose
;
@BindView
(
R
.
id
.
et_key
)
EditText
etKey
;
@BindView
(
R
.
id
.
btn_search
)
Button
btnSearch
;
@BindView
(
R
.
id
.
rv_product
)
RecyclerView
rvProduct
;
private
Map
<
String
,
Object
>
param
;
private
List
<
ProductBean
.
RecordsBean
>
clientList
;
private
StoreProcductAdapter
clientAdapter
;
private
int
page
=
1
;
@Override
protected
void
initView
()
{
ButterKnife
.
bind
(
this
);
rvProduct
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
RecyclerView
.
VERTICAL
,
false
));
tvClient
.
setText
(
"客户名称:"
+
getIntent
().
getStringExtra
(
"clientName"
));
tvFactory
.
setText
(
"厂家:"
+
getIntent
().
getStringExtra
(
"depName"
));
tvProcess
.
setText
(
"订单流程:"
+
getIntent
().
getStringExtra
(
"process"
));
}
private
void
openDialog
(
ProductBean
.
RecordsBean
recordsBean
)
{
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
View
view
=
LayoutInflater
.
from
(
this
).
inflate
(
R
.
layout
.
view_add_cart
,
null
);
TextView
tvOk
=
view
.
findViewById
(
R
.
id
.
tv_ok
);
TextView
tvCancel
=
view
.
findViewById
(
R
.
id
.
tv_cancel
);
AddAndReduceView
num
=
view
.
findViewById
(
R
.
id
.
ar_num
);
EditText
etPrice
=
view
.
findViewById
(
R
.
id
.
et_price
);
builder
.
setView
(
view
);
AlertDialog
addCartDialog
=
builder
.
create
();
tvOk
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
if
(
TextUtils
.
isEmpty
(
etPrice
.
getText
().
toString
()))
{
toast
(
"请填写外部价格"
);
return
;
}
addCart
(
recordsBean
,
num
.
getNumber
(),
etPrice
.
getText
().
toString
());
addCartDialog
.
dismiss
();
}
});
tvCancel
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
public
void
onClick
(
View
v
)
{
addCartDialog
.
dismiss
();
}
});
addCartDialog
.
show
();
}
/**
* 添加购物车
*
* @param chooseProduct 产品
* @param number 数量
* @param price 单价
*/
private
void
addCart
(
ProductBean
.
RecordsBean
chooseProduct
,
int
number
,
String
price
)
{
}
@Override
protected
void
initData
()
{
clientList
=
new
ArrayList
<>();
clientAdapter
=
new
StoreProcductAdapter
(
R
.
layout
.
item_store_product
,
clientList
);
clientAdapter
.
bindToRecyclerView
(
rvProduct
);
param
=
WorkUtils
.
pageKey
();
param
.
put
(
"current"
,
1
);
param
.
put
(
"processType"
,
PermissType
.
PROCESS_SALE
.
getCode
());
param
.
put
(
"outDeptId"
,
getIntent
().
getStringExtra
(
"depId"
));
// param.put("searchValue", "1");
getData
();
}
private
void
getData
()
{
RtfUtils
.
getRtf
().
getProductList
(
param
).
compose
(
Transformer
.
schedule
()).
subscribe
(
new
WorkObserver
<
BaseBean
>()
{
@Override
public
void
doOnSubscribe
(
Disposable
d
)
{
}
@Override
public
void
onFail
(
String
errorMsg
)
{
hideLoading
();
toast
(
errorMsg
);
}
@Override
public
void
onSuccess
(
BaseBean
data
)
{
hideLoading
();
if
(
data
.
getCode
()
!=
0
)
{
toast
(
data
.
getMessage
());
return
;
}
List
<
ProductBean
.
RecordsBean
>
dataList
=
JSON
.
parseObject
(
data
.
getData
().
toString
(),
ProductBean
.
class
).
getRecords
();
if
(
page
==
1
)
{
clientList
.
clear
();
clientList
.
addAll
(
dataList
);
clientAdapter
.
notifyDataSetChanged
();
clientAdapter
.
loadMoreComplete
();
}
else
{
clientAdapter
.
loadMoreComplete
();
clientList
.
addAll
(
dataList
);
clientAdapter
.
notifyDataSetChanged
();
}
if
(
dataList
.
size
()
==
0
)
{
clientAdapter
.
loadMoreEnd
();
}
else
{
page
++;
}
}
});
}
@Override
protected
void
initEvent
()
{
clientAdapter
.
setOnLoadMoreListener
(
new
BaseQuickAdapter
.
RequestLoadMoreListener
()
{
@Override
public
void
onLoadMoreRequested
()
{
param
.
put
(
"current"
,
page
);
getData
();
}
},
rvProduct
);
clientAdapter
.
setOnItemChildClickListener
(
new
BaseQuickAdapter
.
OnItemChildClickListener
()
{
@Override
public
void
onItemChildClick
(
BaseQuickAdapter
adapter
,
View
view
,
int
position
)
{
openDialog
(
clientList
.
get
(
position
));
}
});
}
@Override
protected
int
layoutId
()
{
return
R
.
layout
.
activity_bat_sale_product
;
}
@Override
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
getMenuInflater
().
inflate
(
R
.
menu
.
menu_store_cart
,
menu
);
return
super
.
onCreateOptionsMenu
(
menu
);
}
@Override
public
boolean
onOptionsItemSelected
(
MenuItem
item
)
{
switch
(
item
.
getItemId
())
{
case
R
.
id
.
cart
:
break
;
}
return
super
.
onOptionsItemSelected
(
item
);
}
@OnClick
({
R
.
id
.
tv_choose
,
R
.
id
.
btn_search
})
public
void
onViewClicked
(
View
view
)
{
switch
(
view
.
getId
())
{
case
R
.
id
.
tv_choose
:
finish
();
break
;
case
R
.
id
.
btn_search
:
param
.
put
(
"name"
,
etKey
.
getText
().
toString
());
param
.
put
(
"current"
,
1
);
page
=
1
;
getData
();
break
;
}
}
}
app/src/main/java/com/wd/workoffice/ui/adapter/StoreProcductAdapter.java
0 → 100644
浏览文件 @
71b0faa8
package
com
.
wd
.
workoffice
.
ui
.
adapter
;
import
com.chad.library.adapter.base.BaseQuickAdapter
;
import
com.chad.library.adapter.base.BaseViewHolder
;
import
com.wd.workoffice.R
;
import
com.wd.workoffice.bean.ClientBean
;
import
com.wd.workoffice.bean.ProductBean
;
import
java.util.List
;
/**
* Created by flexible on 2018/8/13.
*/
public
class
StoreProcductAdapter
extends
BaseQuickAdapter
<
ProductBean
.
RecordsBean
,
BaseViewHolder
>
{
public
StoreProcductAdapter
(
int
layoutResId
,
List
data
)
{
super
(
layoutResId
,
data
);
}
@Override
protected
void
convert
(
BaseViewHolder
helper
,
ProductBean
.
RecordsBean
item
)
{
helper
.
setText
(
R
.
id
.
tv_name
,
item
.
getSimpleCode
());
helper
.
setText
(
R
.
id
.
tv_card
,
item
.
getSoleCode
());
helper
.
setText
(
R
.
id
.
tv_card_name
,
item
.
getName
());
helper
.
setText
(
R
.
id
.
tv_spec
,
item
.
getSpec
());
helper
.
setText
(
R
.
id
.
tv_price
,
"¥"
.
concat
(
String
.
valueOf
(
item
.
getInternalPrice
())));
helper
.
setText
(
R
.
id
.
tv_unit
,
String
.
valueOf
(
item
.
getWeight
()).
concat
(
"吨"
));
helper
.
addOnClickListener
(
R
.
id
.
tv_cart
);
}
}
app/src/main/java/com/wd/workoffice/util/DialogUtils.java
浏览文件 @
71b0faa8
...
...
@@ -10,7 +10,6 @@ import com.qmuiteam.qmui.widget.dialog.QMUIDialog;
* github: https://github.com/FlexibleXd
**/
public
class
DialogUtils
{
public
static
QMUIDialog
.
MenuDialogBuilder
listDialog
(
Context
context
)
{
QMUIDialog
.
MenuDialogBuilder
dialog
=
new
QMUIDialog
.
MenuDialogBuilder
(
context
);
return
dialog
;
...
...
app/src/main/java/com/wd/workoffice/widget/AddAndReduceView.java
0 → 100644
浏览文件 @
71b0faa8
package
com
.
wd
.
workoffice
.
widget
;
import
android.content.Context
;
import
android.util.AttributeSet
;
import
android.view.LayoutInflater
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.LinearLayout
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
com.wd.workoffice.R
;
public
class
AddAndReduceView
extends
LinearLayout
implements
View
.
OnClickListener
{
private
final
Button
add
;
private
final
Button
remove
;
private
final
TextView
tvNum
;
private
int
num
=
1
;
public
AddAndReduceView
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
LayoutInflater
.
from
(
context
).
inflate
(
R
.
layout
.
view_add_remove
,
this
);
add
=
findViewById
(
R
.
id
.
btn_add
);
remove
=
findViewById
(
R
.
id
.
btn_reduce
);
tvNum
=
findViewById
(
R
.
id
.
tv_num
);
add
.
setOnClickListener
(
this
);
remove
.
setOnClickListener
(
this
);
}
public
void
setNumber
(
int
number
)
{
num
=
number
;
tvNum
.
setText
(
number
+
""
);
}
public
int
getNumber
()
{
return
num
;
}
@Override
public
void
onClick
(
View
v
)
{
String
s
=
tvNum
.
getText
().
toString
();
num
=
Integer
.
parseInt
(
s
);
switch
(
v
.
getId
())
{
case
R
.
id
.
btn_add
:
num
++;
tvNum
.
setText
(
num
+
""
);
if
(
mOnNumberChangedListener
!=
null
)
mOnNumberChangedListener
.
OnNumberChanged
(
num
);
break
;
case
R
.
id
.
btn_reduce
:
if
(
num
>
1
)
{
num
--;
tvNum
.
setText
(
num
+
""
);
if
(
mOnNumberChangedListener
!=
null
)
mOnNumberChangedListener
.
OnNumberChanged
(
num
);
return
;
//接口回调
}
else
{
Toast
.
makeText
(
getContext
(),
"不能小于1"
,
Toast
.
LENGTH_SHORT
).
show
();
}
break
;
}
}
public
interface
OnNumberChangedListener
{
void
OnNumberChanged
(
int
vs
);
}
private
OnNumberChangedListener
mOnNumberChangedListener
;
public
void
setOnNumberChangedListener
(
OnNumberChangedListener
onNumberChangedListener
)
{
mOnNumberChangedListener
=
onNumberChangedListener
;
}
}
app/src/main/res/drawable/shape_add_cart.xml
0 → 100644
浏览文件 @
71b0faa8
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<stroke
android:color=
"#D8DCE6"
android:width=
"1dp"
/>
<solid
android:color=
"#F8F8F8"
/>
<corners
android:radius=
"3dp"
/>
</shape>
\ No newline at end of file
app/src/main/res/layout/activity_bat_sale_client.xml
浏览文件 @
71b0faa8
...
...
@@ -48,7 +48,7 @@
<Button
android:id=
"@+id/btn_search"
android:layout_width=
"
5
0mm"
android:layout_width=
"
6
0mm"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10mm"
android:background=
"@color/mainTextColor"
...
...
app/src/main/res/layout/activity_bat_sale_product.xml
浏览文件 @
71b0faa8
...
...
@@ -27,6 +27,7 @@
android:textStyle=
"bold"
/>
<TextView
android:id=
"@+id/tv_order_type"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"3mm"
...
...
@@ -35,6 +36,7 @@
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_factory"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"3mm"
...
...
@@ -43,7 +45,7 @@
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_
name3
"
android:id=
"@+id/tv_
process
"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"3mm"
...
...
@@ -58,6 +60,7 @@
android:layout_marginTop=
"3mm"
>
<TextView
android:id=
"@+id/tv_client"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_centerVertical=
"true"
...
...
@@ -65,6 +68,7 @@
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_choose"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
...
...
@@ -117,7 +121,7 @@
<Button
android:id=
"@+id/btn_search"
android:layout_width=
"
5
0mm"
android:layout_width=
"
6
0mm"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10mm"
android:background=
"@color/mainTextColor"
...
...
@@ -127,6 +131,8 @@
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id=
"@+id/rv_product"
android:layout_width=
"match_parent"
android:layout_marginTop=
"10mm"
android:layout_height=
"match_parent"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/item_store_product.xml
0 → 100644
浏览文件 @
71b0faa8
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@color/white"
android:orientation=
"vertical"
android:paddingHorizontal=
"20mm"
android:paddingVertical=
"10mm"
>
<TextView
android:id=
"@+id/tv_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"图号TH82739857"
android:textSize=
"16sp"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
android:background=
"#FCFCFD"
android:orientation=
"vertical"
android:padding=
"10mm"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_card"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"品名"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_card_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"规格"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_spec"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"内部单价"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_price"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"10mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentLeft=
"true"
android:text=
"单位"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
<TextView
android:id=
"@+id/tv_unit"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentRight=
"true"
android:text=
"品号"
android:textColor=
"@color/flexible_text_gray"
android:textSize=
"12sp"
/>
</RelativeLayout>
</LinearLayout>
<TextView
android:id=
"@+id/tv_cart"
android:layout_width=
"90mm"
android:layout_height=
"26mm"
android:layout_gravity=
"right"
android:layout_marginTop=
"10mm"
android:background=
"@mipmap/product_add_cart"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/view_add_cart.xml
0 → 100644
浏览文件 @
71b0faa8
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#d1f8f8f8"
android:orientation=
"vertical"
>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"20mm"
android:gravity=
"center"
android:text=
"加入购物车"
android:textSize=
"17sp"
android:textStyle=
"bold"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"30mm"
android:orientation=
"horizontal"
android:paddingHorizontal=
"20mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:text=
"外部单价"
android:textColor=
"@color/flexible_text_sup"
android:textSize=
"17sp"
/>
<EditText
android:id=
"@+id/et_price"
android:layout_width=
"match_parent"
android:layout_height=
"30mm"
android:layout_marginLeft=
"10mm"
android:background=
"@drawable/shape_add_cart"
android:gravity=
"right"
android:hint=
"预计开票单价"
android:inputType=
"numberDecimal"
android:paddingVertical=
"4mm"
android:paddingHorizontal=
"10mm"
android:textColor=
"@color/flexible_text_sup"
android:textColorHint=
"#91ABBA"
android:textSize=
"16sp"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"25mm"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
android:paddingHorizontal=
"20mm"
>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:text=
"购买数量"
android:textColor=
"@color/flexible_text_sup"
android:textSize=
"17sp"
/>
<com.wd.workoffice.widget.AddAndReduceView
android:id=
"@+id/ar_num"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"10mm"
/>
</LinearLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"30mm"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_cancel"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:paddingVertical=
"15mm"
android:text=
"取消"
android:textColor=
"#007AFF"
android:textSize=
"17sp"
/>
<View
android:layout_width=
"1dp"
android:layout_height=
"match_parent"
android:background=
"#D8DCE6"
/>
<TextView
android:id=
"@+id/tv_ok"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:gravity=
"center"
android:paddingVertical=
"15mm"
android:text=
"确定"
android:textColor=
"#007AFF"
android:textSize=
"17sp"
/>
</LinearLayout>
</LinearLayout>
app/src/main/res/layout/view_add_remove.xml
0 → 100644
浏览文件 @
71b0faa8
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/shape_add_cart"
android:orientation=
"horizontal"
>
<Button
android:id=
"@+id/btn_reduce"
android:layout_width=
"35mm"
android:layout_height=
"30mm"
android:background=
"#D8DCE6"
android:text=
"-"
android:textColor=
"#666666"
android:textSize=
"17sp"
/>
<TextView
android:id=
"@+id/tv_num"
android:layout_width=
"0dp"
android:layout_height=
"30mm"
android:layout_gravity=
"center"
android:layout_weight=
"1"
android:gravity=
"center"
android:text=
"1"
android:textColor=
"#5C7589"
android:textSize=
"17sp"
/>
<Button
android:id=
"@+id/btn_add"
android:layout_width=
"35mm"
android:layout_height=
"30mm"
android:background=
"#D8DCE6"
android:text=
"+"
android:textColor=
"#666666"
android:textSize=
"17sp"
/>
</LinearLayout>
\ No newline at end of file
app/src/main/res/menu/menu_modify.xml
0 → 100644
浏览文件 @
71b0faa8
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<item
android:id=
"@+id/ok"
android:title=
"完成"
app:showAsAction=
"always"
/>
</menu>
\ No newline at end of file
app/src/main/res/menu/menu_my_edit_info.xml
0 → 100644
浏览文件 @
71b0faa8
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<item
android:id=
"@+id/preview"
android:title=
"编辑资料"
app:showAsAction=
"always"
/>
</menu>
\ No newline at end of file
app/src/main/res/menu/menu_store_cart.xml
0 → 100644
浏览文件 @
71b0faa8
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<item
android:id=
"@+id/cart"
android:title=
"购物车"
app:showAsAction=
"always"
/>
</menu>
\ No newline at end of file
app/src/main/res/mipmap-xhdpi/product_add_cart.png
0 → 100644
浏览文件 @
71b0faa8
5.7 KB
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论