Commit 95873cdf authored by hehongwei's avatar hehongwei

物料页面修改

parent 879234d6
...@@ -633,13 +633,13 @@ ...@@ -633,13 +633,13 @@
//直接luck表格初始化 替换数据 //直接luck表格初始化 替换数据
//找到所在的行数,按照 -的前后去找,前面是标题,后面是标题后的小分类,如选煤,洗煤等 //找到所在的行数,按照 -的前后去找,前面是标题,后面是标题后的小分类,如选煤,洗煤等
CompositeTable[0].data = luckysheet.transToData(he[0]["celldata"]) CompositeTable[0].data = luckysheet.transToData(CompositeTable[0]["celldata"])
newobj[0].forEach((item) => { newobj[0].forEach((item) => {
if (item.v.m !== undefined) { if (item.v.m !== undefined) {
let index = item.v.m.indexOf("-"); let index = item.v.m.indexOf("-");
if (index !== -1) { if (index !== -1) {
let substrBeforeDash = item.v.m.slice(0, index); let substrBeforeDash = item.v.m.slice(0, index);
let DepartColumns = he[0]["celldata"].flat().find(obj => let DepartColumns = CompositeTable[0]["celldata"].flat().find(obj =>
obj.v && obj.v.v && typeof obj.v.v === 'string' && obj.v.v.includes(item.v.m.slice(0, index)) obj.v && obj.v.v && typeof obj.v.v === 'string' && obj.v.v.includes(item.v.m.slice(0, index))
); );
......
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