|
@@ -617,19 +617,21 @@ export default {
|
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
offlineOrderSave({...this.formData, orderDetails: this.goodsList}).then(res => {
|
|
|
- offlineOrderExamine({
|
|
|
- orderId: res.data,
|
|
|
- examineStatus: 'OK',
|
|
|
- examineRemark: '',
|
|
|
- }).then(examineRes => {
|
|
|
- if(this.formData.payType == 'WECHAT' && examineRes.data.codeUrl) {
|
|
|
- this.creatCode(examineRes.data.codeUrl);
|
|
|
- }else {
|
|
|
- this.$message({ type: 'success', message: `${this.formDialogTitles[this.formDialogType]}成功!` })
|
|
|
- cancel('list')
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
- }
|
|
|
- })
|
|
|
+ if(this.formData.payType == 'WECHAT') {
|
|
|
+ offlineOrderExamine({
|
|
|
+ orderId: res.data,
|
|
|
+ examineStatus: 'OK',
|
|
|
+ examineRemark: '',
|
|
|
+ }).then(examineRes => {
|
|
|
+ if(examineRes.data.codeUrl) {
|
|
|
+ this.creatCode(examineRes.data.codeUrl);
|
|
|
+ }else {
|
|
|
+ this.$message({ type: 'success', message: `${this.formDialogTitles[this.formDialogType]}成功!` })
|
|
|
+ cancel('list')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
})
|