|
@@ -10,18 +10,14 @@ export const designStore = CollocationModule.store({
|
|
|
}),
|
|
|
getters: {
|
|
|
menuOptions(state) {
|
|
|
- const options = [
|
|
|
- { label: "换料", value: "mat" },
|
|
|
- { label: "换单品", value: "换单品" },
|
|
|
- ];
|
|
|
+ const options = [{ label: "换料", value: "mat" }];
|
|
|
|
|
|
const sourceData: any = {
|
|
|
mat: state.designDetail.matMatchs,
|
|
|
- product: [],
|
|
|
};
|
|
|
|
|
|
state.designDetail.prodMatchs?.forEach((element: ProductMatching) => {
|
|
|
- const key = element.category || "product";
|
|
|
+ const key = element.category || "换单品";
|
|
|
if (!sourceData[key]) {
|
|
|
sourceData[key] = [];
|
|
|
options.push({ label: key, value: key });
|