4.18 修改套餐

This commit is contained in:
tczjx58520 2020-04-18 16:46:41 +08:00
parent c97f3ad30e
commit 1aea3e01dd
11 changed files with 98 additions and 2 deletions

View file

@ -49,7 +49,6 @@ export default{
' ████____███',
' █ _███_ _█_███'
].join('\n')))
window.onbeforeunload = function() { return '确认离开页面?!' }
},
beforeDestroy() {

View file

@ -263,11 +263,20 @@ export default {
mounted() {
this.getinformation()
this.getcurrency()
},
beforeCreate() {
_that = this
},
methods: {
getcurrency() {
const mycountry = this.$store.getters.countryId
if (mycountry === 1) {
this.personalForm.currency = '3'
} else if (mycountry === 2) {
this.personalForm.currency = '1'
}
},
handerchoose(val) {
// console.log(val)
// const needratio = this.ratios.find(item => {

View file

@ -370,11 +370,20 @@ export default {
mounted() {
this.getinformation()
this.getcurrency()
},
beforeCreate() {
_that = this
},
methods: {
getcurrency() {
const mycountry = this.$store.getters.countryId
if (mycountry === 1) {
this.personalForm.currency = '3'
} else if (mycountry === 2) {
this.personalForm.currency = '1'
}
},
change2(val) {
console.log('val', val)
for (let i = 0; i < this.costs.length; i++) {
@ -720,6 +729,7 @@ export default {
currency: '1',
retreatDate: null
}
this.getcurrency()
this.getdatatime()
this.supplierId = null
this.inquiryPersonId = null

View file

@ -274,11 +274,20 @@ export default {
this.getTypes()
this.gettree()
this.getitemList()
this.getcurrency()
},
beforeCreate() {
_that = this
},
methods: {
getcurrency() {
const mycountry = this.$store.getters.countryId
if (mycountry === 1) {
this.personalForm.currency = '3'
} else if (mycountry === 2) {
this.personalForm.currency = '1'
}
},
getitemList() {
console.log('this.$store.getters.repositoryId', this.$store.getters.repositoryId)
if (this.$store.getters.repositoryId === 0) {
@ -516,6 +525,7 @@ export default {
},
//
restAllForm() {
this.getcurrency()
// this.personalForm = {
// createPersonId: this.$store.getters.userId,
// countryId: this.$store.getters.countryId,

View file

@ -249,10 +249,21 @@ export default {
this.getTypes()
this.getways()
},
mounted() {
this.getcurrency()
},
beforeCreate() {
_that = this
},
methods: {
getcurrency() {
const mycountry = this.$store.getters.countryId
if (mycountry === 1) {
this.personalForm.currency = '3'
} else if (mycountry === 2) {
this.personalForm.currency = '1'
}
},
getways() {
//
searchCategory(2).then(res => {
@ -363,6 +374,7 @@ export default {
regionId: this.$store.getters.regionId,
isVat: 1
}
this.getcurrency()
this.supplierId = null
this.inquiryPersonId = null
this.handlePersonId = null

View file

@ -249,11 +249,20 @@ export default {
mounted() {
this.getinformation()
this.getcurrency()
},
beforeCreate() {
_that = this
},
methods: {
getcurrency() {
const mycountry = this.$store.getters.countryId
if (mycountry === 1) {
this.personalForm.currency = '3'
} else if (mycountry === 2) {
this.personalForm.currency = '1'
}
},
clearCustomer() {
this.personalForm.customerName = ''
this.personalForm.agentId = ''
@ -428,6 +437,7 @@ export default {
receiptDate: null
}
this.receiptPersonId = null
this.getcurrency()
},
//
handlesave() {

View file

@ -506,14 +506,22 @@ export default {
this.getways()
this.getdatatime()
},
mounted() {
this.getinformation()
this.getcurrency()
},
beforeCreate() {
_that = this
},
methods: {
getcurrency() {
const mycountry = this.$store.getters.countryId
if (mycountry === 1) {
this.personalForm.currency = '3'
} else if (mycountry === 2) {
this.personalForm.currency = '1'
}
},
//
change() {
this.$forceUpdate()
@ -931,6 +939,7 @@ export default {
payDate: null,
invoiceType: '1'
}
this.getcurrency()
this.supplierId = null
this.inquiryPersonId = null
this.handlePersonId = this.$store.getters.name

View file

@ -710,6 +710,13 @@ export default {
if (res.data.ret === 200) {
row.data.stat = 2
that.ischeck = false
} else {
this.$notify.error({
title: 'wrong',
message: res.data.msg,
offset: 100
})
that.ischeck = false
}
})
} else {

View file

@ -323,11 +323,20 @@ export default {
this.handlechange4()
this.judgedirction()
this.getaccounts2()
this.getcurrency()
},
beforeCreate() {
_that = this
},
methods: {
getcurrency() {
const mycountry = this.$store.getters.countryId
if (mycountry === 1) {
this.personalForm.currency = '3'
} else if (mycountry === 2) {
this.personalForm.currency = '1'
}
},
test2(row, val) {
console.log(row, val)
const accountsname = this.accountcodes.find(item => {
@ -684,6 +693,7 @@ export default {
currency: '1',
transferType: '1'
}
this.getcurrency()
this.handlePersonId = this.$store.getters.name
this.personalForm.handlePersonId = null
this.incomeRepositoryId = null

View file

@ -241,11 +241,20 @@ export default {
this.getdatatime()
this.getTypes()
this.gettree()
this.getcurrency()
},
beforeCreate() {
_that = this
},
methods: {
getcurrency() {
const mycountry = this.$store.getters.countryId
if (mycountry === 1) {
this.personalForm.currency = '3'
} else if (mycountry === 2) {
this.personalForm.currency = '1'
}
},
switchtreedata(val) {
for (const i in val) {
if (val[i].subjectNumber === '' || val[i].subjectNumber === null) {
@ -444,6 +453,7 @@ export default {
currency: '1',
handlePersonId: this.$store.getters.userId
}
this.getcurrency()
this.handlePersonId = null
this.personalForm.handlePersonId = null
this.incomeRepositoryId = null

View file

@ -490,12 +490,21 @@ export default {
created() {
this.getTypes()
this.getways()
this.getcurrency()
// this.getdatatime()
},
beforeCreate() {
_that = this
},
methods: {
getcurrency() {
const mycountry = this.$store.getters.countryId
if (mycountry === 1) {
this.personalForm.currency = '3'
} else if (mycountry === 2) {
this.personalForm.currency = '1'
}
},
handlepaythis(row) {
console.log(row)
const judgemoney = Number(row.payThis) + Number(row.advanceMoney)
@ -736,6 +745,7 @@ export default {
regionId: this.$store.getters.regionId,
isVat: 1
}
this.getcurrency()
this.getdatatime()
this.supplierId = null
this.handlePersonId = null