Commit af55289a authored by krysent's avatar krysent

new

parent 85ecd57b
...@@ -124,12 +124,17 @@ const Station = (props) => { ...@@ -124,12 +124,17 @@ const Station = (props) => {
cancelText: "取消", cancelText: "取消",
onOk() { onOk() {
formRef?.current?.validateFields().then((formData) => { formRef?.current?.validateFields().then((formData) => {
start("/ngic-workmanship/wmsMaterieLabel/save", formData); start("/ngic-workmanship/wmsMaterieLabel/save", formData).then(
setDrawer((v) => ({ (res) => {
...v, console.log(res);
visible: false, setDrawer((v) => ({
})); ...v,
message.success("保存成功!", 2); visible: false,
}));
message.success("保存成功!", 2);
reload();
}
);
}); });
}, },
onCancel() { onCancel() {
...@@ -154,8 +159,8 @@ const Station = (props) => { ...@@ -154,8 +159,8 @@ const Station = (props) => {
} }
}); });
} else { } else {
message.destroy() message.destroy();
message.warning("请添加列表数据!",2); message.warning("请添加列表数据!", 2);
} }
}); });
} else { } else {
......
...@@ -281,6 +281,7 @@ const Materiel = (props) => { ...@@ -281,6 +281,7 @@ const Materiel = (props) => {
url: "/ngic-workmanship/pmMaterieChar/queryCommonList", url: "/ngic-workmanship/pmMaterieChar/queryCommonList",
params: {}, params: {},
}).then((res) => { }).then((res) => {
console.log("第一次获取的", res?.data?.dataList);
setdefaultSpecificFileds(res?.data?.dataList); setdefaultSpecificFileds(res?.data?.dataList);
}); });
}, []); }, []);
...@@ -366,10 +367,13 @@ const Materiel = (props) => { ...@@ -366,10 +367,13 @@ const Materiel = (props) => {
formRef formRef
.validateFields() .validateFields()
.then((firstValues) => { .then((firstValues) => {
console.log(firstValues);
formRefs formRefs
.validateFields() .validateFields()
.then((secondFields) => { .then((secondFields) => {
console.log(secondFields);
let secondFieldsKeys = Object.keys(secondFields); let secondFieldsKeys = Object.keys(secondFields);
console.log("defaultSpecificFileds", defaultSpecificFileds);
let materieCharList = defaultSpecificFileds.map((it) => { let materieCharList = defaultSpecificFileds.map((it) => {
if (secondFieldsKeys.indexOf(it.fieldsKey) != -1) { if (secondFieldsKeys.indexOf(it.fieldsKey) != -1) {
it.fieldRealValue = secondFields[it.fieldsKey]; it.fieldRealValue = secondFields[it.fieldsKey];
...@@ -451,6 +455,7 @@ const Materiel = (props) => { ...@@ -451,6 +455,7 @@ const Materiel = (props) => {
let data = res?.data?.dataList, let data = res?.data?.dataList,
otherFields = formatFieds(data, "common")?.obj, otherFields = formatFieds(data, "common")?.obj,
newData = formatFieds(data, "common")?.data; newData = formatFieds(data, "common")?.data;
console.log("点击新增获取的,", data);
for (let i in defaultFields) { for (let i in defaultFields) {
defaultFields[i].value = null; defaultFields[i].value = null;
defaultFields[i].disabled = false; defaultFields[i].disabled = false;
...@@ -559,7 +564,7 @@ const Materiel = (props) => { ...@@ -559,7 +564,7 @@ const Materiel = (props) => {
/> />
</div> </div>
</AutoTable> </AutoTable>
<Drawer <Drawer
title={iftype.title} title={iftype.title}
visible={vs} visible={vs}
......
...@@ -76,8 +76,8 @@ function Instore(props) { ...@@ -76,8 +76,8 @@ function Instore(props) {
}, },
{ {
title: "库位名称", title: "库位名称",
dataIndex: "stockNum", dataIndex: "storePositionName",
key: "stockNum", key: "storePositionName",
search: false, search: false,
}, },
{ {
......
...@@ -537,11 +537,11 @@ function Outstore(props) { ...@@ -537,11 +537,11 @@ function Outstore(props) {
required: true, required: true,
disabled: true, disabled: true,
}, },
storeId: { storeCode: {
value: null, value: null,
title: "出库仓库", title: "出库仓库",
type: "input", type: "input",
name: ["storeId"], name: ["storeCode"],
required: true, required: true,
disabled: true, disabled: true,
}, },
...@@ -1033,7 +1033,7 @@ function Outstore(props) { ...@@ -1033,7 +1033,7 @@ function Outstore(props) {
setdrawprops((s) => ({ setdrawprops((s) => ({
...s, ...s,
visible: true, visible: true,
title: "新增" + itemz["four"], title: itemz["four"],
fields: defaultFields["four"], fields: defaultFields["four"],
outstoreType: keytoval["four"], outstoreType: keytoval["four"],
val: "add", //类型 val: "add", //类型
......
...@@ -711,6 +711,19 @@ const materielDetail = [ ...@@ -711,6 +711,19 @@ const materielDetail = [
title: "管控方式", title: "管控方式",
key: "materieControlName", key: "materieControlName",
}, },
{
title: "规格型号",
key: "specificationModel",
},
{
title: "发料类型",
key: "issueTypeName",
},
],
},
{
cardTitle: "生产属性",
itemData: [
{ {
title: "铁损", title: "铁损",
key: "ironLoss", key: "ironLoss",
...@@ -719,6 +732,23 @@ const materielDetail = [ ...@@ -719,6 +732,23 @@ const materielDetail = [
title: "片厚", title: "片厚",
key: "sheetThickness", key: "sheetThickness",
}, },
{
title: "牌号",
key: "shopSign",
},
],
},
{
cardTitle: "仓库属性",
itemData: [
{
title: "库存单位",
key: "productionUnitName",
},
{
title: "默认仓库",
key: "storeName",
},
{ {
title: "默认库区", title: "默认库区",
key: "storeAreaName", key: "storeAreaName",
......
...@@ -27,6 +27,16 @@ export async function start(url, params) { ...@@ -27,6 +27,16 @@ export async function start(url, params) {
// LODOP.PREVIEW(); // LODOP.PREVIEW();
LODOP.PRINT(); LODOP.PRINT();
} }
return new Promise(
(resolve, reject) => {
if (res) {
resolve(data);
} else {
reject();
}
},
(err) => {}
);
} }
} catch (err) { } catch (err) {
alert("系统检测当前环境未安装相关插件,请先安装C-Lodop插件!"); alert("系统检测当前环境未安装相关插件,请先安装C-Lodop插件!");
......
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