修改 整包称量

master
wangh 10 months ago
parent ee6ada7129
commit b4523a6ad5

@ -0,0 +1 @@
PuLiT

@ -10,7 +10,7 @@ android {
applicationId "com.example.pulit"
minSdkVersion 26
targetSdkVersion 30
versionCode 13
versionCode 14
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Binary file not shown.

@ -10,7 +10,7 @@
{
"type": "SINGLE",
"filters": [],
"versionCode": 13,
"versionCode": 14,
"versionName": "1.0",
"outputFile": "app-release.apk"
}

@ -16,6 +16,9 @@ import com.lzy.okgo.OkGo;
import com.lzy.okgo.callback.StringCallback;
import com.lzy.okgo.model.Response;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
@ -35,6 +38,7 @@ public class ZBActivity extends BaseActivity {
private boolean exist;
private String dbCode = null;
private String findGoodesCode = null;
List<String> stringList;
@Override
protected void onCreate(Bundle savedInstanceState) {
@ -42,6 +46,7 @@ public class ZBActivity extends BaseActivity {
setContentView(R.layout.activity_zb);
ButterKnife.bind(this);
sanType = 0;
stringList=new ArrayList<>();
}
@ -117,6 +122,7 @@ public class ZBActivity extends BaseActivity {
planView.setWeighbridge(dbaname);
planView.setCylinderBarCode("00000000");
planView.setRate("0");
planView.setBarCodeList(stringList);
RequestBody requestBody = RequestBody.create(MediaType.parse("application/json;"),
JSONObject.toJSONString(planView));
OkGo.<Resust>post("http://" + SharedPreferencesUtils.getstring("ip", null) + "/api/Solvent/ExecPlcState")
@ -132,6 +138,7 @@ public class ZBActivity extends BaseActivity {
zbGoodsCode.setText(null);
planView = null;
zbGoodsName.setText(null);
stringList.clear();
}
}
@ -164,6 +171,8 @@ public class ZBActivity extends BaseActivity {
tipDialog.showMsg(false, "物料不匹配");
return;
}
stringList.add(zbGoodsCode.getText().toString().trim());
//品名
int index = scanInfo.indexOf("-", scanInfo.indexOf("-", scanInfo.indexOf("-") + 1) + 1) + 1;
int endIndex = scanInfo.indexOf("|");

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Loading…
Cancel
Save