yangfeng
2023-08-05 ba814d605ad50da217a3dd422bcc7db5360b092f
src/views/sales/contractManage/index.vue
@@ -17,7 +17,7 @@
        <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
      </div>
    </div>
    <TableCommonView ref="tableListRef" :table-list="tableList">
    <TableCommonView ref="tableListRef" :table-list="tableList" @selCommonClick="selCommonClick">
      <template slot="tableButton">
        <el-table-column label="操作" width="100">
          <template slot-scope="scope">
@@ -29,6 +29,8 @@
    </TableCommonView>
    <!-- 新建/编辑 -->
    <AddContractManageDialog v-if="editConfig.visible" :edit-common-config="editConfig" />
    <!-- 机会详情 -->
    <DetailContractManage v-if="contractDetail.visible" :contract-detail="contractDetail" />
  </div>
</template>
@@ -36,13 +38,15 @@
import AddContractManageDialog from "@/views/sales/contractManage/AddContractManageDialog"
import { getContractList, getDelContract } from "@/api/sales/contractManage"
import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
import DetailContractManage from "@/views/sales/contractManage/DetailContractManage"
export default {
  name: "ContractManage",
  props: {},
  mixins: [pageMixin],
  components: {
    AddContractManageDialog
    AddContractManageDialog,
    DetailContractManage
  },
  computed: {
    searchCommonHeight() {
@@ -75,6 +79,10 @@
        visible: false,
        title: "新建",
        infomation: {}
      },
      contractDetail: {
        visible: false,
        infomation: {}
      }
    }
  },
@@ -87,7 +95,7 @@
      this.tableList = {
        tableInfomation: [],
        tableColumn: [
          { label: "单据编号", prop: "number", min: 120 },
          { label: "单据编号", prop: "number", min: 120, isCommonClick: true },
          { label: "负责人", prop: "memberId", min: 90 },
          { label: "审批状态", prop: "approvalStatus" },
          { label: "创建人", prop: "creator", min: 100 },
@@ -168,6 +176,12 @@
    },
    getSelectArray(val) {
      console.log(val)
    },
    // 合同管理详情
    selCommonClick(row) {
      console.log(row)
      this.contractDetail.visible = true
      this.contractDetail.infomation = { ...row }
    }
  }
}