chenhaozhe
2025-12-07 dcd1bfa18415d5623df59d6df00c1918359e63ba
页面优化
16个文件已修改
196 ■■■■■ 已修改文件
src/router/index.js 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/GyCustomer/index.vue 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/KCGL/MoveStockBill/Kf_MoveStockBillList.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/KCGL/OtherOutBill/Kf_OtherOutBillEdit.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gyEmployee/gyEmployeeEdit.vue 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gyStockPlace/gyStockPlace.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gyStockPlace/gyStockPlaceEdit.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gyWarehouse/gyWarehouseEdit.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/gyMaterial/GyMaterial.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchase/postockInBack/Kf_POStockInBackBill.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/sellOut/sellOutBill.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/sellOut/sellOutBillEdit.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/sellOutBill/edit/index.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/sellOutBill/index.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/xsSeOrderBill/xsSeOrderBillEdit.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js
@@ -1261,7 +1261,7 @@
  //其他出库单列表
  {
    path: "/purchase/OtherOutBill/OtherOutBillList",
    path: "/purchase",
    component: Layout,
    hidden: true,
    redirect: "noredirect",
@@ -1280,19 +1280,6 @@
          activeMenu: "/views/KCGL/OtherOutBill",
        },
      },
    ],
  },
  //其他出库单
  {
    path: "/purchase/OtherOutBill/OtherOutBillEdit",
    component: Layout,
    hidden: true,
    redirect: "noredirect",
    meta: {
      breadcrumb: false, // 如果设置为false,则不会在breadcrumb面包屑中显示
      activeMenu: "/purchase/OtherOutBill", // 当路由设置了该属性,则会高亮相对应的侧边栏。
    },
    children: [
      {
        path: "/purchase/OtherOutBill/OtherOutBillEdit",
        component: () =>
@@ -1302,6 +1289,7 @@
      },
    ],
  },
  // 生产汇报单维护
  {
    path: "/icmo/scICMOReportBill/scICMOReportBillList",
src/views/GyCustomer/index.vue
@@ -371,24 +371,12 @@
  },
  methods: {
    fetchData() {
      axios
        .get(this.baseURL + "Web/GetUser", {
          params: {
            UserName: sessionStorage.getItem("UserName") || "admin",
            PassWord: "123456",
            HOrgName: sessionStorage.getItem("OrganizationID") || "100038"
          }
        })
        .then((response) => {
          let data = response.data.data[0];
          this.user = data.Czymc;
          this.user = sessionStorage["HUserName"];
          this.getTreeData();
          this.getList();
          this.getDefaultFilterScheme();
        })
        .catch((error) => {
          this.$modal.msgError("接口请求失败!");
        });
    },
    getTreeData() {
@@ -418,7 +406,7 @@
            user: this.user,
            page: 1,
            size: this.pageSize,
            Organization: ''
            Organization: sessionStorage["Organization"]
          },
        })
        .then((response) => {
src/views/KCGL/MoveStockBill/Kf_MoveStockBillList.vue
@@ -302,11 +302,12 @@
    };
  },
  created() {
    this.fetchData()                //加载组织下拉列表数据
    this.riqiChange()
    this.handleQuery();
  },
  mounted() { // 对于需要加载组件完成后才需要渲染的数据,需要放在mounted钩子函数中
    this.fetchData()                //加载组织下拉列表数据
  },
  methods: {
    //#region 设置表头
    renderHeader(h, { column, $index }) {// 新建一个 span
src/views/KCGL/OtherOutBill/Kf_OtherOutBillEdit.vue
@@ -596,8 +596,8 @@
            )
          }
          if (data.状态 != '创建' && this.copyType != 1) {
            this.$modal.msgError("此条数据不是创建状态,不能修改");
          if (data["审核人"]) {
            this.$modal.msgError("单据已被审核,不能修改");
            this.subDisabled = true
          }
          this.formShow = true
src/views/basic/gyEmployee/gyEmployeeEdit.vue
@@ -1102,14 +1102,9 @@
    },
    fetchData() {
      //登录用户信息
      axios
        .get(
          "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038"
        )
        .then((response) => {
          let data = response.data.data[0];
          this.zuzhiId = data.HUSEORGID; //根据登录用户获取默认的组织ID
          this.user = data.Czymc;
          this.zuzhiId = sessionStorage["OrganizationID"]; //根据登录用户获取默认的组织ID
          this.user = sessionStorage["HUserName"];
          axios
            .get(this.baseURL + "/Web/GetOrganizations", {})
            .then((response) => {
@@ -1121,10 +1116,6 @@
            .catch((error) => {
              this.$modal.msgError("接口请求失败!");
            });
        })
        .catch((error) => {
          this.$modal.msgError("接口请求失败!");
        });
    },
    AddALine() {
      this.PostDataCache.push({
src/views/basic/gyStockPlace/gyStockPlace.vue
@@ -979,7 +979,7 @@
    },
    //选中行高亮样式
    rowStyle({ row, rowIndex }) {
      if (this.ids.includes(row.HItemID)) {
      if (this.ids.includes(row.hmainid)) {
        return { background: "#ecf5ff" };
      }
    },
src/views/basic/gyStockPlace/gyStockPlaceEdit.vue
@@ -40,7 +40,7 @@
                    v-for="(item, index) in organizationList"
                    :key="index"
                    :label="item.Name"
                    :value="item.ID"
                    :value="item.ID.toString()"
                  >
                  </el-option>
                </el-select>
@@ -151,7 +151,7 @@
      CheckBillDisabled: true,
      // OperationType: this.$route.query.OperationType,//保存类型(新增1修改3)
      HInterID: null,
      baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/",
      baseURL: process.env.VUE_APP_BASE_API ,
      user: "admin",
      currentRow: [],
      lastSelectedRowIndex: null, // 用于记录上次点击的行索引
@@ -219,14 +219,8 @@
  methods: {
    fetchData() {
      //登录用户信息
      axios
        .get(
          "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038"
        )
        .then((response) => {
          let data = response.data.data[0];
          this.zuzhiId = data.HUSEORGID; //根据登录用户获取默认的组织ID
          this.user = data.Czymc;
          this.zuzhiId = sessionStorage["OrganizationID"]; //根据登录用户获取默认的组织ID
          this.user = sessionStorage["HUserName"];
          axios
            .get(this.baseURL + "/Web/GetOrganizations", {})
            .then((response) => {
@@ -238,10 +232,7 @@
            .catch((error) => {
              this.$modal.msgError("接口请求失败!");
            });
        })
        .catch((error) => {
          this.$modal.msgError("接口请求失败!");
        });
    },
    getdata() {
      this.reset();
@@ -269,7 +260,7 @@
                  HHelpCode: data.助记码,
                  HRemark: data.备注,
                  HSPGroupID: data.HSPGroupID,
                  HSPGroupName: data.所属仓位,
                  HSPGroupName: data.所属仓库,
                  HStopflag: data.禁用标记 == "Y" ? true : false,
                  HStandard: data.默认仓位 == "Y" ? true : false,
                },
src/views/basic/gyWarehouse/gyWarehouseEdit.vue
@@ -95,7 +95,7 @@
                    v-for="(item, index) in organizationList"
                    :key="index"
                    :label="item.Name"
                    :value="item.ID"
                    :value="item.ID.toString()"
                  >
                  </el-option>
                </el-select>
@@ -252,7 +252,7 @@
      CheckBillDisabled: true,
      // OperationType: this.$route.query.OperationType,//保存类型(新增1修改3)
      HInterID: null,
      baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/",
      baseURL: process.env.VUE_APP_BASE_API,
      user: "admin",
      currentRow: [],
      lastSelectedRowIndex: null, // 用于记录上次点击的行索引
@@ -293,14 +293,8 @@
  methods: {
    fetchData() {
      //登录用户信息
      axios
        .get(
          "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038"
        )
        .then((response) => {
          let data = response.data.data[0];
          this.zuzhiId = data.HUSEORGID; //根据登录用户获取默认的组织ID
          this.user = data.Czymc;
          this.zuzhiId = sessionStorage["OrganizationID"]; //根据登录用户获取默认的组织ID
          this.user = sessionStorage["HUserName"];
          axios
            .get(this.baseURL + "/Web/GetOrganizations", {})
            .then((response) => {
@@ -312,10 +306,6 @@
            .catch((error) => {
              this.$modal.msgError("接口请求失败!");
            });
        })
        .catch((error) => {
          this.$modal.msgError("接口请求失败!");
        });
    },
    getdata() {
      this.reset();
src/views/gyMaterial/GyMaterial.vue
@@ -692,7 +692,7 @@
      uploadData: [],
      uploadTableLoading: false,
      
      baseURL: process.env.VUE_APP_BASE_URL || "http://47.96.97.237/API/",
      baseURL: process.env.VUE_APP_BASE_API,
      user: "admin",
    };
  },
src/views/purchase/postockInBack/Kf_POStockInBackBill.vue
@@ -423,7 +423,9 @@
    methods: {
        getHSourceBillType() {
            axios.get(this.baseURL + "/Web/GetHSourceBillType", {
                "HName": '采购退料单', "Num": 2
                params: {
                    "HName": '采购退料单', "Num": 2
                }
            }).then(response => {
                console.log(response)
                var HSourceBillTypes = "";
src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
@@ -226,7 +226,7 @@
                </template>
            </el-table>
            <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize"
                :pageSizes="pageSizes" @pagination="getList" />
                :pageSizes="pageSizes" @pagination="handleQuery" />
            <el-dialog title="隐藏列设置" :visible.sync="openRowHide" width="816px" append-to-body>
                <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" />
            </el-dialog>
@@ -364,7 +364,7 @@
    created() {
        // this.fetchData()
        this.riqiChange();
        this.getList();
        this.handleQuery();
    },
    methods: {
@@ -407,7 +407,7 @@
            this.rowHideShow = false;
            this.tableShow = true;
            this.openRowHide = val;
            this.getList();
            this.handleQuery();
        },
        riqiChange() {
            const end = new Date();
@@ -427,10 +427,7 @@
            this.pageSize = 50;
            this.tableShow = false;
            this.loading = true;
            if (this.sTime) {
                this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.sTime + "'";
                this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'";
            }
            if (this.pageSize == 0) {
                this.pageSize = 50;
            }
@@ -784,7 +781,6 @@
            if (this.sTime) {
                this.sTime = moment(this.sTime).format("YYYY-MM-DD");
                this.eTime = moment(this.eTime).format("YYYY-MM-DD");
                console.log(this.sTime, this.eTime);
                this.sWhere +=
                    " and CONVERT(varchar(100),日期, 23) >= '" +
                    this.sTime +
@@ -850,7 +846,7 @@
            };
            this.riqiChange();
            this.resetForm("queryForm");
            this.getList();
            this.handleQuery();
        },
        //退出
@@ -859,7 +855,7 @@
            this.tableShow = true;
            this.openEdit = false;
            this.editShow = false;
            this.getList();
            this.handleQuery();
        },
        //打开新增组件弹窗
        handleAddEdit() {
@@ -878,7 +874,7 @@
            this.open = val;
            this.editShow = false;
            this.openEdit = val;
            this.getList();
            this.handleQuery();
        },
        /** 删除按钮操作 */
        handleDelete() {
@@ -890,7 +886,7 @@
                    },
                }).then((response) => {
                    if (response.data.count == 1) {
                        this.getList();
                        this.handleQuery();
                        this.$modal.msgSuccess("删除成功");
                    } else {
                        this.$modal.msgError("错误:" + result.code + result.Message);
src/views/sell/sellOut/sellOutBill.vue
@@ -613,10 +613,11 @@
      this.pageSize = 50;
      this.tableShow = false;
      this.loading = true;
      if (this.sTime) {
        this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.sTime + "'";
        this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'";
      }
      // 重复叠加会导致 uri字符串累加,多次搜索可能会导致get请求超出最大程度导致请求失败
      // if (this.sTime) {
      //   this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.sTime + "'";
      //   this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'";
      // }
      if (this.pageSize == 0) {
        this.pageSize = 50;
      }
src/views/sell/sellOut/sellOutBillEdit.vue
@@ -852,11 +852,16 @@
      axios.get(this.baseURL + '/Xs_CusRatingChangeBill/getCustomerBalance', {
        params: { "HCusID": HCusID, 'CurUserName': sessionStorage["HUserName"] }
      }).then(response => {
        if(response.data.count == 0) {
          this.$modal.msgWarning(response.data.Message);
          return
        }
        var data = response.data.data[0];
        this.form.HCusBalance = data.HCusBalance
        this.form.HCreditRating_Now = data.HCreditRating_Now
        this.form.HAvailableBalance = data.HAvailableBalance
      }).catch(error => {
        console.error(error)
        this.$modal.msgError("接口请求失败!");
      });
    },
@@ -1022,6 +1027,10 @@
          HCusID: HCusID
        }
      }).then(response => {
        if(response.data.count == 0) {
          this.$modal.msgWarning(response.data.Message);
          return
        }
        this.form.联系人 = response.data.data[0].HLinkMan
        this.form.联系电话 = response.data.data[0].HLinkPhone
        // this.form = response.data.data[0]
src/views/sell/sellOutBill/edit/index.vue
@@ -834,7 +834,13 @@
      axios.get(this.baseURL + '/Xs_CusRatingChangeBill/getCustomerBalance', {
        params: { "HCusID": HCusID, 'CurUserName': sessionStorage["HUserName"] }
      }).then(response => {
        var data = response.data.data[0];
        let count = response.data.count
        if(count == 0){
           this.$modal.msgWarning(response.data.Message)
           return
        }
        let data = response.data.data[0];
        this.form.HCusBalance = data.HCusBalance
        this.form.HCreditRating_Now = data.HCreditRating_Now
        this.form.HAvailableBalance = data.HAvailableBalance
@@ -1005,12 +1011,18 @@
          HCusID: HCusID
        }
      }).then(response => {
        console.log(response)
        if(response.data.count == 0){
          this.$modal.msgError(response.data.Message);
          return
        }
        this.form.联系人 = response.data.data[0].HLinkMan
        this.form.联系电话 = response.data.data[0].HLinkPhone
        // this.form = response.data.data[0]
      }).catch(error => {
        this.$modal.msgError("接口请求失败!");
        this.$modal.msgError("接口请求失败111!");
      });
    },
    /** 销售出库子表明细序号 */
src/views/sell/sellOutBill/index.vue
@@ -167,7 +167,7 @@
        </template>
      </el-table>
      <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes"
        @pagination="getList" />
        @pagination="handleQuery" />
      <el-dialog title="隐藏列设置" :visible.sync="openRowHide" width="816px" append-to-body>
        <RowSettings :colName="btResList" HModName="Kf_SellOutBillList" @rowEditClose="rowSetClose"
          v-if="rowHideShow" />
@@ -294,7 +294,7 @@
  created() {
    // this.fetchData()
    this.riqiChange()
    this.getList();
    this.handleQuery();
  },
  methods: {
@@ -338,7 +338,7 @@
      this.rowHideShow = false
      this.tableShow = true
      this.openRowHide = val
      this.getList()
      this.handleQuery()
    },
    riqiChange() {
      const end = new Date();
@@ -358,10 +358,7 @@
    getList() {
      this.tableShow = false
      this.loading = true
      if (this.dateRange.length > 0) {
        this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.dateRange[0] + "'"
        this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.dateRange[1] + "'"
      }
      if (this.pageSize == 0) {
        this.pageSize = 50
      }
@@ -688,6 +685,11 @@
      if (this.queryParams.HMaterName) {
        this.sWhere += " and 物料名称 like '%" + this.queryParams.HMaterName + "%'";
      }
      if (this.dateRange.length > 0) {
        this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.dateRange[0] + "'"
        this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.dateRange[1] + "'"
      }
      this.getList()
    },
    /** 重置按钮操作 */
@@ -713,7 +715,7 @@
      }
      this.riqiChange()
      this.resetForm("queryForm")
      this.getList()
      this.handleQuery()
    },
    //退出
@@ -722,7 +724,7 @@
      this.tableShow = true
      this.openEdit = false
      this.editShow= false
      this.getList()
      this.handleQuery()
    },
    //打开新增组件弹窗
    handleAddEdit() {
@@ -741,7 +743,7 @@
      this.open = val
      this.editShow = false
      this.openEdit = val
      this.getList()
      this.handleQuery()
    },
    /** 删除按钮操作 */
    handleDelete() {
@@ -751,7 +753,7 @@
            params: { 'HInterID': this.rowForm.hmainid.toString(), 'user': sessionStorage["HUserName"] }
          }).then(response => {
            if (response.data.count == 1) {
              this.getList()
              this.handleQuery()
              this.$modal.msgSuccess("删除成功")
            } else {
              this.$modal.msgError("错误:" + result.code + result.Message);
@@ -774,7 +776,7 @@
        let result = response.data
        if (result.code == 1) {
          this.$modal.msgSuccess('操作成功');
          this.getList();
          this.handleQuery();
        }
        else {
          this.$modal.msgError("错误:" + result.code + result.Message,);
src/views/sell/xsSeOrderBill/xsSeOrderBillEdit.vue
@@ -1191,11 +1191,12 @@
          },
        })
        .then((response) => {
          if (response.data.count == 1) {
            this.form.联系人 = response.data.data[0].HLinkMan;
            this.form.联系电话 = response.data.data[0].HLinkPhone;
          if (response.data.count == 0) {
            this.$modal.msgWarning(response.data.Message);
            return
          }
          this.$modal.msg(`警告: ${response.data.Message}`);
          this.form.联系人 = response.data.data[0].HLinkMan;
          this.form.联系电话 = response.data.data[0].HLinkPhone;
          // this.form = response.data.data[0]
        })
        .catch((error) => {