添加产品上架证明文件
Showing
2 changed files
with
135 additions
and
4 deletions
| ... | @@ -708,9 +708,9 @@ const getProductDetail = async () => { | ... | @@ -708,9 +708,9 @@ const getProductDetail = async () => { |
| 708 | // if (res.data.commitmentLetter && res.data.commitmentLetter.length) { | 708 | // if (res.data.commitmentLetter && res.data.commitmentLetter.length) { |
| 709 | // flowDetail.value.commitmentLetter = { name: res.data.commitmentLetter[0].name, url: res.data.commitmentLetter[0].url } | 709 | // flowDetail.value.commitmentLetter = { name: res.data.commitmentLetter[0].name, url: res.data.commitmentLetter[0].url } |
| 710 | // } | 710 | // } |
| 711 | if (res.data.accreditFile && res.data.accreditFile.length) { | 711 | // if (res.data.accreditFile && res.data.accreditFile.length) { |
| 712 | flowDetail.value.accreditFile = { name: res.data.accreditFile[0].name, url: res.data.accreditFile[0].url } | 712 | // flowDetail.value.accreditFile = { name: res.data.accreditFile[0].name, url: res.data.accreditFile[0].url } |
| 713 | } | 713 | // } |
| 714 | // if (res.data.productDetail && res.data.productDetail.length) { | 714 | // if (res.data.productDetail && res.data.productDetail.length) { |
| 715 | // flowDetail.value.productDetail = { name: res.data.productDetail[0].name, url: res.data.productDetail[0].url } | 715 | // flowDetail.value.productDetail = { name: res.data.productDetail[0].name, url: res.data.productDetail[0].url } |
| 716 | // } | 716 | // } |
| ... | @@ -794,6 +794,18 @@ const submitForm = (btn, formEl, tosub = false) => { | ... | @@ -794,6 +794,18 @@ const submitForm = (btn, formEl, tosub = false) => { |
| 794 | delete params.productImgList; | 794 | delete params.productImgList; |
| 795 | params.coverageArea = subForm.value.coverageAreas == 'Y' ? [['all']] : subForm.value.coverageArea; | 795 | params.coverageArea = subForm.value.coverageAreas == 'Y' ? [['all']] : subForm.value.coverageArea; |
| 796 | params.productPic = subForm.value.productImg.length ? { name: subForm.value.productImg[0].name, url: subForm.value.productImg[0].url } : {}; | 796 | params.productPic = subForm.value.productImg.length ? { name: subForm.value.productImg[0].name, url: subForm.value.productImg[0].url } : {}; |
| 797 | params.accreditFile = params.accreditFileInfo.length ? [{ | ||
| 798 | url: params.accreditFileInfo[0].url, | ||
| 799 | name: params.accreditFileInfo[0].name | ||
| 800 | }] : ''; | ||
| 801 | params.commitmentLetter = params.commitmentLetterInfo.length ? [{ | ||
| 802 | url: params.commitmentLetterInfo[0].url, | ||
| 803 | name: params.commitmentLetterInfo[0].name | ||
| 804 | }] : []; | ||
| 805 | params.productDetail = params.productDetailInfo.length ? [{ | ||
| 806 | url: params.productDetailInfo[0].url, | ||
| 807 | name: params.productDetailInfo[0].name | ||
| 808 | }] : []; | ||
| 797 | // console.log(params, formInfo.value.items.at(3).defaultValue, formInfo.value, '-----------------'); | 809 | // console.log(params, formInfo.value.items.at(3).defaultValue, formInfo.value, '-----------------'); |
| 798 | params.caseNumber = parseInt(params.caseNumber.replace(/,/g, ''), 10), | 810 | params.caseNumber = parseInt(params.caseNumber.replace(/,/g, ''), 10), |
| 799 | params.dataScale = parseInt(params.dataScale.replace(/,/g, ''), 10), | 811 | params.dataScale = parseInt(params.dataScale.replace(/,/g, ''), 10), |
| ... | @@ -801,6 +813,9 @@ const submitForm = (btn, formEl, tosub = false) => { | ... | @@ -801,6 +813,9 @@ const submitForm = (btn, formEl, tosub = false) => { |
| 801 | params.timeAreaEnd = params.dateRange ? params.dateRange[1] : ''; | 813 | params.timeAreaEnd = params.dateRange ? params.dateRange[1] : ''; |
| 802 | // 删除dateRange字段 | 814 | // 删除dateRange字段 |
| 803 | delete params.dateRange; | 815 | delete params.dateRange; |
| 816 | delete params.accreditFileInfo; | ||
| 817 | delete params.commitmentLetterInfo; | ||
| 818 | delete params.productDetailInfo; | ||
| 804 | params.foundMode = currProductInfo.value?.foundMode || flowDetail.value.foundMode; | 819 | params.foundMode = currProductInfo.value?.foundMode || flowDetail.value.foundMode; |
| 805 | params.productCode = currProductInfo.value?.productCode || flowDetail.value.productCode; | 820 | params.productCode = currProductInfo.value?.productCode || flowDetail.value.productCode; |
| 806 | flowDetailLoading.value = true; | 821 | flowDetailLoading.value = true; |
| ... | @@ -1954,6 +1969,122 @@ const viewProductDetail = () => { | ... | @@ -1954,6 +1969,122 @@ const viewProductDetail = () => { |
| 1954 | <span class="item_value">--</span> | 1969 | <span class="item_value">--</span> |
| 1955 | </div> | 1970 | </div> |
| 1956 | </div> | 1971 | </div> |
| 1972 | |||
| 1973 | <div class="list_item is_block"> | ||
| 1974 | <div class="file_item" > | ||
| 1975 | <span class="item_label">承诺函:</span> | ||
| 1976 | <span class="item_value"> | ||
| 1977 | <div class="file-operate"> | ||
| 1978 | <template v-if="flowDetail?.commitmentLetter?.length > 0"> | ||
| 1979 | <template | ||
| 1980 | v-if="flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'"> | ||
| 1981 | <img class="file-img" src="../../assets/images/PDF.png" /> | ||
| 1982 | </template> | ||
| 1983 | <template | ||
| 1984 | v-else-if="flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase() === 'png'"> | ||
| 1985 | <img class="file-img" src="../../assets/images/png.png" /> | ||
| 1986 | </template> | ||
| 1987 | <template | ||
| 1988 | v-else-if="['jpg', 'jpeg'].includes(flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase())"> | ||
| 1989 | <img class="file-img" src="../../assets/images/jpg.png" /> | ||
| 1990 | </template> | ||
| 1991 | <div class="file-name"><ellipsis-tooltip :content="flowDetail.commitmentLetter[0].name ?? ''" | ||
| 1992 | class-name="w100f" refName="tooltipOver"></ellipsis-tooltip></div> | ||
| 1993 | <div | ||
| 1994 | v-if="['pdf', 'png', 'jpg', 'jpeg'].includes(flowDetail.commitmentLetter[0].name?.substring(flowDetail.commitmentLetter[0].name.lastIndexOf('.') + 1).toLowerCase())" | ||
| 1995 | :style="{ right: '36px' }" class="file-preview" | ||
| 1996 | @click="onUploadFilePreview(flowDetail.commitmentLetter[0])"> | ||
| 1997 | 查看 | ||
| 1998 | </div> | ||
| 1999 | <div :style="{ right: '0px' }" class="file-preview" | ||
| 2000 | @click="onUploadFileDownload(flowDetail.commitmentLetter[0])"> | ||
| 2001 | 下载 | ||
| 2002 | </div> | ||
| 2003 | </template> | ||
| 2004 | <template v-else> | ||
| 2005 | -- | ||
| 2006 | </template> | ||
| 2007 | </div> | ||
| 2008 | </span> | ||
| 2009 | </div> | ||
| 2010 | </div> | ||
| 2011 | <div class="list_item is_block"> | ||
| 2012 | <div class="file_item" > | ||
| 2013 | <span class="item_label">授权文件:</span> | ||
| 2014 | <span class="item_value"> | ||
| 2015 | <div class="file-operate"> | ||
| 2016 | <template v-if="flowDetail?.accreditFile?.length > 0"> | ||
| 2017 | <template | ||
| 2018 | v-if="flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'"> | ||
| 2019 | <img class="file-img" src="../../assets/images/PDF.png" /> | ||
| 2020 | </template> | ||
| 2021 | <template | ||
| 2022 | v-else-if="flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase() === 'png'"> | ||
| 2023 | <img class="file-img" src="../../assets/images/png.png" /> | ||
| 2024 | </template> | ||
| 2025 | <template | ||
| 2026 | v-else-if="['jpg', 'jpeg'].includes(flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase())"> | ||
| 2027 | <img class="file-img" src="../../assets/images/jpg.png" /> | ||
| 2028 | </template> | ||
| 2029 | <div class="file-name"><ellipsis-tooltip :content="flowDetail.accreditFile[0].name ?? ''" | ||
| 2030 | class-name="w100f" refName="tooltipOver"></ellipsis-tooltip></div> | ||
| 2031 | <div | ||
| 2032 | v-if="['pdf', 'png', 'jpg', 'jpeg'].includes(flowDetail.accreditFile[0].name?.substring(flowDetail.accreditFile[0].name.lastIndexOf('.') + 1).toLowerCase())" | ||
| 2033 | :style="{ right: '36px' }" class="file-preview" | ||
| 2034 | @click="onUploadFilePreview(flowDetail.accreditFile[0])"> | ||
| 2035 | 查看 | ||
| 2036 | </div> | ||
| 2037 | <div :style="{ right: '0px' }" class="file-preview" | ||
| 2038 | @click="onUploadFileDownload(flowDetail.accreditFile[0])"> | ||
| 2039 | 下载 | ||
| 2040 | </div> | ||
| 2041 | </template> | ||
| 2042 | <template v-else> | ||
| 2043 | -- | ||
| 2044 | </template> | ||
| 2045 | </div> | ||
| 2046 | </span> | ||
| 2047 | </div> | ||
| 2048 | </div> | ||
| 2049 | <div class="list_item is_block" v-if="flowDetail?.productDetail?.length > 0"> | ||
| 2050 | <div class="file_item"> | ||
| 2051 | <span class="item_label">其它证明文件:</span> | ||
| 2052 | <span class="item_value"> | ||
| 2053 | <div class="file-operate"> | ||
| 2054 | <template v-if="flowDetail?.productDetail?.length > 0"> | ||
| 2055 | <template | ||
| 2056 | v-if="flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0].name.lastIndexOf('.') + 1).toLowerCase() === 'pdf'"> | ||
| 2057 | <img class="file-img" src="../../assets/images/PDF.png" /> | ||
| 2058 | </template> | ||
| 2059 | <template | ||
| 2060 | v-else-if="flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0].name.lastIndexOf('.') + 1).toLowerCase() === 'png'"> | ||
| 2061 | <img class="file-img" src="../../assets/images/png.png" /> | ||
| 2062 | </template> | ||
| 2063 | <template | ||
| 2064 | v-else-if="['jpg', 'jpeg'].includes(flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0].name.lastIndexOf('.') + 1).toLowerCase())"> | ||
| 2065 | <img class="file-img" src="../../assets/images/jpg.png" /> | ||
| 2066 | </template> | ||
| 2067 | <div class="file-name"><ellipsis-tooltip :content="flowDetail.productDetail[0].name ?? ''" | ||
| 2068 | class-name="w100f" refName="tooltipOver"></ellipsis-tooltip></div> | ||
| 2069 | <div | ||
| 2070 | v-if="['pdf', 'png', 'jpg', 'jpeg'].includes(flowDetail.productDetail[0].name?.substring(flowDetail.productDetail[0].name.lastIndexOf('.') + 1).toLowerCase())" | ||
| 2071 | :style="{ right: '36px' }" class="file-preview" | ||
| 2072 | @click="onUploadFilePreview(flowDetail.productDetail[0])"> | ||
| 2073 | 查看 | ||
| 2074 | </div> | ||
| 2075 | <div :style="{ right: '0px' }" class="file-preview" | ||
| 2076 | @click="onUploadFileDownload(flowDetail.productDetail[0])"> | ||
| 2077 | 下载 | ||
| 2078 | </div> | ||
| 2079 | </template> | ||
| 2080 | <template v-else> | ||
| 2081 | -- | ||
| 2082 | </template> | ||
| 2083 | </div> | ||
| 2084 | </span> | ||
| 2085 | </div> | ||
| 2086 | </div> | ||
| 2087 | |||
| 1957 | </div> | 2088 | </div> |
| 1958 | </div> | 2089 | </div> |
| 1959 | </div> | 2090 | </div> | ... | ... |
| ... | @@ -264,7 +264,7 @@ const productTableInfo = ref({ | ... | @@ -264,7 +264,7 @@ const productTableInfo = ref({ |
| 264 | data: productData.value, | 264 | data: productData.value, |
| 265 | showPage: false, | 265 | showPage: false, |
| 266 | actionInfo: { | 266 | actionInfo: { |
| 267 | show: true, | 267 | show: false, |
| 268 | label: "操作", | 268 | label: "操作", |
| 269 | type: "btn", | 269 | type: "btn", |
| 270 | width: 60, | 270 | width: 60, | ... | ... |
-
Please register or sign in to post a comment