调试 入库
parent
2f201846ed
commit
71e1564379
@ -0,0 +1,353 @@
|
||||
package com.example.haiwei_mom.data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* 退库工单视图对象 wms_return_order
|
||||
*/
|
||||
|
||||
public class WmsReturnOrderVo {
|
||||
|
||||
|
||||
/**
|
||||
* 表主键
|
||||
*/
|
||||
|
||||
private Long roId;
|
||||
|
||||
/**
|
||||
* 物料ID
|
||||
*/
|
||||
|
||||
private Long materialId;
|
||||
|
||||
/**
|
||||
* 物料大类
|
||||
*/
|
||||
|
||||
private String materialCategoryId;
|
||||
|
||||
/**
|
||||
* 批次条码
|
||||
*/
|
||||
|
||||
private String batchCode;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
|
||||
private BigDecimal planAmount;
|
||||
|
||||
/**
|
||||
* 仓库ID
|
||||
*/
|
||||
|
||||
private Long warehouseId;
|
||||
|
||||
/**
|
||||
* 计划退库库位
|
||||
*/
|
||||
|
||||
private String planLocationCode;
|
||||
|
||||
/**
|
||||
* 退库工单状态
|
||||
*/
|
||||
|
||||
private String orderStatus;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
|
||||
private BigDecimal returnAmount;
|
||||
|
||||
/**
|
||||
* 实际退库库位
|
||||
*/
|
||||
|
||||
private String returnLocationCode;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
|
||||
private String auditBy;
|
||||
|
||||
/**
|
||||
* 审核时间
|
||||
*/
|
||||
|
||||
private Date auditTime;
|
||||
|
||||
/**
|
||||
* 审核状态(0待审核,1审核通过,2审核未通过)
|
||||
*/
|
||||
|
||||
private String auditStatus;
|
||||
|
||||
/**
|
||||
* 审核意见
|
||||
*/
|
||||
|
||||
private String auditComments;
|
||||
|
||||
/**
|
||||
* erp同步状态
|
||||
*/
|
||||
|
||||
private String erpSynchronousStatus;
|
||||
|
||||
/**
|
||||
* erp同步数量
|
||||
*/
|
||||
|
||||
private Long erpSynchronousQty;
|
||||
|
||||
/**
|
||||
* 租户id
|
||||
*/
|
||||
private String tenantId;
|
||||
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
|
||||
private Date updateTime;
|
||||
private String warehouseCode;// 字段映射
|
||||
|
||||
private String materialCode;
|
||||
private String materialName;
|
||||
private String materialUnit;
|
||||
|
||||
/**
|
||||
* 物料大类
|
||||
*/
|
||||
private String materialCategoryName;// 字段映射
|
||||
|
||||
public Long getRoId() {
|
||||
return roId;
|
||||
}
|
||||
|
||||
public void setRoId(Long roId) {
|
||||
this.roId = roId;
|
||||
}
|
||||
|
||||
public Long getMaterialId() {
|
||||
return materialId;
|
||||
}
|
||||
|
||||
public void setMaterialId(Long materialId) {
|
||||
this.materialId = materialId;
|
||||
}
|
||||
|
||||
public String getMaterialCategoryId() {
|
||||
return materialCategoryId;
|
||||
}
|
||||
|
||||
public void setMaterialCategoryId(String materialCategoryId) {
|
||||
this.materialCategoryId = materialCategoryId;
|
||||
}
|
||||
|
||||
public String getBatchCode() {
|
||||
return batchCode;
|
||||
}
|
||||
|
||||
public void setBatchCode(String batchCode) {
|
||||
this.batchCode = batchCode;
|
||||
}
|
||||
|
||||
public BigDecimal getPlanAmount() {
|
||||
if (planAmount == null) return BigDecimal.valueOf(0);
|
||||
return planAmount;
|
||||
}
|
||||
|
||||
public void setPlanAmount(BigDecimal planAmount) {
|
||||
this.planAmount = planAmount;
|
||||
}
|
||||
|
||||
public Long getWarehouseId() {
|
||||
return warehouseId;
|
||||
}
|
||||
|
||||
public void setWarehouseId(Long warehouseId) {
|
||||
this.warehouseId = warehouseId;
|
||||
}
|
||||
|
||||
public String getPlanLocationCode() {
|
||||
return planLocationCode;
|
||||
}
|
||||
|
||||
public void setPlanLocationCode(String planLocationCode) {
|
||||
this.planLocationCode = planLocationCode;
|
||||
}
|
||||
|
||||
public String getOrderStatus() {
|
||||
return orderStatus;
|
||||
}
|
||||
|
||||
public void setOrderStatus(String orderStatus) {
|
||||
this.orderStatus = orderStatus;
|
||||
}
|
||||
|
||||
public BigDecimal getReturnAmount() {
|
||||
return returnAmount;
|
||||
}
|
||||
|
||||
public void setReturnAmount(BigDecimal returnAmount) {
|
||||
this.returnAmount = returnAmount;
|
||||
}
|
||||
|
||||
public String getReturnLocationCode() {
|
||||
return returnLocationCode;
|
||||
}
|
||||
|
||||
public void setReturnLocationCode(String returnLocationCode) {
|
||||
this.returnLocationCode = returnLocationCode;
|
||||
}
|
||||
|
||||
public String getAuditBy() {
|
||||
return auditBy;
|
||||
}
|
||||
|
||||
public void setAuditBy(String auditBy) {
|
||||
this.auditBy = auditBy;
|
||||
}
|
||||
|
||||
public Date getAuditTime() {
|
||||
return auditTime;
|
||||
}
|
||||
|
||||
public void setAuditTime(Date auditTime) {
|
||||
this.auditTime = auditTime;
|
||||
}
|
||||
|
||||
public String getAuditStatus() {
|
||||
return auditStatus;
|
||||
}
|
||||
|
||||
public void setAuditStatus(String auditStatus) {
|
||||
this.auditStatus = auditStatus;
|
||||
}
|
||||
|
||||
public String getAuditComments() {
|
||||
return auditComments;
|
||||
}
|
||||
|
||||
public void setAuditComments(String auditComments) {
|
||||
this.auditComments = auditComments;
|
||||
}
|
||||
|
||||
public String getErpSynchronousStatus() {
|
||||
return erpSynchronousStatus;
|
||||
}
|
||||
|
||||
public void setErpSynchronousStatus(String erpSynchronousStatus) {
|
||||
this.erpSynchronousStatus = erpSynchronousStatus;
|
||||
}
|
||||
|
||||
public Long getErpSynchronousQty() {
|
||||
return erpSynchronousQty;
|
||||
}
|
||||
|
||||
public void setErpSynchronousQty(Long erpSynchronousQty) {
|
||||
this.erpSynchronousQty = erpSynchronousQty;
|
||||
}
|
||||
|
||||
public String getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantId(String tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public String getCreateBy() {
|
||||
return createBy;
|
||||
}
|
||||
|
||||
public void setCreateBy(String createBy) {
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getUpdateBy() {
|
||||
return updateBy;
|
||||
}
|
||||
|
||||
public void setUpdateBy(String updateBy) {
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
public Date getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(Date updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getWarehouseCode() {
|
||||
return warehouseCode;
|
||||
}
|
||||
|
||||
public void setWarehouseCode(String warehouseCode) {
|
||||
this.warehouseCode = warehouseCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode() {
|
||||
return materialCode;
|
||||
}
|
||||
|
||||
public void setMaterialCode(String materialCode) {
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialName() {
|
||||
return materialName;
|
||||
}
|
||||
|
||||
public void setMaterialName(String materialName) {
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialUnit() {
|
||||
return materialUnit;
|
||||
}
|
||||
|
||||
public void setMaterialUnit(String materialUnit) {
|
||||
this.materialUnit = materialUnit;
|
||||
}
|
||||
|
||||
public String getMaterialCategoryName() {
|
||||
return materialCategoryName;
|
||||
}
|
||||
|
||||
public void setMaterialCategoryName(String materialCategoryName) {
|
||||
this.materialCategoryName = materialCategoryName;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,51 @@
|
||||
package com.example.haiwei_mom.wms.raw;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
|
||||
import com.example.haiwei_mom.R;
|
||||
import com.example.haiwei_mom.base.BaseActivity;
|
||||
import com.example.haiwei_mom.base.MyRecultCall;
|
||||
import com.example.haiwei_mom.base.MyResult;
|
||||
import com.example.haiwei_mom.data.WmsInventoryVo;
|
||||
import com.example.haiwei_mom.databinding.ActivityMoveBinding;
|
||||
import com.lzy.okgo.OkGo;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class MoveActivity extends BaseActivity {
|
||||
private ActivityMoveBinding binding;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
WmsInventoryVo wmsInventoryVo=new WmsInventoryVo();
|
||||
wmsInventoryVo.setInventoryQty(BigDecimal.valueOf(0));
|
||||
binding = DataBindingUtil.setContentView(this, R.layout.activity_move);
|
||||
binding.setData(wmsInventoryVo);
|
||||
}
|
||||
|
||||
public void moveSelect(View view) {
|
||||
OkGo.<MyResult>get(url + "/wms/pda/ledgerSelect")
|
||||
.params("batchCode", binding.materialInGoods.getText().toString())
|
||||
.params("locationCode", binding.materialOldLocation.getText().toString())
|
||||
.execute(new MyRecultCall(dialog, this) {
|
||||
@Override
|
||||
public void onSuccess(Response<MyResult> response) {
|
||||
super.onSuccess(response);
|
||||
MyResult body = response.body();
|
||||
if (body.getCode()==200){
|
||||
WmsInventoryVo wmsInventoryVo=gson.fromJson(body.getDataJson(),WmsInventoryVo.class);
|
||||
binding.setData(wmsInventoryVo);
|
||||
|
||||
return;
|
||||
}
|
||||
Toast.makeText(MoveActivity.this, body.getMsg(), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.example.haiwei_mom.wms.raw;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
|
||||
import com.example.haiwei_mom.R;
|
||||
import com.example.haiwei_mom.base.BaseActivity;
|
||||
import com.example.haiwei_mom.base.MyRecultCall;
|
||||
import com.example.haiwei_mom.base.MyResult;
|
||||
import com.example.haiwei_mom.data.WmsReturnOrderVo;
|
||||
import com.example.haiwei_mom.databinding.ActivityReturn2Binding;
|
||||
import com.lzy.okgo.OkGo;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
public class Return2Activity extends BaseActivity {
|
||||
private ActivityReturn2Binding binding;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
binding = DataBindingUtil.setContentView(this, R.layout.activity_return2);
|
||||
}
|
||||
|
||||
public void returnStoreSearch(View view) {
|
||||
searchOrder(binding.materialReturnCode.getText().toString());
|
||||
}
|
||||
|
||||
private void searchOrder(String code) {
|
||||
OkGo.<MyResult>post(url + "/wms/pda/returnStore/selectByCode")
|
||||
.params("code", code)
|
||||
.execute(new MyRecultCall(dialog, this) {
|
||||
@Override
|
||||
public void onSuccess(Response<MyResult> response) {
|
||||
super.onSuccess(response);
|
||||
var body = response.body();
|
||||
if (body.getCode() == 200) {
|
||||
WmsReturnOrderVo params = gson.fromJson(body.getDataJson(), WmsReturnOrderVo.class);
|
||||
binding.setData(params);
|
||||
return;
|
||||
}
|
||||
myToastUitls.show(body.getMsg());
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
package com.example.haiwei_mom.wms.raw;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
|
||||
import com.example.haiwei_mom.R;
|
||||
import com.example.haiwei_mom.base.BaseActivity;
|
||||
import com.example.haiwei_mom.base.MyRecultCall;
|
||||
import com.example.haiwei_mom.base.MyResult;
|
||||
import com.example.haiwei_mom.data.RawOutSubmitBeen;
|
||||
import com.example.haiwei_mom.databinding.ActivitySpecialOutBinding;
|
||||
import com.lzy.okgo.OkGo;
|
||||
import com.lzy.okgo.model.Response;
|
||||
|
||||
import okhttp3.RequestBody;
|
||||
|
||||
public class SpecialOutActivity extends BaseActivity {
|
||||
private RawOutSubmitBeen submitBeen;
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
ActivitySpecialOutBinding binding=DataBindingUtil.setContentView(this, R.layout.activity_special_out);
|
||||
submitBeen=new RawOutSubmitBeen();
|
||||
binding.setSubBeen(submitBeen);
|
||||
}
|
||||
|
||||
public void speOutSubmit(View view) {
|
||||
OkGo.<MyResult>post(url + "/wms/pda/raw/specialOutSubmit")
|
||||
.upRequestBody(RequestBody.create(JSON, gson.toJson(submitBeen)))
|
||||
.execute(new MyRecultCall(dialog, this) {
|
||||
@SuppressLint("NotifyDataSetChanged")
|
||||
@Override
|
||||
public void onSuccess(Response<MyResult> response) {
|
||||
super.onSuccess(response);
|
||||
var body = response.body();
|
||||
if (body.getCode() == 200) {
|
||||
|
||||
return;
|
||||
}
|
||||
myToastUitls.show(body.getMsg());
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,157 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
<variable
|
||||
name="title"
|
||||
type="String" />
|
||||
|
||||
<variable
|
||||
name="data"
|
||||
type="com.example.haiwei_mom.data.WmsInventoryVo" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".wms.raw.MoveActivity">
|
||||
|
||||
<include
|
||||
layout="@layout/toolbar"
|
||||
app:title='@{title??"移库合库"}' />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="原库位:" />
|
||||
<!-- -->
|
||||
<EditText
|
||||
android:id="@+id/material_old_location"
|
||||
style="@style/text_san"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="45dp"
|
||||
android:text="@={data.locationCode}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="扫描物料:" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/material_in_goods"
|
||||
style="@style/text_san"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="物料编码:" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@{data.materialCode}" />
|
||||
<!-- android:text="@{vo.materialName}"-->
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="批次数量:" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:layout_weight="1"
|
||||
android:text='@{String.valueOf(data.inventoryQty)??"0"}' />
|
||||
|
||||
<TextView
|
||||
style="@style/text_info"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@{data.materialUnit}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="目标库位:" />
|
||||
<!-- -->
|
||||
<EditText
|
||||
android:id="@+id/material_in_location"
|
||||
style="@style/text_san"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="45dp"
|
||||
android:text="@={data.locationCode}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/button_submit"
|
||||
android:onClick="moveSelect"
|
||||
android:text="查询" />
|
||||
|
||||
<Button
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="@style/button_submit"
|
||||
android:onClick="moveSubmit"
|
||||
android:text="提交" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@ -0,0 +1,155 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
|
||||
<variable
|
||||
name="title"
|
||||
type="String" />
|
||||
|
||||
<variable
|
||||
name="data"
|
||||
type="com.example.haiwei_mom.data.WmsReturnOrderVo" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".wms.raw.Return2Activity">
|
||||
|
||||
<include
|
||||
layout="@layout/toolbar"
|
||||
app:title='@{title??"退库入库"}' />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="扫描条码:" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/material_return_code"
|
||||
style="@style/text_san"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="物料名称:" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@{data.materialName}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="入库数量:" />
|
||||
|
||||
<TextView
|
||||
style="@style/text_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:layout_weight="1"
|
||||
android:text='@{String.valueOf(data.planAmount)??"0"}' />
|
||||
|
||||
<TextView
|
||||
style="@style/text_info"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@{data.materialUnit}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="原出库库位:" />
|
||||
<!-- -->
|
||||
<EditText
|
||||
style="@style/text_san"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="45dp"
|
||||
android:text="@={data.planLocationCode}" />
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="扫描库位:" />
|
||||
<!-- -->
|
||||
<EditText
|
||||
android:id="@+id/material_return_location"
|
||||
style="@style/text_san"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="45dp"
|
||||
android:text="@={data.returnLocationCode}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<Button
|
||||
style="@style/button_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_margin="20dp"
|
||||
android:onClick="returnStoreSearch"
|
||||
android:text="查询" />
|
||||
|
||||
<Button
|
||||
style="@style/button_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_margin="20dp"
|
||||
android:onClick="rawinSubmit"
|
||||
android:text="提交" />
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<data>
|
||||
<variable
|
||||
name="title"
|
||||
type="String" />
|
||||
<variable
|
||||
name="subBeen"
|
||||
type="com.example.haiwei_mom.data.RawOutSubmitBeen" />
|
||||
</data>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".wms.raw.SpecialOutActivity">
|
||||
|
||||
<include
|
||||
layout="@layout/toolbar"
|
||||
app:title='@{title??"特殊情况出库"}' />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="目标库位:" />
|
||||
<!-- -->
|
||||
<EditText
|
||||
style="@style/text_san"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="45dp"
|
||||
android:text="@={subBeen.locationCode}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="扫描物料:" />
|
||||
|
||||
<EditText
|
||||
style="@style/text_san"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@={subBeen.batchCode}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="4dp">
|
||||
|
||||
<TextView
|
||||
style="@style/text_title"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="match_parent"
|
||||
android:text="出库数量:" />
|
||||
|
||||
<EditText
|
||||
style="@style/text_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:inputType="numberDecimal"
|
||||
android:text="@={subBeen.outstockQty}" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
style="@style/button_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_margin="12dp"
|
||||
android:onClick="speOutSubmit"
|
||||
android:text="提交" />
|
||||
|
||||
</LinearLayout>
|
||||
</layout>
|
||||
Loading…
Reference in New Issue