| | |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24"> |
| | | <el-form-item label="设备图片" prop="storageBlobDTOs"> |
| | | <AttachmentUploadImage |
| | | v-model:fileList="fileList" |
| | | :limit="20" |
| | | :fileSize="5" |
| | | :buttonText="'上传图片'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </template> |
| | |
| | | calculateTaxExclusiveTotalPrice, |
| | | } from "@/utils/summarizeTable"; |
| | | import { ElMessage } from "element-plus"; |
| | | import {ref, getCurrentInstance} from "vue"; |
| | | import { ref, getCurrentInstance, computed } from "vue"; |
| | | import AttachmentUploadImage from '@/components/AttachmentUpload/image/index.vue'; |
| | | |
| | | const { proxy } = getCurrentInstance(); |
| | | const { tax_rate } = proxy.useDict("tax_rate"); |
| | |
| | | // createUser: useUserStore().nickName, // 录入人 |
| | | createTime: dayjs().format("YYYY-MM-DD HH:mm:ss"), // 录入日期 |
| | | planRuntimeTime: dayjs().format("YYYY-MM-DD"), // 录入日期 |
| | | storageBlobDTOs: undefined, // 设备图片提交 |
| | | storageBlobVOs: undefined, // 设备图片展示 |
| | | }); |
| | | |
| | | const fileList = computed({ |
| | | get() { |
| | | return form.storageBlobVOs || []; |
| | | }, |
| | | set(val) { |
| | | form.storageBlobDTOs = val; |
| | | form.storageBlobVOs = val; |
| | | } |
| | | }); |
| | | |
| | | const loadForm = async (id) => { |
| | |
| | | } else { |
| | | form.planRuntimeTime = undefined; |
| | | } |
| | | form.storageBlobVOs = data.storageBlobVOs; |
| | | form.storageBlobDTOs = data.storageBlobVOs; |
| | | } |
| | | }; |
| | | |