chenhaozhe
2025-11-19 154c267a7518210e6bbc2cc54104d0e41a0b9333
被覆盖内容恢复
4个文件已修改
88 ■■■■ 已修改文件
src/router/index.js 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchase/cgPoOrderBill/cgPoOrderBill.vue 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/XsSeOutStockBackBillList.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/XsSeOutStockBillEdit.vue 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js
@@ -127,7 +127,7 @@
      },
    ],
  },
   //销售退货单
  //销售退货单
  {
    path: "/sell/StockBillMainList/KfICStockBillMainList",
    component: Layout,
@@ -141,10 +141,10 @@
    children: [
      {
        path: "/sell/StockBillMainList/KfICStockBillMainList",
        component: () =>import ("@/views/sell/Kf_ICStockBillMainList/Kf_ICStockBillMainList.vue"),
        component: () => import("@/views/sell/Kf_ICStockBillMainList/Kf_ICStockBillMainList.vue"),
        name: "KfICStockBillMainList",
        meta: { title: "销售退货单", activeMenu: "sell/StockBillMainList" },
      },
      },
    ],
  },
  //销售退货单编辑页面
@@ -160,10 +160,10 @@
    children: [
      {
        path: "/sell/StockBillMainList/KfICStockBillMainListEdit",
        component: () =>import ("@/views/sell/Kf_ICStockBillMainList/Kf_ICStockBillMainListEdit.vue"),
        component: () => import("@/views/sell/Kf_ICStockBillMainList/Kf_ICStockBillMainListEdit.vue"),
        name: "KfICStockBillMainListEdit",
        meta: { title: "销售退货单编辑", activeMenu: "sell/StockBillMainList" },
      },
      },
    ],
  },
  //用户列表
@@ -198,7 +198,7 @@
    children: [
      {
        path: "/purchase/POStockInBill/POStockInBillList",
        name: "POStockInBillList",
        meta: { title: "采购入库单", activeMenu: "purchase/POStockInBill" },
      },
@@ -222,8 +222,8 @@
        meta: {
          title: "采购入库单编辑",
          activeMenu: "/purchase/POStockInBill",
        },
      },
    ],
  },
  //生产资源
@@ -516,14 +516,13 @@
    hidden: true, // 在侧边栏不显示
    children: [
      {
        path: "XsSeOutStockBackBillEdit",
        component: () => import("@/views/sell/XsSeOutStockBackBillEdit"), // 退货通知单
        name: "IFrameXsSeOutStockBackBillEdit",
        meta: { title: "退货通知单", noCache: true, noLoading: true },
      },
      {
        path: "XsSeOutStockBillEdit",
        component: () => import("@/views/sell/XsSeOutStockBillEdit"), // 发货通知单
        name: "IframeXsSeOutStockBillEdit",
@@ -534,7 +533,24 @@
        component: () => import('@/views/sell/xsSeOrderBill/xsSeOrderBillEdit'), // 销售订单
        name: 'IframeXsSeOrderBillEdit',
        meta: { title: '销售订单', noCache: true, noLoading: true }
      },
      {
        path: 'ScICMOBillEdit',
        component: () => import('@/views/ICMO/ScICMOBillEdit'), // 生产订单
        name: 'IframeScICMOBillEdit',
        meta: { title: '生产订单', noCache: true, noLoading: true }
      },
       {
        path: 'CgPoOrderBillEdit',
        component: () => import('@/views/purchase/cgPoOrderBill/cgPoOrderBillEdit'), // 采购订单
        name: 'IframeCgPoOrderBillEdit',
        meta: { title: '采购订单', noCache: true, noLoading: true }
      },
       {
        path: 'CgPoInStockBillEdit',
        component: () => import('@/views/purchase/cgPoInStockBill/cgPoInStockBillEdit'), // 收料通知单
        name: 'IframeCgPoInStockBillEdit',
        meta: { title: '收料通知单', noCache: true, noLoading: true }
      },
      {
        path: 'GyWarehouse',
@@ -613,7 +629,7 @@
        meta: {
          title: "分布式调入单列表",
          activeMenu: "/purchase/POStockInBill",
      },
        },
      },
    ],
  },
@@ -638,8 +654,8 @@
        meta: {
          title: "分布式调出单列表",
          activeMenu: "/purchase/POStockInBill",
        },
      },
    ],
  },
  //器具领用出库单维护
src/views/purchase/cgPoOrderBill/cgPoOrderBill.vue
@@ -775,21 +775,18 @@
  },
  mounted() {
    this.queryParams.HOrgID = sessionStorage["Organization"];
    window.editGyClose = () => {
      this.editGyClose(); // 组件内的方法绑定到windows
    };
  },
  created() {
    this.riqiChange();
    this.getList();
  },
  beforeDestory() {
    delete window.editGyClose;
  },
  methods: {
    handleTabActive() {
      window.editGyClose = () => {
        this.editGyClose(); // 组件内的方法绑定到windows
      };
    },
    handleTabInactive() {
      // 组件销毁时清理全局方法,避免内存泄漏
      delete window.editGyClose;
    },
    onDateScanOptionChangerHandler(e) {
      this.queryParams.timeSpan = e;
      if (e == -1) {
src/views/sell/XsSeOutStockBackBillList.vue
@@ -1202,7 +1202,7 @@
    },
    //选中行高亮样式
    rowStyle({ row, rowIndex }) {
      if (this.ids.includes(row.HItemID)) {
      if (this.ids.includes(row.hmainid)) {
        return { background: "#ecf5ff" };
      }
    },
@@ -1214,7 +1214,7 @@
    // 多选框选中数据
    handleSelectionChange(selection) {
      // this.rowForm = {}
      this.ids = selection.map((item) => item.HItemID);
      this.ids = selection.map((item) => item.hmainid);
      this.single = selection.length != 1;
      this.multiple = !selection.length;
      if (!this.single) {
src/views/sell/XsSeOutStockBillEdit.vue
@@ -144,8 +144,8 @@
                  <el-option
                    v-for="(item, index) in HSourceBillTypeList"
                    :key="index"
                    :label="item"
                    :value="item"
                    :label="item.label"
                    :value="item.value"
                  >
                  </el-option>
                </el-select>
@@ -519,6 +519,7 @@
  created() {
    this.fetchData();
    this.getdata();
    this.getHSourceBillType();
  },
  beforeDestroy() {
    if (window.parent) {
@@ -528,6 +529,32 @@
    }
  },
  methods: {
    getHSourceBillType() {
      axios
        .get(`${this.baseURL}/Web/GetHSourceBillType`, {
          params: {
            HName: "发货通知单",
            Num: 2,
          },
        })
        .then((res) => {
          let { data, count, Message } = res.data;
          if (count == 1) {
            // 获取成功
            this.HSourceBillTypeList = Array.from(data).map((e) => {
              return {
                label: e.HSourceBillTypeName,
                value: e.HSourceBillType,
              };
            });
          } else {
            this.$modal.msgError(`获取源单类型失败: ${Message}`);
          }
        })
        .catch((err) => {
          this.$modal.msgError(`获取源单类型失败: ${err}`);
        });
    },
    fetchData() {
      axios
        .get(this.baseURL + "/Web/GetOrganizations", {})