Commit 4ae37c28 authored by 鲁鑫's avatar 鲁鑫

采购申请

parent 37062678
......@@ -115,7 +115,7 @@ function getGridColumns() {
},
{display: "库存地点", name: "lgort", width: "100", align: "left", type: "string",
editor: {
required: true, type: "select",
required: false, type: "select",
data: {
type: 'system',
name: "dictionary",
......@@ -132,8 +132,8 @@ function getGridColumns() {
{display: "库存地点名称", name: "lgobe", width: "200", align: "left", type: "string",
//editor: {required: false, type: "text"}
},
{display: "短文本", name: "txz01", width: "100", align: "left", type: "string",
editor: {required: false, type: "text"}
{display: "短文本", name: "txz01", width: "200", align: "left", type: "string",
editor: {required: true, type: "text"}
},
{display: "物料组", name: "matkl", width: "100", align: "left", type: "string",
editor: {
......@@ -151,7 +151,7 @@ function getGridColumns() {
}
},
{display: "申购数量", name: "menge", width: 150, minWidth: 60, type: "string", align: "center",
editor: {required: false, type: "text",mask: '9999999.999'}
editor: {required: true, type: "text",mask: '9999999.999'}
},
{display: "申购数量单位", name: "meins", width: 150, minWidth: 60, type: "string", align: "center",
/*editor: {
......@@ -167,7 +167,7 @@ function getGridColumns() {
}
},
}*/
editor: {required: false, type: "text"}
editor: {required: true, type: "text"}
},
{display: "采购组", name: "ekgrp", width: 150, minWidth: 60, type: "string", align: "center",
editor: {
......
......@@ -3,6 +3,7 @@ package com.huigou.topsun.sap.purchase.application.impl;
import cn.hutool.core.bean.BeanUtil;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.huigou.cache.SystemCache;
import com.huigou.data.query.model.QueryDescriptor;
import com.huigou.data.query.model.QueryModel;
import com.huigou.topsun.sap.common.HttpClient;
......@@ -55,7 +56,8 @@ public class SapPurchaseApplicationImpl extends FlowBroker implements SapPurchas
List<SapPurchaseVo> purchaseVoList = this.getSapPurchaseVoJson(sapPurchase);
try {
String execute = httpClient.execute(purchaseVoList, "sap.purchase.url");
String url = SystemCache.getParameter("sap.purchase.url", String.class);
String execute = httpClient.execute(purchaseVoList, url);
System.out.println("返回结果:"+execute);
} catch (IOException e) {
throw new RuntimeException(e);
......@@ -83,7 +85,8 @@ public class SapPurchaseApplicationImpl extends FlowBroker implements SapPurchas
List<SapPurchaseVo> sapPurchaseVoList = this.getSapPurchaseVoJson(sapPurchase);
try {
String execute = httpClient.execute(sapPurchaseVoList, "sap.purchase.url");
String url = SystemCache.getParameter("sap.purchase.url", String.class);
String execute = httpClient.execute(sapPurchaseVoList, url);
System.out.println("返回结果:"+execute);
} catch (IOException e) {
throw new RuntimeException(e);
......
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