| | |
| | | <el-dialog v-model="dialogFormVisible" :title="operationType === 'add' ? '新增自定义入库' : '编辑自定义入库'" width="70%" |
| | | @close="closeDia"> |
| | | <el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef"> |
| | | <div style="margin-bottom: 10px; display: flex; align-items: center; gap: 12px;"> |
| | | <span>登记人:</span> |
| | | <el-input v-model="form.registrant" style="width: 220px" placeholder="请输入登记人" clearable /> |
| | | </div> |
| | | <div style="margin-bottom: 10px;" v-if="operationType === 'add'"> |
| | | <el-button type="primary" @click="addProductRow">新增</el-button> |
| | | </div> |
| | |
| | | supplierName: '', // 供应商名称 |
| | | recorderId: userStore.userId, // 录入人ID |
| | | recorderName: userStore.name, // 录入人姓名 |
| | | registrant: userStore.name, // 登记人 |
| | | entryDate: getCurrentDate(), // 录入日期 |
| | | remark: '', // 备注 |
| | | }, |
| | |
| | | |
| | | const payloadList = productList.value.map(product => ({ |
| | | id: product.id ?? null, |
| | | registrant: form.value.registrant || '', |
| | | inboundNum: Number(product.inboundNum), |
| | | productCategory: product.productCategory, |
| | | specificationModel: product.specificationModel, |