|
|
@@ -548,12 +548,24 @@ export default {
|
|
|
}
|
|
|
|
|
|
let Fn = createOrder
|
|
|
- let params = {...formData,modifyPrice: this.modifyPrice,newVersion:1};
|
|
|
+ let book = this.option.book ? this.option.book : 0
|
|
|
+ let params = {...formData,modifyPrice: this.modifyPrice,newVersion:1,book:book};
|
|
|
if(this.option.orderId && this.option.orderId > 0){
|
|
|
Fn = updateOrder
|
|
|
params = {...params,id:this.option.orderId}
|
|
|
}
|
|
|
|
|
|
+ if(book == 1){
|
|
|
+ if(this.form.hasPay != 2){
|
|
|
+ this.$msg('预订单只能选择赊账');
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(Number(this.form.sendCost)>0){
|
|
|
+ this.$msg('预订单不能填写运费')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//多颜色
|
|
|
let xj = uni.getStorageSync("xj"+this.option.customId)
|
|
|
params = {...params,xj:JSON.stringify(xj)}
|
|
|
@@ -588,10 +600,11 @@ export default {
|
|
|
this.$refs.diffPriceRef.close()
|
|
|
},
|
|
|
gobackEvent () {
|
|
|
- this.$util.pageTo({url: '/admin/billing/index',type:2,query: {customId: this.option.customId}})
|
|
|
+ let book = this.option.book ? this.option.book : 0
|
|
|
+ this.$util.pageTo({url: '/admin/billing/index?customId='+this.option+'&book='+book.customId,type:2})
|
|
|
},
|
|
|
pageToItemList() {
|
|
|
- this.$util.pageTo({url: '/admin/billing/index',type:2,query: {customId: this.option.customId}})
|
|
|
+ this.$util.pageTo({url: '/admin/billing/index?customId='+this.option.customId,type:2})
|
|
|
}
|
|
|
}
|
|
|
};
|