|
@@ -1887,7 +1887,6 @@ export const useHooks = (t?: any) => {
|
|
const $table = state.YwTableRef?.element;
|
|
const $table = state.YwTableRef?.element;
|
|
let { visibleData } = $table.getTableData();
|
|
let { visibleData } = $table.getTableData();
|
|
const copyMap = new Map();
|
|
const copyMap = new Map();
|
|
- let showData: any = [];
|
|
|
|
let matchQty = 0;
|
|
let matchQty = 0;
|
|
|
|
|
|
const COMMON_PRESERVED_PROPS = ["bj_inputtype", "erp_pzname", "erp_pzcode", "bj_pzname", "bj_namemx", "itemname"];
|
|
const COMMON_PRESERVED_PROPS = ["bj_inputtype", "erp_pzname", "erp_pzcode", "bj_pzname", "bj_namemx", "itemname"];
|
|
@@ -1900,7 +1899,7 @@ export const useHooks = (t?: any) => {
|
|
copyMap.set(`${mx.erp_pzid}`, mx);
|
|
copyMap.set(`${mx.erp_pzid}`, mx);
|
|
});
|
|
});
|
|
|
|
|
|
- showData = res.mxList.map(mx => {
|
|
|
|
|
|
+ state.mattressYWList = res.mxList.map(mx => {
|
|
const key = `${mx.erp_pzid}`;
|
|
const key = `${mx.erp_pzid}`;
|
|
if (copyMap.has(key)) {
|
|
if (copyMap.has(key)) {
|
|
matchQty++;
|
|
matchQty++;
|
|
@@ -1922,7 +1921,7 @@ export const useHooks = (t?: any) => {
|
|
const NEED_PROPS = ["bj_inputtype", "bj_namemx"];
|
|
const NEED_PROPS = ["bj_inputtype", "bj_namemx"];
|
|
res.mxList.forEach(mx => copyMap.set(`${mx.erp_pzid}`, mx));
|
|
res.mxList.forEach(mx => copyMap.set(`${mx.erp_pzid}`, mx));
|
|
|
|
|
|
- showData = visibleData.map(mx => {
|
|
|
|
|
|
+ state.mattressYWList = visibleData.map(mx => {
|
|
const key = `${mx.erp_pzid}`;
|
|
const key = `${mx.erp_pzid}`;
|
|
if (copyMap.has(key) && (mx.bj_inputtype === 1 || mx.bj_inputtype === 0)) {
|
|
if (copyMap.has(key) && (mx.bj_inputtype === 1 || mx.bj_inputtype === 0)) {
|
|
matchQty++;
|
|
matchQty++;
|
|
@@ -1937,7 +1936,7 @@ export const useHooks = (t?: any) => {
|
|
} else {
|
|
} else {
|
|
// 重新生成: FEAT: 删除所有已经填写的【录入】和【选择)项目,根据核价资料,重新生成所有的【带出】资料
|
|
// 重新生成: FEAT: 删除所有已经填写的【录入】和【选择)项目,根据核价资料,重新生成所有的【带出】资料
|
|
visibleData.forEach(mx => copyMap.set(`${mx.erp_pzid}`, mx));
|
|
visibleData.forEach(mx => copyMap.set(`${mx.erp_pzid}`, mx));
|
|
- showData = res.mxList.map(mx => {
|
|
|
|
|
|
+ state.mattressYWList = res.mxList.map(mx => {
|
|
const key = `${mx.erp_pzid}`;
|
|
const key = `${mx.erp_pzid}`;
|
|
if (copyMap.has(key)) {
|
|
if (copyMap.has(key)) {
|
|
matchQty++;
|
|
matchQty++;
|
|
@@ -1950,7 +1949,7 @@ export const useHooks = (t?: any) => {
|
|
}
|
|
}
|
|
|
|
|
|
if (res.mxList.length > 0) {
|
|
if (res.mxList.length > 0) {
|
|
- await $table.reloadData(showData);
|
|
|
|
|
|
+ await $table.reloadData(state.mattressYWList);
|
|
resetMergeCells();
|
|
resetMergeCells();
|
|
|
|
|
|
ElNotification({
|
|
ElNotification({
|
|
@@ -1976,7 +1975,6 @@ export const useHooks = (t?: any) => {
|
|
|
|
|
|
let res = await RefreshMattressInterfaceQd({ mattressid, isPz, isCheck });
|
|
let res = await RefreshMattressInterfaceQd({ mattressid, isPz, isCheck });
|
|
|
|
|
|
- let showData: any = [];
|
|
|
|
let matchQty = 0;
|
|
let matchQty = 0;
|
|
|
|
|
|
const interfaceMap = {};
|
|
const interfaceMap = {};
|
|
@@ -2010,7 +2008,7 @@ export const useHooks = (t?: any) => {
|
|
// 刷新清单
|
|
// 刷新清单
|
|
visibleData.forEach(mx => copyMap.set(`${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`, mx));
|
|
visibleData.forEach(mx => copyMap.set(`${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`, mx));
|
|
|
|
|
|
- showData = res.mxList.map(mx => {
|
|
|
|
|
|
+ state.mattressYWList = res.mxList.map(mx => {
|
|
const key = `${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`;
|
|
const key = `${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`;
|
|
if (copyMap.has(key)) {
|
|
if (copyMap.has(key)) {
|
|
matchQty++;
|
|
matchQty++;
|
|
@@ -2037,7 +2035,7 @@ export const useHooks = (t?: any) => {
|
|
];
|
|
];
|
|
res.mxList.forEach(mx => copyMap.set(`${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`, mx));
|
|
res.mxList.forEach(mx => copyMap.set(`${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`, mx));
|
|
|
|
|
|
- showData = visibleData.map(mx => {
|
|
|
|
|
|
+ state.mattressYWList = visibleData.map(mx => {
|
|
const key = `${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`;
|
|
const key = `${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`;
|
|
if (copyMap.has(key)) {
|
|
if (copyMap.has(key)) {
|
|
matchQty++;
|
|
matchQty++;
|
|
@@ -2053,7 +2051,7 @@ export const useHooks = (t?: any) => {
|
|
// 重新刷新清单
|
|
// 重新刷新清单
|
|
visibleData.forEach(mx => copyMap.set(`${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`, mx));
|
|
visibleData.forEach(mx => copyMap.set(`${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`, mx));
|
|
|
|
|
|
- showData = res.mxList.map(mx => {
|
|
|
|
|
|
+ state.mattressYWList = res.mxList.map(mx => {
|
|
const key = `${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`;
|
|
const key = `${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`;
|
|
if (copyMap.has(key)) {
|
|
if (copyMap.has(key)) {
|
|
matchQty++;
|
|
matchQty++;
|
|
@@ -2066,7 +2064,7 @@ export const useHooks = (t?: any) => {
|
|
}
|
|
}
|
|
|
|
|
|
if (res.mxList.length > 0) {
|
|
if (res.mxList.length > 0) {
|
|
- await $table.reloadData(showData);
|
|
|
|
|
|
+ await $table.reloadData(state.mattressYWList);
|
|
resetMergeCellsQd();
|
|
resetMergeCellsQd();
|
|
|
|
|
|
ElNotification({
|
|
ElNotification({
|