Browse Source

完善排产申请管理,增加申请订金合计字段

master
yunuo970428 3 years ago
parent
commit
c58b22a6fe
  1. 51
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue
  2. 44
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanInfo.vue
  3. 62
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanDaiBanInfo.vue
  4. 53
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue
  5. 64
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanYiBanInfo.vue

51
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue

@ -71,37 +71,35 @@
<div class="tableStyle">
<div style="margin-left: 5px;font-weight: bold">排产车型列表</div>
<div style="margin-left: 15px">
<el-button type="primary" size="small" icon="el-icon-plus" @click="addCommodity()">选择车型</el-button>
<el-button type="primary" size="small" icon="el-icon-plus" @click="addCommodity()">车型选择</el-button>
</div>
</div>
<!-- show-summary :summary-method="getSummaries"-->
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailDtoList" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed prop="name" label="操作" width="190px" align="center" header-align="center">
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailDtoList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="110px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed label="操作" width="190px" align="center" header-align="center">
<template slot-scope="scope">
<el-button size="mini" type="danger"
@click="dataDelete(scope.$index, formobj.busVehicleApplyDetailDtoList[scope.$index])">删除
<el-button size="mini" type="danger" @click="dataDelete(scope.$index, formobj.busVehicleApplyDetailDtoList[scope.$index])">删除
</el-button>
<el-button size="mini" type="danger">上装选择</el-button>
<el-button size="mini" type="primary">上装选择</el-button>
</template>
</el-table-column>
<el-table-column label="车型" align="center" header-align="center" width="250">
<template slot-scope="scope" prop="vehicleName">
<template slot-scope="scope">
<span>{{ scope.row.vehicleName }}</span>
</template>
</el-table-column>
<el-table-column label="常用配置" align="left" header-align="center" width="360">
<template slot-scope="scope" prop="configName">
<el-table-column label="常用配置" align="left" header-align="center" width="400">
<template slot-scope="scope">
<span>{{ scope.row.configName }}</span>
</template>
</el-table-column>
<el-table-column label="内部编码" header-align="center" width="200">
<template slot-scope="scope" prop="insideCode">
<template slot-scope="scope">
<el-input v-model="scope.row.insideCode" :readonly="isRead" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="排产数量" header-align="center" width="130">
<template slot-scope="scope" prop="quantity">
<template slot-scope="scope">
<el-input v-model="scope.row.quantity" @keyup.native="UpNumber" @keydown.native="UpNumber" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
@ -115,23 +113,23 @@
<el-input v-model="scope.row.applyForDeposit" @keyup.native="UpNumber" @keydown.native="UpNumber" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column prop="applyForDeposit" label="厂家合同价" header-align="center" width="150">
<template slot-scope="scope" prop="contractPrice">
<el-table-column label="厂家合同价" header-align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.contractPrice" @keyup.native="UpNumber" @keydown.native="UpNumber" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="销售指导价" header-align="center" width="150">
<template slot-scope="scope" prop="saleGuPrice">
<template slot-scope="scope">
<el-input v-model="scope.row.saleGuPrice" @keyup.native="UpNumber" @keydown.native="UpNumber" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="备注" header-align="center" width="200">
<template slot-scope="scope" prop="remarks">
<template slot-scope="scope">
<el-input v-model="scope.row.remarks" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="上装信息" header-align="center" width="100" align="center">
<template slot-scope="scope" prop="">
<template slot-scope="scope">
<span class="bluezi">查看</span>
</template>
</el-table-column>
@ -402,22 +400,11 @@ export default {
const sums = []
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '合计'
sums[index] = '申请订金合计'
return
}
const values = data.map(item => Number(item[column.property]))
if (column.property === 'useDeposit') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
}
}, 0)
sums[index] += ''
this.useMoney = sums[index] += ''
} else if (column.property === 'applyForDeposit') {
if (column.property === 'applyForDeposit') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
@ -427,7 +414,7 @@ export default {
}
}, 0)
sums[index] += ''
this.applyMoney = sums[index] += ''
this.formobj.currentAmount = sums[index] += ''
} else {
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {

44
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanInfo.vue

@ -7,7 +7,7 @@
<div>{{ viewTitle }}</div>
<!--start 添加修改按钮-->
<div>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<!--标题按钮部分结束-->
@ -65,26 +65,25 @@
<div class="tableStyle">
<div style="margin-left: 5px;font-weight: bold">排产车型列表</div>
</div>
<!-- show-summary :summary-method="getSummaries"-->
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailDtoList" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailDtoList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="110px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车型" align="center" width="250px">
<template slot-scope="scope" prop="vehicleName">
<template slot-scope="scope">
<span>{{ scope.row.vehicleName }}</span>
</template>
</el-table-column>
<el-table-column label="常用配置" align="left" header-align="center" width="360">
<template slot-scope="scope" prop="configName">
<el-table-column label="常用配置" align="left" header-align="center" width="400">
<template slot-scope="scope">
<span>{{ scope.row.configName }}</span>
</template>
</el-table-column>
<el-table-column label="内部编码" align="center" width="200">
<template slot-scope="scope" prop="insideCode">
<template slot-scope="scope">
<span>{{ scope.row.insideCode }}</span>
</template>
</el-table-column>
<el-table-column label="排产数量" align="center" width="130">
<template slot-scope="scope" prop="quantity">
<template slot-scope="scope">
<span>{{ scope.row.quantity }}</span>
</template>
</el-table-column>
@ -98,23 +97,23 @@
<span>{{ scope.row.applyForDeposit }}</span>
</template>
</el-table-column>
<el-table-column prop="contractPrice" label="厂家合同价" align="center" width="150">
<template slot-scope="scope" prop="contractPrice">
<el-table-column label="厂家合同价" align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.contractPrice }}</span>
</template>
</el-table-column>
<el-table-column label="销售指导价" align="center" width="150">
<template slot-scope="scope" prop="saleGuPrice">
<template slot-scope="scope">
<span>{{ scope.row.saleGuPrice }}</span>
</template>
</el-table-column>
<el-table-column label="备注" header-align="center" width="200">
<template slot-scope="scope" prop="remarks">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>
</el-table-column>
<el-table-column label="上装信息" align="center" width="100">
<template slot-scope="scope" prop="">
<template slot-scope="scope">
<span class="bluezi">查看</span>
</template>
</el-table-column>
@ -228,11 +227,11 @@ export default {
const sums = []
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '合计'
sums[index] = '申请订金合计'
return
}
const values = data.map(item => Number(item[column.property]))
if (column.property === 'useDeposit') {
if (column.property === 'applyForDeposit') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
@ -242,18 +241,7 @@ export default {
}
}, 0)
sums[index] += ''
this.useMoney = sums[index] += ''
} else if (column.property === 'applyForDeposit') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
}
}, 0)
sums[index] += ''
this.applyMoney = sums[index] += ''
this.formobj.currentAmount = sums[index] += ''
} else {
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {

62
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanDaiBanInfo.vue

@ -67,26 +67,25 @@
<div class="tableStyle">
<div style="margin-left: 5px;font-weight: bold">排产车型列表</div>
</div>
<!-- show-summary :summary-method="getSummaries"-->
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailDtoList" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailDtoList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="110px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车型" align="center" width="250">
<template slot-scope="scope" prop="vehicleName">
<template slot-scope="scope">
<span>{{ scope.row.vehicleName }}</span>
</template>
</el-table-column>
<el-table-column label="常用配置" align="left" header-align="center">
<template slot-scope="scope" prop="configName">
<el-table-column label="常用配置" align="left" header-align="center" width="400">
<template slot-scope="scope">
<span>{{ scope.row.configName }}</span>
</template>
</el-table-column>
<el-table-column label="内部编码" align="center">
<template slot-scope="scope" prop="insideCode">
<el-table-column label="内部编码" align="center" width="200">
<template slot-scope="scope">
<span>{{ scope.row.insideCode }}</span>
</template>
</el-table-column>
<el-table-column label="排产数量" align="center">
<template slot-scope="scope" prop="quantity">
<el-table-column label="排产数量" align="center" width="130">
<template slot-scope="scope">
<span>{{ scope.row.quantity }}</span>
</template>
</el-table-column>
@ -95,28 +94,28 @@
<!-- <span>{{ scope.row.useDeposit }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column prop="applyForDeposit" label="申请订金" align="center">
<el-table-column prop="applyForDeposit" label="申请订金" align="center" width="150">
<template slot-scope="scope" prop="applyForDeposit">
<span>{{ scope.row.applyForDeposit }}</span>
</template>
</el-table-column>
<el-table-column prop="applyForDeposit" label="厂家合同价" align="center">
<template slot-scope="scope" prop="contractPrice">
<el-table-column label="厂家合同价" align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.contractPrice }}</span>
</template>
</el-table-column>
<el-table-column label="销售指导价" align="center">
<template slot-scope="scope" prop="saleGuPrice">
<el-table-column label="销售指导价" align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.saleGuPrice }}</span>
</template>
</el-table-column>
<el-table-column label="备注" header-align="center">
<template slot-scope="scope" prop="remarks">
<el-table-column label="备注" header-align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>
</el-table-column>
<el-table-column label="上装信息" align="center" width="100">
<template slot-scope="scope" prop="">
<template slot-scope="scope">
<span class="bluezi">查看</span>
</template>
</el-table-column>
@ -156,8 +155,8 @@
<!-- </div>-->
</div>
</div>
<span class="el-icon-picture-outline">流程图</span>
<flow :xmlData="xmlData" :taskData="taskList"></flow>
<!-- <span class="el-icon-picture-outline">流程图</span>-->
<!-- <flow :xmlData="xmlData" :taskData="taskList"></flow>-->
<!--End 添加修改部分-->
<!-- 选择待办人 的弹出框-->
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%">
@ -187,7 +186,7 @@
import req from '@/api/supplychain/busvehicleapply'
import flow from '../../../baseoutsourcingapplication/workflow/flow'
export default {
name: 'cheliangpaichandetails',
name: 'cheliangpaichanDaiBanInfo',
components: {
flow
},
@ -254,8 +253,8 @@ export default {
this.current.taskDefKey = obj.taskDefKey
this.current.taskName = obj.taskName
//
this.getModelDetail(obj.deployId)
this.getFlowViewer(obj.instanceId)
// this.getModelDetail(obj.deployId)
// this.getFlowViewer(obj.instanceId)
//
this.showInfo(obj.businessSid)
},
@ -445,11 +444,11 @@ export default {
const sums = []
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '合计'
sums[index] = '申请订金合计'
return
}
const values = data.map(item => Number(item[column.property]))
if (column.property === 'useDeposit') {
if (column.property === 'applyForDeposit') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
@ -459,18 +458,7 @@ export default {
}
}, 0)
sums[index] += ''
this.useMoney = sums[index] += ''
} else if (column.property === 'applyForDeposit') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
}
}, 0)
sums[index] += ''
this.applyMoney = sums[index] += ''
this.formobj.currentAmount = sums[index] += ''
} else {
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {

53
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue

@ -71,37 +71,35 @@
<div class="tableStyle">
<div style="margin-left: 5px;font-weight: bold">排产车型列表</div>
<div style="margin-left: 15px">
<el-button type="primary" size="small" icon="el-icon-plus" @click="addCommodity()">选择车型</el-button>
<el-button type="primary" size="small" icon="el-icon-plus" @click="addCommodity()">车型选择</el-button>
</div>
</div>
<!-- show-summary :summary-method="getSummaries"-->
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailDtoList" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailDtoList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="110px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed prop="name" label="操作" width="190px" align="center" header-align="center">
<template slot-scope="scope">
<el-button size="mini" type="danger"
@click="dataDelete(scope.$index, formobj.busVehicleApplyDetailDtoList[scope.$index])">删除
<el-button size="mini" type="danger" @click="dataDelete(scope.$index, formobj.busVehicleApplyDetailDtoList[scope.$index])">删除
</el-button>
<el-button size="mini" type="danger">上装选择</el-button>
<el-button size="mini" type="primary">上装选择</el-button>
</template>
</el-table-column>
<el-table-column label="车型" align="center" width="180">
<template slot-scope="scope" prop="vehicleName">
<el-table-column label="车型" align="center" width="200">
<template slot-scope="scope">
<span>{{ scope.row.vehicleName }}</span>
</template>
</el-table-column>
<el-table-column label="常用配置" align="left" header-align="center">
<template slot-scope="scope" prop="configName">
<el-table-column label="常用配置" align="left" header-align="center" width="400">
<template slot-scope="scope">
<span>{{ scope.row.configName }}</span>
</template>
</el-table-column>
<el-table-column label="内部编码" header-align="center" width="200">
<template slot-scope="scope" prop="insideCode">
<template slot-scope="scope">
<el-input v-model="scope.row.insideCode" :readonly="isRead" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="排产数量" header-align="center" width="130">
<template slot-scope="scope" prop="quantity">
<template slot-scope="scope">
<el-input v-model="scope.row.quantity" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
@ -115,23 +113,23 @@
<el-input v-model="scope.row.applyForDeposit" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column prop="applyForDeposit" label="厂家合同价" header-align="center" width="150">
<template slot-scope="scope" prop="contractPrice">
<el-table-column label="厂家合同价" header-align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.contractPrice" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="销售指导价" header-align="center" width="150">
<template slot-scope="scope" prop="saleGuPrice">
<template slot-scope="scope">
<el-input v-model="scope.row.saleGuPrice" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="备注" header-align="center" width="200">
<template slot-scope="scope" prop="remarks">
<el-table-column label="备注" header-align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.remarks" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="上装信息" header-align="center" width="100" align="center">
<template slot-scope="scope" prop="">
<template slot-scope="scope">
<span class="bluezi">查看</span>
</template>
</el-table-column>
@ -398,22 +396,11 @@ export default {
const sums = []
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '合计'
sums[index] = '申请订金合计'
return
}
const values = data.map(item => Number(item[column.property]))
if (column.property === 'useDeposit') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
}
}, 0)
sums[index] += ''
this.useMoney = sums[index] += ''
} else if (column.property === 'applyForDeposit') {
if (column.property === 'applyForDeposit') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
@ -423,7 +410,7 @@ export default {
}
}, 0)
sums[index] += ''
this.applyMoney = sums[index] += ''
this.formobj.currentAmount = sums[index] += ''
} else {
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {

64
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanYiBanInfo.vue

@ -65,26 +65,25 @@
<div class="tableStyle">
<div style="margin-left: 5px;font-weight: bold">排产车型列表</div>
</div>
<!-- show-summary :summary-method="getSummaries"-->
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailDtoList" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车型" align="center" width="250">
<template slot-scope="scope" prop="vehicleName">
<el-table :key="tableKey" :data="formobj.busVehicleApplyDetailDtoList" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries">
<el-table-column fixed width="110px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column label="车型" align="center" width="200">
<template slot-scope="scope">
<span>{{ scope.row.vehicleName }}</span>
</template>
</el-table-column>
<el-table-column label="常用配置" align="left" header-align="center">
<template slot-scope="scope" prop="configName">
<el-table-column label="常用配置" align="left" header-align="center" width="400">
<template slot-scope="scope">
<span>{{ scope.row.configName }}</span>
</template>
</el-table-column>
<el-table-column label="内部编码" align="center">
<template slot-scope="scope" prop="insideCode">
<el-table-column label="内部编码" align="center" width="200">
<template slot-scope="scope">
<span>{{ scope.row.insideCode }}</span>
</template>
</el-table-column>
<el-table-column label="排产数量" align="center">
<template slot-scope="scope" prop="quantity">
<el-table-column label="排产数量" align="center" width="130">
<template slot-scope="scope">
<span>{{ scope.row.quantity }}</span>
</template>
</el-table-column>
@ -93,28 +92,28 @@
<!-- <span>{{ scope.row.useDeposit }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column prop="applyForDeposit" label="申请订金" align="center">
<el-table-column prop="applyForDeposit" label="申请订金" align="center" width="150">
<template slot-scope="scope" prop="applyForDeposit">
<span>{{ scope.row.applyForDeposit }}</span>
</template>
</el-table-column>
<el-table-column prop="applyForDeposit" label="厂家合同价" align="center">
<template slot-scope="scope" prop="contractPrice">
<el-table-column label="厂家合同价" align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.contractPrice }}</span>
</template>
</el-table-column>
<el-table-column label="销售指导价" align="center">
<template slot-scope="scope" prop="saleGuPrice">
<el-table-column label="销售指导价" align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.saleGuPrice }}</span>
</template>
</el-table-column>
<el-table-column label="备注" header-align="center">
<template slot-scope="scope" prop="remarks">
<el-table-column label="备注" header-align="center" width="150">
<template slot-scope="scope">
<span>{{ scope.row.remarks }}</span>
</template>
</el-table-column>
<el-table-column label="上装信息" align="center" width="100">
<template slot-scope="scope" prop="">
<template slot-scope="scope">
<span class="bluezi">查看</span>
</template>
</el-table-column>
@ -154,8 +153,8 @@
<!-- </div>-->
</div>
</div>
<span class="el-icon-picture-outline">流程图</span>
<flow :xmlData="xmlData" :taskData="taskList"></flow>
<!-- <span class="el-icon-picture-outline">流程图</span>-->
<!-- <flow :xmlData="xmlData" :taskData="taskList"></flow>-->
<!--End 添加修改部分-->
</div>
</template>
@ -164,7 +163,7 @@
import req from '@/api/supplychain/busvehicleapply'
import flow from '../../../baseoutsourcingapplication/workflow/flow'
export default {
name: 'cheliangpaichandetails',
name: 'cheliangpaichanYiBanInfo',
components: {
flow
},
@ -217,8 +216,8 @@ export default {
this.linkByParameter.orgSidPath = window.sessionStorage.getItem('orgSidPath')
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
//
this.getModelDetail(obj.deployId)
this.getFlowViewer(obj.instanceId)
// this.getModelDetail(obj.deployId)
// this.getFlowViewer(obj.instanceId)
//
this.showInfo(obj.businessSid)
},
@ -316,11 +315,11 @@ export default {
const sums = []
columns.forEach((column, index) => {
if (index === 0) {
sums[index] = '合计'
sums[index] = '申请订金合计'
return
}
const values = data.map(item => Number(item[column.property]))
if (column.property === 'useDeposit') {
if (column.property === 'applyForDeposit') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
@ -330,18 +329,7 @@ export default {
}
}, 0)
sums[index] += ''
this.useMoney = sums[index] += ''
} else if (column.property === 'applyForDeposit') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
}
}, 0)
sums[index] += ''
this.applyMoney = sums[index] += ''
this.formobj.currentAmount = sums[index] += ''
} else {
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {

Loading…
Cancel
Save