@@ -567,6 +770,23 @@ export default {
productId: '',
direction: 'rtl',
activeName: 'basic',
+ qualification:{
+ production_name: '',
+ businessList: [],
+ licenceList: [],
+ trademarkList: [],
+ authorizedList: [],
+ commodityList: [],
+ otherList: [],
+ importBusinessList: [],
+ importAuthorizedList: [],
+ customsList: [],
+ packingList: [],
+ importOtherList: [],
+ commodity_type: 0,
+ brands_name: '',
+ import_name: ''
+ },
productData: {},
formThead: Object.assign({}, objTitle),
manyTabDate: {},
@@ -607,6 +827,11 @@ export default {
filters: {
},
methods: {
+ getType(val){
+ var regex = /(?:\.([^.]+))?$/;
+ let suffix = regex.exec(val.url)[1]
+ return suffix == 'pdf'
+ },
handleClose() {
this.activeName = 'basic';
this.$emit('closeDrawer');
@@ -617,6 +842,7 @@ export default {
productDetailApi(id).then(res => {
this.loading = false;
this.productData = res.data
+ this.qualification = res.data.qualification
this.mer_svip_status = res.data.mer_svip_status
this.svip_type = res.data.svip_price_type
if (this.productData.spec_type === 0) {
@@ -697,6 +923,40 @@ export default {
};