增加 出库申请销售订单号

master
wangh 8 months ago
parent 89b02db5af
commit a912e9a6ef

@ -1,10 +1,12 @@
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
@ -22,6 +24,7 @@ public class ProductOutSubmit {
public void setProductOutstockId(int productOutstockId) { public void setProductOutstockId(int productOutstockId) {
this.productOutstockId = productOutstockId; this.productOutstockId = productOutstockId;
notifyChange();
} }
public String getLocationCode() { public String getLocationCode() {
@ -30,6 +33,7 @@ public class ProductOutSubmit {
public void setLocationCode(String locationCode) { public void setLocationCode(String locationCode) {
this.locationCode = locationCode; this.locationCode = locationCode;
notifyChange();
} }
public String getProductBarcode() { public String getProductBarcode() {
@ -39,4 +43,10 @@ public class ProductOutSubmit {
public void setProductBarcode(String productBarcode) { public void setProductBarcode(String productBarcode) {
this.productBarcode = 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