projects/mesxc-zjl #207
@ -193,7 +193,7 @@ export default {
|
|||||||
if (this.exportList.length > 0) {
|
if (this.exportList.length > 0) {
|
||||||
let body = this.exportList.map((x) => [
|
let body = this.exportList.map((x) => [
|
||||||
x.objName,
|
x.objName,
|
||||||
x.objRemark,
|
x.objCode,
|
||||||
x.energyTypeName,
|
x.energyTypeName,
|
||||||
x.startValue,
|
x.startValue,
|
||||||
x.endValue,
|
x.endValue,
|
||||||
|
@ -152,7 +152,7 @@ export default {
|
|||||||
id: '',
|
id: '',
|
||||||
name: '',
|
name: '',
|
||||||
code: '',
|
code: '',
|
||||||
nuit: '',
|
unit: '',
|
||||||
pricingMethod: 2,
|
pricingMethod: 2,
|
||||||
leaderName: '',
|
leaderName: '',
|
||||||
push: false
|
push: false
|
||||||
@ -186,16 +186,16 @@ export default {
|
|||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.form.name = res.data.name
|
this.form.name = res.data.name
|
||||||
this.form.code = res.data.code
|
this.form.code = res.data.code
|
||||||
this.form.nuit = res.data.nuit
|
this.form.unit = res.data.unit
|
||||||
this.form.pricingMethod = res.data.pricingMethod
|
this.form.pricingMethod = res.data.pricingMethod
|
||||||
this.form.leaderName = res.data.leaderName
|
this.form.leaderName = res.data.leaderName
|
||||||
this.form.push = res.data.push ? true : false
|
this.form.push = res.data.push ? true : false
|
||||||
switch(this.form.pricingMethod) {
|
switch(this.form.pricingMethod) {
|
||||||
case 0:
|
case 0:
|
||||||
this.tableData1 = this.form.segPriceList || []
|
this.tableData1 = res.data.segPriceList || []
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
this.tableData2 = this.form.usedPriceList || []
|
this.tableData2 = res.data.usedPriceList || []
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
@ -233,10 +233,10 @@ export default {
|
|||||||
// 增加
|
// 增加
|
||||||
emitButtonClick1() {
|
emitButtonClick1() {
|
||||||
let n = this.tableData1.length
|
let n = this.tableData1.length
|
||||||
// if (n >=3) {
|
if (n >=3) {
|
||||||
// this.$modal.msgWarning('最多可添加3档计价')
|
this.$modal.msgWarning('最多可添加3档计价')
|
||||||
// return false
|
return false
|
||||||
// }
|
}
|
||||||
let obj = {}
|
let obj = {}
|
||||||
obj.startTime = n === 0 ? '' : this.tableData1[n-1].endTime
|
obj.startTime = n === 0 ? '' : this.tableData1[n-1].endTime
|
||||||
obj.endTime = ''
|
obj.endTime = ''
|
||||||
@ -245,10 +245,10 @@ export default {
|
|||||||
},
|
},
|
||||||
emitButtonClick2() {
|
emitButtonClick2() {
|
||||||
let n = this.tableData2.length
|
let n = this.tableData2.length
|
||||||
if (n >=3) {
|
// if (n >=3) {
|
||||||
this.$modal.msgWarning('最多可添加3档计价')
|
// this.$modal.msgWarning('最多可添加3档计价')
|
||||||
return false
|
// return false
|
||||||
}
|
// }
|
||||||
let obj = {}
|
let obj = {}
|
||||||
obj.startUsed = n === 0 ? 0 : this.tableData2[n-1].endUsed
|
obj.startUsed = n === 0 ? 0 : this.tableData2[n-1].endUsed
|
||||||
obj.endUsed = 0
|
obj.endUsed = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user