123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <template>
- <div class="detail-container">
- <el-page-header @back="goBack" :content="listItem ? '编辑':'新增'"></el-page-header>
- <div class="main-title">
- <div class="title">工程订单</div>
- </div>
- <el-form ref="mainForm" :model="mainForm" label-width="100px" size="small" label-position="left">
- <el-row :gutter="20">
- <el-col :xs="24" :sm="12" :lg="8">
- <el-form-item label="订单号" prop="warehouse">
- <el-input v-model="mainForm.remark" placeholder="请输入订单号"></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="8" style="height: 51px;">
- <el-form-item label="单据日期" prop="date">
- <el-date-picker
- v-model="mainForm.date"
- type="date"
- value-format="yyyy-MM-dd"
- style="width: 100%;"
- placeholder="选择日期">
- </el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="8">
- <el-form-item label="制单人" prop="warehouse">
- <el-input v-model="mainForm.remark" placeholder="请输入制单人"></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="8">
- <el-form-item label="工程登录单号" prop="warehouse">
- <el-input v-model="mainForm.remark" placeholder="请输入工程登录单号"></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="8">
- <el-form-item label="经销商编码" prop="warehouse">
- <el-input v-model="mainForm.remark" placeholder="请输入经销商编码"></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="12" :lg="8">
- <el-form-item label="经销商名称" prop="warehouse">
- <el-input v-model="mainForm.remark" placeholder="请输入经销商名称"></el-input>
- </el-form-item>
- </el-col>
- <el-col :xs="24" :sm="24" :lg="24">
- <el-form-item label="备注" prop="warehouse">
- <el-input v-model="mainForm.remark" placeholder="请输入备注"></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </el-form>
- <div class="main-title">
- <div class="title">货品信息</div>
- <el-button type="primary" size="small" icon="el-icon-plus">添加货品</el-button>
- </div>
- <div class="table" style="margin-top: 20px">
- <el-table :data="detailData.kingDeeTransferItems" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
- <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
- <el-table-column align="center" label="引用单号" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
- <el-table-column align="center" label="单号类型" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
- <el-table-column align="center" label="销售类型" prop="model" min-width="160" show-overflow-tooltip></el-table-column>
- <el-table-column align="center" label="货品名称" prop="baseUnitId" min-width="160" show-overflow-tooltip></el-table-column>
- <el-table-column align="center" label="规格型号" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
- <el-table-column align="center" label="计量单位" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
- <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
- <el-table-column align="center" label="备注" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
- </el-table>
- </div>
-
- <div class="page-footer">
- <div class="footer" :class="classObj">
- <el-button type="primary" @click="clickSubmitForm">保 存</el-button>
- <el-button type="primary" @click="clickSubmitForm">提交审核</el-button>
- <el-popconfirm title="确定关闭吗?" @onConfirm="goBack" style="margin-left: 10px;">
- <el-button slot="reference">关 闭</el-button>
- </el-popconfirm>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { getDetail } from "@/api/supply/reserve";
- export default {
- name: 'EnginForm',
- componentName: 'EnginForm',
- props: ['listItem'],
- data() {
- return {
- detailData: {},
- mainForm: {
- },
- }
- },
- computed: {
- sidebar() {
- return this.$store.state.app.sidebar
- },
- classObj() {
- return {
- hideSidebar: !this.sidebar.opened,
- openSidebar: this.sidebar.opened
- }
- },
- },
- created() {
- this.getDetail();
- },
- methods: {
- // 返回列表
- goBack() {
- this.$emit('backListFormDetail');
- },
- // 获取详情
- getDetail() {
- getDetail({id: this.listItem.id}).then(res => {
- this.detailData = res.data;
- })
- },
- clickSubmitForm() {
- },
- }
- }
- </script>
- <style scoped lang="scss">
- .detail-container {
- width: 100%;
- height: 100%;
- }
- .main-title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 20px;
- height: 60px;
- border-bottom: 1px solid #DCDFE6;
- margin-bottom: 20px;
- .title {
- font-size: 16px;
- font-weight: 600;
- padding-left: 10px;
- }
- }
- </style>
|