| | |
| | | this.form=Object.assign({},this.form,JSON.parse(decodeURIComponent(params.data))) |
| | | this.productName=this.form.productName |
| | | this.range=[this.form.startDate,this.form.endDate] |
| | | console.log(this.form.buyTotal) |
| | | if (this.fileList1.length == 0 && this.form.buyFilePath) { |
| | | this.fileList1.push({ |
| | | url: `${BaseUrl}${this.form.buyFilePath}` |
| | |
| | | }, |
| | | watch:{ |
| | | form(newval,oldval){ |
| | | if(newval){ |
| | | if(!newval||newval==''){ |
| | | this.form.buyTotal=null |
| | | }else{ |
| | | this.buyTotal1=(newval.buyTotal*1000).toFixed(2) |
| | | } |
| | | }, |
| | | buyTotal1(newval,oldval){ |
| | | if(newval){ |
| | | if(!newval||newval==''){ |
| | | this.form.buyTotal=null |
| | | }else{ |
| | | this.form.buyTotal=(newval/1000).toFixed(2) |
| | | } |
| | | }, |