|
@@ -1209,26 +1209,22 @@ export default {
|
|
|
manufacturerdialog () {
|
|
manufacturerdialog () {
|
|
|
this.$refs['manufacturerList'].showDialog()
|
|
this.$refs['manufacturerList'].showDialog()
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- imgFormat(val,index){
|
|
|
|
|
- if(val !=null && val != undefined && val !=''){
|
|
|
|
|
- let fileurlall = val.split('$')[index]
|
|
|
|
|
- let fileurl = fileurlall.split('|')
|
|
|
|
|
- if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
|
|
|
|
|
- let Format = fileurl[1].split(".")
|
|
|
|
|
- if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
|
|
|
|
|
- let pictureFormat = Format[1];
|
|
|
|
|
- if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ imgFormat (val, index) {
|
|
|
|
|
+ if (val != null && val != undefined && val != '') {
|
|
|
|
|
+ let fileurlall = val.split('$')[index]
|
|
|
|
|
+ let fileurl = fileurlall.split('|')
|
|
|
|
|
+ if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
|
|
|
|
|
+ let Format = fileurl[1].split('.')
|
|
|
|
|
+ if (Format[1] != null && Format[1] !='' && Format[1] != undefined) {
|
|
|
|
|
+ let pictureFormat = Format[1]
|
|
|
|
|
+ if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
|
|
|
|
|
+ return false
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- return true;
|
|
|
|
|
}
|
|
}
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
fileurlcut (val, index) {
|
|
fileurlcut (val, index) {
|
|
|
let fileurlall = val.split('$')[index]
|
|
let fileurlall = val.split('$')[index]
|
|
|
let fileurl = fileurlall.split('|')
|
|
let fileurl = fileurlall.split('|')
|