2025-11-17 11:44:31 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
|
<el-row :gutter="20">
|
2025-11-29 17:56:38 +08:00
|
|
|
|
<el-col :span="10">
|
2025-11-17 13:22:01 +08:00
|
|
|
|
<div class="section-card">
|
|
|
|
|
|
<!-- 入库 -->
|
|
|
|
|
|
<div class="section-header">
|
|
|
|
|
|
<h3 class="section-title">新增入库</h3>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
2025-11-29 17:24:46 +08:00
|
|
|
|
<el-row>
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
<el-form-item label="收货计划" prop="planId">
|
|
|
|
|
|
<el-select style="width: 100%;" v-model="form.planId" placeholder="请输入计划名称搜索收货计划" filterable remote
|
|
|
|
|
|
:remote-method="remoteMethod">
|
|
|
|
|
|
<el-option v-for="item in planList" :key="item.planId" :label="item.planName"
|
|
|
|
|
|
:value="item.planId" />
|
|
|
|
|
|
</el-select>
|
2026-01-08 14:22:05 +08:00
|
|
|
|
<!-- 默认选中今天的收货计划,如果今天还没有收货计划,提醒创建收货计划 -->
|
2025-11-29 17:24:46 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<!-- 查找并选择,选择收货计划, 使用远程搜索 -->
|
2026-01-08 18:27:37 +08:00
|
|
|
|
<el-alert v-if="noPlan" type="warning" title="今天还没有收货计划,点击创建" show-icon
|
|
|
|
|
|
@click.native="$router.push('/receive/plan')"></el-alert>
|
2025-11-29 17:24:46 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2025-11-17 13:22:01 +08:00
|
|
|
|
<el-row>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="入场钢卷号" prop="enterCoilNo">
|
|
|
|
|
|
<el-input v-model="form.enterCoilNo" placeholder="请输入入场钢卷号" :disabled="form.coilId" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="当前钢卷号" prop="currentCoilNo">
|
|
|
|
|
|
<el-input v-model="form.currentCoilNo" placeholder="请输入当前钢卷号" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item v-if="!form.coilId" label="厂家原料卷号" prop="supplierCoilNo">
|
|
|
|
|
|
<el-input v-model="form.supplierCoilNo" placeholder="请输入厂家原料卷号" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2025-11-17 11:44:31 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
<el-row>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="所在库位" prop="warehouseId">
|
|
|
|
|
|
<warehouse-select v-model="form.warehouseId" placeholder="请选择仓库/库区/库位" style="width: 100%;"
|
|
|
|
|
|
clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="班组" prop="team">
|
2026-01-09 11:49:54 +08:00
|
|
|
|
<el-select v-model="form.team" placeholder="请选择班组" style="width: 100%;" clearable>
|
|
|
|
|
|
<el-option key="甲" label="甲" value="甲" />
|
|
|
|
|
|
<el-option key="乙" label="乙" value="乙" />
|
|
|
|
|
|
</el-select>
|
2025-11-17 13:22:01 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2025-11-17 11:44:31 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
<el-row>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="材料类型" prop="materialType" v-if="!form.coilId">
|
|
|
|
|
|
<el-select v-model="form.materialType" placeholder="请选择材料类型" @change="handleMaterialTypeChange">
|
|
|
|
|
|
<el-option label="成品" value="成品" />
|
|
|
|
|
|
<el-option label="原料" value="原料" />
|
|
|
|
|
|
<el-option label="废品" value="废品" />
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item :label="getItemLabel" prop="itemId" v-if="!form.coilId">
|
2025-11-20 11:27:47 +08:00
|
|
|
|
<product-select v-if="form.itemType == 'product'" v-model="form.itemId" clearable />
|
|
|
|
|
|
<raw-material-select v-else-if="form.itemType == 'raw_material'" v-model="form.itemId" clearable />
|
2025-11-17 13:22:01 +08:00
|
|
|
|
<div v-else>请先选择材料类型</div>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2025-11-17 11:44:31 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
<el-row v-if="form.materialType === '成品'">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item v-if="form.materialType === '成品'" label="质量状态" prop="qualityStatus">
|
2026-01-10 09:57:44 +08:00
|
|
|
|
<el-select v-model="form.qualityStatus" placeholder="请选择质量状态" style="width: 100%"
|
|
|
|
|
|
:disabled="readonly">
|
|
|
|
|
|
<el-option label="A+" value="A+" />
|
|
|
|
|
|
<el-option label="A" value="A" />
|
|
|
|
|
|
<el-option label="A-" value="A-" />
|
|
|
|
|
|
<el-option label="B+" value="B+" />
|
|
|
|
|
|
<el-option label="B" value="B" />
|
|
|
|
|
|
<el-option label="B-" value="B-" />
|
|
|
|
|
|
<el-option label="C+" value="C+" />
|
|
|
|
|
|
<el-option label="C" value="C" />
|
|
|
|
|
|
<el-option label="C-" value="C-" />
|
|
|
|
|
|
</el-select>
|
2025-11-17 13:22:01 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item v-if="form.materialType === '成品'" label="切边要求" prop="trimmingRequirement">
|
2026-01-10 09:57:44 +08:00
|
|
|
|
<el-select v-model="form.trimmingRequirement" placeholder="请选择切边要求" style="width: 100%"
|
|
|
|
|
|
:disabled="readonly">
|
|
|
|
|
|
<el-option label="净边料" value="净边料" />
|
|
|
|
|
|
<el-option label="毛边料" value="毛边料" />
|
|
|
|
|
|
</el-select>
|
2025-11-17 13:22:01 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item v-if="form.materialType === '成品'" label="打包状态" prop="packingStatus">
|
2025-11-20 15:53:45 +08:00
|
|
|
|
<el-input v-model="form.packingStatus" placeholder="请输入打包状态">
|
2025-11-17 13:22:01 +08:00
|
|
|
|
</el-input>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item v-if="form.materialType === '成品'" label="包装要求" prop="packagingRequirement">
|
2026-01-10 09:57:44 +08:00
|
|
|
|
<el-select v-model="form.packagingRequirement" placeholder="请选择包装要求" style="width: 100%"
|
|
|
|
|
|
:disabled="readonly">
|
|
|
|
|
|
<el-option label="裸包" value="裸包" />
|
|
|
|
|
|
<el-option label="普包" value="普包" />
|
|
|
|
|
|
<el-option label="简包" value="简包" />
|
|
|
|
|
|
</el-select>
|
2025-11-17 13:22:01 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="毛重" prop="grossWeight">
|
|
|
|
|
|
<el-input v-model="form.grossWeight" placeholder="请输入毛重" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="净重" prop="netWeight">
|
|
|
|
|
|
<el-input v-model="form.netWeight" placeholder="请输入净重" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
|
<el-input v-model="form.remark" placeholder="请输入备注" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
|
<el-button :loading="buttonLoading" type="primary" @click="submitForm">入 库</el-button>
|
|
|
|
|
|
<el-button @click="cancel">重 置</el-button>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
</div>
|
2025-11-17 11:44:31 +08:00
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
2025-11-29 17:56:38 +08:00
|
|
|
|
<el-col :span="14">
|
2025-11-17 13:22:01 +08:00
|
|
|
|
<div class="section-card">
|
|
|
|
|
|
<!-- 入库记录 -->
|
2025-11-29 17:24:46 +08:00
|
|
|
|
<div class="section-header">
|
2025-11-17 13:22:01 +08:00
|
|
|
|
<h3 class="section-title">入库记录</h3>
|
|
|
|
|
|
<el-button size="mini" icon="el-icon-refresh" @click="getList">刷新</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<el-form inline class="query-form">
|
|
|
|
|
|
<el-form-item label="钢卷号" prop="currentCoilNo">
|
|
|
|
|
|
<el-input v-model="queryForm.currentCoilNo" placeholder="请输入钢卷号" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
|
<el-button type="primary" @click="getList">查询</el-button>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
2025-11-17 11:44:31 +08:00
|
|
|
|
|
2025-11-29 17:24:46 +08:00
|
|
|
|
<!-- 待操作卡片列表 -->
|
|
|
|
|
|
<div v-if="pendingActions.length === 0" v-loading="loading" class="empty-state">
|
|
|
|
|
|
<i class="el-icon-document"></i>
|
|
|
|
|
|
<p>暂无入库记录</p>
|
2025-11-17 13:22:01 +08:00
|
|
|
|
</div>
|
2025-11-29 17:24:46 +08:00
|
|
|
|
<el-table v-else v-loading="loading" border :data="pendingActions" highlight-current-row>
|
|
|
|
|
|
<el-table-column label="钢卷号" align="center" prop="currentCoilNo" :show-overflow-tooltip="true">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<el-tag type="info" size="small">{{ scope.row.currentCoilNo }}</el-tag>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="优先级" align="center" prop="priority" width="90">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<el-tag v-if="scope.row.priority === 0" type="info" size="mini">普通</el-tag>
|
|
|
|
|
|
<el-tag v-else-if="scope.row.priority === 1" type="warning" size="mini">重要</el-tag>
|
|
|
|
|
|
<el-tag v-else-if="scope.row.priority === 2" type="danger" size="mini">紧急</el-tag>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="新增时间" align="center" prop="createTime" width="155" :show-overflow-tooltip="true">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}') }}</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2025-11-17 11:44:31 +08:00
|
|
|
|
|
2025-11-29 17:24:46 +08:00
|
|
|
|
<el-table-column label="创建人" align="center" prop="createBy" width="100" />
|
|
|
|
|
|
<el-table-column label="操作状态" align="center" prop="actionStatus" width="120">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<el-tag v-if="scope.row.actionStatus === 2" type="success">已收货</el-tag>
|
|
|
|
|
|
<el-tag v-else type="primary">未收货</el-tag>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2026-01-08 14:22:05 +08:00
|
|
|
|
<el-table-column label="操作">
|
2025-11-29 17:56:38 +08:00
|
|
|
|
<template slot-scope="scope">
|
2026-01-08 18:27:37 +08:00
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="handlePreviewLabel(scope.row)">
|
|
|
|
|
|
打印
|
|
|
|
|
|
</el-button>
|
2026-01-08 14:22:05 +08:00
|
|
|
|
<el-button v-if="scope.row.actionStatus == 0 || scope.row.actionStatus == 1" type="primary"
|
|
|
|
|
|
@click="openReceiptModal(scope.row)" v-loading="buttonLoading">签收</el-button>
|
|
|
|
|
|
<el-button v-if="scope.row.actionStatus == 0 || scope.row.actionStatus == 1" type="danger"
|
|
|
|
|
|
@click="handleReject(scope.row)" v-loading="buttonLoading">拒签</el-button>
|
|
|
|
|
|
<el-button v-if="scope.row.actionStatus == 3" type="warning" v-loading="buttonLoading"
|
|
|
|
|
|
@click="handleDelete(scope.row)">删除</el-button>
|
2025-11-29 17:56:38 +08:00
|
|
|
|
</template>
|
2026-01-08 14:22:05 +08:00
|
|
|
|
</el-table-column>
|
2025-11-29 17:24:46 +08:00
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
<Pagination v-show="total > 0" :total="total" :page.sync="pagination.pageNum"
|
|
|
|
|
|
:limit.sync="pagination.pageSize" @pagination="getList" />
|
|
|
|
|
|
</div>
|
2025-11-17 11:44:31 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
2025-11-29 17:56:38 +08:00
|
|
|
|
|
|
|
|
|
|
<el-dialog title="确认收货" v-loading="loading" :visible.sync="receiptModalVisible" width="30%">
|
|
|
|
|
|
<el-form :model="coilInfo" ref="receiptFormRef" label-width="120px">
|
|
|
|
|
|
<el-form-item label="钢卷号" prop="currentCoilNo">
|
|
|
|
|
|
<el-input v-model="coilInfo.currentCoilNo" disabled placeholder="请输入钢卷号" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="净重" prop="netWeight">
|
|
|
|
|
|
<el-input v-model="coilInfo.netWeight" disabled placeholder="请输入净重" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="毛重" prop="grossWeight">
|
|
|
|
|
|
<el-input v-model="coilInfo.grossWeight" disabled placeholder="请输入毛重" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="实际库区" prop="actualWarehouseId">
|
|
|
|
|
|
<ActualWarehouseSelect v-model="coilInfo.actualWarehouseId" placeholder="请选择实际库区" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
|
<el-input v-model="coilInfo.remark" placeholder="请输入备注" />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<template slot="footer" class="dialog-footer">
|
2025-12-02 13:56:21 +08:00
|
|
|
|
<el-button type="primary" @click="confirmReceipt" v-loading="buttonLoading">签收</el-button>
|
2025-11-29 17:56:38 +08:00
|
|
|
|
<el-button @click="receiptModalVisible = false">取消</el-button>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-dialog>
|
2026-01-08 18:27:37 +08:00
|
|
|
|
|
|
|
|
|
|
<!-- 标签预览弹窗 -->
|
|
|
|
|
|
<el-dialog title="标签预览" :visible.sync="labelRender.visible" append-to-body>
|
|
|
|
|
|
<label-render :content="labelRender.data" :labelType="labelRender.type" v-loading="labelRender.loading" />
|
|
|
|
|
|
</el-dialog>
|
2025-11-17 11:44:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2026-01-08 18:27:37 +08:00
|
|
|
|
import { getMaterialCoil, listMaterialCoil } from '@/api/wms/coil'
|
2026-01-08 14:22:05 +08:00
|
|
|
|
import { listPendingAction, delPendingAction, updatePendingAction } from '@/api/wms/pendingAction'
|
2025-11-17 11:44:31 +08:00
|
|
|
|
import MaterialSelect from "@/components/KLPService/MaterialSelect";
|
|
|
|
|
|
import ActualWarehouseSelect from "@/components/KLPService/ActualWarehouseSelect";
|
|
|
|
|
|
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
|
|
|
|
|
|
import ProductSelect from "@/components/KLPService/ProductSelect";
|
|
|
|
|
|
import RawMaterialSelect from "@/components/KLPService/RawMaterialSelect";
|
|
|
|
|
|
import { Pagination } from 'element-ui';
|
2025-11-29 17:24:46 +08:00
|
|
|
|
import { listDeliveryPlan } from '@/api/wms/deliveryPlan'
|
2025-12-29 16:22:18 +08:00
|
|
|
|
import handleCoil, { COIL_ACTIONS } from '../js/coilActions'
|
2026-01-08 18:27:37 +08:00
|
|
|
|
import LabelRender from '../panels/LabelRender/index.vue'
|
2025-11-17 11:44:31 +08:00
|
|
|
|
|
|
|
|
|
|
// 键值为[400, 500), 不包含在字典中,但后续可以加入的特殊操作,这类操作录入后会立刻完成,例如入库(401)和发货(402)
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
components: {
|
|
|
|
|
|
MaterialSelect,
|
|
|
|
|
|
ActualWarehouseSelect,
|
|
|
|
|
|
WarehouseSelect,
|
|
|
|
|
|
ProductSelect,
|
|
|
|
|
|
RawMaterialSelect,
|
2026-01-08 18:27:37 +08:00
|
|
|
|
LabelRender,
|
2025-11-17 11:44:31 +08:00
|
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
|
|
|
|
|
pendingActions: [],
|
|
|
|
|
|
// 表单参数
|
2025-11-20 15:53:45 +08:00
|
|
|
|
form: {
|
2025-11-24 17:21:26 +08:00
|
|
|
|
materialType: '原料',
|
2025-11-20 15:53:45 +08:00
|
|
|
|
enterCoilNo: null,
|
|
|
|
|
|
currentCoilNo: null,
|
|
|
|
|
|
itemId: null,
|
2025-11-24 17:21:26 +08:00
|
|
|
|
itemType: 'raw_material',
|
|
|
|
|
|
warehouseId: '1988150044862377986', // 酸连轧原料库
|
2025-11-20 15:53:45 +08:00
|
|
|
|
netWeight: null,
|
|
|
|
|
|
grossWeight: null,
|
|
|
|
|
|
remark: null,
|
2025-11-29 17:24:46 +08:00
|
|
|
|
dataType: 10, // 表示将要入库但是还未入库的钢卷,一般用于钢卷入库的操作去创建一个无法被检索到的钢卷
|
2025-11-20 15:53:45 +08:00
|
|
|
|
trimmingRequirement: null,
|
|
|
|
|
|
packingStatus: null,
|
|
|
|
|
|
packagingRequirement: null,
|
2026-01-08 14:22:05 +08:00
|
|
|
|
planId: null,
|
2025-11-20 15:53:45 +08:00
|
|
|
|
},
|
2025-11-17 11:44:31 +08:00
|
|
|
|
loading: false,
|
|
|
|
|
|
buttonLoading: false,
|
2025-11-17 13:22:01 +08:00
|
|
|
|
queryForm: {
|
|
|
|
|
|
currentCoilNo: null,
|
|
|
|
|
|
},
|
2025-11-17 11:44:31 +08:00
|
|
|
|
// 分页参数
|
|
|
|
|
|
pagination: {
|
2025-11-29 17:24:46 +08:00
|
|
|
|
pageNum: 1,
|
2025-11-17 11:44:31 +08:00
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
},
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
// 表单校验
|
|
|
|
|
|
rules: {
|
2025-11-29 17:24:46 +08:00
|
|
|
|
planId: [
|
|
|
|
|
|
{ required: true, message: "请选择收货计划", trigger: "change" }
|
|
|
|
|
|
],
|
2025-11-17 11:44:31 +08:00
|
|
|
|
enterCoilNo: [
|
|
|
|
|
|
{ required: true, message: "入场钢卷号不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
|
|
|
|
|
currentCoilNo: [
|
|
|
|
|
|
{ required: true, message: "当前钢卷号不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
|
|
|
|
|
itemId: [
|
|
|
|
|
|
{ required: true, message: "物品ID不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
|
|
|
|
|
itemType: [
|
|
|
|
|
|
{ required: true, message: "物品类型不能为空", trigger: "change" }
|
|
|
|
|
|
],
|
|
|
|
|
|
// 净重和毛重
|
|
|
|
|
|
netWeight: [
|
|
|
|
|
|
{ required: true, message: "净重不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
|
|
|
|
|
grossWeight: [
|
|
|
|
|
|
{ required: true, message: "毛重不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
2026-01-08 18:27:37 +08:00
|
|
|
|
labelRender: {
|
|
|
|
|
|
visible: false,
|
|
|
|
|
|
data: {},
|
|
|
|
|
|
type: '2',
|
|
|
|
|
|
loading: false,
|
|
|
|
|
|
},
|
2025-11-29 17:24:46 +08:00
|
|
|
|
planList: [],
|
2026-01-08 14:22:05 +08:00
|
|
|
|
noPlan: false,
|
2025-11-29 17:56:38 +08:00
|
|
|
|
// 确认收货表单参数
|
|
|
|
|
|
receiptModalVisible: false,
|
|
|
|
|
|
receiptForm: {
|
|
|
|
|
|
currentCoilNo: null,
|
|
|
|
|
|
netWeight: null,
|
|
|
|
|
|
grossWeight: null,
|
|
|
|
|
|
actualWarehouseId: null,
|
|
|
|
|
|
remark: null,
|
|
|
|
|
|
},
|
|
|
|
|
|
coilInfo: {},
|
2026-01-08 14:22:05 +08:00
|
|
|
|
todayPlanId: null,
|
2025-11-17 11:44:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
this.getList()
|
2026-01-08 14:22:05 +08:00
|
|
|
|
this.getTodayPlan()
|
|
|
|
|
|
this.remoteMethod('')
|
2025-11-17 11:44:31 +08:00
|
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
|
|
|
// 动态显示标签
|
|
|
|
|
|
getItemLabel() {
|
|
|
|
|
|
if (this.form.materialType === '成品') {
|
|
|
|
|
|
return '产品类型';
|
|
|
|
|
|
} else if (this.form.materialType === '原料' || this.form.materialType === '废品') {
|
|
|
|
|
|
return '原料类型';
|
|
|
|
|
|
}
|
|
|
|
|
|
return '物品类型';
|
|
|
|
|
|
},
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
// 处理材料类型变化
|
|
|
|
|
|
handleMaterialTypeChange(value) {
|
|
|
|
|
|
// 清空物品选择
|
|
|
|
|
|
this.form.itemId = null;
|
|
|
|
|
|
// 根据材料类型设置物品类型
|
|
|
|
|
|
if (value === '成品') {
|
|
|
|
|
|
this.form.itemType = 'product';
|
|
|
|
|
|
} else if (value === '原料' || value === '废品') {
|
|
|
|
|
|
this.form.itemType = 'raw_material';
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-11-29 17:24:46 +08:00
|
|
|
|
remoteMethod(query) {
|
|
|
|
|
|
listDeliveryPlan({ planName: query, pageNum: 1, pageSize: 5, planType: 1 }).then(res => {
|
|
|
|
|
|
this.planList = res.rows
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2026-01-08 14:22:05 +08:00
|
|
|
|
getTodayPlan() {
|
|
|
|
|
|
// 获取今天的收货计划
|
|
|
|
|
|
// 计划日期格式为yyyy-MM-dd
|
|
|
|
|
|
let today = new Date().toISOString().substring(0, 10)
|
|
|
|
|
|
// let today = '2025-01-01'
|
|
|
|
|
|
listDeliveryPlan({ planDate: today, pageNum: 1, pageSize: 1, planType: 1 }).then(res => {
|
|
|
|
|
|
if (res.rows.length > 0) {
|
|
|
|
|
|
this.form.planId = res.rows[0]?.planId
|
|
|
|
|
|
this.todayPlanId = res.rows[0]?.planId
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.noPlan = true
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2025-11-17 11:44:31 +08:00
|
|
|
|
getList() {
|
|
|
|
|
|
// 获取入库历史
|
|
|
|
|
|
this.loading = true
|
2025-11-17 13:22:01 +08:00
|
|
|
|
listPendingAction({ actionType: 401, ...this.pagination, ...this.queryForm }).then(res => {
|
2025-11-17 11:44:31 +08:00
|
|
|
|
this.pendingActions = res.rows
|
|
|
|
|
|
this.total = res.total
|
|
|
|
|
|
this.loading = false
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
|
submitForm() {
|
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
this.buttonLoading = true;
|
2025-12-29 16:22:18 +08:00
|
|
|
|
handleCoil(COIL_ACTIONS.RECEIVE, this.form, this.form.planId)
|
|
|
|
|
|
.then(res => {
|
2025-11-17 11:44:31 +08:00
|
|
|
|
this.$modal.msgSuccess("入库成功");
|
2026-01-08 14:22:05 +08:00
|
|
|
|
this.form = {
|
|
|
|
|
|
itemId: null,
|
|
|
|
|
|
itemType: 'raw_material',
|
|
|
|
|
|
warehouseId: '1988150044862377986', // 酸连轧原料库
|
|
|
|
|
|
netWeight: null,
|
|
|
|
|
|
grossWeight: null,
|
|
|
|
|
|
remark: null,
|
|
|
|
|
|
dataType: 10, // 表示将要入库但是还未入库的钢卷,一般用于钢卷入库的操作去创建一个无法被检索到的钢卷
|
|
|
|
|
|
trimmingRequirement: null,
|
|
|
|
|
|
packingStatus: null,
|
|
|
|
|
|
packagingRequirement: null,
|
|
|
|
|
|
planId: this.todayPlanId,
|
|
|
|
|
|
}
|
2025-11-17 11:44:31 +08:00
|
|
|
|
this.getList()
|
2025-12-29 16:22:18 +08:00
|
|
|
|
}).finally(() => {
|
|
|
|
|
|
this.buttonLoading = false;
|
|
|
|
|
|
});
|
2025-11-17 11:44:31 +08:00
|
|
|
|
}
|
2025-12-29 16:22:18 +08:00
|
|
|
|
})
|
2025-11-17 11:44:31 +08:00
|
|
|
|
},
|
2025-11-29 17:56:38 +08:00
|
|
|
|
|
|
|
|
|
|
// 打开收货弹窗
|
|
|
|
|
|
openReceiptModal(row) {
|
|
|
|
|
|
this.loading = true
|
|
|
|
|
|
// 打开确认收货弹窗
|
|
|
|
|
|
this.receiptModalVisible = true;
|
|
|
|
|
|
this.receiptForm = row;
|
|
|
|
|
|
// 根据钢卷id查询钢卷信息
|
|
|
|
|
|
getMaterialCoil(row.coilId).then(res => {
|
|
|
|
|
|
this.coilInfo = res.data;
|
|
|
|
|
|
this.loading = false
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
// 确认收货
|
|
|
|
|
|
confirmReceipt() {
|
|
|
|
|
|
// 二次确认
|
|
|
|
|
|
this.$modal.confirm("收货后刚钢卷会进入库存并占用所选的实际库区,是否继续?").then(() => {
|
|
|
|
|
|
this.buttonLoading = true;
|
|
|
|
|
|
// 更新操作记录状态 actionStatus: 2
|
2025-12-29 16:22:18 +08:00
|
|
|
|
handleCoil(COIL_ACTIONS.STORE, this.coilInfo, this.receiptForm)
|
|
|
|
|
|
.then(_ => {
|
|
|
|
|
|
this.$message.success("确认收货成功");
|
|
|
|
|
|
this.getList()
|
2026-01-08 14:22:05 +08:00
|
|
|
|
this.receiptModalVisible = false;
|
2025-12-29 16:22:18 +08:00
|
|
|
|
}).finally(() => {
|
|
|
|
|
|
this.buttonLoading = false;
|
|
|
|
|
|
});
|
2025-11-29 17:56:38 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
2026-01-08 14:22:05 +08:00
|
|
|
|
handleReject(row) {
|
|
|
|
|
|
this.$modal.confirm("确认拒签吗?", "拒签确认", {
|
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
|
type: "warning"
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
this.buttonLoading = true;
|
|
|
|
|
|
updatePendingAction({
|
|
|
|
|
|
...row,
|
|
|
|
|
|
actionStatus: 3, // 3表示拒签
|
|
|
|
|
|
}).then(response => {
|
|
|
|
|
|
this.$modal.msgSuccess("拒签成功");
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
}).finally(() => {
|
|
|
|
|
|
this.buttonLoading = false;
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
2026-01-08 18:27:37 +08:00
|
|
|
|
},
|
|
|
|
|
|
/** 预览标签 */
|
|
|
|
|
|
handlePreviewLabel({ coilId, currentCoilNo, enterCoilNo, itemType }) {
|
|
|
|
|
|
this.labelRender.visible = true;
|
|
|
|
|
|
this.labelRender.loading = true;
|
|
|
|
|
|
listMaterialCoil({ coilId, currentCoilNo, enterCoilNo, itemType }).then(res => {
|
|
|
|
|
|
if (res.rows.length === 0) {
|
|
|
|
|
|
this.$modal.msgError("钢卷不存在");
|
|
|
|
|
|
this.labelRender.visible = false;
|
|
|
|
|
|
return
|
|
|
|
|
|
}
|
|
|
|
|
|
const row = res.rows[0]
|
|
|
|
|
|
this.labelRender.loading = false;
|
|
|
|
|
|
const item = row.itemType === 'product' ? row.product : row.rawMaterial;
|
|
|
|
|
|
const itemName = row.itemType === 'product' ? item?.productName || '' : item?.rawMaterialName || '';
|
|
|
|
|
|
this.labelRender.type = row.itemType === 'product' ? '3' : '2'
|
|
|
|
|
|
this.labelRender.data = {
|
|
|
|
|
|
...row,
|
|
|
|
|
|
itemName: itemName,
|
|
|
|
|
|
updateTime: row.updateTime?.split(' ')[0] || '',
|
|
|
|
|
|
};
|
2026-01-10 09:57:44 +08:00
|
|
|
|
})
|
|
|
|
|
|
|
2026-01-08 14:22:05 +08:00
|
|
|
|
},
|
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
|
this.$modal.confirm("确认删除吗?", "删除确认", {
|
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
|
type: "warning"
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
this.buttonLoading = true;
|
|
|
|
|
|
delPendingAction(row.actionId).then(response => {
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
}).finally(() => {
|
|
|
|
|
|
this.buttonLoading = false;
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2025-11-17 11:44:31 +08:00
|
|
|
|
// 取消操作
|
|
|
|
|
|
cancel() {
|
|
|
|
|
|
this.form = {};
|
|
|
|
|
|
this.$refs.form.resetFields();
|
|
|
|
|
|
this.buttonLoading = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-17 13:22:01 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
|
.acid-do-container {
|
|
|
|
|
|
background-color: #f5f7fa;
|
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
min-height: calc(100vh - 84px);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-card {
|
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
|
border: 1px solid #e4e7ed;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
padding: 16px;
|
|
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
padding-bottom: 12px;
|
|
|
|
|
|
border-bottom: 2px solid #e4e7ed;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-title {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #303133;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.material-section {
|
|
|
|
|
|
.section-header {
|
|
|
|
|
|
border-bottom-color: #409eff;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.section-title {
|
|
|
|
|
|
color: #409eff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-section {
|
|
|
|
|
|
.section-header {
|
|
|
|
|
|
border-bottom-color: #67c23a;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.section-title {
|
|
|
|
|
|
color: #67c23a;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.query-form {
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
background-color: #fafafa;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
border: 1px solid #e4e7ed;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 卡片网格容器
|
|
|
|
|
|
.card-grid-container {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
max-height: calc(100vh - 320px);
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
padding-right: 4px;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
|
|
width: 6px;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&::-webkit-scrollbar-track {
|
|
|
|
|
|
background: #f1f1f1;
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
|
|
background: #c1c1c1;
|
|
|
|
|
|
border-radius: 3px;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
background: #a8a8a8;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
@media (min-width: 1600px) {
|
|
|
|
|
|
grid-template-columns: repeat(4, 1fr);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 空状态
|
|
|
|
|
|
.empty-state {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
padding: 60px 20px;
|
|
|
|
|
|
color: #909399;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
i {
|
|
|
|
|
|
font-size: 48px;
|
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
color: #c0c4cc;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
p {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 物料卡片
|
|
|
|
|
|
.material-card {
|
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
|
border: 1px solid #e4e7ed;
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
height: 100%;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
border-color: #409eff;
|
|
|
|
|
|
box-shadow: 0 2px 6px rgba(64, 158, 255, 0.12);
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.card-header {
|
|
|
|
|
|
padding: 6px 8px;
|
|
|
|
|
|
border-bottom: 1px solid #e4e7ed;
|
|
|
|
|
|
background-color: #fafafa;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.header-left {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 6px;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.coil-no-tag {
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
padding: 2px 6px;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.material-type {
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
color: #606266;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.param-icon {
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: color 0.3s;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
color: #409eff;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.card-body {
|
|
|
|
|
|
padding: 8px;
|
|
|
|
|
|
flex: 1;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.info-list {
|
|
|
|
|
|
.info-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-bottom: 4px;
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
line-height: 1.4;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&:last-child {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.info-label {
|
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
margin-right: 4px;
|
|
|
|
|
|
min-width: 40px;
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.info-value {
|
|
|
|
|
|
color: #303133;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.card-footer {
|
|
|
|
|
|
padding: 6px 8px;
|
|
|
|
|
|
border-top: 1px solid #e4e7ed;
|
|
|
|
|
|
background-color: #fafafa;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.action-btn {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
padding: 5px 10px;
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 待操作卡片
|
|
|
|
|
|
.action-card {
|
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
|
border: 1px solid #e4e7ed;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
|
height: 100%;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
border-color: #67c23a;
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(103, 194, 58, 0.15);
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&.urgent-card {
|
|
|
|
|
|
border-left: 4px solid #f56c6c;
|
|
|
|
|
|
background-color: #fef0f0;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
border-color: #f56c6c;
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(245, 108, 108, 0.2);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&.important-card {
|
|
|
|
|
|
border-left: 4px solid #e6a23c;
|
|
|
|
|
|
background-color: #fdf6ec;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&:hover {
|
|
|
|
|
|
border-color: #e6a23c;
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(230, 162, 60, 0.2);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.card-header {
|
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
|
border-bottom: 1px solid #e4e7ed;
|
|
|
|
|
|
background-color: #fafafa;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.coil-no-tag {
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.status-tags {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.card-body {
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
flex: 1;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.info-list {
|
|
|
|
|
|
.info-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
font-size: 12px;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&:last-child {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.info-label {
|
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
|
min-width: 50px;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.info-value {
|
|
|
|
|
|
color: #303133;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.action-type-tag {
|
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.card-footer {
|
|
|
|
|
|
padding: 10px 12px;
|
|
|
|
|
|
border-top: 1px solid #e4e7ed;
|
|
|
|
|
|
background-color: #fafafa;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 6px;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.action-btn {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
padding: 6px 8px;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 分页样式
|
|
|
|
|
|
::v-deep .pagination-container {
|
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
|
padding: 12px;
|
|
|
|
|
|
background-color: #fafafa;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
border: 1px solid #e4e7ed;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 参数弹出框样式
|
|
|
|
|
|
::v-deep .material-params-popover {
|
|
|
|
|
|
.material-params-content {
|
|
|
|
|
|
.params-title {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #303133;
|
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
|
padding-bottom: 8px;
|
|
|
|
|
|
border-bottom: 1px solid #e4e7ed;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.params-list {
|
|
|
|
|
|
.param-item {
|
|
|
|
|
|
.param-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
|
line-height: 1.5;
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
&:last-child {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.param-label {
|
|
|
|
|
|
color: #909399;
|
|
|
|
|
|
min-width: 70px;
|
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.param-value {
|
|
|
|
|
|
color: #303133;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-29 17:24:46 +08:00
|
|
|
|
|
2025-11-17 13:22:01 +08:00
|
|
|
|
.param-divider {
|
|
|
|
|
|
height: 1px;
|
|
|
|
|
|
background-color: #e4e7ed;
|
|
|
|
|
|
margin: 10px 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|