| | |
| | | <template>
|
| | | <div>
|
| | | <div class="body" :style="{height:mainHeight+'px'}">
|
| | |
|
| | | <div class="bodyTopButtonGroup" style="justify-content: space-between">
|
| | | <el-button
|
| | | v-waves
|
| | | icon="el-icon-refresh-right"
|
| | | @click="syncERP"
|
| | | >同步ERP
|
| | | </el-button>
|
| | | <div style="display: flex">
|
| | | <el-button
|
| | | v-waves
|
| | | type="primary"
|
| | | icon="el-icon-bottom"
|
| | | @click="batchHandle"
|
| | | >批量下达
|
| | | </el-button>
|
| | | </div>
|
| | |
|
| | | </div>
|
| | |
|
| | | <div class="bodyTopFormGroup">
|
| | | <el-form
|
| | | ref="form"
|
| | | :model="form"
|
| | | label-width="100px"
|
| | | inline
|
| | | style="display: flex;"
|
| | | >
|
| | | <div class="elForm">
|
| | | <el-form-item label="车间名称" style=" display: flex;">
|
| | | <el-select
|
| | | v-model="form.wkshopcode"
|
| | | filterable
|
| | | :popper-append-to-body="false"
|
| | | style="width: 200px"
|
| | | placeholder="请选择"
|
| | | >
|
| | | <el-option
|
| | | v-for="item in wkshopcodeArr"
|
| | | :key="item.torg_code"
|
| | | :label="item.torg_name"
|
| | | :value="item.torg_code"
|
| | | />
|
| | | </el-select>
|
| | | </el-form-item>
|
| | | <el-form-item label="订单状态" style=" display: flex;">
|
| | | <el-select
|
| | | v-model="form.erporderstus"
|
| | | filterable
|
| | | :popper-append-to-body="false"
|
| | | style="width: 200px"
|
| | | placeholder="请选择"
|
| | | >
|
| | | <el-option
|
| | | v-for="item in erporderstusArr"
|
| | | :key="item.code"
|
| | | :label="item.name"
|
| | | :value="item.code"
|
| | | />
|
| | | </el-select>
|
| | | </el-form-item>
|
| | | <el-form-item label="订单编号" style=" display: flex;">
|
| | | <el-input v-model="form.erpordercode" placeholder="请输入" style="width: 200px" />
|
| | | </el-form-item>
|
| | |
|
| | | <el-form-item label="销售订单" style=" display: flex;">
|
| | | <el-input v-model="form.saleordercode" style="width: 200px" placeholder="请输入" />
|
| | | </el-form-item>
|
| | |
|
| | | <el-form-item v-show="isExpandForm" label="产品编码" style=" display: flex;">
|
| | | <el-input v-model="form.partcode" style="width: 200px" placeholder="请输入" />
|
| | | </el-form-item>
|
| | |
|
| | | <el-form-item v-show="isExpandForm" label="产品名称" style=" display: flex;">
|
| | | <el-input v-model="form.partname" style="width: 200px" placeholder="请输入" />
|
| | | </el-form-item>
|
| | | <el-form-item v-show="isExpandForm" label="产品规格" style=" display: flex;">
|
| | | <el-input v-model="form.partspec" style="width: 200px" placeholder="请输入" />
|
| | | </el-form-item>
|
| | |
|
| | | <DateType
|
| | | ref="DateTypeRef"
|
| | | :is-expand-form="isExpandForm"
|
| | | style="display:flex;justify-content: center;align-items: center;position: relative"
|
| | | @DateTypeChange="DateTypeChange"
|
| | | @cycleTimeChange="cycleTimeChange"
|
| | | />
|
| | |
|
| | | <!-- <el-form-item-->
|
| | | <!-- v-show="isExpandForm"-->
|
| | | <!-- label="预计开工时间"-->
|
| | | <!-- label-width="100px"-->
|
| | | <!-- style="display: flex;font-size: 14px;align-items: center"-->
|
| | | <!-- >-->
|
| | | <!-- <el-date-picker-->
|
| | | <!-- v-model="form.paystartdate"-->
|
| | | <!-- type="datetimerange"-->
|
| | | <!-- range-separator="~"-->
|
| | | <!-- class="timeMini"-->
|
| | | <!-- size="mini"-->
|
| | | <!-- style="width: 200px;display: flex;line-height: 34px;height: 34px;"-->
|
| | | <!-- :clearable="false"-->
|
| | | <!-- start-placeholder="开始日期"-->
|
| | | <!-- end-placeholder="结束日期"-->
|
| | | <!-- :picker-options="pickerOptions"-->
|
| | | <!-- value-format="yyyy-MM-dd"-->
|
| | | <!-- @change="pickerChange"-->
|
| | | <!-- />-->
|
| | | <!-- </el-form-item>-->
|
| | |
|
| | | <!-- <el-form-item-->
|
| | | <!-- v-show="isExpandForm"-->
|
| | | <!-- label="预计完工时间"-->
|
| | | <!-- label-width="100px"-->
|
| | | <!-- style=" display: flex;font-size: 14px;align-items: center"-->
|
| | | <!-- >-->
|
| | | <!-- <el-date-picker-->
|
| | | <!-- v-model="form.payenddate"-->
|
| | | <!-- type="daterange"-->
|
| | | <!-- :clearable="false"-->
|
| | | <!-- class="timeMini"-->
|
| | | <!-- range-separator="~"-->
|
| | | <!-- start-placeholder="开始日期"-->
|
| | | <!-- style="width: 200px;display: flex;line-height: 34px ;height: 34px ;"-->
|
| | | <!-- end-placeholder="结束日期"-->
|
| | | <!-- size="mini"-->
|
| | | <!-- />-->
|
| | | <!-- </el-form-item>-->
|
| | | </div>
|
| | |
|
| | | <div
|
| | | class="bodySearchReset"
|
| | | :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}"
|
| | | >
|
| | | <el-button v-waves type="primary" icon="el-icon-search" @click="search">查询</el-button>
|
| | | <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">重置</el-button>
|
| | | </div>
|
| | |
|
| | | </el-form>
|
| | |
|
| | | <div
|
| | | class="bodyTopFormExpand"
|
| | | >
|
| | | <svg-icon
|
| | | v-show="mouseHoverType==='mouseout'"
|
| | | style="cursor: pointer"
|
| | | :icon-class="!isExpandForm?'doubleDown3':'doubleUp3'"
|
| | | @mouseenter="mouseHoverType=$event.type"
|
| | | />
|
| | | <svg-icon
|
| | | v-show="mouseHoverType==='mouseenter'"
|
| | | style="cursor: pointer"
|
| | | :icon-class="!isExpandForm?'doubleDown':'doubleUp'"
|
| | | @click="isExpandForm=!isExpandForm"
|
| | | @mouseout="mouseHoverType=$event.type"
|
| | | />
|
| | | </div>
|
| | | </div>
|
| | |
|
| | | <div class="elTableDiv">
|
| | | <el-table
|
| | | ref="tableDataRef"
|
| | | class="tableFixed"
|
| | | :data="tableData"
|
| | | :height="isExpandForm?tableHeight:(tableHeight+40)+'px'"
|
| | | border
|
| | | :row-class-name="tableRowClassName"
|
| | | :style="{width: 100+'%',height:isExpandForm?tableHeight:(tableHeight+40)+'px',}"
|
| | | highlight-current-row
|
| | | :header-cell-style="this.$headerCellStyle"
|
| | | :cell-style="this.$cellStyle"
|
| | | :summary-method="getSummaries"
|
| | | show-summary
|
| | | @sort-change="sortChange"
|
| | | @selection-change="handleSelectionChange"
|
| | | >
|
| | | <!-- @row-click="rowClick"-->
|
| | | <el-table-column
|
| | | type="selection"
|
| | | width="50"
|
| | | :selectable="selected"
|
| | | />
|
| | | <!-- <el-table-column-->
|
| | | <!-- width="50"-->
|
| | | <!-- fixed-->
|
| | | <!-- >-->
|
| | | <!-- <template slot-scope="{row}">-->
|
| | | <!-- <el-radio-->
|
| | | <!-- v-model="radioSelectedId"-->
|
| | | <!-- :label="row.id"-->
|
| | | <!-- style="color: transparent;padding-left: 10px;"-->
|
| | | <!-- />-->
|
| | | <!-- <!– @change.native="getCurrentRow(row.id)"–>-->
|
| | | <!-- </template>-->
|
| | | <!-- </el-table-column>-->
|
| | | <el-table-column
|
| | | prop="rowNum"
|
| | | width="50"
|
| | | fixed
|
| | | label="序号"
|
| | | />
|
| | | <el-table-column
|
| | | prop="status"
|
| | | label="订单状态"
|
| | | sortable="custom"
|
| | | width="110"
|
| | | show-tooltip-when-overflow
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div v-if="row.status==='NEW'">新订单</div>
|
| | | <div v-if="row.status==='CREATING'">部分下达</div>
|
| | | <div v-if="row.status==='CREATED'">全部下达</div>
|
| | | <div v-if="row.status==='CLOSED'">已关闭</div>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | | prop="wo"
|
| | | label="订单编号"
|
| | | show-tooltip-when-overflow
|
| | | sortable="custom"
|
| | | min-width="150"
|
| | | />
|
| | | <el-table-column
|
| | | show-tooltip-when-overflow
|
| | | prop="saleOrderCode"
|
| | | label="销售订单"
|
| | | sortable="custom"
|
| | | width="150"
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div v-if="row.saleOrderCode">{{ row.saleOrderCode }}</div>
|
| | | <div v-else>/</div>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | | prop="partcode"
|
| | | label="产品编码"
|
| | | sortable="custom"
|
| | | show-tooltip-when-overflow
|
| | | min-width="150"
|
| | | />
|
| | | <el-table-column
|
| | | prop="partname"
|
| | | label="产品名称"
|
| | | sortable="custom"
|
| | | min-width="200"
|
| | | show-tooltip-when-overflow
|
| | | />
|
| | | <el-table-column
|
| | | prop="partspec"
|
| | | label="产品规格"
|
| | | sortable="custom"
|
| | | show-tooltip-when-overflow
|
| | | min-width="110"
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div v-if="row.partspec">{{ row.partspec }}</div>
|
| | | <div v-else>/</div>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | | prop="qty"
|
| | | label="订单数量"
|
| | | width="150"
|
| | | show-tooltip-when-overflow
|
| | | sortable="custom"
|
| | | />
|
| | | <el-table-column
|
| | | prop="relse_qty"
|
| | | label="已下单数量"
|
| | | show-tooltip-when-overflow
|
| | | width="150"
|
| | | sortable="custom"
|
| | | />
|
| | | <el-table-column
|
| | | prop="clerkuser"
|
| | | label="销售业务员"
|
| | | show-tooltip-when-overflow
|
| | | width="150"
|
| | | sortable="custom"
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div v-if="row.clerkuser">{{ row.clerkuser }}</div>
|
| | | <div v-else>/</div>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | | prop="wkshp_name"
|
| | | label="生产车间"
|
| | | show-tooltip-when-overflow
|
| | | sortable="custom"
|
| | | width="150"
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div v-if="row.wkshp_name">{{ row.wkshp_name }}</div>
|
| | | <div v-else>/</div>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <!-- <el-table-column-->
|
| | | <!-- prop="planstartdate"-->
|
| | | <!-- show-tooltip-when-overflow-->
|
| | | <!-- label="预计开工时间"-->
|
| | | <!-- sortable="custom"-->
|
| | | <!-- width="130"-->
|
| | | <!-- >-->
|
| | | <!-- <template slot-scope="{row}">-->
|
| | | <!-- <div v-if="row.planstartdate">{{ row.planstartdate.substring(0, 11) }}</div>-->
|
| | | <!-- <div v-else>/</div>-->
|
| | | <!-- </template>-->
|
| | | <!-- </el-table-column>-->
|
| | | <!-- <el-table-column-->
|
| | | <!-- prop="planenddate"-->
|
| | | <!-- label="预计完工时间"-->
|
| | | <!-- show-tooltip-when-overflow-->
|
| | | <!-- sortable="custom"-->
|
| | | <!-- width="130"-->
|
| | | <!-- >-->
|
| | | <!-- <template slot-scope="{row}">-->
|
| | | <!-- <div v-if="row.planenddate">{{ row.planenddate.substring(0, 11) }}</div>-->
|
| | | <!-- <div v-else>/</div>-->
|
| | | <!-- </template>-->
|
| | | <!-- </el-table-column>-->
|
| | | <el-table-column
|
| | | prop="planenddate"
|
| | | label="预计开工日期"
|
| | | sortable="custom"
|
| | | show-tooltip-when-overflow
|
| | | width="130"
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div v-if="row.planenddate">{{ row.planenddate.substring(0, 11) }}</div>
|
| | | <div v-else>/</div>
|
| | | </template>
|
| | | </el-table-column>
|
| | |
|
| | | <el-table-column
|
| | | prop="planstartdate"
|
| | | label="预计完工日期"
|
| | | sortable="custom"
|
| | | show-tooltip-when-overflow
|
| | | width="130"
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div v-if="row.planstartdate">{{ row.planstartdate.substring(0, 11) }}</div>
|
| | | <div v-else>/</div>
|
| | | </template>
|
| | | </el-table-column>
|
| | |
|
| | | <el-table-column
|
| | | prop="saleOrderDeliveryDate"
|
| | | label="预计交付日期"
|
| | | sortable="custom"
|
| | | show-tooltip-when-overflow
|
| | | width="130"
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div v-if="row.saleOrderDeliveryDate">{{ row.saleOrderDeliveryDate.substring(0, 11) }}</div>
|
| | | <div v-else>/</div>
|
| | | </template>
|
| | | </el-table-column>
|
| | |
|
| | | <el-table-column
|
| | | show-tooltip-when-overflow
|
| | | prop="createuser"
|
| | | label="创建人员"
|
| | | sortable="custom"
|
| | | width="150"
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div v-if="row.createuser">{{ row.createuser }}</div>
|
| | | <div v-else>/</div>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | | prop="createdate"
|
| | | label="创建时间"
|
| | | width="130"
|
| | | show-tooltip-when-overflow
|
| | | sortable="custom"
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div v-if="row.createdate">{{ row.createdate.substring(0, 11) }}</div>
|
| | | <div v-else>/</div>
|
| | | </template>
|
| | | </el-table-column>
|
| | | <el-table-column
|
| | | label="操作"
|
| | | fixed="right"
|
| | | width="120"
|
| | | >
|
| | | <template slot-scope="{row}">
|
| | | <div class="operationClass">
|
| | | <el-tooltip class="item" effect="dark" content="下达" placement="top">
|
| | | <!-- <el-button v-waves type="text" @click="edit('edit',row)">下达</el-button>-->
|
| | | <i
|
| | | class="el-icon-bottom"
|
| | | :style="{color:$store.state.settings.theme}"
|
| | | style="cursor: pointer;margin-left: 5px"
|
| | | @click="edit('edit',row)"
|
| | | />
|
| | | </el-tooltip>
|
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="订单关闭" placement="top">
|
| | | <i
|
| | | class="el-icon-switch-button"
|
| | | :style="{color:$store.state.settings.theme}"
|
| | | style="cursor: pointer;margin-left: 15px"
|
| | | @click="orderClose(row.id)"
|
| | | />
|
| | | </el-tooltip>
|
| | |
|
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="订单删除" placement="top">
|
| | | <i
|
| | | class="el-icon-delete"
|
| | | :style="{color:$store.state.settings.theme}"
|
| | | style="cursor: pointer;margin-left: 15px"
|
| | | @click="orderDel(row.id)"
|
| | | />
|
| | | </el-tooltip>
|
| | | </div>
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | | </div>
|
| | | <!--分页-->
|
| | | <pagination
|
| | | :total="total"
|
| | | :page.sync="form.page"
|
| | | :limit.sync="form.rows"
|
| | | align="right"
|
| | | layout="total,prev, pager, next,sizes,jumper"
|
| | | popper-class="select_bottom"
|
| | | @pagination="getErpOrderSearch"
|
| | | />
|
| | | </div>
|
| | |
|
| | | <el-dialog
|
| | | v-el-drag-dialog
|
| | | :title="operation==='add'?'新增':'下达'"
|
| | | :visible.sync="dialogVisible"
|
| | | width="900px"
|
| | | top="12vh"
|
| | | :close-on-click-modal="false"
|
| | | @closed="handleClose"
|
| | | @close="handleClose"
|
| | | >
|
| | | <el-form ref="dialogForm" inline :rules="dialogFormRules" :model="dialogForm" label-width="106px">
|
| | | <el-form-item label="订单编号" prop="erpordercode">
|
| | | <el-input v-model="dialogForm.erpordercode" disabled style="width: 200px" />
|
| | | </el-form-item>
|
| | | <el-form-item label="产品编码" prop="partcode">
|
| | | <el-input v-model="dialogForm.partcode" disabled style="width: 200px" />
|
| | | </el-form-item>
|
| | | <el-form-item label="产品名称" prop="partname">
|
| | | <el-input v-model="dialogForm.partname" disabled style="width: 200px" />
|
| | | </el-form-item>
|
| | |
|
| | | <el-form-item label="产品规格" prop="partspec">
|
| | | <el-input v-model="dialogForm.partspec" disabled style="width: 200px" />
|
| | | </el-form-item>
|
| | | <el-form-item label="生产车间" prop="wkshopname">
|
| | | <el-input v-model="dialogForm.wkshopname" disabled style="width: 200px" />
|
| | | </el-form-item>
|
| | | <el-form-item label="所属仓库" prop="warehousename">
|
| | | <el-input v-model="dialogForm.warehousename" disabled style="width: 200px" />
|
| | | </el-form-item>
|
| | | <el-form-item label="订单数量" prop="erpqty">
|
| | | <el-input v-model="dialogForm.erpqty" disabled style="width: 200px" />
|
| | | </el-form-item>
|
| | | <el-form-item label="已下单数" prop="relse_qty">
|
| | | <el-input
|
| | | v-model="dialogForm.relse_qty"
|
| | | disabled
|
| | | oninput="value=value.replace(/[^0-9.]/g,'')"
|
| | | style="width: 200px"
|
| | | />
|
| | | </el-form-item>
|
| | | <el-form-item label="下单数量" prop="markqty">
|
| | | <el-input
|
| | | v-model="dialogForm.markqty"
|
| | | oninput="value=value.replace(/[^0-9.]/g,'')"
|
| | | style="width: 200px"
|
| | | />
|
| | | </el-form-item>
|
| | | <el-form-item label="下单单数" prop="ordernum">
|
| | | <el-input
|
| | | v-model="dialogForm.ordernum"
|
| | | oninput="value=value.replace(/[^0-9.]/g,'')"
|
| | | style="width: 200px"
|
| | | />
|
| | | </el-form-item>
|
| | |
|
| | | <el-form-item label="销售业务员" prop="">
|
| | | <el-input
|
| | | v-model="dialogForm.clerkuser"
|
| | | disabled
|
| | | style="width: 200px"
|
| | | />
|
| | | </el-form-item>
|
| | | <!-- :picker-options="pickerOptions"-->
|
| | |
|
| | | <el-form-item label="预计交付日期" prop="saleOrderDeliveryDate">
|
| | | <el-date-picker
|
| | | v-model="dialogForm.saleOrderDeliveryDate"
|
| | | type="date"
|
| | | size="mini"
|
| | | :clearable="false"
|
| | | class="dateMini"
|
| | | format="yyyy-MM-dd"
|
| | | style="width: 200px"
|
| | | placeholder="选择日期"
|
| | | :disabled="dialogForm.saleOrderDeliveryDateIsDisabled"
|
| | | />
|
| | | </el-form-item>
|
| | |
|
| | | <div style="display: flex">
|
| | | <el-form-item label="预计开工日期" prop="" style="display: flex">
|
| | | <el-date-picker
|
| | | v-model="dialogForm.paystartdate"
|
| | | type="date"
|
| | | size="mini"
|
| | | style="width: 200px"
|
| | | :clearable="false"
|
| | | class="dateMini"
|
| | | format="yyyy-MM-dd"
|
| | | value-format="yyyy-MM-dd"
|
| | | placeholder="选择日期"
|
| | | />
|
| | | </el-form-item>
|
| | |
|
| | | <el-form-item label="预计完工日期" prop="" style="display: flex">
|
| | | <el-date-picker
|
| | | v-model="dialogForm.payenddate"
|
| | | type="date"
|
| | | size="mini"
|
| | | style="width: 200px"
|
| | | :clearable="false"
|
| | | class="dateMini"
|
| | | format="yyyy-MM-dd"
|
| | | value-format="yyyy-MM-dd"
|
| | | placeholder="选择日期"
|
| | | />
|
| | | </el-form-item>
|
| | |
|
| | | </div>
|
| | |
|
| | | </el-form>
|
| | | <span slot="footer" class="dialog-footer">
|
| | | <div class="footerButton">
|
| | | <el-button v-waves @click="dialogVisibleCancel">取 消</el-button>
|
| | | <el-button
|
| | | v-waves
|
| | | type="primary"
|
| | | :loading="$store.state.app.buttonIsDisabled"
|
| | | :disabled="$store.state.app.buttonIsDisabled"
|
| | | @click="dialogVisibleConfirm"
|
| | | >下 达</el-button>
|
| | | </div>
|
| | | </span>
|
| | | </el-dialog>
|
| | | </div>
|
| | | </template>
|
| | |
|
| | | <script>
|
| | | import Pagination from '@/components/Pagination'
|
| | | import { handleDatetime } from '@/utils/global'
|
| | | import elDragDialog from '@/directive/el-drag-dialog'
|
| | | import waves from '@/directive/waves'
|
| | | import {
|
| | | ClosedErpOrder,
|
| | | DeleteErpOrder,
|
| | | ErpOrderSearch,
|
| | | MarkBatchSaveErpOrder,
|
| | | MarkSaveErpOrder
|
| | | } from '@/api/WorkOrder'
|
| | | import { SeaveSearchErpOrder } from '@/api/ErpSyncMes'
|
| | | import { PrentOrganizationNoCompany } from '@/api/GeneralBasicData'
|
| | | import DateType from '@/components/DateType'
|
| | |
|
| | | const SER_HZ = /^[\u4e00-\u9fa5]+$/
|
| | | export default {
|
| | | name: 'ProduceOrderList',
|
| | | components: {
|
| | | Pagination, DateType
|
| | | },
|
| | | directives: { elDragDialog, waves },
|
| | | data() {
|
| | | const validateName = (rule, value, callback) => {
|
| | | if (!value) {
|
| | | return callback(new Error('请输入编码'))
|
| | | } else {
|
| | | if (SER_HZ.test(value)) {
|
| | | return callback(new Error('编码不能为中文'))
|
| | | } else {
|
| | | callback()
|
| | | }
|
| | | }
|
| | | }
|
| | | return {
|
| | | mouseHoverType: 'mouseout',
|
| | | isExpandForm: false,
|
| | | mainHeight: 0,
|
| | | tableHeight: 0,
|
| | | form: {
|
| | | wkshopcode: '', // 车间编码
|
| | | erporderstus: '', // 订单状态码
|
| | | erpordercode: '', // 订单编号
|
| | | partcode: '', // 产品编码
|
| | | partname: '', // 产品名称
|
| | | partspec: '', // 产品规格
|
| | | creatuser: '', // 创建人员
|
| | | saleordercode: '', // 销售订单
|
| | | // paystartdate: '', // 交付时间
|
| | | paystartdate: '', // 预计开工时间
|
| | | payenddate: '', // 预计完工时间
|
| | | createdate: '', // 创建时间
|
| | |
|
| | | datatype: 'ED', // 时间类型
|
| | | timeValue: [], // 时间值
|
| | |
|
| | | prop: 'wo', // 排序字段
|
| | | order: 'desc', // 排序字段
|
| | | page: 1, // 第几页
|
| | | rows: 20 // 每页多少条
|
| | | },
|
| | |
|
| | | erporderstusArr: [
|
| | | { code: 'NEW', name: '新订单' },
|
| | | { code: 'CREATING', name: '部分下达' },
|
| | | { code: 'CREATED', name: '全部下达' },
|
| | | { code: 'CLOSED', name: '已关闭' }
|
| | | ],
|
| | | wkshopcodeArr: [],
|
| | | total: 10,
|
| | | radioSelectedId: '',
|
| | | tableData: [],
|
| | | dialogVisible: false,
|
| | | dialogForm: {
|
| | | erporderid: '', // 订单id
|
| | | sbid: '', // 订单明细id
|
| | | erpordercode: '', // 订单编号
|
| | | saleordercode: '', // 销售订单
|
| | |
|
| | | partcode: '', // 产品编码
|
| | | partname: '', // 产品名称
|
| | | partspec: '', // 产品规格
|
| | |
|
| | | wkshopcode: '', // 车间编码
|
| | | wkshopname: '', // 车间名称
|
| | |
|
| | | warehousecode: '', // 仓库编码
|
| | | warehousename: '', // 仓库名称
|
| | |
|
| | | erpqty: '', // 订单数量
|
| | | markqty: '', // 下单数量
|
| | | ordernum: '', // 下单单数
|
| | | relse_qty: '', // 已下单数量
|
| | |
|
| | | clerkuser: '', // 销售业务员
|
| | |
|
| | | saleOrderDeliveryDate: '', // 预计交付日期
|
| | |
|
| | | paystartdate: '', // 预计开工日期
|
| | | payenddate: ''// 预计完工日期
|
| | | },
|
| | | operation: '',
|
| | | dialogFormRules: {
|
| | | // OrgType: [
|
| | | // { required: true, message: '请输入选择类型', trigger: ['blur', 'change'] }
|
| | | // ],
|
| | | // OrgCode: [
|
| | | // { required: true, validator: validateName, trigger: ['blur', 'change'] }
|
| | | // ],
|
| | | markqty: [
|
| | | { required: true, message: '请输入下单数量', trigger: ['blur', 'change'] }
|
| | | ],
|
| | | ordernum: [
|
| | | { required: true, message: '请输入下单单数', trigger: ['blur', 'change'] }
|
| | | ],
|
| | | saleOrderDeliveryDate: [
|
| | | { required: true, message: '请选择预计交付日期', trigger: ['blur', 'change'] }
|
| | | ]
|
| | |
|
| | | },
|
| | | pickerOptions: {
|
| | | disabledDate(time) {
|
| | | return time.getTime() < Date.now() - 8.64e7
|
| | | }
|
| | | },
|
| | | multipleSelection: []
|
| | |
|
| | | // expireTimeOption: {
|
| | | // disabledDate(time) {
|
| | | // return time.getTime() > Date.now() - 8.64e6 // 如果没有后面的-8.64e6就是不可以选择今天的
|
| | | // }
|
| | | // }
|
| | |
|
| | | }
|
| | | },
|
| | | activated() {
window.addEventListener('resize', this.getHeight)
this.getHeight()
},
created() {
|
| | | this.getErpOrderSearch()
|
| | | // this.getPartSelect()// 获取产品编码信息
|
| | |
|
| | | this.getPrentOrganizationNoCompany()
|
| | | },
|
| | | mounted() {
|
| | | window.addEventListener('resize', this.getHeight)
|
| | | this.getHeight()
|
| | | },
|
| | | methods: {
|
| | |
|
| | | DateTypeChange(value) {
|
| | | this.form.datatype = value
|
| | | },
|
| | | cycleTimeChange(val) {
|
| | | this.form.timeValue = val
|
| | | },
|
| | |
|
| | | pickerChange(value) {
|
| | | console.log(value, 123)
|
| | | this.cycleTime = null
|
| | | },
|
| | |
|
| | | async getPrentOrganizationNoCompany() {
|
| | | const { data: res } = await PrentOrganizationNoCompany()
|
| | | this.wkshopcodeArr = res
|
| | | },
|
| | | async getErpOrderSearch() {
|
| | | console.log(this.form, 1)
|
| | | // let tempDate2 = this.form.paystartdate
|
| | | // if (tempDate2.length > 0) {
|
| | | // tempDate2 = handleDatetime(tempDate2[0]) + '~' + handleDatetime(tempDate2[1])
|
| | | // }
|
| | | //
|
| | | // let tempDate = this.form.payenddate
|
| | | // if (tempDate.length > 0) {
|
| | | // tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1])
|
| | | // }
|
| | |
|
| | | const data = {
|
| | |
|
| | | erporderstus: this.form.erporderstus, // 订单状态码
|
| | | wkshopcode: this.form.wkshopcode, // 车间编码
|
| | | erpordercode: this.form.erpordercode, // 订单编号
|
| | | saleordercode: this.form.saleordercode, // 销售单号
|
| | |
|
| | | partcode: this.form.partcode, // 产品编码
|
| | | partname: this.form.partname, // 产品名称
|
| | | partspec: this.form.partspec, // 产品规格
|
| | |
|
| | | datatype: this.form.datatype, // 日期类型(计划开工(PS)、计划完工(PE)、预计交付(ED))
|
| | | searchdate: this.form.timeValue.join('~'), // 时间段
|
| | | // paystartdate: tempDate2, // 交付时间
|
| | | // payenddate: tempDate, // 交付时间
|
| | |
|
| | | creatuser: this.form.creatuser, // 创建人员
|
| | |
|
| | | prop: this.form.prop, // 排序字段
|
| | | order: this.form.order, // 排序字段
|
| | | page: this.form.page, // 第几页
|
| | | rows: this.form.rows // 每页多少条
|
| | |
|
| | | }
|
| | |
|
| | | const res = await ErpOrderSearch(data)
|
| | | this.tableData = res.data
|
| | | this.total = res.count
|
| | | },
|
| | | // 排序改变时
|
| | | sortChange({ column, prop, order }) {
|
| | | if (order === 'descending') {
|
| | | order = 'desc'
|
| | | } else if (order === 'ascending') {
|
| | | order = 'asc'
|
| | | } else {
|
| | | order = 'desc'
|
| | | }
|
| | | this.form.order = order
|
| | | this.form.prop = prop
|
| | | this.getErpOrderSearch()
|
| | | },
|
| | | // 同步ERP
|
| | | syncERP() {
|
| | | const loading = this.$loading({
|
| | | lock: true,
|
| | | text: '正在同步ERP,请稍等...',
|
| | | spinner: 'el-icon-loading',
|
| | | customClass: 'osloading',
|
| | | background: 'rgba(0, 0, 0, 0.7)'
|
| | | })
|
| | |
|
| | | SeaveSearchErpOrder().then(res => {
|
| | | console.log(res, 11)
|
| | | if (res.code === '200') {
|
| | | setTimeout(() => {
|
| | | this.getErpOrderSearch()
|
| | | loading.close()
|
| | | this.$message.success('同步成功!')
|
| | | }, 2000)
|
| | | }
|
| | | // else if (res.code === '300') {
|
| | | // setTimeout(() => {
|
| | | // loading.close()
|
| | | // this.$message.error('同步失败!')
|
| | | // }, 10000)
|
| | | // }
|
| | | }).catch(e => {
|
| | | loading.close()
|
| | | })
|
| | | },
|
| | | // 查询
|
| | | search() {
|
| | | this.getErpOrderSearch()
|
| | | },
|
| | | // 重置
|
| | | reset() {
|
| | | this.form.wkshopcode = ''
|
| | | this.form.erporderstus = ''
|
| | | this.form.erpordercode = ''
|
| | | this.form.partcode = ''
|
| | | this.form.partname = ''
|
| | | this.form.partspec = ''
|
| | | this.form.paystartdate = ''
|
| | | this.form.payenddate = ''
|
| | | this.form.creatuser = ''
|
| | | this.form.saleordercode = ''
|
| | | this.form.createdate = ''
|
| | |
|
| | | this.form.timeValue = []
|
| | | this.cycleTime = null
|
| | |
|
| | | this.$refs.DateTypeRef.clearValue()
|
| | |
|
| | | this.getErpOrderSearch()
|
| | | },
|
| | | // 单选框选中获取当前行信息
|
| | | // getCurrentRow(id) {
|
| | | // this.radioSelectedId = id
|
| | | // },
|
| | | // rowClick(row) {
|
| | | // this.radioSelectedId = row.id
|
| | | // },
|
| | |
|
| | | // 订单删除
|
| | | orderDel(id) {
|
| | | this.tableData.forEach(item => {
|
| | | if (item.id === id) {
|
| | | if (item.status === 'CLOSED') {
|
| | | return this.$message.info('此订单已关闭,无法删除!')
|
| | | } else {
|
| | | this.$confirm('是否确认关闭订单?', '提示', {
|
| | | confirmButtonText: '确定',
|
| | | cancelButtonText: '取消',
|
| | | type: 'warning'
|
| | | }).then(() => {
|
| | | DeleteErpOrder({ erpordercode: item.wo, erporderid: id }).then(res => {
|
| | | if (res.code === '200') {
|
| | | this.$message.success('订单删除成功!')
|
| | | this.getErpOrderSearch()
|
| | | }
|
| | | })
|
| | | }).catch(() => {
|
| | | this.$message.info('已取消删除!')
|
| | | })
|
| | | }
|
| | | }
|
| | | })
|
| | | },
|
| | | // 订单关闭
|
| | | async orderClose(id) {
|
| | | this.tableData.forEach(item => {
|
| | | if (item.id === id) {
|
| | | if (item.status !== 'NEW') {
|
| | | return this.$message.info('此订单非新订单,无法关闭!')
|
| | | } else {
|
| | | this.$confirm('是否确认关闭订单?', '提示', {
|
| | | confirmButtonText: '确定',
|
| | | cancelButtonText: '取消',
|
| | | type: 'warning'
|
| | | }).then(() => {
|
| | | ClosedErpOrder({ erpordercode: item.wo, erporderid: id }).then(res => {
|
| | | if (res.code === '200') {
|
| | | this.$message.success('订单关闭成功!')
|
| | | this.getErpOrderSearch()
|
| | | }
|
| | | })
|
| | | }).catch(() => {
|
| | | this.$message.info('已取消关闭!')
|
| | | })
|
| | | }
|
| | | }
|
| | | })
|
| | | },
|
| | | batchHandle() {
|
| | | this.$confirm('是否批量下达?', '提示', {
|
| | | confirmButtonText: '确定',
|
| | | cancelButtonText: '取消',
|
| | | type: 'warning'
|
| | | }).then(() => {
|
| | | if (this.multipleSelection.length === 0) {
|
| | | return this.$message.info('请先选择订单!')
|
| | | }
|
| | | // console.log(JSON.parse(JSON.stringify(this.multipleSelection)))
|
| | | const data = []
|
| | | this.multipleSelection.forEach(i => {
|
| | | data.push({
|
| | | 'erporderid': i.id,
|
| | | 'sbid': i.sbid,
|
| | | 'erpordercode': i.wo,
|
| | | 'partcode': i.partcode,
|
| | | 'wkshopcode': i.wkshp_code,
|
| | | 'warehousecode': i.stck_code,
|
| | | 'erpqty': i.qty,
|
| | | 'markqty': i.qty,
|
| | | 'ordernum': 1,
|
| | | 'clerkuser': i.clerkuser,
|
| | | 'relse_qty': i.qty,
|
| | | 'saleordercode': i.saleOrderCode,
|
| | | // 'saleOrderDeliveryDate': i.saleOrderDeliveryDate
|
| | | 'saleOrderDeliveryDate': handleDatetime(new Date()) + ' 00:00:00',
|
| | |
|
| | | 'paystartdate': i.planstartdate,
|
| | | 'payenddate': i.planenddate
|
| | | })
|
| | | })
|
| | | // console.log(JSON.parse(JSON.stringify(data)))
|
| | | MarkBatchSaveErpOrder(data).then(res => {
|
| | | if (res.code === '200') {
|
| | | this.multipleSelection = []
|
| | | this.$message.success('批量下达成功!')
|
| | | this.getErpOrderSearch()
|
| | | } else {
|
| | | this.$message.error('批量下达失败!')
|
| | | }
|
| | | })
|
| | | }).catch(() => {
|
| | | this.$message.info('已取消下达!')
|
| | | })
|
| | | },
|
| | | selected(row, index) {
|
| | | return row.status === 'NEW'
|
| | | },
|
| | | handleSelectionChange(val) {
|
| | | this.multipleSelection = val
|
| | | },
|
| | | // 新增按钮
|
| | | add(operation) {
|
| | | this.operation = operation
|
| | | this.dialogVisible = true
|
| | | },
|
| | | // 修改按钮
|
| | | edit(operation, row) {
|
| | | if (parseFloat(row.qty) === parseFloat(row.relse_qty) || row.status === 'CLOSED') {
|
| | | return this.$message.info('此工单已全部下达!')
|
| | | }
|
| | |
|
| | | this.operation = operation
|
| | | this.dialogVisible = true
|
| | |
|
| | | this.$nextTick(() => {
|
| | | this.dialogForm.sbid = row.sbid
|
| | | this.dialogForm.erporderid = row.id
|
| | | this.dialogForm.erpordercode = row.wo
|
| | | this.dialogForm.saleordercode = row.saleOrderCode
|
| | |
|
| | | this.dialogForm.partcode = row.partcode
|
| | | this.dialogForm.partname = row.partname
|
| | | this.dialogForm.partspec = row.partspec
|
| | |
|
| | | this.dialogForm.wkshopcode = row.wkshp_code
|
| | | this.dialogForm.wkshopname = row.wkshp_name
|
| | |
|
| | | this.dialogForm.warehousecode = row.stck_code
|
| | | this.dialogForm.warehousename = row.stck_name
|
| | |
|
| | | this.dialogForm.saleOrderDeliveryDate = row.saleOrderDeliveryDate
|
| | |
|
| | | this.dialogForm.erpqty = row.qty
|
| | | this.dialogForm.markqty = parseFloat(row.qty) - parseFloat(row.relse_qty)
|
| | | this.dialogForm.ordernum = 1
|
| | | this.dialogForm.relse_qty = row.relse_qty
|
| | | this.dialogForm.clerkuser = row.clerkuser
|
| | |
|
| | | this.dialogForm.paystartdate = row.planstartdate
|
| | | this.dialogForm.payenddate = row.planenddate
|
| | | })
|
| | | },
|
| | | // 对话框关闭事件
|
| | | handleClose() {
|
| | | this.dialogForm = {
|
| | | erporderid: '', // 订单id
|
| | | sbid: '', // 订单明细id
|
| | | erpordercode: '', // 订单编号
|
| | | saleordercode: '', // 销售订单
|
| | |
|
| | | partcode: '', // 产品编码
|
| | | partname: '', // 产品名称
|
| | | partspec: '', // 产品规格
|
| | |
|
| | | wkshopcode: '', // 车间编码
|
| | | wkshopname: '', // 车间名称
|
| | |
|
| | | warehousecode: '', // 仓库编码
|
| | | warehousename: '', // 仓库名称
|
| | |
|
| | | erpqty: '', // 订单数量
|
| | | markqty: '', // 下单数量
|
| | | ordernum: '', // 下单单数
|
| | | relse_qty: '', // 已下单数量
|
| | |
|
| | | payenddate: '', // 预计完工日期
|
| | | paystartdate: '', // 预计开工日期
|
| | |
|
| | | saleOrderDeliveryDate: '' // 预计交付日期
|
| | | }
|
| | | this.$refs.dialogForm.clearValidate()
|
| | | },
|
| | | // 对话框取消
|
| | | dialogVisibleCancel() {
|
| | | this.dialogVisible = false
|
| | | },
|
| | | // 对话框确认
|
| | | dialogVisibleConfirm() {
|
| | | this.dialogForm.markqty = parseFloat(this.dialogForm.markqty)
|
| | | this.dialogForm.erpqty = parseFloat(this.dialogForm.erpqty)
|
| | | this.dialogForm.relse_qty = parseFloat(this.dialogForm.relse_qty)
|
| | | this.dialogForm.ordernum = parseFloat(this.dialogForm.ordernum)
|
| | | if (this.dialogForm.markqty < 1 || this.dialogForm.markqty > this.dialogForm.erpqty - this.dialogForm.relse_qty) {
|
| | | return this.$message.info('下单数量超出可下单数的范围!')
|
| | | }
|
| | |
|
| | | if (this.dialogForm.ordernum < 1 || this.dialogForm.ordernum > this.dialogForm.markqty) {
|
| | | return this.$message.info('下单单数超出可下单单数的范围!')
|
| | | }
|
| | |
|
| | | this.$refs.dialogForm.validate(valid => {
|
| | | if (valid) {
|
| | | this.$store.state.app.buttonIsDisabled = true
|
| | | const data = {
|
| | | 'sbid': this.dialogForm.sbid,
|
| | | 'erporderid': this.dialogForm.erporderid,
|
| | | 'erpordercode': this.dialogForm.erpordercode,
|
| | | 'saleordercode': this.dialogForm.saleordercode,
|
| | | 'partcode': this.dialogForm.partcode,
|
| | | 'wkshopcode': this.dialogForm.wkshopcode,
|
| | | 'warehousecode': this.dialogForm.warehousecode,
|
| | | 'clerkuser': this.dialogForm.clerkuser,
|
| | | 'erpqty': this.dialogForm.erpqty,
|
| | | 'markqty': this.dialogForm.markqty,
|
| | | 'ordernum': this.dialogForm.ordernum,
|
| | | 'payenddate': this.dialogForm.payenddate,
|
| | | 'paystartdate': this.dialogForm.paystartdate,
|
| | | 'relse_qty': this.dialogForm.relse_qty,
|
| | | 'saleOrderDeliveryDate': handleDatetime(this.dialogForm.saleOrderDeliveryDate) + ' 00:00:00'
|
| | | }
|
| | |
|
| | | MarkSaveErpOrder(data).then(res => {
|
| | | if (res.code === '200') {
|
| | | this.dialogVisible = false
|
| | | this.$message.success('下达成功!')
|
| | | this.getErpOrderSearch()
|
| | | this.$store.state.app.buttonIsDisabled = false
|
| | | } else {
|
| | | this.$message.error('下达失败!')
|
| | | }
|
| | | })
|
| | | }
|
| | | })
|
| | | },
|
| | | // 获取页面高度
|
| | | getHeight() {
|
| | | this.$nextTick(() => {
|
| | | this.mainHeight = window.innerHeight - 85
|
| | | this.tableHeight = this.mainHeight - 250
|
| | |
|
| | | this.$refs.tableDataRef.doLayout()
|
| | | })
|
| | | },
|
| | | tableRowClassName({ row, rowIndex }) {
|
| | | return 'custom-row'
|
| | | },
|
| | | getSummaries(param) {
|
| | | const { columns, data } = param
|
| | | const sums = []
|
| | | const i = 7
|
| | | columns.forEach((column, index) => {
|
| | | if (index === i) {
|
| | | sums[index] = '总数'
|
| | | return
|
| | | }
|
| | | const values = data.map(item => Number(item[column.property]))
|
| | | if (column.property === 'qty') {
|
| | | sums[index] = values.reduce((prev, curr) => {
|
| | | const value = Number(curr)
|
| | | if (!isNaN(value)) {
|
| | | return prev + curr
|
| | | // return Math.round(prev * 100) / 100 + Math.round(curr * 100) / 100
|
| | | }
|
| | | }, 0)
|
| | |
|
| | | sums[index] += ' 单'
|
| | | }
|
| | | if (column.property === 'relse_qty') {
|
| | | sums[index] = values.reduce((prev, curr) => {
|
| | | const value = Number(curr)
|
| | | if (!isNaN(value)) {
|
| | | return prev + curr
|
| | | // return Math.round(prev * 100) / 100 + Math.round(curr * 100) / 100
|
| | | }
|
| | | }, 0)
|
| | |
|
| | | sums[index] += ' 单'
|
| | | }
|
| | | })
|
| | |
|
| | | this.$nextTick(() => {
|
| | | this.$refs.tableDataRef.doLayout()
|
| | | })
|
| | | return sums
|
| | | }
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
|
| | | <!--公共页面样式-->
|
| | | <style lang="scss" scoped>
|
| | | $main_color: #42b983;
|
| | |
|
| | | ::v-deep .el-range__icon {
|
| | | line-height: 28px !important;
|
| | | }
|
| | |
|
| | | ::v-deep .el-range-separator {
|
| | | line-height: 28px !important;
|
| | | }
|
| | |
|
| | | ::v-deep .el-range-input {
|
| | | font-size: 14px;
|
| | | }
|
| | |
|
| | | ::v-deep .el-range-separator {
|
| | | display: flex;
|
| | | justify-content: center;
|
| | | align-items: center;
|
| | | }
|
| | |
|
| | | .el-icon-share, .el-icon-delete, .el-icon-edit-outline {
|
| | | color: $main_color;
|
| | | cursor: pointer;
|
| | | }
|
| | |
|
| | | .el-icon-edit-outline {
|
| | | margin-right: 15px;
|
| | | }
|
| | |
|
| | | //::v-deep .el-button--primary, .el-button--default, .el-button--info {
|
| | | // height: 34px;
|
| | | // display: flex;
|
| | | // align-items: center;
|
| | | // padding: 0 15px;
|
| | | //}
|
| | |
|
| | | ::v-deep .el-button--primary {
|
| | | //background-color: $main_color !important;
|
| | | }
|
| | |
|
| | | ::v-deep .el-button--default {
|
| | | background-color: #f8f8fa;
|
| | | border: none;
|
| | | }
|
| | |
|
| | | ::v-deep .el-input__inner {
|
| | | height: 34px;
|
| | | line-height: 34px;
|
| | | //color: #a7a7a7;
|
| | | }
|
| | |
|
| | | ::v-deep .el-dialog__body {
|
| | | padding: 20px 100px !important;
|
| | | }
|
| | |
|
| | | ::v-deep .dialogVisibleRoles .el-dialog__body {
|
| | | padding: 20px 20px !important;
|
| | | }
|
| | |
|
| | | ::v-deep .importPickerClass .el-dialog__body {
|
| | | padding: 20px 20px !important;
|
| | | }
|
| | |
|
| | | ::v-deep .el-dialog__footer {
|
| | | display: flex;
|
| | | justify-content: flex-end;
|
| | | }
|
| | |
|
| | | ::v-deep .el-table .caret-wrapper {
|
| | | transform: scale(0.8);
|
| | | }
|
| | |
|
| | | ::v-deep .cell {
|
| | | display: flex;
|
| | | align-items: center;
|
| | | justify-content: space-between;
|
| | | }
|
| | |
|
| | | ::v-deep .el-table::before {
|
| | | height: 0;
|
| | | }
|
| | |
|
| | | ::v-deep .el-table__body-wrapper {
|
| | | background-color: #f8f8fa;
|
| | | }
|
| | |
|
| | | ::v-deep .el-table__body .el-table__row.hover-row td {
|
| | | background-color: #eaecef;
|
| | | }
|
| | |
|
| | | ::v-deep .el-form--inline .el-form-item__label {
|
| | | color: #a7a7a7;
|
| | | }
|
| | |
|
| | | .body ::v-deep .el-divider {
|
| | | border: 1px solid #eee;
|
| | | width: 99%;
|
| | | margin: 10px auto;
|
| | | }
|
| | |
|
| | | .body ::v-deep .el-form-item {
|
| | | margin-bottom: 0;
|
| | | }
|
| | |
|
| | | .userDialogVisible ::v-deep .el-form-item {
|
| | | margin-bottom: 0;
|
| | | }
|
| | |
|
| | | .elTableDiv {
|
| | | ::v-deep .el-radio__label {
|
| | | display: none;
|
| | | }
|
| | | }
|
| | |
|
| | | .tableFixed {
|
| | | ::v-deep .el-table__fixed-right {
|
| | | height: 100% !important;
|
| | | }
|
| | |
|
| | | ::v-deep .el-table__fixed {
|
| | | height: 100% !important;
|
| | | }
|
| | | }
|
| | |
|
| | | .dateMini {
|
| | | ::v-deep .el-input__inner {
|
| | | line-height: 34px;
|
| | | height: 34px;
|
| | | width: 200px;
|
| | | display: flex;
|
| | | font-size: 14px !important;
|
| | | align-items: center !important;
|
| | | }
|
| | |
|
| | | ::v-deep .el-input__prefix {
|
| | | margin-top: -3px;
|
| | | }
|
| | | }
|
| | |
|
| | | ::v-deep .el-icon-delete {
|
| | | cursor: pointer;
|
| | | margin-right: 0px !important;
|
| | | }
|
| | | </style>
|
| | | <style>
|
| | | .el-table .custom-row {
|
| | | background: #f8f8fa;
|
| | | }
|
| | |
|
| | | .osloading {
|
| | | font-size: 26px !important;
|
| | | }
|
| | |
|
| | | .el-loading-text {
|
| | | font-size: 26px !important;
|
| | | }
|
| | |
|
| | | .el-picker-panel__footer {
|
| | | display: flex !important;
|
| | | justify-content: flex-end !important;
|
| | | }
|
| | |
|
| | | </style>
|
| | |
|
| | | <template> |
| | | <div> |
| | | <div class="body" :style="{height:mainHeight+'px'}"> |
| | | |
| | | <div class="bodyTopButtonGroup" style="justify-content: space-between"> |
| | | <el-button |
| | | v-waves |
| | | icon="el-icon-refresh-right" |
| | | @click="syncERP" |
| | | >同步ERP |
| | | </el-button> |
| | | <div style="display: flex"> |
| | | <el-button |
| | | v-waves |
| | | type="primary" |
| | | icon="el-icon-bottom" |
| | | @click="batchHandle" |
| | | >批量下达 |
| | | </el-button> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | <div class="bodyTopFormGroup"> |
| | | <el-form |
| | | ref="form" |
| | | :model="form" |
| | | label-width="100px" |
| | | inline |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="车间名称" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.wkshopcode" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in wkshopcodeArr" |
| | | :key="item.torg_code" |
| | | :label="item.torg_name" |
| | | :value="item.torg_code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="订单状态" style=" display: flex;"> |
| | | <el-select |
| | | v-model="form.erporderstus" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in erporderstusArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="订单编号" style=" display: flex;"> |
| | | <el-input v-model="form.erpordercode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="销售订单" style=" display: flex;"> |
| | | <el-input v-model="form.saleordercode" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item v-show="isExpandForm" label="产品编码" style=" display: flex;"> |
| | | <el-input v-model="form.partcode" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item v-show="isExpandForm" label="产品名称" style=" display: flex;"> |
| | | <el-input v-model="form.partname" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="产品规格" style=" display: flex;"> |
| | | <el-input v-model="form.partspec" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | |
| | | <DateType |
| | | ref="DateTypeRef" |
| | | :is-expand-form="isExpandForm" |
| | | style="display:flex;justify-content: center;align-items: center;position: relative" |
| | | @DateTypeChange="DateTypeChange" |
| | | @cycleTimeChange="cycleTimeChange" |
| | | /> |
| | | |
| | | <!-- <el-form-item--> |
| | | <!-- v-show="isExpandForm"--> |
| | | <!-- label="预计开工时间"--> |
| | | <!-- label-width="100px"--> |
| | | <!-- style="display: flex;font-size: 14px;align-items: center"--> |
| | | <!-- >--> |
| | | <!-- <el-date-picker--> |
| | | <!-- v-model="form.paystartdate"--> |
| | | <!-- type="datetimerange"--> |
| | | <!-- range-separator="~"--> |
| | | <!-- class="timeMini"--> |
| | | <!-- size="mini"--> |
| | | <!-- style="width: 200px;display: flex;line-height: 34px;height: 34px;"--> |
| | | <!-- :clearable="false"--> |
| | | <!-- start-placeholder="开始日期"--> |
| | | <!-- end-placeholder="结束日期"--> |
| | | <!-- :picker-options="pickerOptions"--> |
| | | <!-- value-format="yyyy-MM-dd"--> |
| | | <!-- @change="pickerChange"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | |
| | | <!-- <el-form-item--> |
| | | <!-- v-show="isExpandForm"--> |
| | | <!-- label="预计完工时间"--> |
| | | <!-- label-width="100px"--> |
| | | <!-- style=" display: flex;font-size: 14px;align-items: center"--> |
| | | <!-- >--> |
| | | <!-- <el-date-picker--> |
| | | <!-- v-model="form.payenddate"--> |
| | | <!-- type="daterange"--> |
| | | <!-- :clearable="false"--> |
| | | <!-- class="timeMini"--> |
| | | <!-- range-separator="~"--> |
| | | <!-- start-placeholder="开始日期"--> |
| | | <!-- style="width: 200px;display: flex;line-height: 34px ;height: 34px ;"--> |
| | | <!-- end-placeholder="结束日期"--> |
| | | <!-- size="mini"--> |
| | | <!-- />--> |
| | | <!-- </el-form-item>--> |
| | | </div> |
| | | |
| | | <div |
| | | class="bodySearchReset" |
| | | :style="{marginLeft:$store.state.app.sidebar.opened? $store.state.settings.menuIsHorizontal?'15%':'3%':'10%'}" |
| | | > |
| | | <el-button v-waves type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | | <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">重置</el-button> |
| | | </div> |
| | | |
| | | </el-form> |
| | | |
| | | <div |
| | | class="bodyTopFormExpand" |
| | | > |
| | | <svg-icon |
| | | v-show="mouseHoverType==='mouseout'" |
| | | style="cursor: pointer" |
| | | :icon-class="!isExpandForm?'doubleDown3':'doubleUp3'" |
| | | @mouseenter="mouseHoverType=$event.type" |
| | | /> |
| | | <svg-icon |
| | | v-show="mouseHoverType==='mouseenter'" |
| | | style="cursor: pointer" |
| | | :icon-class="!isExpandForm?'doubleDown':'doubleUp'" |
| | | @click="isExpandForm=!isExpandForm" |
| | | @mouseout="mouseHoverType=$event.type" |
| | | /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="elTableDiv"> |
| | | <el-table |
| | | ref="tableDataRef" |
| | | class="tableFixed" |
| | | :data="tableData" |
| | | :height="isExpandForm?tableHeight:(tableHeight+40)+'px'" |
| | | border |
| | | :row-class-name="tableRowClassName" |
| | | :style="{width: 100+'%',height:isExpandForm?tableHeight:(tableHeight+40)+'px',}" |
| | | highlight-current-row |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | | :summary-method="getSummaries" |
| | | show-summary |
| | | @sort-change="sortChange" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <!-- @row-click="rowClick"--> |
| | | <el-table-column |
| | | type="selection" |
| | | width="50" |
| | | :selectable="selected" |
| | | /> |
| | | <!-- <el-table-column--> |
| | | <!-- width="50"--> |
| | | <!-- fixed--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <el-radio--> |
| | | <!-- v-model="radioSelectedId"--> |
| | | <!-- :label="row.id"--> |
| | | <!-- style="color: transparent;padding-left: 10px;"--> |
| | | <!-- />--> |
| | | <!-- <!– @change.native="getCurrentRow(row.id)"–>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column |
| | | prop="rowNum" |
| | | width="50" |
| | | fixed |
| | | label="序号" |
| | | /> |
| | | <el-table-column |
| | | prop="status" |
| | | label="订单状态" |
| | | sortable="custom" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.status==='NEW'">新订单</div> |
| | | <div v-if="row.status==='CREATING'">部分下达</div> |
| | | <div v-if="row.status==='CREATED'">全部下达</div> |
| | | <div v-if="row.status==='CLOSED'">已关闭</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="wo" |
| | | label="订单编号" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | min-width="150" |
| | | /> |
| | | <el-table-column |
| | | show-tooltip-when-overflow |
| | | prop="saleOrderCode" |
| | | label="销售订单" |
| | | sortable="custom" |
| | | width="150" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.saleOrderCode">{{ row.saleOrderCode }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="partcode" |
| | | label="产品编码" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | min-width="150" |
| | | /> |
| | | <el-table-column |
| | | prop="partname" |
| | | label="产品名称" |
| | | sortable="custom" |
| | | min-width="200" |
| | | show-tooltip-when-overflow |
| | | /> |
| | | <el-table-column |
| | | prop="partspec" |
| | | label="产品规格" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | min-width="110" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.partspec">{{ row.partspec }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="qty" |
| | | label="订单数量" |
| | | width="150" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="relse_qty" |
| | | label="已下单数量" |
| | | show-tooltip-when-overflow |
| | | width="150" |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="priuserdefnvc1" |
| | | label="客户名称" |
| | | width="110" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | {{ row.priuserdefnvc1 ? row.priuserdefnvc1 : '/' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="priuserdefnvc6" |
| | | label="客户编码" |
| | | width="110" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | {{ row.priuserdefnvc6 ? row.priuserdefnvc6 : '/' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="priuserdefnvc2" |
| | | label="对内名称" |
| | | width="110" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | {{ row.priuserdefnvc2 ? row.priuserdefnvc2 : '/' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="priuserdefnvc3" |
| | | label="CTP日期" |
| | | width="110" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | {{ row.priuserdefnvc3 ? row.priuserdefnvc3 : '/' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="priuserdefnvc4" |
| | | label="钢刀编号" |
| | | width="110" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | {{ row.priuserdefnvc4 ? row.priuserdefnvc4 : '/' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="priuserdefnvc5" |
| | | label="盒型" |
| | | width="110" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | {{ row.priuserdefnvc5 ? row.priuserdefnvc5 : '/' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="clerkuser" |
| | | label="销售业务员" |
| | | show-tooltip-when-overflow |
| | | width="150" |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.clerkuser">{{ row.clerkuser }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="生产车间" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | width="150" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.wkshp_name">{{ row.wkshp_name }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="planstartdate"--> |
| | | <!-- show-tooltip-when-overflow--> |
| | | <!-- label="预计开工时间"--> |
| | | <!-- sortable="custom"--> |
| | | <!-- width="130"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <div v-if="row.planstartdate">{{ row.planstartdate.substring(0, 11) }}</div>--> |
| | | <!-- <div v-else>/</div>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <!-- <el-table-column--> |
| | | <!-- prop="planenddate"--> |
| | | <!-- label="预计完工时间"--> |
| | | <!-- show-tooltip-when-overflow--> |
| | | <!-- sortable="custom"--> |
| | | <!-- width="130"--> |
| | | <!-- >--> |
| | | <!-- <template slot-scope="{row}">--> |
| | | <!-- <div v-if="row.planenddate">{{ row.planenddate.substring(0, 11) }}</div>--> |
| | | <!-- <div v-else>/</div>--> |
| | | <!-- </template>--> |
| | | <!-- </el-table-column>--> |
| | | <el-table-column |
| | | prop="planenddate" |
| | | label="预计开工日期" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | width="130" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.planenddate">{{ row.planenddate.substring(0, 11) }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="planstartdate" |
| | | label="预计完工日期" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | width="130" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.planstartdate">{{ row.planstartdate.substring(0, 11) }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="saleOrderDeliveryDate" |
| | | label="预计交付日期" |
| | | sortable="custom" |
| | | show-tooltip-when-overflow |
| | | width="130" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.saleOrderDeliveryDate">{{ row.saleOrderDeliveryDate.substring(0, 11) }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | show-tooltip-when-overflow |
| | | prop="createuser" |
| | | label="创建人员" |
| | | sortable="custom" |
| | | width="150" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.createuser">{{ row.createuser }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="createdate" |
| | | label="创建时间" |
| | | width="130" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.createdate">{{ row.createdate.substring(0, 11) }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | width="120" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | | <el-tooltip class="item" effect="dark" content="下达" placement="top"> |
| | | <!-- <el-button v-waves type="text" @click="edit('edit',row)">下达</el-button>--> |
| | | <i |
| | | class="el-icon-bottom" |
| | | :style="{color:$store.state.settings.theme}" |
| | | style="cursor: pointer;margin-left: 5px" |
| | | @click="edit('edit',row)" |
| | | /> |
| | | </el-tooltip> |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="订单关闭" placement="top"> |
| | | <i |
| | | class="el-icon-switch-button" |
| | | :style="{color:$store.state.settings.theme}" |
| | | style="cursor: pointer;margin-left: 15px" |
| | | @click="orderClose(row.id)" |
| | | /> |
| | | </el-tooltip> |
| | | |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="订单删除" placement="top"> |
| | | <i |
| | | class="el-icon-delete" |
| | | :style="{color:$store.state.settings.theme}" |
| | | style="cursor: pointer;margin-left: 15px" |
| | | @click="orderDel(row.id)" |
| | | /> |
| | | </el-tooltip> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <!--分页--> |
| | | <pagination |
| | | :total="total" |
| | | :page.sync="form.page" |
| | | :limit.sync="form.rows" |
| | | align="right" |
| | | layout="total,prev, pager, next,sizes,jumper" |
| | | popper-class="select_bottom" |
| | | @pagination="getErpOrderSearch" |
| | | /> |
| | | </div> |
| | | |
| | | <el-dialog |
| | | v-el-drag-dialog |
| | | :title="operation==='add'?'新增':'下达'" |
| | | :visible.sync="dialogVisible" |
| | | width="900px" |
| | | top="12vh" |
| | | :close-on-click-modal="false" |
| | | @closed="handleClose" |
| | | @close="handleClose" |
| | | > |
| | | <el-form ref="dialogForm" inline :rules="dialogFormRules" :model="dialogForm" label-width="106px"> |
| | | <el-form-item label="订单编号" prop="erpordercode"> |
| | | <el-input v-model="dialogForm.erpordercode" disabled style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="产品编码" prop="partcode"> |
| | | <el-input v-model="dialogForm.partcode" disabled style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="产品名称" prop="partname"> |
| | | <el-input v-model="dialogForm.partname" disabled style="width: 200px" /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="产品规格" prop="partspec"> |
| | | <el-input v-model="dialogForm.partspec" disabled style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="生产车间" prop="wkshopname"> |
| | | <el-input v-model="dialogForm.wkshopname" disabled style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="所属仓库" prop="warehousename"> |
| | | <el-input v-model="dialogForm.warehousename" disabled style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="订单数量" prop="erpqty"> |
| | | <el-input v-model="dialogForm.erpqty" disabled style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="已下单数" prop="relse_qty"> |
| | | <el-input |
| | | v-model="dialogForm.relse_qty" |
| | | disabled |
| | | oninput="value=value.replace(/[^0-9.]/g,'')" |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="下单数量" prop="markqty"> |
| | | <el-input |
| | | v-model="dialogForm.markqty" |
| | | oninput="value=value.replace(/[^0-9.]/g,'')" |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="下单单数" prop="ordernum"> |
| | | <el-input |
| | | v-model="dialogForm.ordernum" |
| | | oninput="value=value.replace(/[^0-9.]/g,'')" |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="销售业务员" prop=""> |
| | | <el-input |
| | | v-model="dialogForm.clerkuser" |
| | | disabled |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | <!-- :picker-options="pickerOptions"--> |
| | | |
| | | <el-form-item label="预计交付日期" prop="saleOrderDeliveryDate"> |
| | | <el-date-picker |
| | | v-model="dialogForm.saleOrderDeliveryDate" |
| | | type="date" |
| | | size="mini" |
| | | :clearable="false" |
| | | class="dateMini" |
| | | format="yyyy-MM-dd" |
| | | style="width: 200px" |
| | | placeholder="选择日期" |
| | | :disabled="dialogForm.saleOrderDeliveryDateIsDisabled" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <div style="display: flex"> |
| | | <el-form-item label="预计开工日期" prop="" style="display: flex"> |
| | | <el-date-picker |
| | | v-model="dialogForm.paystartdate" |
| | | type="date" |
| | | size="mini" |
| | | style="width: 200px" |
| | | :clearable="false" |
| | | class="dateMini" |
| | | format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="选择日期" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="预计完工日期" prop="" style="display: flex"> |
| | | <el-date-picker |
| | | v-model="dialogForm.payenddate" |
| | | type="date" |
| | | size="mini" |
| | | style="width: 200px" |
| | | :clearable="false" |
| | | class="dateMini" |
| | | format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="选择日期" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | </div> |
| | | |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button v-waves @click="dialogVisibleCancel">取 消</el-button> |
| | | <el-button |
| | | v-waves |
| | | type="primary" |
| | | :loading="$store.state.app.buttonIsDisabled" |
| | | :disabled="$store.state.app.buttonIsDisabled" |
| | | @click="dialogVisibleConfirm" |
| | | >下 达</el-button> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Pagination from '@/components/Pagination' |
| | | import { handleDatetime } from '@/utils/global' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import { |
| | | ClosedErpOrder, |
| | | DeleteErpOrder, |
| | | ErpOrderSearch, |
| | | MarkBatchSaveErpOrder, |
| | | MarkSaveErpOrder |
| | | } from '@/api/WorkOrder' |
| | | import { SeaveSearchErpOrder } from '@/api/ErpSyncMes' |
| | | import { PrentOrganizationNoCompany } from '@/api/GeneralBasicData' |
| | | import DateType from '@/components/DateType' |
| | | |
| | | const SER_HZ = /^[\u4e00-\u9fa5]+$/ |
| | | export default { |
| | | name: 'ProduceOrderList', |
| | | components: { |
| | | Pagination, DateType |
| | | }, |
| | | directives: { elDragDialog, waves }, |
| | | data() { |
| | | const validateName = (rule, value, callback) => { |
| | | if (!value) { |
| | | return callback(new Error('请输入编码')) |
| | | } else { |
| | | if (SER_HZ.test(value)) { |
| | | return callback(new Error('编码不能为中文')) |
| | | } else { |
| | | callback() |
| | | } |
| | | } |
| | | } |
| | | return { |
| | | mouseHoverType: 'mouseout', |
| | | isExpandForm: false, |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | | wkshopcode: '', // 车间编码 |
| | | erporderstus: '', // 订单状态码 |
| | | erpordercode: '', // 订单编号 |
| | | partcode: '', // 产品编码 |
| | | partname: '', // 产品名称 |
| | | partspec: '', // 产品规格 |
| | | creatuser: '', // 创建人员 |
| | | saleordercode: '', // 销售订单 |
| | | // paystartdate: '', // 交付时间 |
| | | paystartdate: '', // 预计开工时间 |
| | | payenddate: '', // 预计完工时间 |
| | | createdate: '', // 创建时间 |
| | | |
| | | datatype: 'ED', // 时间类型 |
| | | timeValue: [], // 时间值 |
| | | |
| | | prop: 'wo', // 排序字段 |
| | | order: 'desc', // 排序字段 |
| | | page: 1, // 第几页 |
| | | rows: 20 // 每页多少条 |
| | | }, |
| | | |
| | | erporderstusArr: [ |
| | | { code: 'NEW', name: '新订单' }, |
| | | { code: 'CREATING', name: '部分下达' }, |
| | | { code: 'CREATED', name: '全部下达' }, |
| | | { code: 'CLOSED', name: '已关闭' } |
| | | ], |
| | | wkshopcodeArr: [], |
| | | total: 10, |
| | | radioSelectedId: '', |
| | | tableData: [], |
| | | dialogVisible: false, |
| | | dialogForm: { |
| | | erporderid: '', // 订单id |
| | | sbid: '', // 订单明细id |
| | | erpordercode: '', // 订单编号 |
| | | saleordercode: '', // 销售订单 |
| | | |
| | | partcode: '', // 产品编码 |
| | | partname: '', // 产品名称 |
| | | partspec: '', // 产品规格 |
| | | |
| | | wkshopcode: '', // 车间编码 |
| | | wkshopname: '', // 车间名称 |
| | | |
| | | warehousecode: '', // 仓库编码 |
| | | warehousename: '', // 仓库名称 |
| | | |
| | | erpqty: '', // 订单数量 |
| | | markqty: '', // 下单数量 |
| | | ordernum: '', // 下单单数 |
| | | relse_qty: '', // 已下单数量 |
| | | |
| | | clerkuser: '', // 销售业务员 |
| | | |
| | | saleOrderDeliveryDate: '', // 预计交付日期 |
| | | |
| | | paystartdate: '', // 预计开工日期 |
| | | payenddate: ''// 预计完工日期 |
| | | }, |
| | | operation: '', |
| | | dialogFormRules: { |
| | | // OrgType: [ |
| | | // { required: true, message: '请输入选择类型', trigger: ['blur', 'change'] } |
| | | // ], |
| | | // OrgCode: [ |
| | | // { required: true, validator: validateName, trigger: ['blur', 'change'] } |
| | | // ], |
| | | markqty: [ |
| | | { required: true, message: '请输入下单数量', trigger: ['blur', 'change'] } |
| | | ], |
| | | ordernum: [ |
| | | { required: true, message: '请输入下单单数', trigger: ['blur', 'change'] } |
| | | ], |
| | | saleOrderDeliveryDate: [ |
| | | { required: true, message: '请选择预计交付日期', trigger: ['blur', 'change'] } |
| | | ] |
| | | |
| | | }, |
| | | pickerOptions: { |
| | | disabledDate(time) { |
| | | return time.getTime() < Date.now() - 8.64e7 |
| | | } |
| | | }, |
| | | multipleSelection: [] |
| | | |
| | | // expireTimeOption: { |
| | | // disabledDate(time) { |
| | | // return time.getTime() > Date.now() - 8.64e6 // 如果没有后面的-8.64e6就是不可以选择今天的 |
| | | // } |
| | | // } |
| | | |
| | | } |
| | | }, |
| | | activated() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | created() { |
| | | this.getErpOrderSearch() |
| | | // this.getPartSelect()// 获取产品编码信息 |
| | | |
| | | this.getPrentOrganizationNoCompany() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | |
| | | DateTypeChange(value) { |
| | | this.form.datatype = value |
| | | }, |
| | | cycleTimeChange(val) { |
| | | this.form.timeValue = val |
| | | }, |
| | | |
| | | pickerChange(value) { |
| | | console.log(value, 123) |
| | | this.cycleTime = null |
| | | }, |
| | | |
| | | async getPrentOrganizationNoCompany() { |
| | | const { data: res } = await PrentOrganizationNoCompany() |
| | | this.wkshopcodeArr = res |
| | | }, |
| | | async getErpOrderSearch() { |
| | | console.log(this.form, 1) |
| | | // let tempDate2 = this.form.paystartdate |
| | | // if (tempDate2.length > 0) { |
| | | // tempDate2 = handleDatetime(tempDate2[0]) + '~' + handleDatetime(tempDate2[1]) |
| | | // } |
| | | // |
| | | // let tempDate = this.form.payenddate |
| | | // if (tempDate.length > 0) { |
| | | // tempDate = handleDatetime(tempDate[0]) + '~' + handleDatetime(tempDate[1]) |
| | | // } |
| | | |
| | | const data = { |
| | | |
| | | erporderstus: this.form.erporderstus, // 订单状态码 |
| | | wkshopcode: this.form.wkshopcode, // 车间编码 |
| | | erpordercode: this.form.erpordercode, // 订单编号 |
| | | saleordercode: this.form.saleordercode, // 销售单号 |
| | | |
| | | partcode: this.form.partcode, // 产品编码 |
| | | partname: this.form.partname, // 产品名称 |
| | | partspec: this.form.partspec, // 产品规格 |
| | | |
| | | datatype: this.form.datatype, // 日期类型(计划开工(PS)、计划完工(PE)、预计交付(ED)) |
| | | searchdate: this.form.timeValue.join('~'), // 时间段 |
| | | // paystartdate: tempDate2, // 交付时间 |
| | | // payenddate: tempDate, // 交付时间 |
| | | |
| | | creatuser: this.form.creatuser, // 创建人员 |
| | | |
| | | prop: this.form.prop, // 排序字段 |
| | | order: this.form.order, // 排序字段 |
| | | page: this.form.page, // 第几页 |
| | | rows: this.form.rows // 每页多少条 |
| | | |
| | | } |
| | | |
| | | const res = await ErpOrderSearch(data) |
| | | this.tableData = res.data |
| | | this.total = res.count |
| | | }, |
| | | // 排序改变时 |
| | | sortChange({ column, prop, order }) { |
| | | if (order === 'descending') { |
| | | order = 'desc' |
| | | } else if (order === 'ascending') { |
| | | order = 'asc' |
| | | } else { |
| | | order = 'desc' |
| | | } |
| | | this.form.order = order |
| | | this.form.prop = prop |
| | | this.getErpOrderSearch() |
| | | }, |
| | | // 同步ERP |
| | | syncERP() { |
| | | const loading = this.$loading({ |
| | | lock: true, |
| | | text: '正在同步ERP,请稍等...', |
| | | spinner: 'el-icon-loading', |
| | | customClass: 'osloading', |
| | | background: 'rgba(0, 0, 0, 0.7)' |
| | | }) |
| | | |
| | | SeaveSearchErpOrder().then(res => { |
| | | console.log(res, 11) |
| | | if (res.code === '200') { |
| | | setTimeout(() => { |
| | | this.getErpOrderSearch() |
| | | loading.close() |
| | | this.$message.success('同步成功!') |
| | | }, 2000) |
| | | } |
| | | // else if (res.code === '300') { |
| | | // setTimeout(() => { |
| | | // loading.close() |
| | | // this.$message.error('同步失败!') |
| | | // }, 10000) |
| | | // } |
| | | }).catch(e => { |
| | | loading.close() |
| | | }) |
| | | }, |
| | | // 查询 |
| | | search() { |
| | | this.getErpOrderSearch() |
| | | }, |
| | | // 重置 |
| | | reset() { |
| | | this.form.wkshopcode = '' |
| | | this.form.erporderstus = '' |
| | | this.form.erpordercode = '' |
| | | this.form.partcode = '' |
| | | this.form.partname = '' |
| | | this.form.partspec = '' |
| | | this.form.paystartdate = '' |
| | | this.form.payenddate = '' |
| | | this.form.creatuser = '' |
| | | this.form.saleordercode = '' |
| | | this.form.createdate = '' |
| | | |
| | | this.form.timeValue = [] |
| | | this.cycleTime = null |
| | | |
| | | this.$refs.DateTypeRef.clearValue() |
| | | |
| | | this.getErpOrderSearch() |
| | | }, |
| | | // 单选框选中获取当前行信息 |
| | | // getCurrentRow(id) { |
| | | // this.radioSelectedId = id |
| | | // }, |
| | | // rowClick(row) { |
| | | // this.radioSelectedId = row.id |
| | | // }, |
| | | |
| | | // 订单删除 |
| | | orderDel(id) { |
| | | this.tableData.forEach(item => { |
| | | if (item.id === id) { |
| | | if (item.status === 'CLOSED') { |
| | | return this.$message.info('此订单已关闭,无法删除!') |
| | | } else { |
| | | this.$confirm('是否确认关闭订单?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | DeleteErpOrder({ erpordercode: item.wo, erporderid: id }).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('订单删除成功!') |
| | | this.getErpOrderSearch() |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message.info('已取消删除!') |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | // 订单关闭 |
| | | async orderClose(id) { |
| | | this.tableData.forEach(item => { |
| | | if (item.id === id) { |
| | | if (item.status !== 'NEW') { |
| | | return this.$message.info('此订单非新订单,无法关闭!') |
| | | } else { |
| | | this.$confirm('是否确认关闭订单?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | ClosedErpOrder({ erpordercode: item.wo, erporderid: id }).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('订单关闭成功!') |
| | | this.getErpOrderSearch() |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message.info('已取消关闭!') |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | batchHandle() { |
| | | this.$confirm('是否批量下达?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | if (this.multipleSelection.length === 0) { |
| | | return this.$message.info('请先选择订单!') |
| | | } |
| | | // console.log(JSON.parse(JSON.stringify(this.multipleSelection))) |
| | | const data = [] |
| | | this.multipleSelection.forEach(i => { |
| | | data.push({ |
| | | 'erporderid': i.id, |
| | | 'sbid': i.sbid, |
| | | 'erpordercode': i.wo, |
| | | 'partcode': i.partcode, |
| | | 'wkshopcode': i.wkshp_code, |
| | | 'warehousecode': i.stck_code, |
| | | 'erpqty': i.qty, |
| | | 'markqty': i.qty, |
| | | 'ordernum': 1, |
| | | 'clerkuser': i.clerkuser, |
| | | 'relse_qty': i.qty, |
| | | 'saleordercode': i.saleOrderCode, |
| | | // 'saleOrderDeliveryDate': i.saleOrderDeliveryDate |
| | | 'saleOrderDeliveryDate': handleDatetime(new Date()) + ' 00:00:00', |
| | | |
| | | 'paystartdate': i.planstartdate, |
| | | 'payenddate': i.planenddate |
| | | }) |
| | | }) |
| | | // console.log(JSON.parse(JSON.stringify(data))) |
| | | MarkBatchSaveErpOrder(data).then(res => { |
| | | if (res.code === '200') { |
| | | this.multipleSelection = [] |
| | | this.$message.success('批量下达成功!') |
| | | this.getErpOrderSearch() |
| | | } else { |
| | | this.$message.error('批量下达失败!') |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | | this.$message.info('已取消下达!') |
| | | }) |
| | | }, |
| | | selected(row, index) { |
| | | return row.status === 'NEW' |
| | | }, |
| | | handleSelectionChange(val) { |
| | | this.multipleSelection = val |
| | | }, |
| | | // 新增按钮 |
| | | add(operation) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | }, |
| | | // 修改按钮 |
| | | edit(operation, row) { |
| | | if (parseFloat(row.qty) === parseFloat(row.relse_qty) || row.status === 'CLOSED') { |
| | | return this.$message.info('此工单已全部下达!') |
| | | } |
| | | |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | |
| | | this.$nextTick(() => { |
| | | this.dialogForm.sbid = row.sbid |
| | | this.dialogForm.erporderid = row.id |
| | | this.dialogForm.erpordercode = row.wo |
| | | this.dialogForm.saleordercode = row.saleOrderCode |
| | | |
| | | this.dialogForm.partcode = row.partcode |
| | | this.dialogForm.partname = row.partname |
| | | this.dialogForm.partspec = row.partspec |
| | | |
| | | this.dialogForm.wkshopcode = row.wkshp_code |
| | | this.dialogForm.wkshopname = row.wkshp_name |
| | | |
| | | this.dialogForm.warehousecode = row.stck_code |
| | | this.dialogForm.warehousename = row.stck_name |
| | | |
| | | this.dialogForm.saleOrderDeliveryDate = row.saleOrderDeliveryDate |
| | | |
| | | this.dialogForm.erpqty = row.qty |
| | | this.dialogForm.markqty = parseFloat(row.qty) - parseFloat(row.relse_qty) |
| | | this.dialogForm.ordernum = 1 |
| | | this.dialogForm.relse_qty = row.relse_qty |
| | | this.dialogForm.clerkuser = row.clerkuser |
| | | |
| | | this.dialogForm.paystartdate = row.planstartdate |
| | | this.dialogForm.payenddate = row.planenddate |
| | | }) |
| | | }, |
| | | // 对话框关闭事件 |
| | | handleClose() { |
| | | this.dialogForm = { |
| | | erporderid: '', // 订单id |
| | | sbid: '', // 订单明细id |
| | | erpordercode: '', // 订单编号 |
| | | saleordercode: '', // 销售订单 |
| | | |
| | | partcode: '', // 产品编码 |
| | | partname: '', // 产品名称 |
| | | partspec: '', // 产品规格 |
| | | |
| | | wkshopcode: '', // 车间编码 |
| | | wkshopname: '', // 车间名称 |
| | | |
| | | warehousecode: '', // 仓库编码 |
| | | warehousename: '', // 仓库名称 |
| | | |
| | | erpqty: '', // 订单数量 |
| | | markqty: '', // 下单数量 |
| | | ordernum: '', // 下单单数 |
| | | relse_qty: '', // 已下单数量 |
| | | |
| | | payenddate: '', // 预计完工日期 |
| | | paystartdate: '', // 预计开工日期 |
| | | |
| | | saleOrderDeliveryDate: '' // 预计交付日期 |
| | | } |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | | this.dialogVisible = false |
| | | }, |
| | | // 对话框确认 |
| | | dialogVisibleConfirm() { |
| | | this.dialogForm.markqty = parseFloat(this.dialogForm.markqty) |
| | | this.dialogForm.erpqty = parseFloat(this.dialogForm.erpqty) |
| | | this.dialogForm.relse_qty = parseFloat(this.dialogForm.relse_qty) |
| | | this.dialogForm.ordernum = parseFloat(this.dialogForm.ordernum) |
| | | if (this.dialogForm.markqty < 1 || this.dialogForm.markqty > this.dialogForm.erpqty - this.dialogForm.relse_qty) { |
| | | return this.$message.info('下单数量超出可下单数的范围!') |
| | | } |
| | | |
| | | if (this.dialogForm.ordernum < 1 || this.dialogForm.ordernum > this.dialogForm.markqty) { |
| | | return this.$message.info('下单单数超出可下单单数的范围!') |
| | | } |
| | | |
| | | this.$refs.dialogForm.validate(valid => { |
| | | if (valid) { |
| | | this.$store.state.app.buttonIsDisabled = true |
| | | const data = { |
| | | 'sbid': this.dialogForm.sbid, |
| | | 'erporderid': this.dialogForm.erporderid, |
| | | 'erpordercode': this.dialogForm.erpordercode, |
| | | 'saleordercode': this.dialogForm.saleordercode, |
| | | 'partcode': this.dialogForm.partcode, |
| | | 'wkshopcode': this.dialogForm.wkshopcode, |
| | | 'warehousecode': this.dialogForm.warehousecode, |
| | | 'clerkuser': this.dialogForm.clerkuser, |
| | | 'erpqty': this.dialogForm.erpqty, |
| | | 'markqty': this.dialogForm.markqty, |
| | | 'ordernum': this.dialogForm.ordernum, |
| | | 'payenddate': this.dialogForm.payenddate, |
| | | 'paystartdate': this.dialogForm.paystartdate, |
| | | 'relse_qty': this.dialogForm.relse_qty, |
| | | 'saleOrderDeliveryDate': handleDatetime(this.dialogForm.saleOrderDeliveryDate) + ' 00:00:00' |
| | | } |
| | | |
| | | MarkSaveErpOrder(data).then(res => { |
| | | if (res.code === '200') { |
| | | this.dialogVisible = false |
| | | this.$message.success('下达成功!') |
| | | this.getErpOrderSearch() |
| | | this.$store.state.app.buttonIsDisabled = false |
| | | } else { |
| | | this.$message.error('下达失败!') |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | // 获取页面高度 |
| | | getHeight() { |
| | | this.$nextTick(() => { |
| | | this.mainHeight = window.innerHeight - 85 |
| | | this.tableHeight = this.mainHeight - 250 |
| | | |
| | | this.$refs.tableDataRef.doLayout() |
| | | }) |
| | | }, |
| | | tableRowClassName({ row, rowIndex }) { |
| | | return 'custom-row' |
| | | }, |
| | | getSummaries(param) { |
| | | const { columns, data } = param |
| | | const sums = [] |
| | | const i = 7 |
| | | columns.forEach((column, index) => { |
| | | if (index === i) { |
| | | sums[index] = '总数' |
| | | return |
| | | } |
| | | const values = data.map(item => Number(item[column.property])) |
| | | if (column.property === 'qty') { |
| | | sums[index] = values.reduce((prev, curr) => { |
| | | const value = Number(curr) |
| | | if (!isNaN(value)) { |
| | | return prev + curr |
| | | // return Math.round(prev * 100) / 100 + Math.round(curr * 100) / 100 |
| | | } |
| | | }, 0) |
| | | |
| | | sums[index] += ' 单' |
| | | } |
| | | if (column.property === 'relse_qty') { |
| | | sums[index] = values.reduce((prev, curr) => { |
| | | const value = Number(curr) |
| | | if (!isNaN(value)) { |
| | | return prev + curr |
| | | // return Math.round(prev * 100) / 100 + Math.round(curr * 100) / 100 |
| | | } |
| | | }, 0) |
| | | |
| | | sums[index] += ' 单' |
| | | } |
| | | }) |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.tableDataRef.doLayout() |
| | | }) |
| | | return sums |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <!--公共页面样式--> |
| | | <style lang="scss" scoped> |
| | | $main_color: #42b983; |
| | | |
| | | ::v-deep .el-range__icon { |
| | | line-height: 28px !important; |
| | | } |
| | | |
| | | ::v-deep .el-range-separator { |
| | | line-height: 28px !important; |
| | | } |
| | | |
| | | ::v-deep .el-range-input { |
| | | font-size: 14px; |
| | | } |
| | | |
| | | ::v-deep .el-range-separator { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | .el-icon-share, .el-icon-delete, .el-icon-edit-outline { |
| | | color: $main_color; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .el-icon-edit-outline { |
| | | margin-right: 15px; |
| | | } |
| | | |
| | | //::v-deep .el-button--primary, .el-button--default, .el-button--info { |
| | | // height: 34px; |
| | | // display: flex; |
| | | // align-items: center; |
| | | // padding: 0 15px; |
| | | //} |
| | | |
| | | ::v-deep .el-button--primary { |
| | | //background-color: $main_color !important; |
| | | } |
| | | |
| | | ::v-deep .el-button--default { |
| | | background-color: #f8f8fa; |
| | | border: none; |
| | | } |
| | | |
| | | ::v-deep .el-input__inner { |
| | | height: 34px; |
| | | line-height: 34px; |
| | | //color: #a7a7a7; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__body { |
| | | padding: 20px 100px !important; |
| | | } |
| | | |
| | | ::v-deep .dialogVisibleRoles .el-dialog__body { |
| | | padding: 20px 20px !important; |
| | | } |
| | | |
| | | ::v-deep .importPickerClass .el-dialog__body { |
| | | padding: 20px 20px !important; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__footer { |
| | | display: flex; |
| | | justify-content: flex-end; |
| | | } |
| | | |
| | | ::v-deep .el-table .caret-wrapper { |
| | | transform: scale(0.8); |
| | | } |
| | | |
| | | ::v-deep .cell { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | ::v-deep .el-table::before { |
| | | height: 0; |
| | | } |
| | | |
| | | ::v-deep .el-table__body-wrapper { |
| | | background-color: #f8f8fa; |
| | | } |
| | | |
| | | ::v-deep .el-table__body .el-table__row.hover-row td { |
| | | background-color: #eaecef; |
| | | } |
| | | |
| | | ::v-deep .el-form--inline .el-form-item__label { |
| | | color: #a7a7a7; |
| | | } |
| | | |
| | | .body ::v-deep .el-divider { |
| | | border: 1px solid #eee; |
| | | width: 99%; |
| | | margin: 10px auto; |
| | | } |
| | | |
| | | .body ::v-deep .el-form-item { |
| | | margin-bottom: 0; |
| | | } |
| | | |
| | | .userDialogVisible ::v-deep .el-form-item { |
| | | margin-bottom: 0; |
| | | } |
| | | |
| | | .elTableDiv { |
| | | ::v-deep .el-radio__label { |
| | | display: none; |
| | | } |
| | | } |
| | | |
| | | .tableFixed { |
| | | ::v-deep .el-table__fixed-right { |
| | | height: 100% !important; |
| | | } |
| | | |
| | | ::v-deep .el-table__fixed { |
| | | height: 100% !important; |
| | | } |
| | | } |
| | | |
| | | .dateMini { |
| | | ::v-deep .el-input__inner { |
| | | line-height: 34px; |
| | | height: 34px; |
| | | width: 200px; |
| | | display: flex; |
| | | font-size: 14px !important; |
| | | align-items: center !important; |
| | | } |
| | | |
| | | ::v-deep .el-input__prefix { |
| | | margin-top: -3px; |
| | | } |
| | | } |
| | | |
| | | ::v-deep .el-icon-delete { |
| | | cursor: pointer; |
| | | margin-right: 0px !important; |
| | | } |
| | | </style> |
| | | <style> |
| | | .el-table .custom-row { |
| | | background: #f8f8fa; |
| | | } |
| | | |
| | | .osloading { |
| | | font-size: 26px !important; |
| | | } |
| | | |
| | | .el-loading-text { |
| | | font-size: 26px !important; |
| | | } |
| | | |
| | | .el-picker-panel__footer { |
| | | display: flex !important; |
| | | justify-content: flex-end !important; |
| | | } |
| | | |
| | | </style> |
| | | |