yangfeng
2023-08-09 acdff03246ce648082192dfb069c3a006a7fbee6
src/views/sales/generatePlan/index.vue
@@ -11,7 +11,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">
@@ -23,6 +23,8 @@
    </TableCommonView>
    <!-- 新建/编辑-->
    <AddGeneratePlanDialog v-if="editConfig.visible" :edit-common-config="editConfig" />
    <!-- 生产计划详情 -->
    <DetailGeneratePlan v-if="planDetail.visible" :plan-detail="planDetail" />
  </div>
</template>
@@ -30,13 +32,15 @@
import AddGeneratePlanDialog from "@/views/sales/generatePlan/AddGeneratePlanDialog"
import { getPlanList, getDelPlan } from "@/api/sales/generatePlan"
import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
import DetailGeneratePlan from "@/views/sales/generatePlan/DetailGeneratePlan"
export default {
  name: "GeneratePlan",
  props: {},
  mixins: [pageMixin],
  components: {
    AddGeneratePlanDialog
    AddGeneratePlanDialog,
    DetailGeneratePlan
  },
  computed: {
    searchCommonHeight() {
@@ -69,6 +73,10 @@
        visible: false,
        title: "新建",
        infomation: {}
      },
      planDetail: {
        visible: false,
        infomation: {}
      }
    }
  },
@@ -81,7 +89,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 },
@@ -162,6 +170,12 @@
    },
    getSelectArray(val) {
      console.log(val)
    },
    // 合同管理详情
    selCommonClick(row) {
      console.log(row)
      this.planDetail.visible = true
      this.planDetail.infomation = { ...row }
    }
  }
}