wangyi
2026-04-01 7ba3f1d7b7e89d4a14f299180937a72012c3d1f5
src/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue
@@ -22,7 +22,7 @@
      <el-form-item label-width="78px">
        <el-button type="primary" icon="el-icon-search" @click="handleQuery"> 搜 索</el-button>
        <el-button icon="el-icon-circle-close" @click="resetQuery">重 置</el-button>
        <el-button type="primary" icon="el-icon-search" @click="set_ResCnz">重新同步</el-button>
        <!-- <el-button type="primary" icon="el-icon-search" @click="set_ResCnz">重新同步</el-button> -->
      </el-form-item>
      <el-collapse v-model="activeSeach">
        <el-collapse-item title="更多" name="1">
@@ -194,6 +194,9 @@
  components: { RowSettings, Edit, PrintList },
  props: {
    openPage: { type: String, },
    propHBeginAddrName:{},
    propHBeginHEndAddrName:{},
    propHCarTypeName:{},
  },
  data() {
    return {
@@ -255,7 +258,7 @@
      queryParams: {
        HBillNo: '',
        HBillno2: '',
        HInitTimeCycle: 29,
        HInitTimeCycle: 0,
        HDeptID: '',
        HSourceBillNo: '',
@@ -377,6 +380,16 @@
        this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.sTime + "'"
        this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'"
      }
      if (this.propHBeginAddrName) {
        this.sWhere += " and 始发地 = '" + this.propHBeginAddrName + "'"
      }
      if (this.propHBeginHEndAddrName) {
        this.sWhere += " and 目的地 = '" + this.propHBeginHEndAddrName + "'"
      }
      if (this.propHCarTypeName) {
        this.sWhere += " and 运输方式 = '" + this.propHCarTypeName + "'"
      }
      console.log(this.sWhere)
      if (this.pageSize == 0) {
        this.pageSize = 50
      }
@@ -575,7 +588,8 @@
    },
    //选中行高亮样式
    rowStyle({ row, rowIndex }) {
      if (this.ids.includes(row.hmainid)) {
      // 使用 HInterID 判断
      if (this.ids.includes(row.HInterID)) {
        return { "background": "#ecf5ff" }
      }
    },
@@ -590,8 +604,7 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      // this.rowForm = {}
      this.ids = selection.map(item => item.hmainid)
      this.ids = selection.map(item => item.HInterID)
      this.single = selection.length != 1
      this.multiple = !selection.length
      if (!this.single) {