|
@@ -137,8 +137,9 @@ export default defineComponent({
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+ const wrResult: { dgfactoryitemtypeid: number; dgfactoryitemid: number }[] = [];
|
|
|
wrLsit.value.forEach((el) => {
|
|
wrLsit.value.forEach((el) => {
|
|
|
- const { selected, itemtypename } = el;
|
|
|
|
|
|
|
+ const { selected, itemtypename, dgfactoryitemtypeid } = el;
|
|
|
if (selected) {
|
|
if (selected) {
|
|
|
const { key } = selected;
|
|
const { key } = selected;
|
|
|
if (itemtypename === '仓库') {
|
|
if (itemtypename === '仓库') {
|
|
@@ -148,6 +149,7 @@ export default defineComponent({
|
|
|
const name = el.itemlst.find((e) => e.dgfactoryitemid === key)!.dgfactoryitemvalue;
|
|
const name = el.itemlst.find((e) => e.dgfactoryitemid === key)!.dgfactoryitemvalue;
|
|
|
result.dgitemname = result.dgitemname ? `${result.dgitemname},${name}` : name;
|
|
result.dgitemname = result.dgitemname ? `${result.dgitemname},${name}` : name;
|
|
|
}
|
|
}
|
|
|
|
|
+ wrResult.push({ dgfactoryitemtypeid, dgfactoryitemid: key });
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
if (!isWR()) {
|
|
if (!isWR()) {
|
|
@@ -160,6 +162,7 @@ export default defineComponent({
|
|
|
if (isQuery) {
|
|
if (isQuery) {
|
|
|
context.emit('search', result);
|
|
context.emit('search', result);
|
|
|
}
|
|
}
|
|
|
|
|
+ result.wrResult = wrResult;
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
function listingAction() {
|
|
function listingAction() {
|