chenhaozhe
2026-01-16 7d4672fe3e0ec5e1da7e10f905a880b41bc9fb30
src/views/scMould/basicModeling/Gy_MouldFile.vue
@@ -627,6 +627,7 @@
      form: {},
      // 表单校验
      rules: {
        HUnitName:[{required: true, message: "单位不能为空", trigger: "blur" }],
        // HSupName: [
        //   { required: true, message: "客户不能为空", trigger: "blur" }
        // ],
@@ -654,7 +655,7 @@
        var dataArray = [];
        for (var i = 0; i < data.length; i++) {
          // this.getPushSourceBillInit(data[i].hmainid, data[i].hsubid);
          axios.get(this.baseURL + '/Xs_SeOrderBill/loadXs_SeOrderBill_Push', {
          axios.get(this.$baseUrl + '/Xs_SeOrderBill/loadXs_SeOrderBill_Push', {
            params: {
              "HInterID": data[i].hmainid
              , "HSubID": data[i].hsubid
@@ -773,7 +774,7 @@
    },
    //根据主内码与子内码获取源单销售订单数据
    getPushSourceBillInit(HSourceInterID, HSourceEntryID) {
      axios.get(this.baseURL + '/Xs_SeOrderBill/loadXs_SeOrderBill_Push', {
      axios.get(this.$baseUrl + '/Xs_SeOrderBill/loadXs_SeOrderBill_Push', {
        params: {
          "HInterID": HSourceInterID
          , "HSubID": HSourceEntryID
@@ -844,7 +845,6 @@
          this.gySupplierShow = false
          this.openData = false
        } else if (num == 7) {
          console.log(deptRow)
          this.form.HCusName = deptRow.客户名称
          this.form.HCusID = deptRow.HItemID
          this.gyCustomerShow = false
@@ -860,6 +860,8 @@
          this.gyStockPlaceShow = false
          this.openData = false
        } else if (num == 11){
           this.form.HUnitName = deptRow.计量单位名称;
            this.form.HUnitID = deptRow.HItemID;
          this.gyUnitShow= false
          this.openData = false
@@ -908,7 +910,7 @@
    },
    //根据用户获取对应职员、部门、销售主管
    getCzyglByUser() {
      axios.get(this.baseURL + '/Xs_SeOrderBill/getCzyglByUser', {
      axios.get(this.$baseUrl + '/Xs_SeOrderBill/getCzyglByUser', {
        params: { "CurUserName": sessionStorage["HUserName"] }
      }).then(response => {
        let dataForm = response.data.data[0]
@@ -1026,7 +1028,7 @@
      })
    },
    getHBillNo() {
      axios.get(this.baseURL + "/Web/GetMAXNum", {
      axios.get(this.$baseUrl + "/Web/GetMAXNum", {
        params: {
          HBillType: '3899'
        }
@@ -1040,7 +1042,7 @@
    },
    //获取对应的条码明细
    getBarCodeNoteBySellOutBill(rowHmainid) {
      axios.get(this.baseURL + '/Kf_SellOutBill/BarCodeNote', {
      axios.get(this.$baseUrl + '/Kf_SellOutBill/BarCodeNote', {
        params: { "HInterID": rowHmainid }
      }).then(response => {
        if (response.data.count == 1) {
@@ -1055,7 +1057,7 @@
    },
    //#region 根据客户获取客户余额
    getCustomerBalance(HCusID) {
      axios.get(this.baseURL + '/Xs_CusRatingChangeBill/getCustomerBalance', {
      axios.get(this.$baseUrl + '/Xs_CusRatingChangeBill/getCustomerBalance', {
        params: { "HCusID": HCusID, 'CurUserName': sessionStorage["HUserName"] }
      }).then(response => {
        var data = response.data.data[0];
@@ -1070,7 +1072,7 @@
    handleUpdate() {
      this.reset()
      let rowHmainid = this.linterid
      axios.get(this.baseURL + "/Gy_Mould_Edit/xg", {
      axios.get(this.$baseUrl + "/Gy_Mould_Edit/xg", {
        params: { 'HInterID': rowHmainid }
      }).then(response => {
        console.log(response.data)
@@ -1150,8 +1152,8 @@
          // this.form.HMouldWidth = data.HMouldWidth
          // this.form.HMouldHeight = data.HMouldHeight
          // this.form.HMouldFoldHeight = data.HMouldFoldHeight
          this.form.HTransPackFlag = data.发货容器标记
          this.form.HSendPackFlag = data.周转容器标记
          this.form.HTransPackFlag = data.周转容器标记
          this.form.HSendPackFlag = data.发货容器标记
          this.form.HMouldFoldHeight = data.折叠高度
            this.form.HMouldLength = data.长
          this.form.HMouldWidth = data.宽
@@ -1177,7 +1179,7 @@
      }).catch(error => {
        this.$modal.msgError("接口请求失败!");
      });
      axios.get(this.baseURL + "/Gy_MouldFileMain/Gy_MouldFileSubDetai", {
      axios.get(this.$baseUrl + "/Gy_MouldFileMain/Gy_MouldFileSubDetai", {
        params: { 'HInterID': rowHmainid }
      }).then(response => {
        if (response.data.code == 1) {
@@ -1221,7 +1223,7 @@
    },
    //#region 计算-下次保养/校正日期
    calculateHNextMainDate(HInterID, HCycleUnit, HCheckCycle) {
      axios.get(this.baseURL + "/Gy_Mould_Edit/calculateHNextMainDate", {
      axios.get(this.$baseUrl + "/Gy_Mould_Edit/calculateHNextMainDate", {
        params: { 'HInterID': HInterID }
      }).then(response => {
        let d = response.data
@@ -1255,7 +1257,7 @@
    },
    //根据客户带出联系人、联系电话
    getCustomerByCusID(HCusID) {
      axios.get(this.baseURL + "/Xs_SeOrderBill/getCustomerByCusID", {
      axios.get(this.$baseUrl + "/Xs_SeOrderBill/getCustomerByCusID", {
        params: {
          HCusID: HCusID
        }
@@ -1431,7 +1433,7 @@
      var sql = `exec h_p_Xt_GetMaxBillNo_SubType '1205','${this.form.HDate}',0,0,0,'${Type}','${this.form.HDeptID}'`;
      axios({
        method: 'get',
        url: this.baseURL + "/CommonModel/searchMethod",
        url: this.$baseUrl + "/CommonModel/searchMethod",
        params: { "sql": sql, "user": sessionStorage["HUserName"], "ModRightNameCheck": "" },
      }).then(response => {
        if (response.data.count == 1) {
@@ -1478,7 +1480,7 @@
          console.log(oMain)
          axios({
            method: 'post',
            url: this.baseURL + url,
            url: this.$baseUrl + url,
            data: {
              'oMain': oMain
            },