fix (view): 修复了库存管理中手动添加缺失的问题
隐藏了出入库的手动增删改功能
This commit is contained in:
parent
61ed6819b4
commit
2d47349f24
@ -21,15 +21,15 @@
|
|||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5" >
|
<el-col :span="1.5" >
|
||||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['stock:in:add']">新增</el-button>
|
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['stock:in:add']" v-show="false">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate"
|
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate"
|
||||||
v-hasPermi="['stock:in:edit']">修改</el-button>
|
v-hasPermi="['stock:in:edit']" v-show="false">修改</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete"
|
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete"
|
||||||
v-hasPermi="['stock:in:remove']">删除</el-button>
|
v-hasPermi="['stock:in:remove']" v-show="false">删除</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="warning" plain icon="Download" @click="handleExport"
|
<el-button type="warning" plain icon="Download" @click="handleExport"
|
||||||
@ -119,6 +119,7 @@
|
|||||||
<script setup name="In">
|
<script setup name="In">
|
||||||
import { listIn, getIn, delIn, addIn, updateIn } from "@/api/stock/in"
|
import { listIn, getIn, delIn, addIn, updateIn } from "@/api/stock/in"
|
||||||
import { getToken } from "@/utils/auth"
|
import { getToken } from "@/utils/auth"
|
||||||
|
import { isVisible } from "element-plus/es/utils/index.mjs"
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance()
|
||||||
|
|
||||||
const inList = ref([])
|
const inList = ref([])
|
||||||
|
@ -97,9 +97,43 @@
|
|||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 添加或修改物资管理对话框 -->
|
<!-- 添加或修改饲喂计划对话框 -->
|
||||||
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
||||||
<el-form ref="managementRef" :model="form" :rules="rules" label-width="80px">
|
<el-form ref="managementRef" :model="form" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="存货编码" prop="materialId">
|
||||||
|
<el-input v-model="form.materialId" placeholder="请输入存货编码" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="存货" prop="materialName">
|
||||||
|
<el-input v-model="form.materialName" placeholder="请输入存货名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="批号" prop="batchId">
|
||||||
|
<el-input v-model="form.batchId" placeholder="请输入批号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="规格型号" prop="materialSpecification">
|
||||||
|
<el-input v-model="form.materialSpecification" placeholder="请输入规格型号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="主计量" prop="materialUnit">
|
||||||
|
<el-input v-model="form.materialUnit" placeholder="请输入计量单位" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="现存量" prop="currentStock">
|
||||||
|
<el-input v-model="form.currentStock" placeholder="请输入现存量" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="生产日期" prop="productionDate">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="form.productionDate"
|
||||||
|
type="date"
|
||||||
|
value-format="YYYY-MM-DD"
|
||||||
|
placeholder="请选择生产日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="失效日期" prop="expirationDate">
|
||||||
|
<el-date-picker clearable
|
||||||
|
v-model="form.expirationDate"
|
||||||
|
type="date"
|
||||||
|
value-format="YYYY-MM-DD"
|
||||||
|
placeholder="请选择失效日期">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
|
@ -21,15 +21,15 @@
|
|||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['stock:out:add']">新增</el-button>
|
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['stock:out:add']" v-show="false">新增</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate"
|
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate"
|
||||||
v-hasPermi="['stock:out:edit']">修改</el-button>
|
v-hasPermi="['stock:out:edit']" v-show="false">修改</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete"
|
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete"
|
||||||
v-hasPermi="['stock:out:remove']">删除</el-button>
|
v-hasPermi="['stock:out:remove']" v-show="false">删除</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="warning" plain icon="Download" @click="handleExport"
|
<el-button type="warning" plain icon="Download" @click="handleExport"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user