chenhaozhe
2025-11-14 6202c03baab747982c8e245fef008398e472814f
修复 编辑单据 点击 右上角 ×号无法删除数据的问题
6个文件已修改
62 ■■■■ 已修改文件
src/views/basic/gyEmployee/gyEmployee.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gyEmployee/gyEmployeeEdit.vue 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gyStockPlace/gyStockPlace.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/XsSeOutStockBackBillList.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/XsSeOutStockBill.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sell/xsSeOrderBill/xsSeOrderBill.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gyEmployee/gyEmployee.vue
@@ -1210,6 +1210,7 @@
    //退出
    close() {
      this.editGyClose();
      this.tableShow = true;
      this.openEdit = false;
      this.getList();
src/views/basic/gyEmployee/gyEmployeeEdit.vue
@@ -869,6 +869,17 @@
    copyType: { type: Number },
    HOrgID: { type: Number },
  },
  computed: {
    CheckBillDisabled: {
      get() {
        if (!this.form["HCheckEmp"]) {
          return false;
        }
        return true;
      },
    },
  },
  data() {
    return {
      formShow: false,
@@ -901,7 +912,6 @@
      zuzhiId: 0,
      organizationList: [], //组织列表
      subDisabled: false, //编辑页面保存按钮是否禁用(true禁用,false可用)
      CheckBillDisabled: true,
      // OperationType: this.$route.query.OperationType,//保存类型(新增1修改3)
      HInterID: null,
      baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/",
@@ -1102,26 +1112,15 @@
      console.log(selection);
    },
    fetchData() {
      //登录用户信息
      this.zuzhiId = sessionStorage["OrganizationID"]; //根据登录用户获取默认的组织ID
      this.user = sessionStorage["HUserName"];
      axios
        .get(
          "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038"
        )
        .get(this.baseURL + "/Web/GetOrganizations", {})
        .then((response) => {
          let data = response.data.data[0];
          this.zuzhiId = data.HUSEORGID; //根据登录用户获取默认的组织ID
          this.user = data.Czymc;
          axios
            .get(this.baseURL + "/Web/GetOrganizations", {})
            .then((response) => {
              if (response.data.count == 1) {
                this.organizationList = response.data.data; //组织列表
                this.getdata();
              }
            })
            .catch((error) => {
              this.$modal.msgError("接口请求失败!");
            });
          if (response.data.count == 1) {
            this.organizationList = response.data.data; //组织列表
            this.getdata();
          }
        })
        .catch((error) => {
          this.$modal.msgError("接口请求失败!");
@@ -1281,7 +1280,10 @@
                HOverPayRate: data.超额比率,
                HStopflag: data.禁用标记,
                HRemark: data.备注,
                HCheckEmp: data["审核人"],
              });
              console.log(this.form.HCheckEmp);
              if (this.OperationType == 3) {
                // 编辑时获取文件列表
@@ -1518,7 +1520,6 @@
      this.formShow = false;
      this.subDisabled = false;
      this.formLoading = true;
      this.CheckBillDisabled = true;
      this.activeName = "first";
      this.resetForm("form");
    },
@@ -1553,11 +1554,9 @@
                  console.log(response);
                  if (response.data.count == 1) {
                    this.subDisabled = true; //设置保存按钮不可用
                    this.CheckBillDisabled = false;
                    this.$modal.msgSuccess(response.data.Message);
                  } else {
                    this.$modal.msgError(response.data.Message);
                    this.CheckBillDisabled = false;
                    this.subDisabled = false; //设置保存按钮可用
                  }
                })
@@ -1601,14 +1600,15 @@
      var InterID = form.HItemID || form.HInterID;
      //逻辑审核方法
      axios
        .get(this.baseURL + "/Gy_Source/AuditGy_Source", {
        .get(this.baseURL + "/Gy_Employee/AuditGy_Employee", {
          params: { HInterID: InterID, IsAudit: num, CurUserName: this.user },
        })
        .then((response) => {
          let result = response.data;
          if (result.code == 1) {
            this.$modal.msgSuccess("操作成功");
            this.CheckBillDisabled = true;
            // this.CheckBillDisabled = true;
            this.getdata();
          } else {
            this.$modal.msgError("错误:" + result.code + result.Message);
          }
@@ -1628,7 +1628,7 @@
      this.classTimePrjShow = false;
      this.dutyShow = false;
      this.groupShow = false;
      this.dormShow = false
      this.dormShow = false;
    },
    //  打开数据列表弹窗
    openDataDialog(num, row) {
src/views/basic/gyStockPlace/gyStockPlace.vue
@@ -1175,6 +1175,7 @@
    //退出
    close() {
      this.editGyClose();
      this.tableShow = true;
      this.openEdit = false;
      this.getList();
src/views/sell/XsSeOutStockBackBillList.vue
@@ -499,7 +499,7 @@
      </el-dialog>
      <!-- 编辑 -->
      <el-dialog
        title="编辑职员"
        title="编辑退货通知单"
        :visible.sync="openEdit"
        width="1480px"
        append-to-body
@@ -927,7 +927,7 @@
      }
      try {
        let res = await axios.get(this.baseURL + "/Xs_SeOutStockBill/list_byPage", {
        let res = await axios.get(this.baseURL + "/Xs_SeOutStockBackBill/list_byPage", {
          params: {
            sWhere: this.sWhere,
            user: this.user,
src/views/sell/XsSeOutStockBill.vue
@@ -506,7 +506,7 @@
      </el-dialog>
      <!-- 编辑 -->
      <el-dialog
        title="编辑职员"
        title="编辑发货通知单"
        :visible.sync="openEdit"
        width="1480px"
        append-to-body
src/views/sell/xsSeOrderBill/xsSeOrderBill.vue
@@ -497,7 +497,7 @@
      </el-dialog>
      <!-- 编辑 -->
      <el-dialog
        title="编辑职员"
        title="编辑销售订单"
        :visible.sync="openEdit"
        width="1480px"
        append-to-body
@@ -611,7 +611,7 @@
import dayjs from "dayjs";
export default {
  name: "GySource",
  name: "xsSeOrderBill",
  components: { RowSettings },
  props: {
    openPage: { type: String },