Commit 0129ecd9 authored by 李翰林's avatar 李翰林

修改模板

parent a1dc9ca9
...@@ -53,23 +53,25 @@ const Station = (props) => { ...@@ -53,23 +53,25 @@ const Station = (props) => {
dataIndex: "specificationModel", dataIndex: "specificationModel",
key: "specificationModel", key: "specificationModel",
}, },
{ {
title: "重量", title: "重量",
dataIndex: "weight", dataIndex: "weight",
key: "weight", key: "weight",
search: false, search: false,
}, },
{
title: "米数",
dataIndex: "length",
key: "length",
search: false,
},
{ {
title: "批次号", title: "批次号",
dataIndex: "materieControlNo", dataIndex: "materieControlNo",
key: "materieControlNo", key: "materieControlNo",
}, },
{
title: "供应商",
dataIndex: "supplierName",
key: "supplierName",
search: false,
},
{ {
title: "宽度", title: "宽度",
dataIndex: "width", dataIndex: "width",
...@@ -94,6 +96,12 @@ const Station = (props) => { ...@@ -94,6 +96,12 @@ const Station = (props) => {
key: "unilateralThickness", key: "unilateralThickness",
search: false, search: false,
}, },
{
title: "供应商",
dataIndex: "supplierName",
key: "supplierName",
search: false,
},
{ {
title: "二维码", title: "二维码",
dataIndex: "qrCodeUrl ", dataIndex: "qrCodeUrl ",
...@@ -239,41 +247,41 @@ const Station = (props) => { ...@@ -239,41 +247,41 @@ const Station = (props) => {
// const [data, setdata] = useState({}); // const [data, setdata] = useState({});
// useEffect(() => { // useEffect(() => {
// let el = document.getElementById("mydemo"); // let el = document.getElementById("mydemo");
// el.innerHTML = ` <div> // el.innerHTML = ` <div>
// <div style="display:flex; width:100% ;height:100%; flex-direction: column;justify-self: space-between; font-family:'宋体'"> // <div style="display:flex; width:100% ;height:100%; flex-direction: column;justify-self: space-between; font-family:'宋体'">
// <div style="display:flex; flex-direction: row;flex:2;"> // <div style="display:flex; flex-direction: row;flex:2;">
// <div style="display:flex;flex-direction: column;flex:2"> // <div style="display:flex;flex-direction: column;flex:2">
// <div style="flex:1">卷料名称:${data?.materieName ?? "--"}</div> // <div style="flex:1">卷料名称:${data?.materieName ?? "--"}</div>
// <div style="flex:1">卷料编码:${data?.materieCode ?? "--"}</div> // <div style="flex:1">卷料编码:${data?.materieCode ?? "--"}</div>
// </div> // </div>
// </div> // </div>
// <div style="display:flex; flex-direction: row;flex:1;"> // <div style="display:flex; flex-direction: row;flex:1;">
// <div style="flex:3;display:flex;flex-direction: row;"> // <div style="flex:3;display:flex;flex-direction: row;">
// <div style="flex:1">批次:${data?.materieControlNo ?? "--"}</div> // <div style="flex:1">批次:${data?.materieControlNo ?? "--"}</div>
// <div style="flex:1">厚度:${data?.unilateralThickness ?? "--"}mm</div> // <div style="flex:1">厚度:${data?.unilateralThickness ?? "--"}mm</div>
// </div> // </div>
// <div style="flex:1"> // <div style="flex:1">
// <img src=${data?.qrCodeUrl} style="width:100%"/> // <img src=${data?.qrCodeUrl} style="width:100%"/>
// </div> // </div>
// </div> // </div>
// <div style="display:flex; flex-direction: row;flex:1;"> // <div style="display:flex; flex-direction: row;flex:1;">
// <div style="flex:2">铁损:${data?.ironLoss ?? "--"}w/kg</div> // <div style="flex:2">铁损:${data?.ironLoss ?? "--"}w/kg</div>
// <div style="flex:3">牌号:${data?.shopSign ?? "--"}片</div> // <div style="flex:3">牌号:${data?.shopSign ?? "--"}片</div>
// </div> // </div>
// <div style="display:flex; flex-direction: row;flex:1;"> // <div style="display:flex; flex-direction: row;flex:1;">
// <div style="flex:2">宽度:${data?.width ?? "--"}mm</div> // <div style="flex:2">宽度:${data?.width ?? "--"}mm</div>
// <div style="flex:3">片厚:${data?.sheetThickness ?? "--"}mm</div> // <div style="flex:3">片厚:${data?.sheetThickness ?? "--"}mm</div>
// </div> // </div>
// <div style="display:flex; flex-direction: row;flex:1;"> // <div style="display:flex; flex-direction: row;flex:1;">
// <div style="flex:2">重量:${data?.weight ?? "--"}KG</div> // <div style="flex:2">重量:${data?.weight ?? "--"}KG</div>
// <div style="flex:3">米数:${data?.length ?? "--"}M</div> // <div style="flex:3">米数:${data?.length ?? "--"}M</div>
// </div> // </div>
// </div> // </div>
// </div>`; // </div>`;
// }, []); // }, []);
const OptionsBtn = () => { const OptionsBtn = () => {
return ( return (
...@@ -295,7 +303,10 @@ const Station = (props) => { ...@@ -295,7 +303,10 @@ const Station = (props) => {
message.warning("请选择数据!", 2); message.warning("请选择数据!", 2);
return; return;
} }
showConfirm(); // showConfirm();
start("/ngic-workmanship/wmsMaterieLabel/queryByIds", {
ids: selectIds,
});
}} }}
> >
子卷补码 子卷补码
......
...@@ -24,7 +24,7 @@ export async function start(url, params) { ...@@ -24,7 +24,7 @@ export async function start(url, params) {
const template = str(data[i]); const template = str(data[i]);
let LODOP = getLodop(); let LODOP = getLodop();
LODOP.PRINT_INIT("task1"); LODOP.PRINT_INIT("task1");
LODOP.ADD_PRINT_HTM("8%", 0, "100%", "100%", template); LODOP.ADD_PRINT_HTM("8%", 0, "100%", "92%", template);
LODOP.SET_PRINT_PAGESIZE(0, 1000, 500, ""); LODOP.SET_PRINT_PAGESIZE(0, 1000, 500, "");
// LODOP.PREVIEW(); // LODOP.PREVIEW();
LODOP.PRINT(); LODOP.PRINT();
......
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