|
|
@ -33,16 +33,16 @@ |
|
|
|
<!-- Start 项目列表 --> |
|
|
|
<div class="listcon" style="height: 100%;"> |
|
|
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="handleSelectionChange"> |
|
|
|
<el-table-column width="30px" type="selection" align="center" /> |
|
|
|
<el-table-column width="50px" label="序号" type="index" :index="indexMethod" align="center" /> |
|
|
|
<el-table-column width="30px" type="selection" align="center" /> |
|
|
|
<el-table-column prop="applicationCode" width="130px;" label="申请单编号" align="center" /> |
|
|
|
<el-table-column width="150px" label="操作" align="center" > |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="scope.row.nodeState=='待提交'||(scope.row.nodeState!='待提交'&&scope.row.nodeState=='外采申请')" |
|
|
|
type="primary" size="mini" @click="edit(scope.row)">办理</el-button> |
|
|
|
<el-button v-else type="info" size="mini">办理</el-button> |
|
|
|
<el-button v-if="scope.row.nodeState=='待提交'||(scope.row.nodeState!='待提交'&&scope.row.nodeState=='外采申请')" |
|
|
|
type="primary" size="mini" @click="edit(scope.row)">办理</el-button> |
|
|
|
<el-button v-else type="info" size="mini">办理</el-button> |
|
|
|
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button></template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="applicationCode" width="130px;" label="申请编号" align="center" /> |
|
|
|
<el-table-column prop="nodeState" width="100px;" label="状态" align="center" > |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span >{{scope.row.nodeState}}</span> |
|
|
@ -52,7 +52,7 @@ |
|
|
|
<el-table-column prop="modelName" label="车型" align="center" /> |
|
|
|
<el-table-column prop="num" width="60px;" label="台数" align="center" /> |
|
|
|
<el-table-column prop="purchasePrice" width="90px;" label="采购价格" align="center" /> |
|
|
|
<el-table-column prop="guidedPrice" width="90px;" label="指导价" align="center" /> |
|
|
|
<el-table-column prop="guidedPrice" width="90px;" label="销售指导价" align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<!-- End 项目列表 --> |
|
|
@ -182,7 +182,7 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
this.multipleSelection.forEach(row => { |
|
|
|
if(row.nodeState == '' || (row.nodeState!=''&&row.nodeState=='外采申请')){ |
|
|
|
if(row.nodeState == '待提交' || (row.nodeState!='待提交'&&row.nodeState=='外采申请')){ |
|
|
|
this.viewState = 3 |
|
|
|
const row = this.multipleSelection[0] |
|
|
|
this.$refs['divadd'].showEdit(row) |
|
|
@ -233,7 +233,7 @@ export default { |
|
|
|
const _this = this |
|
|
|
const sids = [] |
|
|
|
this.multipleSelection.forEach(row => { |
|
|
|
if(row.nodeState==''||(row.nodeState!=''&&row.nodeState=='外采申请')){ |
|
|
|
if(row.nodeState=='待提交'||(row.nodeState!='待提交'&&row.nodeState=='外采申请')){ |
|
|
|
sids.push(row.sid) |
|
|
|
}else{ |
|
|
|
alert('已经发起的审批业务数据不能进行删除。'); |
|
|
|