陈婷婷
6 天以前 e3ad877d4f643e0a9207a42fb5e23d1fb40f7c30
运单选择承运合同的时候列表单选
1个文件已修改
65 ■■■■■ 已修改文件
src/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basic/gytransport/cgContractTransportBillList/Cg_ContractTransportBillList.vue
@@ -163,13 +163,14 @@
          </el-table-column>
        </template>
      </el-table>
       <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes" @pagination="getList" />
      <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize" :pageSizes="pageSizes"
        @pagination="getList" />
      <el-dialog title="隐藏列设置" :visible.sync="openRowHide" width="816px" append-to-body>
        <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" />
      </el-dialog>
      <!-- 编辑 -->
      <el-dialog title="编辑" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.HInterID||this.rowForm.hmainid
        <edit :OperationType=OperationType :linterid=this.rowForm.HInterID || this.rowForm.hmainid
          :HSouceBillType=this.rowForm.HSourceBillType :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
      <el-dialog title="打印模板选择" :visible.sync="openPrintList" width="800px" append-to-body>
@@ -193,9 +194,9 @@
  components: { RowSettings, Edit, PrintList },
  props: {
    openPage: { type: String, },
    propHBeginAddrName:{},
    propHBeginHEndAddrName:{},
    propHCarTypeName:{},
    propHBeginAddrName: {},
    propHBeginHEndAddrName: {},
    propHCarTypeName: {},
  },
  data() {
    return {
@@ -288,10 +289,10 @@
      tableData: [],//列表(分页显示)
      dataList: [],
      titleData: [],//不需要显示的字段 可扩展
      pageSizes: [ 10,50, 500, 5000, 50000],
      pageSizes: [10, 50, 500, 5000, 50000],
      page: 1,
      pageSize: 0,
      total: 0,
      total: 0,
    };
  },
  created() {
@@ -301,7 +302,7 @@
  methods: {
    //重新同步
    set_ResCnz(){
    set_ResCnz() {
      axios.get(this.$baseUrl + "/Cg_POOrderBill/Resynchronize", {
        params: { "HBillNo": '', "HBillType": 1117 }
      }).then(response => {
@@ -396,9 +397,9 @@
        params: {
          "sWhere": this.sWhere,
          "user": sessionStorage["HUserName"],
          "Page":this.page,
          "size":this.pageSize,
          "Type":1117
          "Page": this.page,
          "size": this.pageSize,
          "Type": 1117
        },
      }).then(response => {
        this.tyResList = response.data.data//总数据
@@ -606,11 +607,23 @@
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.HInterID)
      this.single = selection.length != 1
      this.multiple = !selection.length
      if (!this.single) {
      if (this.openPage) {
        //列表单选
        if (selection.length > 1) {
          const del_row = selection.shift()
          this.$refs.tableData.toggleRowSelection(del_row, false) //设置这一行取消选中
        }
        this.rowForm = {}
        this.ids = selection.map(item => item.HItemID)
        this.rowForm = selection[0]
        this.$emit('deptEmit', this.rowForm, 16)
      } else {
        this.ids = selection.map(item => item.HInterID)
        this.single = selection.length != 1
        this.multiple = !selection.length
        if (!this.single) {
          this.rowForm = selection[0]
        }
      }
    },
    /** 搜索按钮操作 */
@@ -752,17 +765,17 @@
      console.log("删除", this.rowForm.HInterID.toString())
      this.$modal.confirm('确认要删除吗,删除后不能恢复').then(() => {
        axios.get(this.$baseUrl + "/Cg_ContractTransportBillListController/Delete%EF%BB%BFBill", {
            params: { 'HInterID': this.rowForm.HInterID.toString(), 'user': sessionStorage["HUserName"] }
          }).then(response => {
            if (response.data.count == 1) {
              this.getList()
              this.$modal.msgSuccess("删除成功")
            } else {
              this.$modal.msgError("错误:" + result.code + result.Message);
            }
          }).catch(error => {
            this.$modal.msgError("接口请求失败!");
          });
          params: { 'HInterID': this.rowForm.HInterID.toString(), 'user': sessionStorage["HUserName"] }
        }).then(response => {
          if (response.data.count == 1) {
            this.getList()
            this.$modal.msgSuccess("删除成功")
          } else {
            this.$modal.msgError("错误:" + result.code + result.Message);
          }
        }).catch(error => {
          this.$modal.msgError("接口请求失败!");
        });
      }).catch(() => { })
    },
    // 反审核/审核数据