ElementPlus实现页面,上部分是表单,下部分是表格

效果

java 复制代码
<template>
  <el-dialog v-model="produceDialogFormVisible" draggable custom-class="dialog-title" :title="title" :close-on-click-modal="false">
    <el-form label-width="120px">
      <el-row :gutter="40">
        <el-col :span="12">
          <el-form-item label="需求单编号" >
            <el-input v-model="orderNo"/>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="预计交付时间">
            <el-date-picker
              v-model="estimatedCompletionTime"
              type="date"
              placeholder="Pick a day"
              style="width: 200px"
            />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <el-table
      ref="table"
      v-loading="listLoading"
      :data="list"
      fit
      highlight-current-row
      header-cell-class-name="header-cell"
    >
      <el-table-column type="selection" width="55" />
      <el-table-column type="index" width="50" />
      <el-table-column label="仓库" min-width="80px">
        <template #default="{row}">
          <span>{{ row.warehouseName }}</span>
        </template>
      </el-table-column>
      <el-table-column label="产品名称" min-width="150px">
        <template #default="{row}">
          {{ getName(row.property) }}
        </template>
      </el-table-column>
      <el-table-column label="数量" min-width="200px">
        <template #default="{row}">
          <el-input-number v-model="row.number" :step="row.unitMinimum === '0' ? 0.01 : row.unitMinimum" step-strictly :min="0" :max="row.inventoryLimit" @change="handleChange"/>
          <span style="line-height: 32px;margin-left: 5px">{{ row.unitName? row.unitName:'' }}</span>
        </template>
      </el-table-column>
      <el-table-column label="单价" min-width="80px">
        <template #default="{row}">
          <span>{{ row.univalent }}</span>
        </template>
      </el-table-column>
      <el-table-column label="小计" min-width="80px">
        <template #default="{row}">
          <span>{{ row.total }}</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" min-width="230" class-name="small-padding fixed-width">
        <template #default="{row}">
          <el-button size="small" plain icon="Delete" @click="handleDelete(row)">
            删除
          </el-button>
        </template>
      </el-table-column>
    </el-table>
    <template #footer>
      <el-button @click="produceDialogFormVisible = false">
        取消
      </el-button>
      <el-button v-permission="['biz:warningconfiguration:WarningConfiguration:update']" type="primary" :loading="loading" @click="createData()">
        确定
      </el-button>
    </template>
    <product-range-select ref="productRangeSelect" v-model="temp.productText" :range-option="rangeOption" />
  </el-dialog>
</template>
相关推荐
程序员张31 小时前
Maven编译和打包插件
java·spring boot·maven
ybq195133454312 小时前
Redis-主从复制-分布式系统
java·数据库·redis
weixin_472339463 小时前
高效处理大体积Excel文件的Java技术方案解析
java·开发语言·excel
小毛驴8503 小时前
Linux 后台启动java jar 程序 nohup java -jar
java·linux·jar
DKPT4 小时前
Java桥接模式实现方式与测试方法
java·笔记·学习·设计模式·桥接模式
好奇的菜鸟5 小时前
如何在IntelliJ IDEA中设置数据库连接全局共享
java·数据库·intellij-idea
DuelCode6 小时前
Windows VMWare Centos Docker部署Springboot 应用实现文件上传返回文件http链接
java·spring boot·mysql·nginx·docker·centos·mybatis
优创学社26 小时前
基于springboot的社区生鲜团购系统
java·spring boot·后端
幽络源小助理6 小时前
SpringBoot基于Mysql的商业辅助决策系统设计与实现
java·vue.js·spring boot·后端·mysql·spring
猴哥源码6 小时前
基于Java+springboot 的车险理赔信息管理系统
java·spring boot