| | |
| | | </el-descriptions-item> |
| | | </el-descriptions> |
| | | <!-- ================= 切料图示 ================= --> |
| | | <div class="section-title" v-if="formData.cuttingFileVo.length > 0">切料图示</div> |
| | | <div class="section-title" v-if="type === 'add' || (type === 'detail' && formData.cuttingFileVo.length > 0)">切料图示</div> |
| | | <ActionFileUpload |
| | | v-if="formData.cuttingFileVo.length > 0" |
| | | v-if="type === 'add' || (type === 'detail' && formData.cuttingFileVo.length > 0)" |
| | | style="width: 50%;float: left;" |
| | | v-model:file-list="formData.cuttingFileVo" |
| | | :action="upload.url" |
| | |
| | | :onDownload="onDownload" |
| | | :onRemove="onRemove" |
| | | :onPreview="onPreview" |
| | | :onView="type === 'detail' ? false : true" |
| | | :onView="type!=='detail'" |
| | | :tip-text="type === 'detail' ? '' : '支持图片(jpg, jpeg, png)格式'" |
| | | /> |
| | | <el-image |
| | |
| | | <el-input v-model="formData.cutNum" placeholder="切料尺寸" :disabled="isDetail" /> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="切料数量" align="center"> |
| | | <el-input v-model="formData.cutSize" placeholder="切料尺寸" :disabled="isDetail" /> |
| | | <el-input v-model="formData.cutSize" placeholder="切料数量" :disabled="isDetail" /> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item label="中盒数量" align="center"> |
| | | <el-input v-model="formData.mediumBoxQty" placeholder="中盒数量" :disabled="isDetail" /> |
| | |
| | | headers: { Authorization: 'Bearer ' + getToken() } |
| | | }) |
| | | |
| | | const showCuttingFile = computed(() => { |
| | | return props.type === 'detail' && Array.isArray(formData.cuttingFileVo) && formData.cuttingFileVo.length > 0 |
| | | }) |
| | | |
| | | const filePreviewRef = ref() |
| | | const formData = reactive({ |
| | | productOrderList:null, |
| | |
| | | no: "", |
| | | productName: "", |
| | | productDescription: "", |
| | | cuttingDiagramCheckout:"", |
| | | clientName: "", |
| | | finishedSize: "", |
| | | cutNum: "", |
| | |
| | | ], |
| | | processContent: [ |
| | | { |
| | | id: "1", |
| | | processId: "", |
| | | processName: "", |
| | | mediumBoxQty: "", |
| | |
| | | ], |
| | | materialInfo: [ |
| | | { |
| | | id: "1", |
| | | productId: "", |
| | | name: "", |
| | | productModelId: "", |
| | |
| | | no: "", |
| | | productName: "", |
| | | productDescription: "", |
| | | cuttingDiagramCheckout:"平张", |
| | | clientName: "", |
| | | finishedSize: "", |
| | | cutNum: "", |
| | |
| | | ], |
| | | processContent: [ |
| | | { |
| | | id: "1", |
| | | processId: "", |
| | | processName: "", |
| | | mediumBoxQty: "", |
| | |
| | | ], |
| | | materialInfo: [ |
| | | { |
| | | id: "1", |
| | | productId: "", |
| | | name: "", |
| | | productModelId: "", |
| | |
| | | |
| | | const addProcessRow = () => { |
| | | formData.processContent.push({ |
| | | id: Date.now().toString(), |
| | | processId: "", |
| | | processName: "", |
| | | openCount: "", |