This commit is contained in:
faiz 2024-05-07 11:11:12 +08:00
parent be98df81fe
commit 94c0d44a5e
1 changed files with 30 additions and 43 deletions

View File

@ -358,7 +358,7 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.url"
@ -397,7 +397,7 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.url"
@ -437,7 +437,7 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.url"
@ -476,7 +476,7 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.url"
@ -516,7 +516,7 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.url"
@ -555,12 +555,12 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.response.data.src"
:src="file.url"
:ref="file.uid"
:preview-src-list="[file.response.data.src]"
:preview-src-list="[file.url]"
/>
<span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
@ -608,12 +608,12 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.response.data.src"
:src="file.url"
:ref="file.uid"
:preview-src-list="[file.response.data.src]"
:preview-src-list="[file.url]"
/>
<span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
@ -648,12 +648,12 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.response.data.src"
:src="file.url"
:ref="file.uid"
:preview-src-list="[file.response.data.src]"
:preview-src-list="[file.url]"
/>
<span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
@ -688,12 +688,12 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.response.data.src"
:src="file.url"
:ref="file.uid"
:preview-src-list="[file.response.data.src]"
:preview-src-list="[file.url]"
/>
<span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
@ -727,12 +727,12 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.response.data.src"
:src="file.url"
:ref="file.uid"
:preview-src-list="[file.response.data.src]"
:preview-src-list="[file.url]"
/>
<span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
@ -766,12 +766,12 @@
</div>
<!-- 图片预览 -->
<el-image
v-if="['application/pdf', 'image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type) && file.response"
v-if="['image/jpeg', 'image/png', 'image/jpg', 'image/gif'].includes(file.type)"
:id="'image' + file.uid"
class="el-upload-list__item-thumbnail"
:src="file.response.data.src"
:src="file.url"
:ref="file.uid"
:preview-src-list="[file.response.data.src]"
:preview-src-list="[file.url]"
/>
<span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
@ -2617,23 +2617,7 @@ export default {
this.setTagsViewTitle()
this.getInfo()
} else {
this.formValidate.qualification = {
production_name: '',
businessList: [],
licenceList: [],
trademarkList: [],
authorizedList: [],
commodityList: [],
otherList: [],
importBusinessList: [],
importAuthorizedList: [],
customsList: [],
packingList: [],
importOtherList: [],
commodity_type: 0,
brands_name: '',
import_name: ''
}
this.formValidate.qualification = Object.assign({}, defaultObj.qualification)
this.getSpecsLst(this.formValidate.cate_id)
this.productCon()
if (this.deduction_set == -1) this.formValidate.integral_rate = -1
@ -2698,7 +2682,7 @@ export default {
console.log(file);
// pdf
if (['application/pdf'].includes(file.type)) {
window.open(file.response.data.src)
window.open(file.url)
return
}
// pdf
@ -2724,9 +2708,11 @@ export default {
if (fileList.every(item => item.status == "success")) {
let arr = []
fileList.map(item => {
item.response && arr.push({ ...item,url: item.response.data.src,type:item.raw.type||item.type})
arr.push({ name:item.name,uid:item.uid,url: item?.response?.data?.src||item.url,type:item?.raw?.type||item.type})
})
console.log(fileList);
this.formValidate.qualification[name] = arr
console.log(this.formValidate.qualification[name]);
}
}
},
@ -3738,7 +3724,7 @@ export default {
audit_type:info.audit_type,
extend: info.extend || [],
svip_price_type: info.svip_price_type || 0,
qualification:info.qualification,
qualification:info.qualification || Object.assign({}, defaultObj.qualification),
is_huimei:info.is_huimei
};
console.log(info.qualification);
@ -3830,6 +3816,7 @@ export default {
console.log(this.currentTab)
},
handleSubmitNest(name) {
console.log(this.formValidate);
if (this.formValidate.spec_type === 1 && this.currentTab=='3') {
let mode = this.ManyAttrValue.every(item=>{
return !(+item.ot_price<item.price)