wangyi
2026-01-19 7fb0a8f0ab16c149484bf043754cd10cfa94de2f
src/views/purchase/cgPoInStockBill/cgPoInStockBill.vue
@@ -15,6 +15,8 @@
            type="date"
            placeholder="开始日期"
            style="width: 150px"
            :disabled="queryParams.HInitTimeCycle != -1"
            value-format="yyyy-MM-dd"
          >
          </el-date-picker>
        </el-form-item>
@@ -24,6 +26,8 @@
            type="date"
            placeholder="结束日期"
            style="width: 150px"
            :disabled="queryParams.HInitTimeCycle != -1"
            value-format="yyyy-MM-dd"
          >
          </el-date-picker>
        </el-form-item>
@@ -253,6 +257,9 @@
        >
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-plus" size="mini" @click="onClickMethod_pushBarCodeProduce(row = rowForm, OperationType = 4)" :disabled="disabledFlag_pushBarCode">下推条码</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-edit"
@@ -457,7 +464,7 @@
                }}</span>
                <el-button
                  type="text"
                  @click="handleEdit(row, (OperationType = 3), (copyType = 1))"
                  @click.stop="handleEdit(row, (OperationType = 3), (copyType = 1))"
                  v-else-if="column.property == '单据号'"
                  >{{ row.单据号 }}</el-button
                >
@@ -488,6 +495,12 @@
          v-if="rowHideShow"
        />
      </el-dialog>
       <!-- 下推条码 -->
      <el-dialog title="下推条码" :visible.sync="openFlag_pushBarCode" width="1480px" class="xsckdBox" append-to-body :before-close="close">
        <div style="height: 70vh" v-if="openFlag_pushBarCode">
          <iframe :src="iframeUrl" frameborder="0" width="100%" height="100%"></iframe>
        </div>
      </el-dialog>
      <!-- 编辑 -->
      <el-dialog
        title="编辑收料通知单"
@@ -506,7 +519,7 @@
          @editCloseGy="editGyClose"
          v-if="editShow"
        /> -->
        <div style="height: 80vh" v-if="openEdit">
        <div style="height: 70vh" v-if="openEdit">
          <iframe :src="iframeUrl" frameborder="0" width="100%" height="100%"></iframe>
        </div>
      </el-dialog>
@@ -621,6 +634,7 @@
      HModName: "cgPoInStockBill",
      editShow: false,
      openEdit: false,
      openFlag_pushBarCode: false,              //下推条码-弹窗显示标记
      totalNameList: [],
      tableShow: true,
      openPrintList: false,
@@ -658,6 +672,7 @@
        { label: "近30天", value: 29 },
        { label: "近半年", value: 180 },
        { label: "近一年", value: 365 },
        { label: "任意间隔", value: -1 },
      ],
      hPriceTypeList: ["成本价", "结算价"],
      addBtnShow: false,
@@ -680,6 +695,7 @@
      lastSelectedRowIndex: null, // 用于记录上次点击的行索引
      lastSelectedRow: null, // 上一次选中的行
      selectedRow: null, // 当前选中的行
      disabledFlag_pushBarCode:true,        //下推条码 按钮禁用标记
      rowForm: {},
      checkedSysZb: [],
      editData: [], //生产资料子表
