|
@@ -19,8 +19,10 @@
|
|
|
<template #drawingPath-form="scope">
|
|
|
<!-- <single-upload v-model="form.drawingPath" :generatePdf="true"/>-->
|
|
|
<FilesUpload
|
|
|
- v-model:src="fileUrl"
|
|
|
+ v-model:src-list="srcList"
|
|
|
v-model:pdf-list="pdfUrlList"
|
|
|
+ v-model:file-name-list="fileNameList"
|
|
|
+ :limit="10"
|
|
|
:generate-pdf="true"
|
|
|
@finished="testFiles"
|
|
|
/>
|
|
@@ -73,10 +75,14 @@ const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
|
// 数据字典相关
|
|
|
const { dicts } = useDictionaryStoreHook();
|
|
|
const fileUrl = ref(""); //单文件
|
|
|
-const pdfUrlList = ref([])
|
|
|
+const pdfUrlList = ref([]);
|
|
|
+const srcList = ref([]);
|
|
|
+const fileNameList = ref([]);
|
|
|
const testFiles =()=>{
|
|
|
- form.value.pdfPath = pdfUrlList.value[0]
|
|
|
- form.value.drawingPath = fileUrl.value
|
|
|
+ form.value.pdfPathList = pdfUrlList.value;
|
|
|
+ form.value.drawingPathList = srcList.value;
|
|
|
+ form.value.drawingPath = srcList.value[0];
|
|
|
+ form.value.fileNameList=fileNameList.value;
|
|
|
}
|
|
|
const filePath = import.meta.env.VITE_APP_UPLOAD_URL;
|
|
|
const test = () => {
|
|
@@ -121,6 +127,7 @@ onMounted?.(() => {
|
|
|
const onSelectedFinish = (selectedValue) => {
|
|
|
form.value.associationCode=selectedValue.materialCode;
|
|
|
form.value.associationName=selectedValue.materialCode;
|
|
|
+ form.value.materialCode=selectedValue.materialCode;
|
|
|
};
|
|
|
|
|
|
|
|
@@ -143,17 +150,25 @@ option.value = Object.assign(option.value, {
|
|
|
delBtn:false,
|
|
|
menu:true,
|
|
|
column: [
|
|
|
- { label: "图纸编号", prop: "drawingCode", width: 180,search: true,overHidden: true ,rules: [{
|
|
|
+ { label: "图纸编号", prop: "drawingCode", width: 150,search: true,overHidden: true ,rules: [{
|
|
|
required: true,
|
|
|
message: "请填写图纸编号",
|
|
|
trigger: "blur"
|
|
|
}],},
|
|
|
- { label: "图纸名称", prop: "drawingTitle", width: 180,overHidden: true,search: true ,rules: [{
|
|
|
+ { label: "图纸名称", prop: "drawingTitle", width: 150,overHidden: true,search: true ,rules: [{
|
|
|
required: true,
|
|
|
message: "请填写图纸名称",
|
|
|
trigger: "blur"
|
|
|
}],},
|
|
|
- { label: "物料编号", prop: "associationCode", width: 180,search: true,overHidden: true ,editDisplay: false,
|
|
|
+ { label: "物料编号", prop: "associationCode", width: 150,search: true,overHidden: true ,editDisplay: false,addDisplay: false,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: "请填写物料编号",
|
|
|
+ trigger: "blur"
|
|
|
+ }],
|
|
|
+ },
|
|
|
+
|
|
|
+ { label: "物料编号", prop: "materialCode", width: 150,overHidden: true ,editDisplay: false,hide:true,
|
|
|
rules: [{
|
|
|
required: true,
|
|
|
message: "请填写物料编号",
|
|
@@ -196,6 +211,37 @@ option.value = Object.assign(option.value, {
|
|
|
trigger: "blur"
|
|
|
}],
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "文件名称",
|
|
|
+ prop: "fileName",
|
|
|
+ span: 24,
|
|
|
+ width:120,
|
|
|
+ display:false,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "文件数组",
|
|
|
+ prop: "drawingPathList",
|
|
|
+ span: 24,
|
|
|
+ hide:true,
|
|
|
+ display:false,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "pdf数组",
|
|
|
+ prop: "pdfPathList",
|
|
|
+ span: 24,
|
|
|
+ hide:true,
|
|
|
+ display:false,
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ label: "文件名称数组",
|
|
|
+ prop: "fileNameList",
|
|
|
+ span: 24,
|
|
|
+ slot: true,
|
|
|
+ hide:true,
|
|
|
+ display:false,
|
|
|
+ },
|
|
|
/*{ label: "文件",
|
|
|
prop: "drawing",
|
|
|
type: 'img',
|
|
@@ -220,6 +266,8 @@ option.value = Object.assign(option.value, {
|
|
|
{
|
|
|
label: "创建时间",
|
|
|
prop: "created",
|
|
|
+ width:120,
|
|
|
+ overHidden:true,
|
|
|
display:false,
|
|
|
},
|
|
|
{ label: "启用状态",
|