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

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

parents 24262ee1 def2decc
...@@ -69,116 +69,7 @@ function loadOrderItemGrid() { ...@@ -69,116 +69,7 @@ function loadOrderItemGrid() {
}); });
// 表格 // 表格
orderItemGridManager = UICtrl.grid("#orderItemGrid", { orderItemGridManager = UICtrl.grid("#orderItemGrid", {
columns: [ columns: getOrderColumns(),
{display: "采购订单", name: "ebeln", width: 120, minWidth: 60, type: "string", align: "left"},
{display: "订单行项目号", name: "ebelp", width: 120, minWidth: 60, type: "string", align: "left"},
{display: "序号", name: "sequence", width: 140, minWidth: 60, type: "string", align: "left"},
{display: "原工单", name: "aufnr", width: 200, minWidth: 60, type: "string", align: "left",
editor: {
required: true, type: "select",
data: {
type: 'system',
name: "dictionary",
getParam: function (item) {
return {fieldName: "AUFNR"}
},
back: {
AUFNR: "aufnr",
}
}
}
},
{display: "工序号", name: "wempf", width: 140, minWidth: 60, type: "string", align: "left",
editor:{
type:"text",required: true
}
},
{display: "工序描述", name: "txz01", width: 140, minWidth: 60, type: "string", align: "left",
editor:{
type:"text",required: true
}
},
{display: "补数工单", name: "ablad", width: 140, minWidth: 60, type: "string", align: "left",
editor:{
type:"text",required: false
}
},
{display: "数量", name: "menge", width: 140, minWidth: 60, type: "string", align: "left",
editor:{
type:"text",mask: '9999999.999',required: true
}
},
{display: "单价", name: "kbetr", width: 140, minWidth: 60, type: "string", align: "left",
editor:{
type:"text",mask: '9999999.999',required: true
}
},
{display: "定价基数", name: "kpein", width: 140, minWidth: 60, type: "string", align: "left",
editor:{
type:"text",mask: '9999999.999',required: true
}
},
{display: "需求日期", name: "eeind", width: 140, minWidth: 60, type: "date", align: "left",
editor:{
type:"date",required: true
}
},
{display: "供应商", name: "lifnrName", width: 200, minWidth: 60, type: "string", align: "left",
editor: {
required: true, type: "select",
data: {
type: 'suppliers',
name: "selectSuppliers",
getParam: function (item) {
},
back: {
partner: "lifnr",
nameOrg1: "lifnrName",
}
}
}
},
{display: "单位", name: "meinsName", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
required: true, type: "select",
data: {
type: 'system',
name: "dictionary",
getParam: function (item) {
return {fieldName: "MEINS"}
},
back: {
MSEHI: "meins",
MSEHL: "meinsName",
}
}
}
},
{display: "币别", name: "waersTextView", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
type: 'dictionary',
data: {name: 'waers'},
textField: 'waersTextView',
valueField: 'waers',
required: true,
render: function (item) {
return item.waersTextView;
}
},
},
{display: "税码", name: "purchaseMwskzTextView", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
type: 'dictionary',
data: {name: 'purchaseMwskz'},
textField: 'purchaseMwskzTextView',
valueField: 'purchaseMwskz',
required: true,
render: function (item) {
return item.purchaseMwskzTextView;
}
},
}
],
dataAction: "server", dataAction: "server",
url: web_app.name + '/processOutsource/queryProcessOutsourceOrderItems.ajax', url: web_app.name + '/processOutsource/queryProcessOutsourceOrderItems.ajax',
parms: {processOutsourceId: getId()}, parms: {processOutsourceId: getId()},
...@@ -196,6 +87,169 @@ function loadOrderItemGrid() { ...@@ -196,6 +87,169 @@ function loadOrderItemGrid() {
UICtrl.setSearchAreaToggle(orderItemGridManager); UICtrl.setSearchAreaToggle(orderItemGridManager);
} }
function getOrderColumns(){
var columns = [];
columns.push({display: "采购订单", name: "ebeln", width: 120, minWidth: 60, type: "string", align: "left"});
columns.push({display: "订单行项目号", name: "ebelp", width: 120, minWidth: 60, type: "string", align: "left"});
columns.push({display: "序号", name: "sequence", width: 140, minWidth: 60, type: "string", align: "left"},);
columns.push({
display: "原工单", name: "aufnr", width: 200, minWidth: 60, type: "string", align: "left",
editor: {
required: true, type: "select",
data: {
type: 'system',
name: "dictionary",
getParam: function (item) {
return {fieldName: "AUFNR"}
},
back: {
AUFNR: "aufnr",
}
}
}
});
columns.push({
display: "工序号", name: "wempf", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
type: "text", required: true
}
},);
columns.push({
display: "工序描述", name: "txz01", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
type: "text", required: true
}
},);
columns.push({
display: "补数工单", name: "ablad", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
type: "text", required: false
}
},);
columns.push({
display: "数量", name: "menge", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
type: "text", mask: '9999999.999', required: true
}
},);
columns.push({
display: "单位", name: "meinsName", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
required: true, type: "select",
data: {
type: 'system',
name: "dictionary",
getParam: function (item) {
return {fieldName: "MEINS"}
},
back: {
MSEHI: "meins",
MSEHL: "meinsName",
}
}
}
},);
columns.push({
display: "需求日期", name: "eeind", width: 140, minWidth: 60, type: "date", align: "left",
editor: {
type: "date", required: true
}
},);
columns.push({
display: "存储地点", name: "lgortName", width: 200, minWidth: 60, type: "string", align: "left",
editor: {
required: false, type: "select",
data: {
type: 'system',
name: "dictionary",
getParam: function (item) {
return {
fieldName: "LGORT",
filterValue: $("#werks").val()
}
},
back: {
LGORT: "lgort",
LGOBE: "lgortName"
}
},
}
},);
if (typeof(getSubProcUnitId) =='function'&&"outer" == getSubProcUnitId()){
columns.push({
display: "单价", name: "kbetr", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
type: "text", mask: '9999999.999', required: true
}
},);
columns.push({
display: "定价基数", name: "kpein", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
type: "text", mask: '9999999.999', required: true
}
},);
columns.push({
display: "供应商", name: "lifnrName", width: 200, minWidth: 60, type: "string", align: "left",
editor: {
required: true, type: "select",
data: {
type: 'suppliers',
name: "selectSuppliers",
getParam: function (item) {
},
back: {
partner: "lifnr",
nameOrg1: "lifnrName",
}
}
}
},);
columns.push({
display: "币别", name: "waersTextView", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
type: 'dictionary',
data: {name: 'waers'},
textField: 'waersTextView',
valueField: 'waers',
required: true,
render: function (item) {
return item.waersTextView;
}
},
},);
columns.push({
display: "税码", name: "purchaseMwskzTextView", width: 140, minWidth: 60, type: "string", align: "left",
editor: {
type: 'dictionary',
data: {name: 'purchaseMwskz'},
textField: 'purchaseMwskzTextView',
valueField: 'purchaseMwskz',
required: true,
render: function (item) {
return item.purchaseMwskzTextView;
}
},
});
}else {
columns.push({
display: "单价", name: "kbetr", width: 140, minWidth: 60, type: "string", align: "left",
},);
columns.push({
display: "定价基数", name: "kpein", width: 140, minWidth: 60, type: "string", align: "left",
},);
columns.push({
display: "供应商", name: "lifnrName", width: 200, minWidth: 60, type: "string", align: "left",
},);
columns.push({
display: "币别", name: "waersTextView", width: 140, minWidth: 60, type: "string", align: "left",
},);
columns.push({
display: "税码", name: "purchaseMwskzTextView", width: 140, minWidth: 60, type: "string", align: "left",
});
}
return columns;
}
// 加载组件信息表格 // 加载组件信息表格
function loadMaterialGrid() { function loadMaterialGrid() {
var toolbarOptions = null; var toolbarOptions = null;
......
...@@ -34,6 +34,7 @@ import com.huigou.util.StringUtil; ...@@ -34,6 +34,7 @@ import com.huigou.util.StringUtil;
import org.activiti.engine.delegate.DelegateExecution; import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.DelegateTask; import org.activiti.engine.delegate.DelegateTask;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.task.TaskExecutor;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Assert; import org.springframework.util.Assert;
...@@ -64,6 +65,8 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce ...@@ -64,6 +65,8 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce
private ProcessOutsourceOrderItemRepository processOutsourceOrderItemRepository; private ProcessOutsourceOrderItemRepository processOutsourceOrderItemRepository;
@Autowired @Autowired
private SapPermitApplication sapPermitApplication; private SapPermitApplication sapPermitApplication;
@Autowired
private TaskExecutor asyncWriteExecutor;
@Override @Override
protected String saveBizAndApprovalData() { protected String saveBizAndApprovalData() {
...@@ -166,7 +169,10 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce ...@@ -166,7 +169,10 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce
//推送到SAP //推送到SAP
this.sendData(processOutsource); this.sendData(processOutsource);
//创建放行条 //创建放行条
this.startSapPermit(processOutsource); asyncWriteExecutor.execute(()->
//创建放行条
this.startSapPermit(processOutsource)
);
processOutsourceRepository.save(processOutsource); processOutsourceRepository.save(processOutsource);
} }
......
...@@ -83,6 +83,18 @@ public class ProcessOutsourceOrderItem extends AbstractEntity { ...@@ -83,6 +83,18 @@ public class ProcessOutsourceOrderItem extends AbstractEntity {
@Column(name = "MEINS_NAME") @Column(name = "MEINS_NAME")
private String meinsName; private String meinsName;
/**
* 存储地点
*/
@Column(name = "LGORT")
private String lgort;
/**
* 存储地点
*/
@Column(name = "LGORT_NAME")
private String lgortName;
/** /**
* 需求到货日期 * 需求到货日期
*/ */
......
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