File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 9
9
:disabled =" disabled"
10
10
>
11
11
<el-row :gutter =" 20" >
12
- <!-- TODO 芋艿:待接入 -->
13
12
<el-col :span =" 8" >
14
13
<el-form-item label =" 入库单号" prop =" no" >
15
- <el-input v-model =" formData.no" placeholder =" 请输入入库单号 " />
14
+ <el-input disabled v-model =" formData.no" placeholder =" 保存时自动生成 " />
16
15
</el-form-item >
17
16
</el-col >
18
17
<el-col :span =" 8" >
@@ -93,15 +92,13 @@ const formLoading = ref(false) // 表单的加载中:1)修改时的数据加
93
92
const formType = ref (' ' ) // 表单的类型:create - 新增;update - 修改;detail - 详情
94
93
const formData = ref ({
95
94
id: undefined ,
96
- no: undefined ,
97
95
supplierId: undefined ,
98
96
inTime: undefined ,
99
97
remark: undefined ,
100
98
fileUrl: ' ' ,
101
99
items: []
102
100
})
103
101
const formRules = reactive ({
104
- no: [{ required: true , message: ' 入库单号不能为空' , trigger: ' blur' }],
105
102
inTime: [{ required: true , message: ' 入库时间不能为空' , trigger: ' blur' }]
106
103
})
107
104
const disabled = computed (() => formType .value === ' detail' )
@@ -161,11 +158,8 @@ const submitForm = async () => {
161
158
const resetForm = () => {
162
159
formData .value = {
163
160
id: undefined ,
164
- no: undefined ,
165
161
supplierId: undefined ,
166
162
inTime: undefined ,
167
- totalCount: undefined ,
168
- totalPrice: undefined ,
169
163
remark: undefined ,
170
164
fileUrl: undefined ,
171
165
items: []
Original file line number Diff line number Diff line change 150
150
@selection-change =" handleSelectionChange"
151
151
>
152
152
<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" />
154
154
<el-table-column label =" 产品信息" align =" center" prop =" productNames" min-width =" 200" />
155
155
<el-table-column label =" 供应商" align =" center" prop =" supplierName" />
156
156
<el-table-column
163
163
<el-table-column label =" 创建人" align =" center" prop =" creatorName" />
164
164
<el-table-column label =" 数量" align =" center" prop =" totalCount" />
165
165
<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" >
167
167
<template #default =" scope " >
168
168
<dict-tag :type =" DICT_TYPE.ERP_AUDIT_STATUS" :value =" scope.row.status" />
169
169
</template >
170
170
</el-table-column >
171
- <el-table-column label =" 操作" align =" center" min- width =" 150 " >
171
+ <el-table-column label =" 操作" align =" center" fixed = " right " width =" 220 " >
172
172
<template #default =" scope " >
173
173
<el-button
174
174
link
You can’t perform that action at this time.
0 commit comments