yyg1378265336
2025-02-26 61900b1f71f4c9048cbc48ed6f4b41ccfa1a6ce4
src/store/modules/prodRoute.ts
@@ -18,6 +18,7 @@
  curConfig: any;
  curSelectedNodes: any[];
  ItemCode: string;
  Wo: string;
  CustCode: string;
  name: string;
  curDtl: any;
@@ -34,7 +35,8 @@
    curDtl: {},
    changeToCPPage: false,
    name: '',
    CustCode: ''
    CustCode: '',
    Wo: ''
  }),
  getters: {
    getCurProdRotTree(state): PageRotTree[] {
@@ -51,6 +53,9 @@
    },
    getCustCode(state): string {
      return state.CustCode;
    },
    getWo(state): string {
      return state.Wo;
    },
    getcurDtl(state): any {
      return state.curDtl;
@@ -112,6 +117,9 @@
    setCustCode(val: string) {
      this.CustCode = val;
    },
    setWo(val: string) {
      this.Wo = val;
    },
    setcurDtl(val: any) {
      this.curDtl = val;
    },
@@ -154,7 +162,7 @@
      });
      if (action.IsSuccessed) {
        const rotTree = this.curProdRotTree.filter((q) => q.name == this.getname);
        rotTree[0].treeInfo.children[0].children.map((item) => {
        rotTree[0].treeInfo[0].children[0].children.map((item) => {
          if (item.code == param.others['code']) {
            item.isDefault = true;
          } else {
@@ -170,7 +178,8 @@
     * @return {*}
     */
    getParent(tid: string): MesRotTree {
      return findParent(this.getCurProdRotTree, tid) as unknown as MesRotTree;
      const rotTree = this.getCurProdRotTree.filter((q) => q.name == this.getname);
      return findParent(rotTree[0].treeInfo, tid) as unknown as MesRotTree;
    },
  },
});