@@ -824,7 +840,7 @@
    defaintOperationByCompanyName() {
      var result = false;
      axios
        .get(this.baseURL + "/Xt_getInfo/getCompanyName")
        .get(this.$baseUrl + "/Xt_getInfo/getCompanyName")
        .then((res) => {
          var data1 = res.data;
          if (data1.count == 1) {
@@ -859,6 +875,9 @@
      this.getList();
    },
    riqiChange() {
      if (this.queryParams.HInitTimeCycle == -1) {
        return;
      }
      const end = new Date();
      const start = new Date();
      start.setTime(start.getTime() - 3600 * 1000 * 24 * this.queryParams.HInitTimeCycle);
@@ -920,7 +939,7 @@
        this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'";
      }
      try {
        let res = await axios.get(this.baseURL + "Cg_POInStockBill/page", {
        let res = await axios.get(this.$baseUrl + "Cg_POInStockBill/page", {
          params: {
            sWhere: this.sWhere,
            user: sessionStorage["HUserName"],
@@ -1025,7 +1044,7 @@
    DisPlay_HideColumn(HModName, user, option, dataOption) {
      this.totalNameList = [];
      axios
        .get(this.baseURL + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
        .get(this.$baseUrl + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
          params: {
            HModName: HModName,
            user: user,
@@ -1193,6 +1212,9 @@
      this.multiple = !selection.length;
      if (!this.single) {
        this.rowForm = selection[0];
        this.disabledFlag_pushBarCode = false;
      }else{
        this.disabledFlag_pushBarCode = true;
      }
    },
    //打开侧边搜索弹窗
@@ -1300,7 +1322,7 @@
    getOrgIDByUser() {
      var res = "";
      axios
        .get(this.baseURL + "/Xt_User/getOrgIDListByUser", {
        .get(this.$baseUrl + "/Xt_User/getOrgIDListByUser", {
          params: {
            HModName: this.HModName,
            user: sessionStorage["HUserName"],
@@ -1353,6 +1375,8 @@
    close() {
      this.tableShow = true;
      this.openEdit = false;
      this.openFlag_pushBarCode = false;
      this.disabledFlag_pushBarCode = true;
      this.getList();
    },
    //打开新增组件弹窗
@@ -1362,6 +1386,13 @@
      this.$nextTick(() => {
        this.openEdit = true;
        this.editShow = true;
      });
    },
    //下推生成条码
    onClickMethod_pushBarCodeProduce(row, OperationType) {
      this.iframeUrl = `/iframe/BarCode_JinLong?OperationType=${OperationType}&HSourceInterID=${row.hmainid}&HSourceEntryID=${row.hsubid}&HSourceBillType=${row.HBillType}&HSourceBillNo=${row.单据号}`;
      this.$nextTick(() => {
        this.openFlag_pushBarCode = true;
      });
    },
    //打开修改组件弹窗
@@ -1380,27 +1411,29 @@
    },
    /** 删除按钮操作 */
    handleDelete() {
      console.log("this.rowForm", this.rowForm)
      this.$modal
        .confirm("确认要删除吗,删除后不能恢复")
        .then(() => {
          if (!this.rowForm.审核人) {
            axios
              .get(this.baseURL + "Cg_POInStockBill/DeltetPOInStockBill", {
              .get(this.$baseUrl + "Cg_POInStockBill/DeltetPOInStockBill", {
                params: {
                  HInter: this.rowForm.hmainid.toString(),
                  HsupId: this.rowForm.HsupId,
                  HQty: this.rowForm.HQty,
                  HSourceInterID: this.rowForm.HSourceInterID,
                  HSourceEntryID: this.rowForm.HSourceEntryID,
                  HInterID: this.rowForm.hmainid.toString(),
                  HsupId: this.rowForm.HSupID,
                  HQty: this.rowForm['数量'],
                  HSourceInterID: this.rowForm['源单主内码'],
                  HSourceEntryID: this.rowForm['源单子内码'],
                  user: sessionStorage["HUserName"],
                },
              })
              .then((res) => {
                if (res.data.count == 1) {
                  this.handleQuery();
                  this.$modal.msgSuccess("删除成功");
                } else {
                  this.$modal.msgError("错误:" + result.code + result.Message);
                  this.$modal.msgError("错误:" + res.data.code + res.data.Message);
                }
              })
              .catch((error) => {
@@ -1417,7 +1450,7 @@
      var InterID = form.HItemID || form.HInterID || form.hmainid;
      //逻辑审核方法
      axios
        .get(this.baseURL + "/Cg_POInStockBill/AuditCg_POInStockBill", {
        .get(this.$baseUrl + "/Cg_POInStockBill/AuditCg_POInStockBill", {
          params: {
            HInterID: InterID,
            IsAudit: num,
@@ -1442,7 +1475,7 @@
      let HInterID = form.HItemID || form.HInterID || form.hmainid;
      try {
        let res = await axios.get(
          `${this.baseURL}/Cg_POInStockBill/CloseCg_POInStockBill`,
          `${this.$baseUrl}/Cg_POInStockBill/CloseCg_POInStockBill`,
          {
            params: {
              HInterID: HInterID,
@@ -1469,7 +1502,7 @@
      let HEntryID = form.HEntryID || form.hsubid;
      try {
        let res = await axios.get(
          `${this.baseURL}/Cg_POInStockBill/CloseRowCg_POInStockBill`,
          `${this.$baseUrl}/Cg_POInStockBill/CloseRowCg_POInStockBill`,
          {
            params: {
              HInterID: HInterID,
@@ -1496,7 +1529,7 @@
      let HInterID = form.HItemID || form.HInterID || form.hmainid;
      try {
        let res = await axios.get(
          `${this.baseURL}/Cg_POInStockBill/DropCg_POInStockBill`,
          `${this.$baseUrl}/Cg_POInStockBill/DropCg_POInStockBill`,
          {
            params: {
              HInterID: HInterID,
@@ -1522,7 +1555,7 @@
      var InterID = form.HItemID || form.HInterID;
      //逻辑审核方法
      axios
        .get(this.baseURL + "/Gy_Employee/StopGy_Employee", {
        .get(this.$baseUrl + "/Gy_Employee/StopGy_Employee", {
          params: {
            HInterID: InterID,
            IsStop: num,
@@ -1596,7 +1629,7 @@
      var sMainSub = sSubStr + "&和" + sessionStorage["HUserName"];
      axios({
        method: "post",
        url: this.baseURL + "/Gy_Source/Gy_Source_btnSave",
        url: this.$baseUrl + "/Gy_Source/Gy_Source_btnSave",
        data: {
          sMainSub: sMainSub,
        },