物料的uuid的类型修改
This commit is contained in:
@@ -259,23 +259,27 @@ public class PointServiceImpl implements PointService {
|
|||||||
@Override
|
@Override
|
||||||
public void getPointStatuAndChage(JSONArray ja) {
|
public void getPointStatuAndChage(JSONArray ja) {
|
||||||
//发起请求获取数据
|
//发起请求获取数据
|
||||||
try {
|
|
||||||
JSONObject jsona = AcsUtil.notifyAcs("/api/wms/getPointStatus", ja);
|
JSONObject jsona = AcsUtil.notifyAcs("/api/wms/getPointStatus", ja);
|
||||||
JSONArray arr = jsona.getJSONArray("key");
|
JSONArray arr = jsona.getJSONArray("key");
|
||||||
WQLObject wql = WQLObject.getWQLObject("sch_base_point");
|
WQLObject wql = WQLObject.getWQLObject("sch_base_point");
|
||||||
for (int i = 0; i < arr.size(); i++) {
|
for (int i = 0; i < arr.size(); i++) {
|
||||||
JSONObject jsonObject = ja.getJSONObject(i);
|
JSONObject jsonObject = ja.getJSONObject(i);
|
||||||
Long point_id = (Long) jsonObject.get("point_id");
|
Long point_code = (Long) jsonObject.get("device_code");
|
||||||
String point_status = (String) jsonObject.get("point_status");
|
//0 无货 1 有货 2 有箱有料子
|
||||||
|
String point_status = (String) jsonObject.get("move");
|
||||||
|
String vehicle_code = (String) jsonObject.get("barcode");
|
||||||
//获得单条数据
|
//获得单条数据
|
||||||
JSONObject jo = wql.query("point_id='" + point_id + "'").uniqueResult(0);
|
JSONObject jo = wql.query("point_code='" + point_code + "'").uniqueResult(0);
|
||||||
jo.put("point_status", point_status);
|
jo.put("point_status", point_status);
|
||||||
|
String point_type = jo.getString("point_type");
|
||||||
|
//假如是输送线,将托盘号更新
|
||||||
|
if (StrUtil.equals(point_type, "07")) {
|
||||||
|
jo.put("vehicle_code", vehicle_code);
|
||||||
|
}
|
||||||
//获取数据表,更新状态
|
//获取数据表,更新状态
|
||||||
wql.update(jo);
|
wql.update(jo);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -168,26 +168,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="20">
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="客户名称">
|
|
||||||
<el-select v-model="form.cust_id" filterable clearable class="filter-item" style="width: 200px" placeholder="请选择客户">
|
|
||||||
<el-option
|
|
||||||
v-for="item in custList"
|
|
||||||
:key="item.cust_id"
|
|
||||||
:label="item.cust_name"
|
|
||||||
:value="item.cust_id"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="黏次">
|
|
||||||
<label slot="label">黏 次</label>
|
|
||||||
<el-input v-model="form.mix_seq" style="width: 200px;" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="是否满托" prop="is_full">
|
<el-form-item label="是否满托" prop="is_full">
|
||||||
@@ -358,26 +338,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="20">
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="客户名称">
|
|
||||||
<el-select v-model="form1.cust_id" filterable clearable class="filter-item" style="width: 200px" placeholder="请选择客户">
|
|
||||||
<el-option
|
|
||||||
v-for="item in custList"
|
|
||||||
:key="item.cust_id"
|
|
||||||
:label="item.cust_name"
|
|
||||||
:value="item.cust_id"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="黏次">
|
|
||||||
<label slot="label">黏 次</label>
|
|
||||||
<el-input v-model="form1.mix_seq" style="width: 200px;" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="是否满托">
|
<el-form-item label="是否满托">
|
||||||
|
|||||||
Reference in New Issue
Block a user