✨ ERP:增加入库单号的自动生成
parent
115c30ea40
commit
1c98deaf27
|
@ -9,10 +9,9 @@
|
|||
:disabled="disabled"
|
||||
>
|
||||
<el-row :gutter="20">
|
||||
<!-- TODO 芋艿:待接入 -->
|
||||
<el-col :span="8">
|
||||
<el-form-item label="入库单号" prop="no">
|
||||
<el-input v-model="formData.no" placeholder="请输入入库单号" />
|
||||
<el-input disabled v-model="formData.no" placeholder="保存时自动生成" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
|
@ -93,7 +92,6 @@ const formLoading = ref(false) // 表单的加载中:1)修改时的数据加
|
|||
const formType = ref('') // 表单的类型:create - 新增;update - 修改;detail - 详情
|
||||
const formData = ref({
|
||||
id: undefined,
|
||||
no: undefined,
|
||||
supplierId: undefined,
|
||||
inTime: undefined,
|
||||
remark: undefined,
|
||||
|
@ -101,7 +99,6 @@ const formData = ref({
|
|||
items: []
|
||||
})
|
||||
const formRules = reactive({
|
||||
no: [{ required: true, message: '入库单号不能为空', trigger: 'blur' }],
|
||||
inTime: [{ required: true, message: '入库时间不能为空', trigger: 'blur' }]
|
||||
})
|
||||
const disabled = computed(() => formType.value === 'detail')
|
||||
|
@ -161,11 +158,8 @@ const submitForm = async () => {
|
|||
const resetForm = () => {
|
||||
formData.value = {
|
||||
id: undefined,
|
||||
no: undefined,
|
||||
supplierId: undefined,
|
||||
inTime: undefined,
|
||||
totalCount: undefined,
|
||||
totalPrice: undefined,
|
||||
remark: undefined,
|
||||
fileUrl: undefined,
|
||||
items: []
|
||||
|
|
|
@ -150,7 +150,7 @@
|
|||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column width="30" label="选择" type="selection" />
|
||||
<el-table-column label="入库单号" align="center" prop="no" />
|
||||
<el-table-column min-width="140" label="入库单号" align="center" prop="no" />
|
||||
<el-table-column label="产品信息" align="center" prop="productNames" min-width="200" />
|
||||
<el-table-column label="供应商" align="center" prop="supplierName" />
|
||||
<el-table-column
|
||||
|
@ -163,12 +163,12 @@
|
|||
<el-table-column label="创建人" align="center" prop="creatorName" />
|
||||
<el-table-column label="数量" align="center" prop="totalCount" />
|
||||
<el-table-column label="金额" align="center" prop="totalPrice" />
|
||||
<el-table-column label="状态" align="center" prop="status">
|
||||
<el-table-column label="状态" align="center" fixed="right" width="90" prop="status">
|
||||
<template #default="scope">
|
||||
<dict-tag :type="DICT_TYPE.ERP_AUDIT_STATUS" :value="scope.row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" min-width="150">
|
||||
<el-table-column label="操作" align="center" fixed="right" width="220">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
link
|
||||
|
|
Loading…
Reference in New Issue