| | |
| | | <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"> |
| | |
| | | </TableCommonView> |
| | | <!-- 新建/编辑--> |
| | | <AddGeneratePlanDialog v-if="editConfig.visible" :edit-common-config="editConfig" /> |
| | | <!-- 生产计划详情 --> |
| | | <DetailGeneratePlan v-if="planDetail.visible" :plan-detail="planDetail" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | 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() { |
| | |
| | | visible: false, |
| | | title: "新建", |
| | | infomation: {} |
| | | }, |
| | | planDetail: { |
| | | visible: false, |
| | | infomation: {} |
| | | } |
| | | } |
| | | }, |
| | |
| | | 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 }, |
| | |
| | | }, |
| | | getSelectArray(val) { |
| | | console.log(val) |
| | | }, |
| | | // 合同管理详情 |
| | | selCommonClick(row) { |
| | | console.log(row) |
| | | this.planDetail.visible = true |
| | | this.planDetail.infomation = { ...row } |
| | | } |
| | | } |
| | | } |