|
|
@@ -67,6 +67,7 @@
|
|
|
<el-radio label="D3CXK">大3寸</el-radio>
|
|
|
<el-radio label="ZP">直拍</el-radio>
|
|
|
<el-radio label="MXP">明信片</el-radio>
|
|
|
+ <el-radio label="HZ">吧唧</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-row>
|
|
|
@@ -79,7 +80,6 @@
|
|
|
list-type="picture-card"
|
|
|
accept="image/*"
|
|
|
:multiple="frontMultiple"
|
|
|
- :before-upload="(file, fileList)=>handleBeforeUpload(file, fileList,'Front')"
|
|
|
action="#"
|
|
|
:limit="frontLimit"
|
|
|
:file-list="dataForm.frontList"
|
|
|
@@ -101,7 +101,6 @@
|
|
|
list-type="picture-card"
|
|
|
accept="image/*"
|
|
|
:multiple="true"
|
|
|
- :before-upload="(file, fileList)=>handleBeforeUpload(file, fileList,'Back')"
|
|
|
action="#"
|
|
|
:limit="1"
|
|
|
:file-list="dataForm.backList"
|
|
|
@@ -221,8 +220,13 @@ export default {
|
|
|
this.dataForm.issuePicLevel = data.issuePicLevel
|
|
|
let front = {name: data.issuePicName, url: this.resourcesUrl + this.dataForm.frontUrl, path: this.dataForm.frontUrl}
|
|
|
let back = {name: data.issuePicName, url: this.resourcesUrl + this.dataForm.backUrl, path: this.dataForm.backUrl}
|
|
|
- this.dataForm.frontList.push(front)
|
|
|
- this.dataForm.backList.push(back)
|
|
|
+ if(front.path){
|
|
|
+ this.dataForm.frontList.push(front)
|
|
|
+ }
|
|
|
+ if(back.path){
|
|
|
+ this.dataForm.backList.push(back)
|
|
|
+ }
|
|
|
+
|
|
|
this.dataForm.back = back
|
|
|
})
|
|
|
}
|
|
|
@@ -233,7 +237,12 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
try{
|
|
|
- this.dataForm.frontUrl = this.dataForm.frontList.join(",");
|
|
|
+ if(this.dataForm.frontList.length > 0){
|
|
|
+ this.dataForm.frontUrl = this.dataForm.frontList.join(",");
|
|
|
+ }
|
|
|
+ if(this.dataForm.backList.length > 0){
|
|
|
+ this.dataForm.backList = this.dataForm.backList.join(",");
|
|
|
+ }
|
|
|
this.isSubmitting = true
|
|
|
this.$http({
|
|
|
url: this.$http.adornUrl(`/ar/arIssuePic`),
|
|
|
@@ -273,7 +282,8 @@ export default {
|
|
|
backList: [],
|
|
|
frontList: [],
|
|
|
back:{},
|
|
|
- picType: "6x9"
|
|
|
+ picType: "6x9",
|
|
|
+ shopId: this.$store.state.user.shopId
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -339,6 +349,9 @@ export default {
|
|
|
}else if (picType === 'ZP') {
|
|
|
width = 732
|
|
|
height = 1252
|
|
|
+ }else if (picType === 'HZ') {
|
|
|
+ width = 732
|
|
|
+ height = 1252
|
|
|
}
|
|
|
isSize = new Promise(function(resolve, reject) {
|
|
|
let _URL = window.URL || window.webkitURL
|