|
@@ -274,9 +274,9 @@
|
|
|
<span>{{ scope.$index + 1 }}</span>
|
|
<span>{{ scope.$index + 1 }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="备件名称" align="center" prop="name">
|
|
|
|
|
|
|
+ <el-table-column label="备件类别名称" align="center" prop="categoryName">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="规格型号" align="center" prop="model">
|
|
|
|
|
|
|
+ <el-table-column label="型号" align="center" prop="model">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="所需数量" align="center" prop="num">
|
|
<el-table-column label="所需数量" align="center" prop="num">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -290,11 +290,11 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="单位" align="center" prop="measuringUnit">
|
|
|
|
|
|
|
+ <el-table-column label="单位" align="center" prop="unit">
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="费用" align="center">
|
|
<el-table-column label="费用" align="center">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.num*scope.row.univalence?scope.row.num*scope.row.univalence:'0'}}{{scope.row.univalenceUnit=='wanyuan'?'万元':'元'}}
|
|
|
|
|
|
|
+ {{scope.row.num*scope.row.unitPrice?scope.row.num*scope.row.unitPrice:'0'}}{{scope.row.parValue=='wanyuan'?'万元':'元'}}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" width="70">
|
|
<el-table-column label="操作" align="center" width="70">
|
|
@@ -500,6 +500,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
handleClose () {
|
|
handleClose () {
|
|
|
|
|
+ this.clickedTreeNode = false
|
|
|
this.addPatrolConfigDialog = false
|
|
this.addPatrolConfigDialog = false
|
|
|
this.$refs.addFormRef.resetFields()
|
|
this.$refs.addFormRef.resetFields()
|
|
|
if (this.$refs.equiListTree) {
|
|
if (this.$refs.equiListTree) {
|
|
@@ -563,7 +564,7 @@ export default {
|
|
|
for (let j = 0; j < this.addForm.deviceInfo.length; j++) {
|
|
for (let j = 0; j < this.addForm.deviceInfo.length; j++) {
|
|
|
if ( this.planRuleEquiList[i].code === this.addForm.deviceInfo[j].substanceCode ) {
|
|
if ( this.planRuleEquiList[i].code === this.addForm.deviceInfo[j].substanceCode ) {
|
|
|
this.planRuleEquiList[i]['sparePart'] = this.addForm.deviceInfo[j]['sparePart']
|
|
this.planRuleEquiList[i]['sparePart'] = this.addForm.deviceInfo[j]['sparePart']
|
|
|
- this.$set(this.planRuleEquiList[i],'totalCost',this.addForm.deviceInfo[j]['totalCost'])
|
|
|
|
|
|
|
+ // this.$set(this.planRuleEquiList[i],'totalCost',this.addForm.deviceInfo[j]['totalCost'])
|
|
|
// this.planRuleEquiList[i]['totalCost'] = this.addForm.deviceInfo[j]['totalCost']
|
|
// this.planRuleEquiList[i]['totalCost'] = this.addForm.deviceInfo[j]['totalCost']
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -708,12 +709,12 @@ export default {
|
|
|
spareItemSelectSubmit (list) {
|
|
spareItemSelectSubmit (list) {
|
|
|
this.planRuleEquiList[this.currentEquItemIndex]['sparePart'] = list.map(item => {
|
|
this.planRuleEquiList[this.currentEquItemIndex]['sparePart'] = list.map(item => {
|
|
|
return {
|
|
return {
|
|
|
- name: item.name,
|
|
|
|
|
- model: item.category.modelType,
|
|
|
|
|
- num: item.num,
|
|
|
|
|
- univalenceUnit: item.category.univalenceUnit,
|
|
|
|
|
- univalence: item.category.univalence,
|
|
|
|
|
- measuringUnit:item.category.measuringUnit,
|
|
|
|
|
|
|
+ categoryName: item.name,
|
|
|
|
|
+ model: item.modelType,
|
|
|
|
|
+ needNum: item.num,
|
|
|
|
|
+ parValue: item.univalenceUnit,
|
|
|
|
|
+ unitPrice: item.univalence,
|
|
|
|
|
+ unit:item.measuringUnit,
|
|
|
code:item.code,
|
|
code:item.code,
|
|
|
id:item.id
|
|
id:item.id
|
|
|
}
|
|
}
|
|
@@ -734,8 +735,8 @@ export default {
|
|
|
let applayList = this.planRuleEquiList[this.currentEquItemIndex].sparePart
|
|
let applayList = this.planRuleEquiList[this.currentEquItemIndex].sparePart
|
|
|
let total = 0
|
|
let total = 0
|
|
|
applayList.map(item=>{
|
|
applayList.map(item=>{
|
|
|
- if(item.num&&item.num!=''){
|
|
|
|
|
- switch (item.univalenceUnit) {
|
|
|
|
|
|
|
+ if(item.needNum&&item.needNum!=''){
|
|
|
|
|
+ switch (item.parValue) {
|
|
|
case 'wanyuan': {
|
|
case 'wanyuan': {
|
|
|
item.chengs = 10000
|
|
item.chengs = 10000
|
|
|
break;
|
|
break;
|
|
@@ -747,7 +748,7 @@ export default {
|
|
|
default:
|
|
default:
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- total = total + item.num*item.univalence*item.chengs
|
|
|
|
|
|
|
+ total = total + item.needNum*item.unitPrice*item.chengs
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
this.$set(this.planRuleEquiList[this.currentEquItemIndex],'totalCost',total)
|
|
this.$set(this.planRuleEquiList[this.currentEquItemIndex],'totalCost',total)
|