Commit 2616c243 authored by krysent's avatar krysent

asd

parent 27da8849
...@@ -35,7 +35,7 @@ export default [ ...@@ -35,7 +35,7 @@ export default [
routes: [ routes: [
{ {
path: "/wms/instore", path: "/wms/instore",
name: "入库管理", name: "来料入库",
component: "./insertstore/Instore", component: "./insertstore/Instore",
}, },
{ {
...@@ -50,7 +50,7 @@ export default [ ...@@ -50,7 +50,7 @@ export default [
}, },
{ {
path: "/wms/outstore", path: "/wms/outstore",
name: "生产叫料", name: "生产叫料出库",
component: "./outsetstore/Outstore", component: "./outsetstore/Outstore",
}, },
{ {
......
...@@ -43,6 +43,7 @@ export function getColumns(setDrawer, formRef) { ...@@ -43,6 +43,7 @@ export function getColumns(setDrawer, formRef) {
dataIndex: "specificationModel", dataIndex: "specificationModel",
fieldProps: { fieldProps: {
disabled: true, disabled: true,
placeholder: "",
}, },
}, },
{ {
...@@ -51,6 +52,7 @@ export function getColumns(setDrawer, formRef) { ...@@ -51,6 +52,7 @@ export function getColumns(setDrawer, formRef) {
dataIndex: "shopSign", dataIndex: "shopSign",
fieldProps: { fieldProps: {
disabled: true, disabled: true,
placeholder: "",
}, },
}, },
{ {
...@@ -59,6 +61,7 @@ export function getColumns(setDrawer, formRef) { ...@@ -59,6 +61,7 @@ export function getColumns(setDrawer, formRef) {
dataIndex: "ironLoss", dataIndex: "ironLoss",
fieldProps: { fieldProps: {
disabled: true, disabled: true,
placeholder: "",
}, },
}, },
{ {
...@@ -67,6 +70,7 @@ export function getColumns(setDrawer, formRef) { ...@@ -67,6 +70,7 @@ export function getColumns(setDrawer, formRef) {
dataIndex: "sheetThickness", dataIndex: "sheetThickness",
fieldProps: { fieldProps: {
disabled: true, disabled: true,
placeholder: "",
}, },
}, },
{ {
...@@ -82,14 +86,14 @@ export function getColumns(setDrawer, formRef) { ...@@ -82,14 +86,14 @@ export function getColumns(setDrawer, formRef) {
valueType: "select", valueType: "select",
options: { options: {
path: "/ngic-auth/sysSupplier/query/selection", path: "/ngic-auth/sysSupplier/query/selection",
params:{} params: {},
}, },
}, },
{ {
title: "单边厚度", title: "单边厚度",
key: "unilateralThickness", key: "unilateralThickness",
dataIndex: "unilateralThickness", dataIndex: "unilateralThickness",
valueType:'digit' valueType: "digit",
}, },
{ {
title: "备注", title: "备注",
...@@ -98,9 +102,14 @@ export function getColumns(setDrawer, formRef) { ...@@ -98,9 +102,14 @@ export function getColumns(setDrawer, formRef) {
valueType: "textarea", valueType: "textarea",
}, },
{ {
title: "列表", title: (
<span>
<b style={{ color: "red" }}>*</b> 列
</span>
),
valueType: "formList", valueType: "formList",
dataIndex: "list", dataIndex: "list",
formItemProps: { rules: [{ required: true, message: "此项为必填项" }] },
initialValue: [ initialValue: [
{ {
state: "all", state: "all",
......
...@@ -120,8 +120,8 @@ const Station = (props) => { ...@@ -120,8 +120,8 @@ const Station = (props) => {
title: `当前已完成信息填写,是否保存并立即打印?`, title: `当前已完成信息填写,是否保存并立即打印?`,
icon: <ExclamationCircleFilled />, icon: <ExclamationCircleFilled />,
width: 500, width: 500,
okText: '确定', okText: "确定",
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);
...@@ -141,18 +141,22 @@ const Station = (props) => { ...@@ -141,18 +141,22 @@ const Station = (props) => {
const saveData = (type) => { const saveData = (type) => {
if (type === 1) { if (type === 1) {
formRef?.current?.validateFields().then((formData) => { formRef?.current?.validateFields().then((formData) => {
doFetch({ if (formData?.list && formData?.list.length > 0) {
url: "/ngic-workmanship/wmsMaterieLabel/save", doFetch({
params: formData, url: "/ngic-workmanship/wmsMaterieLabel/save",
}).then((res) => { params: formData,
if (res?.code == "0000") { }).then((res) => {
setDrawer((v) => ({ if (res?.code == "0000") {
...v, setDrawer((v) => ({
visible: false, ...v,
})); visible: false,
} }));
message.success("保存成功!", 2); }
}); });
} else {
message.destroy()
message.warning("请添加列表数据!",2);
}
}); });
} else { } else {
saveAndPrint(); saveAndPrint();
...@@ -170,8 +174,8 @@ const Station = (props) => { ...@@ -170,8 +174,8 @@ const Station = (props) => {
title: `当前已选择 ${selectIds?.length} 条标签数据,是否全部打印?`, title: `当前已选择 ${selectIds?.length} 条标签数据,是否全部打印?`,
icon: <ExclamationCircleFilled />, icon: <ExclamationCircleFilled />,
width: 500, width: 500,
okText: '确定', okText: "确定",
cancelText:"取消", cancelText: "取消",
onOk() { onOk() {
start("/ngic-workmanship/wmsMaterieLabel/queryByIds", { start("/ngic-workmanship/wmsMaterieLabel/queryByIds", {
ids: selectIds, ids: selectIds,
......
...@@ -183,7 +183,7 @@ function Outstore(props) { ...@@ -183,7 +183,7 @@ function Outstore(props) {
{ {
title: "单据状态", title: "单据状态",
dataIndex: "statusName", dataIndex: "statusName",
key: "statusName", key: "status",
valueType: "select", valueType: "select",
options: [ options: [
{ {
...@@ -327,7 +327,7 @@ function Outstore(props) { ...@@ -327,7 +327,7 @@ function Outstore(props) {
{ {
title: "单据状态", title: "单据状态",
dataIndex: "statusName", dataIndex: "statusName",
key: "statusName", key: "status",
search: false, search: false,
valueType: "select", valueType: "select",
options: [ options: [
......
...@@ -84,7 +84,6 @@ function Instore(props) { ...@@ -84,7 +84,6 @@ function Instore(props) {
title: "物料编码", title: "物料编码",
dataIndex: "materieId", dataIndex: "materieId",
key: "materieId", key: "materieId",
search: false,
}, },
{ {
title: "物料名称", title: "物料名称",
...@@ -101,7 +100,6 @@ function Instore(props) { ...@@ -101,7 +100,6 @@ function Instore(props) {
title: "批次号", title: "批次号",
dataIndex: "materieControlNo", dataIndex: "materieControlNo",
key: "materieControlNo", key: "materieControlNo",
search: false,
}, },
{ {
title: "库存数量", title: "库存数量",
......
...@@ -60,19 +60,12 @@ const defaultFields = { ...@@ -60,19 +60,12 @@ const defaultFields = {
options: { options: {
database: () => database: () =>
doFetch({ doFetch({
url: "/ngic-auth/sysStore/selectionBox", url: "/ngic-auth/sysStore/selectionBoxAll",
params: { factoryIdList: [] }, params: {},
}), }),
params: {}, params: {},
}, },
}, },
businessNo: {
value: null,
type: "input",
title: "相关单号",
name: ["businessNo"],
required: false,
},
remark: { remark: {
value: null, value: null,
type: "textarea", type: "textarea",
...@@ -95,16 +88,20 @@ const defaultFields = { ...@@ -95,16 +88,20 @@ const defaultFields = {
//根据url接口 改变某个value //根据url接口 改变某个value
database: (params) => database: (params) =>
doFetch({ doFetch({
url: "/ngic-workmanship/pmMaterie/queryUnitByMaterieId", url: "/ngic-workmanship/wmsMaterieLabel/queryById",
params, params,
}), }),
params: { materieId: "linked" }, params: { labelId: "linked" },
effectresult: { effectresult: {
productionUnit: "productionUnit", //key 为列表更新值 value为response 返回值
productionUnitName: "productionUnitName", productionUnitName: "productionUnitName",
materieControlNo: "materialCode", materieCode: "materieCode",
instroeNum: "instroeNum",
supplierId: "supplierId", supplierId: "supplierId",
supplierName: "supplierName",
width: "width",
ironLoss: "ironLoss",
sheetThickness: "sheetThickness",
shopSign: "shopSign",
weight: "weight",
}, },
}, },
}, },
...@@ -112,17 +109,17 @@ const defaultFields = { ...@@ -112,17 +109,17 @@ const defaultFields = {
{ {
title: ( title: (
<span> <span>
物料编码-名称 <b style={{ color: "red" }}>*</b> 批次号 <b style={{ color: "red" }}>*</b>
</span> </span>
), ),
dataIndex: "materieId", dataIndex: "labelId",
key: "materieId", key: "labelId",
valueType: "select", valueType: "select",
width: 300, width: 300,
request: async () => { request: async () => {
let res = await doFetch({ let res = await doFetch({
url: "/ngic-workmanship/pmMaterie/query/selectbox", url: "/ngic-workmanship/wmsMaterieLabel/selectionByStatus",
params: {}, params: { status: "1" },
}); });
return res?.data?.dataList; return res?.data?.dataList;
}, },
...@@ -139,56 +136,63 @@ const defaultFields = { ...@@ -139,56 +136,63 @@ const defaultFields = {
{ {
title: ( title: (
<span> <span>
供应商编号-名称 <b style={{ color: "red" }}>*</b> 物料编码-名称 <b style={{ color: "red" }}>*</b>
</span> </span>
), ),
dataIndex: "supplierId", dataIndex: "materieCode",
key: "supplierId", key: "materieCode",
valueType: "select", valueType: "select",
width: 300, width: 300,
request: async () => { readonly: true,
let res = await doFetch({
url: "/ngic-auth/sysSupplier/query/selection/withNo",
params: {},
});
return res?.data?.dataList;
},
fieldProps: {
allowClear: true,
showSearch: true,
},
formItemProps: () => {
return {
rules: [{ required: true, message: "此项为必填项" }],
};
},
}, },
{ {
title: "批次号/SN号", title: "规格型号",
dataIndex: "materieControlNo", dataIndex: "specificationModel",
key: "materieControlNo", key: "specificationModel",
readonly: true,
}, },
{ {
title: ( title: "供应商",
<span> dataIndex: "supplierName",
入库数量 <b style={{ color: "red" }}>*</b> key: "supplierName",
</span> readonly: "supplierName",
), },
dataIndex: "instroeNum", {
key: "instroeNum", title: "宽度",
formItemProps: () => { dataIndex: "width",
return { key: "width",
rules: [{ required: true, message: "此项为必填项" }], readonly: "width",
}; },
}, {
valueType: "digit", title: "铁损",
dataIndex: "ironLoss",
key: "ironLoss",
readonly: "ironLoss",
},
{
title: "片厚",
dataIndex: "sheetThickness",
key: "sheetThickness",
readonly: "sheetThickness",
},
{
title: "牌号",
dataIndex: "shopSign",
key: "shopSign",
readonly: "shopSign",
},
{
title: "入库数量",
dataIndex: "weight",
key: "weight",
readonly: "weight",
}, },
{ {
title: "库存单位", title: "库存单位",
dataIndex: "productionUnitName", dataIndex: "productionUnitName",
key: "productionUnitName", key: "productionUnitName",
readonly: "productionUnitName", readonly: "productionUnitName",
width: 88,
}, },
{ {
title: "操作", title: "操作",
...@@ -1026,7 +1030,7 @@ function Instore(props) { ...@@ -1026,7 +1030,7 @@ function Instore(props) {
if (drawprops.val == "add") { if (drawprops.val == "add") {
let res = await doFetch({ let res = await doFetch({
url: "/ngic-workmanship/wmsMaterieInstore/saveInStore", url: "/ngic-workmanship/wmsMaterieInstore/saveInStore",
params: { ...value, instoreType: drawprops.instoreType }, params: { ...value },
}); });
if (res.code == "0000") { if (res.code == "0000") {
reload(); reload();
......
...@@ -212,7 +212,7 @@ function Outstore(props) { ...@@ -212,7 +212,7 @@ function Outstore(props) {
key: "applyTimeList", key: "applyTimeList",
valueType: "dateRange", valueType: "dateRange",
formItemProps: { formItemProps: {
name: "createTimeList", name: "applyTimeList",
}, },
}, },
{ {
...@@ -328,7 +328,7 @@ function Outstore(props) { ...@@ -328,7 +328,7 @@ function Outstore(props) {
search: false, search: false,
valueType: "dateRange", valueType: "dateRange",
formItemProps: { formItemProps: {
name: "createTimeList", name: "applyTimeList",
}, },
}, },
{ {
......
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