|
@@ -289,20 +289,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template #attachments>
|
|
|
- <div style="width: 100%">
|
|
|
- <el-upload
|
|
|
- v-model:fileList="fileList"
|
|
|
- action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
|
- :data="uploadData"
|
|
|
- multiple
|
|
|
- :before-upload="uploadFile"
|
|
|
- :on-success="handleSuccess"
|
|
|
- :on-preview="onPreviewFile">
|
|
|
- <el-button style="background: #20b2aa; color: #fff; border: 1px solid #20b2aa">上传</el-button>
|
|
|
- </el-upload>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
<template #remark>
|
|
|
<div style="width: 100%">
|
|
|
<div v-html="getStyle(formData.data.remark)"></div>
|
|
@@ -357,7 +343,6 @@ const formOption = reactive({
|
|
|
const formData = reactive({
|
|
|
data: {
|
|
|
remark: "",
|
|
|
- fileList: [],
|
|
|
orderSkuList: [],
|
|
|
},
|
|
|
});
|
|
@@ -476,35 +461,6 @@ const getDemandData = () => {
|
|
|
});
|
|
|
};
|
|
|
getDemandData();
|
|
|
-const uploadProductData = ref({});
|
|
|
-const uploadProductFile = async (file) => {
|
|
|
- const res = await proxy.post("/fileInfo/getSing", { fileName: file.name });
|
|
|
- uploadProductData.value = res.uploadBody;
|
|
|
- file.id = res.id;
|
|
|
- file.fileName = res.fileName;
|
|
|
- file.fileUrl = res.fileUrl;
|
|
|
- return true;
|
|
|
-};
|
|
|
-const handleProductSuccess = (uploadFile, index) => {
|
|
|
- formData.data.orderSkuList[index].blueprint = uploadFile.raw.fileUrl;
|
|
|
-};
|
|
|
-const uploadData = ref({});
|
|
|
-const fileList = ref([]);
|
|
|
-const uploadFile = async (file) => {
|
|
|
- const res = await proxy.post("/fileInfo/getSing", { fileName: file.name });
|
|
|
- uploadData.value = res.uploadBody;
|
|
|
- file.id = res.id;
|
|
|
- file.fileName = res.fileName;
|
|
|
- file.fileUrl = res.fileUrl;
|
|
|
- file.uploadState = true;
|
|
|
- return true;
|
|
|
-};
|
|
|
-const handleSuccess = (any, UploadFile) => {
|
|
|
- UploadFile.raw.uploadState = false;
|
|
|
-};
|
|
|
-const onPreviewFile = (file) => {
|
|
|
- window.open(file.raw.fileUrl, "_blank");
|
|
|
-};
|
|
|
const openFile = (path) => {
|
|
|
window.open(path);
|
|
|
};
|
|
@@ -608,26 +564,6 @@ const getOrderDetail = (parameter) => {
|
|
|
if (res.orderSkuList && res.orderSkuList.length > 0) {
|
|
|
list = list.concat(res.orderSkuList.map((item) => item.id));
|
|
|
}
|
|
|
- proxy.post("/fileInfo/getList", { businessIdList: list }).then((fileObj) => {
|
|
|
- if (fileObj) {
|
|
|
- if (fileObj[res.id] && fileObj[res.id].length > 0) {
|
|
|
- fileList.value = fileObj[res.id].map((item) => {
|
|
|
- return {
|
|
|
- raw: item,
|
|
|
- name: item.fileName,
|
|
|
- url: item.fileUrl,
|
|
|
- };
|
|
|
- });
|
|
|
- }
|
|
|
- if (formData.data.orderSkuList && formData.data.orderSkuList.length > 0) {
|
|
|
- for (let i = 0; i < formData.data.orderSkuList.length; i++) {
|
|
|
- if (fileObj[formData.data.orderSkuList[i].id] && fileObj[formData.data.orderSkuList[i].id].length > 0) {
|
|
|
- formData.data.orderSkuList[i].blueprint = fileObj[formData.data.orderSkuList[i].id][0];
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
});
|
|
|
};
|
|
|
const getStyle = (text) => {
|