|
@@ -8,46 +8,28 @@
|
|
:inline="true"
|
|
:inline="true"
|
|
label-width="68px"
|
|
label-width="68px"
|
|
>
|
|
>
|
|
- <el-form-item label="组织部门id" prop="deptId">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.deptId"
|
|
|
|
- placeholder="请输入组织部门id"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="工厂(SAP) 专业公司" prop="factory">
|
|
|
|
|
|
+ <el-form-item label="工厂" prop="factory">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.factory"
|
|
v-model="queryParams.factory"
|
|
- placeholder="请输入工厂(SAP) 专业公司"
|
|
|
|
|
|
+ placeholder="请输入工厂"
|
|
clearable
|
|
clearable
|
|
@keyup.enter="handleQuery"
|
|
@keyup.enter="handleQuery"
|
|
class="!w-240px"
|
|
class="!w-240px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="库存地点 - SAP 部门 项目部级" prop="projectDepartment">
|
|
|
|
|
|
+ <el-form-item label="库存地点" prop="projectDepartment">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.projectDepartment"
|
|
v-model="queryParams.projectDepartment"
|
|
- placeholder="请输入库存地点 - SAP 部门 项目部级"
|
|
|
|
|
|
+ placeholder="请输入库存地点"
|
|
clearable
|
|
clearable
|
|
@keyup.enter="handleQuery"
|
|
@keyup.enter="handleQuery"
|
|
class="!w-240px"
|
|
class="!w-240px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="成本中心(SAP) 库存地点 小队" prop="costCenter">
|
|
|
|
|
|
+ <el-form-item label="成本中心" prop="costCenter">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.costCenter"
|
|
v-model="queryParams.costCenter"
|
|
- placeholder="请输入成本中心(SAP) 库存地点 小队"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="领料单号" prop="pickingListNumber">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.pickingListNumber"
|
|
|
|
- placeholder="请输入领料单号"
|
|
|
|
|
|
+ placeholder="请输入成本中心"
|
|
clearable
|
|
clearable
|
|
@keyup.enter="handleQuery"
|
|
@keyup.enter="handleQuery"
|
|
class="!w-240px"
|
|
class="!w-240px"
|
|
@@ -71,51 +53,6 @@
|
|
class="!w-240px"
|
|
class="!w-240px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="物料组" prop="materialGroupName">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.materialGroupName"
|
|
|
|
- placeholder="请输入物料组"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="物料组id" prop="materialGroupId">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.materialGroupId"
|
|
|
|
- placeholder="请输入物料组id"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="数量" prop="quantity">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.quantity"
|
|
|
|
- placeholder="请输入数量"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="单价" prop="unitPrice">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.unitPrice"
|
|
|
|
- placeholder="请输入单价"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="单位" prop="unit">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.unit"
|
|
|
|
- placeholder="请输入单位"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
<el-form-item label="入库时间" prop="storageTime">
|
|
<el-form-item label="入库时间" prop="storageTime">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="queryParams.storageTime"
|
|
v-model="queryParams.storageTime"
|
|
@@ -127,64 +64,6 @@
|
|
class="!w-220px"
|
|
class="!w-220px"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="排序" prop="sort">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.sort"
|
|
|
|
- placeholder="请输入排序"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="状态 0启用 1停用" prop="status">
|
|
|
|
- <el-select
|
|
|
|
- v-model="queryParams.status"
|
|
|
|
- placeholder="请选择状态 0启用 1停用"
|
|
|
|
- clearable
|
|
|
|
- class="!w-240px"
|
|
|
|
- >
|
|
|
|
- <el-option label="请选择字典生成" value="" />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="流程实例id" prop="processInstanceId">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.processInstanceId"
|
|
|
|
- placeholder="请输入流程实例id"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="审批状态 未提交、审批中、审批通过、审批不通过、已取消" prop="auditStatus">
|
|
|
|
- <el-select
|
|
|
|
- v-model="queryParams.auditStatus"
|
|
|
|
- placeholder="请选择审批状态 未提交、审批中、审批通过、审批不通过、已取消"
|
|
|
|
- clearable
|
|
|
|
- class="!w-240px"
|
|
|
|
- >
|
|
|
|
- <el-option label="请选择字典生成" value="" />
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="备注" prop="remark">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.remark"
|
|
|
|
- placeholder="请输入备注"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter="handleQuery"
|
|
|
|
- class="!w-240px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="创建时间" prop="createTime">
|
|
|
|
- <el-date-picker
|
|
|
|
- v-model="queryParams.createTime"
|
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
- type="daterange"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
- :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
|
|
|
- class="!w-220px"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
@@ -194,7 +73,7 @@
|
|
@click="openForm('create')"
|
|
@click="openForm('create')"
|
|
v-hasPermi="['pms:iot-lock-stock:create']"
|
|
v-hasPermi="['pms:iot-lock-stock:create']"
|
|
>
|
|
>
|
|
- <Icon icon="ep:plus" class="mr-5px" /> 新增
|
|
|
|
|
|
+ <Icon icon="ep:plus" class="mr-5px" /> 手工入库
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
type="success"
|
|
type="success"
|
|
@@ -212,18 +91,12 @@
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<ContentWrap>
|
|
<ContentWrap>
|
|
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
- <el-table-column label="主键" align="center" prop="id" />
|
|
|
|
- <el-table-column label="组织部门id" align="center" prop="deptId" />
|
|
|
|
- <el-table-column label="工厂(SAP) 专业公司" align="center" prop="factory" />
|
|
|
|
- <el-table-column label="库存地点 - SAP 部门 项目部级" align="center" prop="projectDepartment" />
|
|
|
|
- <el-table-column label="成本中心(SAP) 库存地点 小队" align="center" prop="costCenter" />
|
|
|
|
- <el-table-column label="领料单号" align="center" prop="pickingListNumber" />
|
|
|
|
|
|
+ <el-table-column label="工厂" align="center" prop="factory" />
|
|
|
|
+ <el-table-column label="成本中心" align="center" prop="costCenter" />
|
|
<el-table-column label="物料编码" align="center" prop="materialCode" />
|
|
<el-table-column label="物料编码" align="center" prop="materialCode" />
|
|
<el-table-column label="物料名称" align="center" prop="materialName" />
|
|
<el-table-column label="物料名称" align="center" prop="materialName" />
|
|
- <el-table-column label="物料组" align="center" prop="materialGroupName" />
|
|
|
|
- <el-table-column label="物料组id" align="center" prop="materialGroupId" />
|
|
|
|
- <el-table-column label="数量" align="center" prop="quantity" />
|
|
|
|
- <el-table-column label="单价" align="center" prop="unitPrice" />
|
|
|
|
|
|
+ <el-table-column label="数量" align="center" prop="quantity" :formatter="erpPriceTableColumnFormatter" />
|
|
|
|
+ <el-table-column label="单价" align="center" prop="unitPrice" :formatter="erpPriceTableColumnFormatter" />
|
|
<el-table-column label="单位" align="center" prop="unit" />
|
|
<el-table-column label="单位" align="center" prop="unit" />
|
|
<el-table-column
|
|
<el-table-column
|
|
label="入库时间"
|
|
label="入库时间"
|
|
@@ -232,18 +105,6 @@
|
|
:formatter="dateFormatter"
|
|
:formatter="dateFormatter"
|
|
width="180px"
|
|
width="180px"
|
|
/>
|
|
/>
|
|
- <el-table-column label="排序" align="center" prop="sort" />
|
|
|
|
- <el-table-column label="状态 0启用 1停用" align="center" prop="status" />
|
|
|
|
- <el-table-column label="流程实例id" align="center" prop="processInstanceId" />
|
|
|
|
- <el-table-column label="审批状态 未提交、审批中、审批通过、审批不通过、已取消" align="center" prop="auditStatus" />
|
|
|
|
- <el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
- <el-table-column
|
|
|
|
- label="创建时间"
|
|
|
|
- align="center"
|
|
|
|
- prop="createTime"
|
|
|
|
- :formatter="dateFormatter"
|
|
|
|
- width="180px"
|
|
|
|
- />
|
|
|
|
<el-table-column label="操作" align="center" min-width="120px">
|
|
<el-table-column label="操作" align="center" min-width="120px">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<el-button
|
|
<el-button
|
|
@@ -254,14 +115,6 @@
|
|
>
|
|
>
|
|
编辑
|
|
编辑
|
|
</el-button>
|
|
</el-button>
|
|
- <el-button
|
|
|
|
- link
|
|
|
|
- type="danger"
|
|
|
|
- @click="handleDelete(scope.row.id)"
|
|
|
|
- v-hasPermi="['pms:iot-lock-stock:delete']"
|
|
|
|
- >
|
|
|
|
- 删除
|
|
|
|
- </el-button>
|
|
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -283,6 +136,8 @@ import { dateFormatter } from '@/utils/formatTime'
|
|
import download from '@/utils/download'
|
|
import download from '@/utils/download'
|
|
import { IotLockStockApi, IotLockStockVO } from '@/api/pms/iotlockstock'
|
|
import { IotLockStockApi, IotLockStockVO } from '@/api/pms/iotlockstock'
|
|
import IotLockStockForm from './IotLockStockForm.vue'
|
|
import IotLockStockForm from './IotLockStockForm.vue'
|
|
|
|
+import {erpPriceTableColumnFormatter} from "@/utils";
|
|
|
|
+import {DICT_TYPE} from "@/utils/dict";
|
|
|
|
|
|
/** PMS 本地 库存 列表 */
|
|
/** PMS 本地 库存 列表 */
|
|
defineOptions({ name: 'IotLockStock' })
|
|
defineOptions({ name: 'IotLockStock' })
|
|
@@ -290,6 +145,8 @@ defineOptions({ name: 'IotLockStock' })
|
|
const message = useMessage() // 消息弹窗
|
|
const message = useMessage() // 消息弹窗
|
|
const { t } = useI18n() // 国际化
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
+const { push } = useRouter() // 路由跳转
|
|
|
|
+
|
|
const loading = ref(true) // 列表的加载中
|
|
const loading = ref(true) // 列表的加载中
|
|
const list = ref<IotLockStockVO[]>([]) // 列表的数据
|
|
const list = ref<IotLockStockVO[]>([]) // 列表的数据
|
|
const total = ref(0) // 列表的总页数
|
|
const total = ref(0) // 列表的总页数
|
|
@@ -346,7 +203,8 @@ const resetQuery = () => {
|
|
/** 添加/修改操作 */
|
|
/** 添加/修改操作 */
|
|
const formRef = ref()
|
|
const formRef = ref()
|
|
const openForm = (type: string, id?: number) => {
|
|
const openForm = (type: string, id?: number) => {
|
|
- formRef.value.open(type, id)
|
|
|
|
|
|
+ // formRef.value.open(type, id)
|
|
|
|
+ push({ name: 'LockStockAdd', params:{} })
|
|
}
|
|
}
|
|
|
|
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
@@ -381,4 +239,4 @@ const handleExport = async () => {
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getList()
|
|
getList()
|
|
})
|
|
})
|
|
-</script>
|
|
|
|
|
|
+</script>
|