|
@@ -28,6 +28,20 @@
|
|
|
:rules="rules"
|
|
|
ref="byform"
|
|
|
>
|
|
|
+ <template #file>
|
|
|
+ <div style="width: 100%">
|
|
|
+ <el-upload
|
|
|
+ v-model:fileList="formData.data.fileList"
|
|
|
+ action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
|
+ :data="uploadData"
|
|
|
+ multiple
|
|
|
+ :before-upload="uploadFile"
|
|
|
+ :on-preview="onPreviewFile"
|
|
|
+ >
|
|
|
+ <el-button>选择</el-button>
|
|
|
+ </el-upload>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</byForm>
|
|
|
<template #footer>
|
|
|
<el-button @click="dialogVisible = false" size="large">取 消</el-button>
|
|
@@ -195,6 +209,11 @@ const formConfig = computed(() => {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
+ type: "slot",
|
|
|
+ slotName: "file",
|
|
|
+ label: "工序图纸",
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "input",
|
|
|
itemType: "text",
|
|
|
prop: "previousProcessesName",
|
|
@@ -315,6 +334,22 @@ const getDtl = (row) => {
|
|
|
}
|
|
|
formOption.disabled = true;
|
|
|
formData.data = { ...row };
|
|
|
+ proxy.post("/productionTaskDetail/detail", { id: row.id }).then((res) => {
|
|
|
+ if (res && res.productionTaskDetailRecordList.length > 0) {
|
|
|
+ let id = res.productionTaskDetailRecordList[0].id;
|
|
|
+ proxy.post("/fileInfo/getList", { businessIdList: [id] }).then((res) => {
|
|
|
+ if (res && res[id].length > 0) {
|
|
|
+ formData.data.fileList = res[id].map((item) => {
|
|
|
+ return {
|
|
|
+ raw: item,
|
|
|
+ name: item.fileName,
|
|
|
+ url: item.fileUrl,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
dialogVisible.value = true;
|
|
|
};
|
|
|
|