增加 出库申请销售订单号

master
wangh 7 months ago
parent 89b02db5af
commit a912e9a6ef

@ -1,42 +1,52 @@
package com.example.jingyuan_mes.entity.store; package com.example.jingyuan_mes.entity.store;
import androidx.databinding.BaseObservable;
/** /**
* @author wanghao * @author wanghao
* @date 2024/2/27 15:42 * @date 2024/2/27 15:42
*/ */
public class ProductOutSubmit { public class ProductOutSubmit extends BaseObservable {
/** /**
* productOutstockId : 1 * productOutstockId : 1
* locationCode : 123 * locationCode : 123
* productBarcode : 12 * productBarcode : 12
*/ */
private int productOutstockId; private int productOutstockId;
private String locationCode; private String locationCode;
private String productBarcode; private String productBarcode;
public int getProductOutstockId() { public int getProductOutstockId() {
return productOutstockId; return productOutstockId;
} }
public void setProductOutstockId(int productOutstockId) { public void setProductOutstockId(int productOutstockId) {
this.productOutstockId = productOutstockId; this.productOutstockId = productOutstockId;
} notifyChange();
}
public String getLocationCode() {
return locationCode; public String getLocationCode() {
} return locationCode;
}
public void setLocationCode(String locationCode) {
this.locationCode = locationCode; public void setLocationCode(String locationCode) {
} this.locationCode = locationCode;
notifyChange();
public String getProductBarcode() { }
return productBarcode;
} public String getProductBarcode() {
return productBarcode;
public void setProductBarcode(String productBarcode) { }
this.productBarcode = productBarcode;
} public void setProductBarcode(String productBarcode) {
this.productBarcode = productBarcode;
}
public void clear(){
this.locationCode = null;
this.productBarcode = null;
notifyChange();
}
} }

@ -74,6 +74,7 @@ public class ProductOutInfoActivity extends BaseActivity {
super.onSuccess(response); super.onSuccess(response);
var body = response.body(); var body = response.body();
if (body.getCode() == 200) { if (body.getCode() == 200) {
submit.clear();
initRequest(id); initRequest(id);
} }
Toast.makeText(context, body.getMsg(), Toast.LENGTH_SHORT).show(); Toast.makeText(context, body.getMsg(), Toast.LENGTH_SHORT).show();

@ -12,7 +12,7 @@
android:orientation="vertical" android:orientation="vertical"
android:background="@drawable/san_text_bg" android:background="@drawable/san_text_bg"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="300dp" android:layout_height="335dp"
android:layout_marginTop="5dp" android:layout_marginTop="5dp"
android:padding="4dp"> android:padding="4dp">
@ -53,6 +53,24 @@
android:text='@{vm.materialName}' /> android:text='@{vm.materialName}' />
</LinearLayout> </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="35dp">
<TextView
style="@style/item_title_left"
android:layout_width="180dp"
android:layout_height="match_parent"
android:text="销售订单:" />
<TextView
style="@style/text_info"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text='@{vm.saleorderCode}' />
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

Loading…
Cancel
Save