|
@@ -436,6 +436,7 @@
|
|
|
watch: {
|
|
|
formState: {
|
|
|
immediate: true,
|
|
|
+ deep:true,
|
|
|
handler(newVal) {
|
|
|
newVal.totalNum = newVal.totalNum.toString()
|
|
|
if(newVal.totalNum!=='' && newVal.totalNum){
|
|
@@ -540,6 +541,9 @@
|
|
|
newObj.id = ''
|
|
|
this.syCarryBTable.dataSource.push(newObj)
|
|
|
this.formState.totalNum =(Number(this.formState.totalNum) +Number(record.totalPrice)).toFixed(2)
|
|
|
+ if( this.formState.totalNum!=='' && this.formState.totalNum){
|
|
|
+ this.changeNumber( this.formState.totalNum)
|
|
|
+ }
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
|
|
|
@@ -547,6 +551,9 @@
|
|
|
deleteRow(record,index){
|
|
|
this.syCarryBTable.dataSource.splice(index,1)
|
|
|
this.formState.totalNum =(Number(this.formState.totalNum) -Number(record.totalPrice)).toFixed(2)
|
|
|
+ if( this.formState.totalNum!=='' && this.formState.totalNum){
|
|
|
+ this.changeNumber( this.formState.totalNum)
|
|
|
+ }
|
|
|
},
|
|
|
changeJhy(props){
|
|
|
console.log(this.syCarryBTable.columns[7].options)
|
|
@@ -721,6 +728,9 @@
|
|
|
Hj+= Number(item.totalPrice)
|
|
|
})
|
|
|
this.formState.totalNum = Hj.toFixed(2)
|
|
|
+ if( this.formState.totalNum!=='' && this.formState.totalNum){
|
|
|
+ this.changeNumber( this.formState.totalNum)
|
|
|
+ }
|
|
|
this.$forceUpdate()
|
|
|
},
|
|
|
handleChangetotalPrice(){
|