Skip to content

Commit 1c98dea

Browse files
committed
✨ ERP:增加入库单号的自动生成
1 parent 115c30e commit 1c98dea

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/views/erp/stock/in/StockInForm.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
:disabled="disabled"
1010
>
1111
<el-row :gutter="20">
12-
<!-- TODO 芋艿:待接入 -->
1312
<el-col :span="8">
1413
<el-form-item label="入库单号" prop="no">
15-
<el-input v-model="formData.no" placeholder="请输入入库单号" />
14+
<el-input disabled v-model="formData.no" placeholder="保存时自动生成" />
1615
</el-form-item>
1716
</el-col>
1817
<el-col :span="8">
@@ -93,15 +92,13 @@ const formLoading = ref(false) // 表单的加载中:1)修改时的数据加
9392
const formType = ref('') // 表单的类型:create - 新增;update - 修改;detail - 详情
9493
const formData = ref({
9594
id: undefined,
96-
no: undefined,
9795
supplierId: undefined,
9896
inTime: undefined,
9997
remark: undefined,
10098
fileUrl: '',
10199
items: []
102100
})
103101
const formRules = reactive({
104-
no: [{ required: true, message: '入库单号不能为空', trigger: 'blur' }],
105102
inTime: [{ required: true, message: '入库时间不能为空', trigger: 'blur' }]
106103
})
107104
const disabled = computed(() => formType.value === 'detail')
@@ -161,11 +158,8 @@ const submitForm = async () => {
161158
const resetForm = () => {
162159
formData.value = {
163160
id: undefined,
164-
no: undefined,
165161
supplierId: undefined,
166162
inTime: undefined,
167-
totalCount: undefined,
168-
totalPrice: undefined,
169163
remark: undefined,
170164
fileUrl: undefined,
171165
items: []

src/views/erp/stock/in/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
@selection-change="handleSelectionChange"
151151
>
152152
<el-table-column width="30" label="选择" type="selection" />
153-
<el-table-column label="入库单号" align="center" prop="no" />
153+
<el-table-column min-width="140" label="入库单号" align="center" prop="no" />
154154
<el-table-column label="产品信息" align="center" prop="productNames" min-width="200" />
155155
<el-table-column label="供应商" align="center" prop="supplierName" />
156156
<el-table-column
@@ -163,12 +163,12 @@
163163
<el-table-column label="创建人" align="center" prop="creatorName" />
164164
<el-table-column label="数量" align="center" prop="totalCount" />
165165
<el-table-column label="金额" align="center" prop="totalPrice" />
166-
<el-table-column label="状态" align="center" prop="status">
166+
<el-table-column label="状态" align="center" fixed="right" width="90" prop="status">
167167
<template #default="scope">
168168
<dict-tag :type="DICT_TYPE.ERP_AUDIT_STATUS" :value="scope.row.status" />
169169
</template>
170170
</el-table-column>
171-
<el-table-column label="操作" align="center" min-width="150">
171+
<el-table-column label="操作" align="center" fixed="right" width="220">
172172
<template #default="scope">
173173
<el-button
174174
link

0 commit comments

Comments
 (0)