|
|
@@ -83,7 +83,7 @@
|
|
|
},
|
|
|
name: 'paymentinfo',
|
|
|
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
btnLoading: false,
|
|
|
dialogVisible: false,
|
|
|
@@ -124,7 +124,7 @@
|
|
|
Remark: ''
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ created () {
|
|
|
// 查询条件初始值备份
|
|
|
// Object.assign(this.searchFormReset, this.searchForm)
|
|
|
// 查询列表
|
|
|
@@ -132,7 +132,7 @@
|
|
|
// this.getDictOptions()
|
|
|
},
|
|
|
methods: {
|
|
|
- initDatas() {
|
|
|
+ initDatas () {
|
|
|
// 分页及列表条件
|
|
|
let params = {
|
|
|
commercialNo: this.searchForm.commercialNo
|
|
|
@@ -148,7 +148,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- getDictOptions() {
|
|
|
+ getDictOptions () {
|
|
|
api.getDictList(this.$axios).then(res => {
|
|
|
// this.dictOptions.customerList = res.data.items['customerList']
|
|
|
// this.dictOptions.projectList = res.data.items['projectList']
|
|
|
@@ -158,7 +158,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- searchCommand(command) {
|
|
|
+ searchCommand (command) {
|
|
|
if (command === 'search') {
|
|
|
this.dialogVisible = true
|
|
|
} else if (command === 'clear') {
|
|
|
@@ -166,7 +166,7 @@
|
|
|
}
|
|
|
},
|
|
|
// 列表排序功能
|
|
|
- orderby(column) {
|
|
|
+ orderby (column) {
|
|
|
if (column.order === 'ascending') {
|
|
|
this.Column.Order = 'asc'
|
|
|
} else if (column.order === 'descending') {
|
|
|
@@ -175,14 +175,14 @@
|
|
|
this.Column.Prop = column.prop
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- clearSearch() {
|
|
|
+ clearSearch () {
|
|
|
Object.assign(this.searchForm, this.searchFormReset)
|
|
|
// this.searchForm = this.searchFormReset;
|
|
|
this.CreateOn = ''
|
|
|
this.initDatas()
|
|
|
},
|
|
|
|
|
|
- transferStr(val) {
|
|
|
+ transferStr (val) {
|
|
|
if (val === '1') {
|
|
|
return '准入交费'
|
|
|
} else if (val === '2') {
|
|
|
@@ -195,14 +195,14 @@
|
|
|
return val
|
|
|
}
|
|
|
},
|
|
|
- RndNum(n) {
|
|
|
+ RndNum (n) {
|
|
|
let rnd = ''
|
|
|
for (var i = 0; i < n; i++) {
|
|
|
rnd += Math.floor(Math.random() * 10)
|
|
|
}
|
|
|
return rnd
|
|
|
},
|
|
|
- handleGetMoneyConfirm() {
|
|
|
+ handleGetMoneyConfirm () {
|
|
|
let idlist = ''
|
|
|
let sumMoeny = 0.0
|
|
|
for (let idx in this.entityList) {
|
|
|
@@ -238,7 +238,7 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- handleGetMoney() {
|
|
|
+ handleGetMoney () {
|
|
|
let idlist = ''
|
|
|
let sumMoeny = 0.0
|
|
|
for (let idx in this.entityList) {
|
|
|
@@ -277,7 +277,7 @@
|
|
|
this.btnLoading = false
|
|
|
})
|
|
|
},
|
|
|
- handleGetMoneyAgain() {
|
|
|
+ handleGetMoneyAgain () {
|
|
|
let idlist = ''
|
|
|
let sumMoeny = 0.0
|
|
|
for (let idx in this.entityList) {
|
|
|
@@ -313,14 +313,14 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- handleSearch() {
|
|
|
+ handleSearch () {
|
|
|
this.btnLoading = true
|
|
|
this.currentPage = 1
|
|
|
this.dialogVisible = false
|
|
|
this.showSupplierInfo()
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- showSupplierInfo() {
|
|
|
+ showSupplierInfo () {
|
|
|
apiSupplier.getEntityByCommercialNo(this.searchForm.commercialNo, this.$axios).then(res => {
|
|
|
this.supplierEntity = res.data
|
|
|
this.btnLoading = false
|
|
|
@@ -329,7 +329,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- handleCheckBill() {
|
|
|
+ handleCheckBill () {
|
|
|
let params = {
|
|
|
startTime: new Date('2019-1-1'),
|
|
|
endTime: new Date('2019-10-10')
|
|
|
@@ -340,16 +340,16 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- handleCurrentChange(value) {
|
|
|
+ handleCurrentChange (value) {
|
|
|
this.currentPage = value
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- handleSizeChange(value) {
|
|
|
+ handleSizeChange (value) {
|
|
|
this.size = value
|
|
|
this.currentPage = 1
|
|
|
this.initDatas()
|
|
|
},
|
|
|
- deleteEntity(row) {
|
|
|
+ deleteEntity (row) {
|
|
|
api.deleteEntity(row.Id, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
this.initDatas()
|
|
|
@@ -370,14 +370,14 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- GetCommand(cmdType, row) {
|
|
|
+ GetCommand (cmdType, row) {
|
|
|
let cmd = {}
|
|
|
cmd.Command = cmdType
|
|
|
cmd.row = row
|
|
|
return cmd
|
|
|
},
|
|
|
|
|
|
- jstimehandle(val) {
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -390,7 +390,7 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- formatDateTime(date) {
|
|
|
+ formatDateTime (date) {
|
|
|
var y = date.getFullYear()
|
|
|
var m = date.getMonth() + 1
|
|
|
m = m < 10 ? ('0' + m) : m
|
|
|
@@ -401,7 +401,7 @@
|
|
|
minute = minute < 10 ? ('0' + minute) : minute
|
|
|
return y + '-' + m + '-' + d + ' ' + h + ':' + minute
|
|
|
},
|
|
|
- amountSum() {
|
|
|
+ amountSum () {
|
|
|
let s = 0
|
|
|
if (this.entityList && this.entityList != null) {
|
|
|
for (let i = this.entityList.length - 1; i >= 0; i--) {
|
|
|
@@ -410,12 +410,12 @@
|
|
|
}
|
|
|
return s
|
|
|
},
|
|
|
- getUSCCode() {
|
|
|
+ getUSCCode () {
|
|
|
if (this.entityList != null && this.entityList.length > 0) {
|
|
|
return this.entityList[0].USCCode
|
|
|
}
|
|
|
},
|
|
|
- getSupplierName() {
|
|
|
+ getSupplierName () {
|
|
|
if (this.entityList != null && this.entityList.length > 0) {
|
|
|
return this.entityList[0].SupplierName
|
|
|
}
|