mirror of
https://github.com/shawncai/ERP.git
synced 2024-09-20 15:06:11 +08:00
4.18 修改套餐
This commit is contained in:
parent
c97f3ad30e
commit
1aea3e01dd
|
@ -49,7 +49,6 @@ export default{
|
|||
' ████____███',
|
||||
' █ _███_ _█_███'
|
||||
].join('\n')))
|
||||
|
||||
window.onbeforeunload = function() { return '确认离开页面?!' }
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
|
|
@ -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 => {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue