Commit a5d0e06e authored by 刘学辉's avatar 刘学辉

Merge remote-tracking branch 'origin/dev' into dev

parents 33acc4de 9d7fe8f8
...@@ -27,14 +27,37 @@ function bindEvent(){ ...@@ -27,14 +27,37 @@ function bindEvent(){
$('#pd').searchbox({ $('#pd').searchbox({
type: "system", name: "queryPd", type: "system", name: "queryPd",
checkbox:true,
checkboxIndex:"productCode",
textIndex:"productName",
valueIndex:"productCode",
getParam: function (item) { getParam: function (item) {
return { return {
filterValue:$("#brandCode").val() filterValue:$("#brandCode").val()
} }
}, },
onChange: function (value, data) { onChange: function (value, data) {
$('#pd').val(data.productCode); $('#pd').val(value.value);
$('#productName').val(data.productName); $('#productName').val(value.text);
}
});
$('#process').searchbox({
type: "system", name: "queryProductAndBom",
// checkbox:true,
// checkboxIndex:"process",
// textIndex:"material,",
// valueIndex:"process",
// idIndex:"productionSolutionId",
getParam: function (item) {
return {
filterValue:$('#pd').val()
}
},
onChange: function (value, data) {
$('#process').val(data.process);
$('#material').val(value.material);
$('#productionSolutionId').val(value.productionSolutionId);
} }
}); });
...@@ -60,17 +83,32 @@ function loadGrid() { ...@@ -60,17 +83,32 @@ function loadGrid() {
}); });
gridManager = UICtrl.grid("#maingrid", { gridManager = UICtrl.grid("#maingrid", {
columns: [ columns: [
{display : "部门",name : "deptName",width : 200,minWidth : 100,type : "string",align : "left",
editor: { required : true, type: "dynamic",
getEditor:function (row) {
var org = "return { type:'tree',data:{name:'org',filter:'ogn',getParam:function(){return {orgRoot:'orgRoot',orgKindId:'ogn'};}},textField:'deptName',valueField:'deptId' }";
org = (new Function(org))();
return org;
}
}
},
{ {
display: "部门", name: "deptName", width: 200, minWidth: 60, type: "string", align: "left", display: "部门", name: "deptId", width: 200, minWidth: 60, type: "string", align: "left",
editor: { editor: {
type: 'tree', type: 'tree',
required: true, required: true,
data: { data: {
name: 'org', name: 'org',
filter: 'dpt', filter: 'ogn,dpt',
minWidth: 250 minWidth: 250,
getParam:function(){
return {
orgRoot: "orgRoot",
orgKindId: "ogn,dpt"
}
}, },
textField: 'deptName' },
textField: 'deptId'
} }
}, },
{ {
...@@ -78,13 +116,14 @@ function loadGrid() { ...@@ -78,13 +116,14 @@ function loadGrid() {
editor: { editor: {
type: 'tree', type: 'tree',
required: true, required: true,
checkbox: true,
data: { data: {
name: 'org', name: 'org',
filter: 'psm', filter: 'psm',
minWidth: 250 minWidth: 250
}, },
textField: 'executor', textField: 'executor',
//valueField: 'userCode' valueField: 'executorId'
} }
}, },
{ {
......
...@@ -42,13 +42,14 @@ ...@@ -42,13 +42,14 @@
<x:inputC name="pd" required="true" label="产品代号" labelCol="2" maxLength="64" fieldCol="10" wrapper="select"/> <x:inputC name="pd" required="true" label="产品代号" labelCol="2" maxLength="64" fieldCol="10" wrapper="select"/>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="productName" required="true" label="产品名称" labelCol="2" fieldCol="10"/> <x:inputC name="productName" required="true" label="产品名称" labelCol="2" fieldCol="10" readonly="true"/>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="process" required="true" label="制程工艺" labelCol="2" fieldCol="10"/> <x:inputC name="process" required="true" label="制程工艺" labelCol="2" fieldCol="10" wrapper="select"/>
<x:hidden name="productionSolutionId"/>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
<x:textareaC name="material" required="true" label="原材料" labelCol="2" fieldCol="10" rows="3"/> <x:textareaC name="material" required="true" label="原材料" labelCol="2" fieldCol="10" rows="3" readonly="true"/>
</div> </div>
<div class="hg-form-row"> <div class="hg-form-row">
<x:inputC name="others" required="true" label="其他" labelCol="2" fieldCol="10"/> <x:inputC name="others" required="true" label="其他" labelCol="2" fieldCol="10"/>
......
...@@ -387,10 +387,10 @@ var tableArray = [ ...@@ -387,10 +387,10 @@ var tableArray = [
minwidth: 120, minwidth: 120,
type: "money", type: "money",
align: "left", align: "left",
editor: { // editor: {
mask: 'nnnnnnnnn.nn', // mask: 'nnnnnnnnn.nn',
type: 'text' // type: 'text'
} // }
}, },
{ {
display: "税额(审批-本位币)", display: "税额(审批-本位币)",
...@@ -399,10 +399,10 @@ var tableArray = [ ...@@ -399,10 +399,10 @@ var tableArray = [
minwidth: 120, minwidth: 120,
type: "money", type: "money",
align: "left", align: "left",
editor: { // editor: {
mask: 'nnnnnnnnn.nn', // mask: 'nnnnnnnnn.nn',
type: 'text' // type: 'text'
} // }
}, },
{ {
display: "含税金额(审批-本位币)", display: "含税金额(审批-本位币)",
...@@ -411,10 +411,10 @@ var tableArray = [ ...@@ -411,10 +411,10 @@ var tableArray = [
minwidth: 120, minwidth: 120,
type: "money", type: "money",
align: "left", align: "left",
editor: { // editor: {
mask: 'nnnnnnnnn.nn', // mask: 'nnnnnnnnn.nn',
type: 'text' // type: 'text'
} // }
}, },
{ {
display: "是否付款", name: "zepPay", width: 120, minwidth: 120, type: "string", align: "left", display: "是否付款", name: "zepPay", width: 120, minwidth: 120, type: "string", align: "left",
......
...@@ -44,6 +44,7 @@ function bindEvent(){ ...@@ -44,6 +44,7 @@ function bindEvent(){
$("#applyPersonName").orgTree({ $("#applyPersonName").orgTree({
checkbox : false, checkbox : false,
tree:{autoCheckboxEven:true}, tree:{autoCheckboxEven:true},
filter: 'psm',
getParam : function() { getParam : function() {
return { return {
orgRoot:'orgRoot', orgRoot:'orgRoot',
......
...@@ -527,9 +527,9 @@ function getExtendedData(processAction) { ...@@ -527,9 +527,9 @@ function getExtendedData(processAction) {
} }
extendedData.suppliersPayList = Public.encodeJSONURI(datas); extendedData.suppliersPayList = Public.encodeJSONURI(datas);
} }
var _grid = UICtrl.getGridManager('#sapSuppliersBuyerGrid'); var buy_grid = UICtrl.getGridManager('#sapSuppliersBuyerGrid');
if (_grid) { if (buy_grid) {
var rows = _grid.getData(); var rows = buy_grid.getData();
for (var i = 0; i < rows.length; i++) { for (var i = 0; i < rows.length; i++) {
var row = rows[i]; var row = rows[i];
if (row.Inco1 != ""&&row.Inco2L=="") { if (row.Inco1 != ""&&row.Inco2L=="") {
...@@ -538,7 +538,7 @@ function getExtendedData(processAction) { ...@@ -538,7 +538,7 @@ function getExtendedData(processAction) {
} }
} }
var datas = DataUtil.getGridData({ var datas = DataUtil.getGridData({
gridManager: _grid, gridManager: buy_grid,
isAllData: isAllData isAllData: isAllData
}); });
if (!datas) { if (!datas) {
...@@ -546,10 +546,10 @@ function getExtendedData(processAction) { ...@@ -546,10 +546,10 @@ function getExtendedData(processAction) {
} }
extendedData.suppliersBuyerList = Public.encodeJSONURI(datas); extendedData.suppliersBuyerList = Public.encodeJSONURI(datas);
} }
var _grid = UICtrl.getGridManager('#sapSuppliersBankGrid'); var bank_grid = UICtrl.getGridManager('#sapSuppliersBankGrid');
if (_grid) { if (bank_grid) {
var datas = DataUtil.getGridData({ var datas = DataUtil.getGridData({
gridManager: _grid, gridManager: bank_grid,
isAllData: isAllData isAllData: isAllData
}); });
if (!datas) { if (!datas) {
...@@ -577,34 +577,34 @@ function checkConstraints(){ ...@@ -577,34 +577,34 @@ function checkConstraints(){
return false; return false;
} }
} }
if ("cashier" == getSubProcUnitId() || "finance" == getSubProcUnitId()){ //银行信息
//付款信息 var bank_grid = UICtrl.getGridManager('#sapSuppliersBankGrid');
var _grid = UICtrl.getGridManager('#sapSuppliersPayGrid'); if (bank_grid) {
if (_grid) {
var datas = DataUtil.getGridData({ var datas = DataUtil.getGridData({
gridManager: _grid, gridManager: bank_grid,
isAllData: true isAllData: true
}); });
if (!datas) { if (!datas) {
return false; return false;
} }
if (isApproveProcUnit() && datas.length == 0 && "2" != getHandleResult()){ if (isApproveProcUnit() && datas.length == 0 && "2" != getHandleResult()){
Public.tip("供应商付款信息必填"); Public.tip("供应商银行银行信息必填");
return false; return false;
} }
} }
//银行信息 if ("cashier" == getSubProcUnitId() || "finance" == getSubProcUnitId()){
var _grid = UICtrl.getGridManager('#sapSuppliersBankGrid'); //付款信息
if (_grid) { var pay_grid = UICtrl.getGridManager('#sapSuppliersPayGrid');
if (pay_grid) {
var datas = DataUtil.getGridData({ var datas = DataUtil.getGridData({
gridManager: _grid, gridManager: pay_grid,
isAllData: true isAllData: true
}); });
if (!datas) { if (!datas) {
return false; return false;
} }
if (isApproveProcUnit() && datas.length == 0 && "2" != getHandleResult()){ if (isApproveProcUnit() && datas.length == 0 && "2" != getHandleResult()){
Public.tip("供应商银行银行信息必填"); Public.tip("供应商付款信息必填");
return false; return false;
} }
} }
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<x:inputC name="strSuppl3" label="街道4" labelCol="1" fieldCol="2"/>--%> <x:inputC name="strSuppl3" label="街道4" labelCol="1" fieldCol="2"/>--%>
<x:inputC name="land1Name" label="国家" labelCol="1" fieldCol="2" required="true" wrapper="select"/> <x:inputC name="land1Name" label="国家" labelCol="1" fieldCol="2" required="true" wrapper="select"/>
<x:hidden name="land1"/> <x:hidden name="land1"/>
<x:inputC name="regionName" label="地区" labelCol="1" fieldCol="2" required="true" wrapper="select"/> <x:inputC name="regionName" label="地区" labelCol="1" fieldCol="2" required="false" wrapper="select"/>
<x:hidden name="region"/> <x:hidden name="region"/>
<x:inputC name="city1" label="城市" labelCol="1" fieldCol="2" required="true" /> <x:inputC name="city1" label="城市" labelCol="1" fieldCol="2" required="true" />
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<div id="sapSuppliersBuyerGrid" style="margin: 2px;"></div> <div id="sapSuppliersBuyerGrid" style="margin: 2px;"></div>
<div id="cashierGrid"> <div id="cashierGrid">
<div class="blank_div clearfix"></div> <div class="blank_div clearfix"></div>
<x:title title="供应商付款信息" name="group"/> <x:title title="供应商公司信息" name="group"/>
<div id="sapSuppliersPayGrid" style="margin: 2px;"></div> <div id="sapSuppliersPayGrid" style="margin: 2px;"></div>
<div class="blank_div clearfix"></div> <div class="blank_div clearfix"></div>
<x:title title="供应商银行银行信息" name="group"/> <x:title title="供应商银行银行信息" name="group"/>
......
...@@ -108,6 +108,12 @@ public class EpChangeForm extends FlowBillAbstractEntity { ...@@ -108,6 +108,12 @@ public class EpChangeForm extends FlowBillAbstractEntity {
@Column(name = "changed_others") @Column(name = "changed_others")
private String changedOthers; private String changedOthers;
/**
* 版本id
*/
@Column(name = "production_solution_id")
private String productionSolutionId;
@Override @Override
protected String getCodeRuleId() { protected String getCodeRuleId() {
return "epChangeForm"; return "epChangeForm";
......
...@@ -42,4 +42,13 @@ public class EpResourceSearchController { ...@@ -42,4 +42,13 @@ public class EpResourceSearchController {
mapList = epApplication.queryEpPd(filterValue); mapList = epApplication.queryEpPd(filterValue);
return sapDictionaryApplication.initEasySearchModel( mapList, param, sdo); return sapDictionaryApplication.initEasySearchModel( mapList, param, sdo);
} }
@EasySearch(queryName = "queryProductAndBom")
public Map<String, Object> queryProductAndBom(SDO sdo) throws IOException {
String param = sdo.getString("paramValue");
String filterValue = sdo.getString("filterValue");
List<Map<String, String>> mapList = new ArrayList<>();
mapList = epApplication.queryProductAndBom(filterValue);
return sapDictionaryApplication.initEasySearchModel( mapList, param, sdo);
}
} }
...@@ -12,4 +12,6 @@ public interface EpApplication { ...@@ -12,4 +12,6 @@ public interface EpApplication {
List<Map<String, String>> queryEpBrand(String brandName); List<Map<String, String>> queryEpBrand(String brandName);
List<Map<String, String>> queryEpPd(String brandCode); List<Map<String, String>> queryEpPd(String brandCode);
List<Map<String, String>> queryProductAndBom(String itemCode);
} }
package com.huigou.topsun.ep.epApplication.impl; package com.huigou.topsun.ep.epApplication.impl;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.huigou.topsun.ep.epApplication.EpApplication; import com.huigou.topsun.ep.epApplication.EpApplication;
import com.huigou.topsun.sap.common.HttpClient; import com.huigou.topsun.sap.common.HttpClient;
import com.huigou.topsun.sap.common.domain.SapResult;
import com.huigou.topsun.util.SAPUtils; import com.huigou.topsun.util.SAPUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/** /**
* @Auther: xin.lu * @Auther: xin.lu
...@@ -34,12 +29,12 @@ public class EpApplicationImpl implements EpApplication { ...@@ -34,12 +29,12 @@ public class EpApplicationImpl implements EpApplication {
String message = ""; String message = "";
try { try {
String executeForEp = httpClient.executeForEp(map, "md/brand/queryAllEnableBrand"); String executeForEp = httpClient.executeForEp(map, "md/brand/queryAllEnableBrand");
Map<String, String> resultMap = JSONObject.parseObject(executeForEp, Map.class); Map<String, Object> resultMap = JSONObject.parseObject(executeForEp, Map.class);
if ("200".equals(resultMap.get("code"))) { if ("200".equals(resultMap.get("code").toString())) {
ObjectMapper objectMapper = SAPUtils.objectMapper(); ObjectMapper objectMapper = SAPUtils.objectMapper();
mapList = objectMapper.readValue(com.huigou.util.JSONUtil.toString(resultMap.get("data")), new TypeReference<List<Map<String, String>>>() {}); mapList = objectMapper.readValue(com.huigou.util.JSONUtil.toString(resultMap.get("data")), new TypeReference<List<Map<String, String>>>() {});
}else { }else {
message = resultMap.get("msg"); message = (String) resultMap.get("msg");
} }
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException("查询品牌出错:" + message); throw new RuntimeException("查询品牌出错:" + message);
...@@ -50,21 +45,42 @@ public class EpApplicationImpl implements EpApplication { ...@@ -50,21 +45,42 @@ public class EpApplicationImpl implements EpApplication {
@Override @Override
public List<Map<String, String>> queryEpPd(String brandCode) { public List<Map<String, String>> queryEpPd(String brandCode) {
Map<String,Object> map = new HashMap<>(); Map<String,Object> map = new HashMap<>();
map.put("brandCode",brandCode); //map.put("brandCode",brandCode);
List<Map<String, String>> mapList = new ArrayList<>(); List<Map<String, String>> mapList = new ArrayList<>();
String message = ""; String message = "";
try { try {
String executeForEp = httpClient.executeForEp(map, "md/mditem/queryProductByBrandCode"); String executeForEp = httpClient.executeForEp(map, "md/mdItem/queryProductByBrandCode?brandCode="+brandCode);
Map<String, String> resultMap = JSONObject.parseObject(executeForEp, Map.class); Map<String, Object> resultMap = JSONObject.parseObject(executeForEp, Map.class);
if ("200".equals(resultMap.get("code"))) { if ("200".equals(resultMap.get("code").toString())) {
ObjectMapper objectMapper = SAPUtils.objectMapper(); ObjectMapper objectMapper = SAPUtils.objectMapper();
mapList = objectMapper.readValue(com.huigou.util.JSONUtil.toString(resultMap.get("data")), new TypeReference<List<Map<String, String>>>() {}); mapList = objectMapper.readValue(com.huigou.util.JSONUtil.toString(resultMap.get("data")), new TypeReference<List<Map<String, String>>>() {});
}else { }else {
message = resultMap.get("msg"); message =(String) resultMap.get("msg");
} }
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException("查询产品出错:" + message); throw new RuntimeException("查询产品出错:" + message);
} }
return mapList; return mapList;
} }
@Override
public List<Map<String, String>> queryProductAndBom(String itemCode) {
Map<String,Object> map = new HashMap<>();
//map.put("brandCode",brandCode);
List<Map<String, String>> mapList = new ArrayList<>();
String message = "";
try {
String executeForEp = httpClient.executeForEp(map, "md/mdItem/queryProductAndBomByItemCode?itemCode="+itemCode);
Map<String, Object> resultMap = JSONObject.parseObject(executeForEp, Map.class);
if ("200".equals(resultMap.get("code").toString())) {
ObjectMapper objectMapper = SAPUtils.objectMapper();
mapList = objectMapper.readValue(com.huigou.util.JSONUtil.toString(resultMap.get("data")), new TypeReference<List<Map<String, String>>>() {});
}else {
message =(String) resultMap.get("msg");
}
} catch (IOException e) {
throw new RuntimeException("查询制程工艺、原材料出错:" + message);
}
return mapList;
}
} }
...@@ -25,6 +25,7 @@ import com.huigou.topsun.sap.common.domain.SapResult; ...@@ -25,6 +25,7 @@ import com.huigou.topsun.sap.common.domain.SapResult;
import com.huigou.topsun.sap.costReimbursement.domain.SapCostReimbursement; import com.huigou.topsun.sap.costReimbursement.domain.SapCostReimbursement;
import com.huigou.uasp.bmp.common.BizBillStatus; import com.huigou.uasp.bmp.common.BizBillStatus;
import com.huigou.uasp.bmp.operator.OperatorApplication; import com.huigou.uasp.bmp.operator.OperatorApplication;
import com.huigou.uasp.bmp.opm.domain.model.org.Org;
import com.huigou.uasp.bpm.FlowBroker; import com.huigou.uasp.bpm.FlowBroker;
import com.huigou.uasp.bpm.ProcessAction; import com.huigou.uasp.bpm.ProcessAction;
import com.huigou.uasp.bpm.ProcessStartModel; import com.huigou.uasp.bpm.ProcessStartModel;
...@@ -205,8 +206,10 @@ public class EpSaleOrderApplicationImpl extends FlowBroker implements EpSaleOrde ...@@ -205,8 +206,10 @@ public class EpSaleOrderApplicationImpl extends FlowBroker implements EpSaleOrde
BeanUtil.copyProperties(epSaleOrderVo,epSaleOrder); BeanUtil.copyProperties(epSaleOrderVo,epSaleOrder);
//初始化用户信息 //初始化用户信息
String createdById = SystemCache.getParameter("adminPersonId", String.class); String personCode = epSaleOrderVos.get(0).getPersonCode();
Operator operator = operatorApplication.createOperatorByPersonMemberId(createdById); Org org = orgApplication.loadMainOrgByLoginName(personCode);
//String createdById = SystemCache.getParameter("adminPersonId", String.class);
Operator operator = operatorApplication.createOperatorByPersonMemberId(org.getId());
epSaleOrder.setDefaultValues(new OrgUnit(operator.getFullId(), operator.getFullName())); epSaleOrder.setDefaultValues(new OrgUnit(operator.getFullId(), operator.getFullName()));
Map<String, Object> formData = BeanUtil.beanToMap(epSaleOrder); Map<String, Object> formData = BeanUtil.beanToMap(epSaleOrder);
......
...@@ -24,6 +24,7 @@ import com.huigou.topsun.sap.common.domain.EpResult; ...@@ -24,6 +24,7 @@ import com.huigou.topsun.sap.common.domain.EpResult;
import com.huigou.topsun.sap.costReimbursement.domain.SapCostReimbursement; import com.huigou.topsun.sap.costReimbursement.domain.SapCostReimbursement;
import com.huigou.uasp.bmp.common.BizBillStatus; import com.huigou.uasp.bmp.common.BizBillStatus;
import com.huigou.uasp.bmp.operator.OperatorApplication; import com.huigou.uasp.bmp.operator.OperatorApplication;
import com.huigou.uasp.bmp.opm.domain.model.org.Org;
import com.huigou.uasp.bpm.FlowBroker; import com.huigou.uasp.bpm.FlowBroker;
import com.huigou.uasp.bpm.ProcessAction; import com.huigou.uasp.bpm.ProcessAction;
import com.huigou.uasp.bpm.ProcessStartModel; import com.huigou.uasp.bpm.ProcessStartModel;
...@@ -204,8 +205,10 @@ public class EpSaleOrderCancelApplicationImpl extends FlowBroker implements EpSa ...@@ -204,8 +205,10 @@ public class EpSaleOrderCancelApplicationImpl extends FlowBroker implements EpSa
BeanUtil.copyProperties(epSaleOrderCancelVo,epSaleOrderCancel); BeanUtil.copyProperties(epSaleOrderCancelVo,epSaleOrderCancel);
//初始化用户信息 //初始化用户信息
String createdById = SystemCache.getParameter("adminPersonId", String.class); String personCode = epSaleOrderCancelVos.get(0).getPersonCode();
Operator operator = operatorApplication.createOperatorByPersonMemberId(createdById); Org org = orgApplication.loadMainOrgByLoginName(personCode);
//String createdById = SystemCache.getParameter("adminPersonId", String.class);
Operator operator = operatorApplication.createOperatorByPersonMemberId(org.getId());
epSaleOrderCancel.setDefaultValues(new OrgUnit(operator.getFullId(), operator.getFullName())); epSaleOrderCancel.setDefaultValues(new OrgUnit(operator.getFullId(), operator.getFullName()));
Map<String, Object> formData = BeanUtil.beanToMap(epSaleOrderCancel); Map<String, Object> formData = BeanUtil.beanToMap(epSaleOrderCancel);
......
...@@ -14,6 +14,11 @@ import java.util.List; ...@@ -14,6 +14,11 @@ import java.util.List;
*/ */
@Data @Data
public class EpSaleOrderCancelVo implements Serializable { public class EpSaleOrderCancelVo implements Serializable {
/**
* 创建人
*/
@JsonProperty("personCode")
private String personCode;
/** /**
* 订单类型 * 订单类型
*/ */
......
...@@ -13,6 +13,11 @@ import java.util.List; ...@@ -13,6 +13,11 @@ import java.util.List;
*/ */
@Data @Data
public class EpSaleOrderVo implements Serializable { public class EpSaleOrderVo implements Serializable {
/**
* 创建人
*/
@JsonProperty("personCode")
private String personCode;
/** /**
* 订单类型 * 订单类型
*/ */
......
...@@ -15,6 +15,7 @@ import com.huigou.topsun.sap.nonProducePick.domain.query.NonProducePickQueryRequ ...@@ -15,6 +15,7 @@ import com.huigou.topsun.sap.nonProducePick.domain.query.NonProducePickQueryRequ
import com.huigou.topsun.sap.nonProducePick.repository.NonProducePickRepository; import com.huigou.topsun.sap.nonProducePick.repository.NonProducePickRepository;
import com.huigou.topsun.sap.nonProducePick.vo.NonProducePickItemVo; import com.huigou.topsun.sap.nonProducePick.vo.NonProducePickItemVo;
import com.huigou.topsun.sap.nonProducePick.vo.NonProducePickVo; import com.huigou.topsun.sap.nonProducePick.vo.NonProducePickVo;
import com.huigou.topsun.sap.purchase.domain.SapPurchase;
import com.huigou.uasp.bmp.common.BizBillStatus; import com.huigou.uasp.bmp.common.BizBillStatus;
import com.huigou.uasp.bpm.FlowBroker; import com.huigou.uasp.bpm.FlowBroker;
import com.huigou.util.ClassHelper; import com.huigou.util.ClassHelper;
...@@ -209,4 +210,27 @@ public class NonProducePickApplicationImpl extends FlowBroker implements NonProd ...@@ -209,4 +210,27 @@ public class NonProducePickApplicationImpl extends FlowBroker implements NonProd
nonProducePickRepository.save(nonProducePick); nonProducePickRepository.save(nonProducePick);
} }
} }
/**
* 设置任务名称
*/
@Override
protected void setTaskDescription(DelegateTask delegateTask) {
String bizId = delegateTask.getExecution().getProcessBusinessKey();
delegateTask.setDescription(this.getApprovalSubjectName(bizId));
}
/**
* 获取任务标题
*
* @param bizId
* @return
*/
private String getApprovalSubjectName(String bizId) {
NonProducePick producePick = this.nonProducePickRepository.findOne(bizId);
//查询 单据日期
String fillinDateStr = DateUtil.getDateFormat("yyyy-MM-dd HH:mm:ss", producePick.getFillinDate());
//设置标题
return String.format("%s-%s(%s)", "其他物品领发料", producePick.getBillCode(), fillinDateStr);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment