wangyi
2026-01-19 7fb0a8f0ab16c149484bf043754cd10cfa94de2f
src/views/warehouse/transfer/Kf_MoveStockRequestBillEdit.vue
@@ -138,7 +138,7 @@
          <el-row>
            <el-col :span="6">
              <el-form-item label="调入组织" prop="HSTOCKINORGID" >
                <el-select v-model="form.HSTOCKINORGID" placeholder="请选择调入组织" :disabled="OperationType == 3">
                <el-select v-model="form.HSTOCKINORGID" placeholder="请选择调入组织" :disabled="OperationType == 3" @change="StockInOrgChangeHandler">
                  <el-option
                    v-for="(item, index) in organizationList"
                    :key="index"
@@ -151,7 +151,7 @@
            </el-col>
            <el-col :span="6">
              <el-form-item label="调出组织" prop="HSTOCKOUTORGID">
                <el-select v-model="form.HSTOCKOUTORGID" placeholder="请选择调入组织" :disabled="OperationType == 3">
                <el-select v-model="form.HSTOCKOUTORGID" placeholder="请选择调出组织" :disabled="OperationType == 3" @change="StockOutOrgChangeHandler">
                  <el-option
                    v-for="(item, index) in organizationList"
                    :key="index"
@@ -564,7 +564,7 @@
      deptform: {}, //弹窗选中数据
      openData: false, //数据弹窗
      dialogTitle: "",
      organizationList: [], //组织列表
      organizationList: JSON.parse(sessionStorage.getItem('organizationList')), //组织列表
      subDisabled: false, //编辑页面保存按钮是否禁用(true禁用,false可用)
      // OperationType: this.$route.query.OperationType,//保存类型(新增1修改2)
      HInterID: 0,
@@ -628,21 +628,19 @@
    };
  },
  created() {
    this.fetchData();
    this.getdata();
    this.getdata()
  },
  methods: {
    fetchData() {
      axios
        .get(this.baseURL + "/Web/GetOrganizations", {})
        .then((response) => {
          if (response.data.count == 1) {
            this.organizationList = response.data.data; //组织列表
          }
        })
        .catch((error) => {
          this.$modal.msgError("接口请求失败!");
        });
    StockInOrgChangeHandler(e) {
      for(let i=0;i<this.editData.length;i++) {
        this.editData[i].HSTOCKORGINID = e
      }
    },
    StockOutOrgChangeHandler(e) {
      for(let i=0;i<this.editData.length;i++) {
        this.editData[i].HOtherOrgID = e
        this.editData[i].HSTOCKORGID = e
      }
    },
    getdata() {
      this.formShow = false;
@@ -738,7 +736,7 @@
          this.gySupplierShow = false;
          this.openData = false;
        } else if (num == "gyProperty") {
          this.editData[this.zbIndex].HPropertyID = deptRow.HItemID;
          this.editData[this.zbIndex].HAuxPropID = deptRow.HItemID;
          this.editData[this.zbIndex]["辅助属性"] = deptRow["辅助属性名称"];
          this.propertyShow = false;
@@ -842,7 +840,7 @@
      console.log(this.form.HDeptID && this.form.HDeptID != 0);
      if (this.form.HDeptID && this.form.HDeptID != 0) {
        axios
          .get(this.baseURL + "/Gy_Department/list", {
          .get(this.$baseUrl + "/Gy_Department/list", {
            params: {
              sWhere: "and HItemID = '" + this.form.HDeptID + "'",
              user: sessionStorage["HUserName"],
@@ -880,7 +878,7 @@
    },
    getHBillNo() {
      axios
        .get(this.baseURL + "/Web/GetMAXNum", {
        .get(this.$baseUrl + "/Web/GetMAXNum", {
          params: {
            HBillType: "1243",
          },
@@ -902,7 +900,7 @@
      console.log(this.linterid);
      //主表
      axios
        .get(this.baseURL + "/Kf_MoveStockRequestBill/cx", {
        .get(this.$baseUrl + "/Kf_MoveStockRequestBill/cx", {
          params: { HInterID: rowHmainid },
        })
        .then((response) => {
@@ -977,7 +975,8 @@
                HEXTAUXUNITID: data[i].HEXTAUXUNITID,
                辅单位: data[i].辅单位,
                HSTOCKORGID: data[i]["HSTOCKORGID"],
                HPropertyID: data[i]["HPropertyID"],
                HOtherOrgID: data[i]["HSTOCKORGID"],
                HAuxPropID: data[i]["HAuxPropID"],
                辅助属性: data[i]["辅助属性"],
              });
            }
@@ -1034,7 +1033,9 @@
          辅单位: "",
          HRemark: "",
          HSTOCKORGID: sessionStorage["OrganizationID"],
          HPropertyID: 0,
          HOtherOrgID: sessionStorage["OrganizationID"],
          HSTOCKORGINID: this.form.HSTOCKINORGID,
          HAuxPropID: 0,
          辅助属性: "",
        };
        if (index) {
@@ -1150,7 +1151,7 @@
              axios({
                method: "post",
                url:
                  this.baseURL + "/Kf_MoveStockRequestBill/Kf_MoveStockRequestBillEdit",
                  this.$baseUrl + "/Kf_MoveStockRequestBill/Kf_MoveStockRequestBillEdit",
                data: {
                  sMainSub: sMainSub,
                },
@@ -1179,6 +1180,7 @@
      this.gyEmployeeShow = false;
      this.gySupplierShow = false;
      this.materialShow = false;
      this.propertyShow = false;
    },
    //  打开数据列表弹窗
    openDataDialog(num, row) {