@@ -782,7 +782,19 @@ export default {
computed: {
},
-
+ watch: {
+ listAdd: {
+ deep: true,
+ handler: function (item) {
+ this.listAdd.forEach(function(i){
+ if(parseInt(i.quitNumber) > (parseInt(i.checkoutNumber)-parseInt(i.quitNumberC))){
+ i.quitNumber = parseInt(i.checkoutNumber)-parseInt(i.quitNumberC)
+ }
+
+ })
+ },
created() {
const that = this
GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
@@ -828,6 +828,26 @@ export default {
+ if(parseInt(i.refundNumber) > parseInt(i.reportery)){
+ i.refundNumber = i.reportery
@@ -959,6 +959,19 @@ export default {
return process.env.VUE_APP_BASE_API + 'authdata/ImportExcel'
}
+ if(parseInt(i.reportery) > (parseInt(i.amount)-parseInt(i.receiveAmount))){
+ i.reportery = parseInt(i.amount)-parseInt(i.receiveAmount)
this.getDownList()