|
|
@ -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) => { |
|
|
|