|
@@ -1,15 +1,15 @@
|
|
<template>
|
|
<template>
|
|
<template-page
|
|
<template-page
|
|
ref="pageRef"
|
|
ref="pageRef"
|
|
- :getList="getList"
|
|
|
|
|
|
+ :get-list="getList"
|
|
:operation="operation()"
|
|
:operation="operation()"
|
|
- :optionsEvensGroup="optionsEvensGroup"
|
|
|
|
- :exportList="exportList"
|
|
|
|
- :columnParsing="columnParsing"
|
|
|
|
- :tableAttributes="tableAttributes"
|
|
|
|
- :tableEvents="tableEvents"
|
|
|
|
- :operationColumnWidth="200"
|
|
|
|
- :replaceOrNotMap="false"
|
|
|
|
|
|
+ :options-evens-group="optionsEvensGroup"
|
|
|
|
+ :export-list="exportList"
|
|
|
|
+ :column-parsing="columnParsing"
|
|
|
|
+ :table-attributes="tableAttributes"
|
|
|
|
+ :table-events="tableEvents"
|
|
|
|
+ :operation-column-width="200"
|
|
|
|
+ :replace-or-not-map="false"
|
|
>
|
|
>
|
|
<ExamineDialog :is-show.sync="isShowExamineDialog" :examine-form.sync="examineForm" @submit="submitExamineForm" />
|
|
<ExamineDialog :is-show.sync="isShowExamineDialog" :examine-form.sync="examineForm" @submit="submitExamineForm" />
|
|
|
|
|
|
@@ -17,7 +17,7 @@
|
|
<EnginDetail v-if="isShowDetail" ref="refDetail" :list-item="queryItem" @backListFormDetail="backList" />
|
|
<EnginDetail v-if="isShowDetail" ref="refDetail" :list-item="queryItem" @backListFormDetail="backList" />
|
|
<EnginExamine v-if="isShowExamine" :list-item="queryItem" @backListFormDetail="backList" />
|
|
<EnginExamine v-if="isShowExamine" :list-item="queryItem" @backListFormDetail="backList" />
|
|
<EnginForm v-if="isShowForm" :list-item="queryItem" @backListFormDetail="backList" />
|
|
<EnginForm v-if="isShowForm" :list-item="queryItem" @backListFormDetail="backList" />
|
|
- <EnginReturnForm v-if="isShowReturnForm" :isShow="isShow" :list-item="queryItem" @backListFormDetail="backList" />
|
|
|
|
|
|
+ <EnginReturnForm v-if="isShowReturnForm" :is-show="isShow" :list-item="queryItem" @backListFormDetail="backList" />
|
|
</Popu>
|
|
</Popu>
|
|
</template-page>
|
|
</template-page>
|
|
</template>
|
|
</template>
|
|
@@ -86,7 +86,7 @@ export default {
|
|
[
|
|
[
|
|
{
|
|
{
|
|
name: '批量审批',
|
|
name: '批量审批',
|
|
- click: async () => {
|
|
|
|
|
|
+ click: async() => {
|
|
if (this.recordSelected.length === 0) {
|
|
if (this.recordSelected.length === 0) {
|
|
this.$message.error('请选择需要批量审批的数据')
|
|
this.$message.error('请选择需要批量审批的数据')
|
|
return
|
|
return
|
|
@@ -234,7 +234,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
// 列表请求函数
|
|
// 列表请求函数
|
|
getList(...p) {
|
|
getList(...p) {
|
|
- let params = {
|
|
|
|
|
|
+ const params = {
|
|
...p[0]
|
|
...p[0]
|
|
}
|
|
}
|
|
return invoiceListProjectV2(params)
|
|
return invoiceListProjectV2(params)
|
|
@@ -251,7 +251,7 @@ export default {
|
|
},
|
|
},
|
|
fieldBeansHook(val) {
|
|
fieldBeansHook(val) {
|
|
if (this.isCustomer !== '') {
|
|
if (this.isCustomer !== '') {
|
|
- let res = val.filter(
|
|
|
|
|
|
+ const res = val.filter(
|
|
v => v.jname !== 'refPowerCategory' && v.jname !== 'geLiInerNote' && v.jname !== 'geLiNote'
|
|
v => v.jname !== 'refPowerCategory' && v.jname !== 'geLiInerNote' && v.jname !== 'geLiNote'
|
|
)
|
|
)
|
|
return res
|
|
return res
|
|
@@ -262,7 +262,7 @@ export default {
|
|
operation() {
|
|
operation() {
|
|
return (h, { row, index, column }) => {
|
|
return (h, { row, index, column }) => {
|
|
return (
|
|
return (
|
|
- <div class="operation-btns">
|
|
|
|
|
|
+ <div class='operation-btns'>
|
|
{this.$checkBtnRole('apply', this.$route.meta.roles) &&
|
|
{this.$checkBtnRole('apply', this.$route.meta.roles) &&
|
|
((!this.isCustomer &&
|
|
((!this.isCustomer &&
|
|
!row.automaticStatus &&
|
|
!row.automaticStatus &&
|
|
@@ -275,121 +275,120 @@ export default {
|
|
row.automaticStatus &&
|
|
row.automaticStatus &&
|
|
(row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
(row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
row.type === 2)) ? (
|
|
row.type === 2)) ? (
|
|
- <el-popconfirm
|
|
|
|
- onOnConfirm={async () => {
|
|
|
|
- this.handleSubmit(row.id, 'WAIT')
|
|
|
|
- }}
|
|
|
|
- title="是否确定需要申请该项内容?"
|
|
|
|
- >
|
|
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={async() => {
|
|
|
|
+ this.handleSubmit(row.id, 'WAIT')
|
|
|
|
+ }}
|
|
|
|
+ title='是否确定需要申请该项内容?'
|
|
|
|
+ >
|
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
申请
|
|
申请
|
|
- </el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- ) : (
|
|
|
|
- ''
|
|
|
|
- )}
|
|
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
|
|
{this.$checkBtnRole('apply', this.$route.meta.roles) &&
|
|
{this.$checkBtnRole('apply', this.$route.meta.roles) &&
|
|
((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT') ||
|
|
((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT') ||
|
|
(this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT' && row.type != 2) ||
|
|
(this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT' && row.type != 2) ||
|
|
(!this.isCustomer && row.automaticStatus && row.examineStatus === 'WAIT' && row.type == 2)) ? (
|
|
(!this.isCustomer && row.automaticStatus && row.examineStatus === 'WAIT' && row.type == 2)) ? (
|
|
- <el-popconfirm
|
|
|
|
- onOnConfirm={async () => {
|
|
|
|
- this.handleSubmit(row.id, 'SAVE')
|
|
|
|
- }}
|
|
|
|
- title="是否确定需要撤回该项内容?"
|
|
|
|
- >
|
|
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={async() => {
|
|
|
|
+ this.handleSubmit(row.id, 'SAVE')
|
|
|
|
+ }}
|
|
|
|
+ title='是否确定需要撤回该项内容?'
|
|
|
|
+ >
|
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
撤回
|
|
撤回
|
|
- </el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- ) : (
|
|
|
|
- ''
|
|
|
|
- )}
|
|
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
|
|
{this.$checkBtnRole('examine', this.$route.meta.roles) &&
|
|
{this.$checkBtnRole('examine', this.$route.meta.roles) &&
|
|
((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'OK') ||
|
|
((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'OK') ||
|
|
(this.isCustomer && !row.automaticStatus && row.examineStatus === 'OK' && row.type != 2) ||
|
|
(this.isCustomer && !row.automaticStatus && row.examineStatus === 'OK' && row.type != 2) ||
|
|
(!this.isCustomer && row.automaticStatus && row.examineStatus === 'OK' && row.type == 2)) ? (
|
|
(!this.isCustomer && row.automaticStatus && row.examineStatus === 'OK' && row.type == 2)) ? (
|
|
- <el-popconfirm
|
|
|
|
- onOnConfirm={async () => {
|
|
|
|
- this.handleAbandon(row.id)
|
|
|
|
- }}
|
|
|
|
- title="是否确定需要弃审该项内容?"
|
|
|
|
- >
|
|
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={async() => {
|
|
|
|
+ this.handleAbandon(row.id)
|
|
|
|
+ }}
|
|
|
|
+ title='是否确定需要弃审该项内容?'
|
|
|
|
+ >
|
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
弃审
|
|
弃审
|
|
- </el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- ) : (
|
|
|
|
- ''
|
|
|
|
- )}
|
|
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
|
|
{this.$checkBtnRole('edit', this.$route.meta.roles) &&
|
|
{this.$checkBtnRole('edit', this.$route.meta.roles) &&
|
|
- !row.automaticStatus &&
|
|
|
|
|
|
+ (!row.automaticStatus &&
|
|
(row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
(row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
- row.type === 1 ? (
|
|
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- onClick={async () => {
|
|
|
|
- this.toForm(row)
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
|
|
+ row.type === 1) || (this.isCustomer &&
|
|
|
|
+ !row.automaticStatus &&
|
|
|
|
+ (row.examineStatus === 'WAIT' || row.examineStatus === 'FAIL') &&
|
|
|
|
+ row.type != 2 &&
|
|
|
|
+ row.type !== 1) ? (
|
|
|
|
+ <el-button
|
|
|
|
+ size='mini'
|
|
|
|
+ type='text'
|
|
|
|
+ onClick={async() => {
|
|
|
|
+ this.toForm(row)
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
编辑
|
|
编辑
|
|
- </el-button>
|
|
|
|
- ) : (
|
|
|
|
- ''
|
|
|
|
- )}
|
|
|
|
|
|
+ </el-button>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
|
|
{this.$checkBtnRole('edit', this.$route.meta.roles) &&
|
|
{this.$checkBtnRole('edit', this.$route.meta.roles) &&
|
|
((!this.isCustomer &&
|
|
((!this.isCustomer &&
|
|
!row.automaticStatus &&
|
|
!row.automaticStatus &&
|
|
(row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
(row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
row.type === 2) ||
|
|
row.type === 2) ||
|
|
- (this.isCustomer &&
|
|
|
|
- !row.automaticStatus &&
|
|
|
|
- (row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
|
|
- row.type != 2 &&
|
|
|
|
- row.type !== 1) ||
|
|
|
|
(!this.isCustomer &&
|
|
(!this.isCustomer &&
|
|
row.automaticStatus &&
|
|
row.automaticStatus &&
|
|
(row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
(row.examineStatus === 'SAVE' || row.examineStatus === 'FAIL') &&
|
|
row.type === 2)) ? (
|
|
row.type === 2)) ? (
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- onClick={async () => {
|
|
|
|
- this.toReturnForm(row)
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ size='mini'
|
|
|
|
+ type='text'
|
|
|
|
+ onClick={async() => {
|
|
|
|
+ this.toReturnForm(row)
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
编辑
|
|
编辑
|
|
- </el-button>
|
|
|
|
- ) : (
|
|
|
|
- ''
|
|
|
|
- )}
|
|
|
|
|
|
+ </el-button>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
|
|
{this.$checkBtnRole('examine', this.$route.meta.roles) &&
|
|
{this.$checkBtnRole('examine', this.$route.meta.roles) &&
|
|
((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT') ||
|
|
((!this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT') ||
|
|
(this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT' && row.type != 2) ||
|
|
(this.isCustomer && !row.automaticStatus && row.examineStatus === 'WAIT' && row.type != 2) ||
|
|
(!this.isCustomer && row.automaticStatus && row.examineStatus === 'WAIT' && row.type == 2)) ? (
|
|
(!this.isCustomer && row.automaticStatus && row.examineStatus === 'WAIT' && row.type == 2)) ? (
|
|
- <el-button
|
|
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- onClick={async () => {
|
|
|
|
- this.toExamine(row)
|
|
|
|
- }}
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ size='mini'
|
|
|
|
+ type='text'
|
|
|
|
+ onClick={async() => {
|
|
|
|
+ this.toExamine(row)
|
|
|
|
+ }}
|
|
|
|
+ >
|
|
审核
|
|
审核
|
|
- </el-button>
|
|
|
|
- ) : (
|
|
|
|
- ''
|
|
|
|
- )}
|
|
|
|
|
|
+ </el-button>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
|
|
|
|
<el-button
|
|
<el-button
|
|
- size="mini"
|
|
|
|
- type="text"
|
|
|
|
- onClick={async () => {
|
|
|
|
|
|
+ size='mini'
|
|
|
|
+ type='text'
|
|
|
|
+ onClick={async() => {
|
|
this.toDetail(row)
|
|
this.toDetail(row)
|
|
}}
|
|
}}
|
|
>
|
|
>
|
|
@@ -400,19 +399,19 @@ export default {
|
|
((!this.isCustomer && !row.automaticStatus && row.examineStatus !== 'OK') ||
|
|
((!this.isCustomer && !row.automaticStatus && row.examineStatus !== 'OK') ||
|
|
(this.isCustomer && !row.automaticStatus && row.examineStatus !== 'OK' && row.type != 2) ||
|
|
(this.isCustomer && !row.automaticStatus && row.examineStatus !== 'OK' && row.type != 2) ||
|
|
(!this.isCustomer && row.automaticStatus && row.examineStatus !== 'OK' && row.type == 2)) ? (
|
|
(!this.isCustomer && row.automaticStatus && row.examineStatus !== 'OK' && row.type == 2)) ? (
|
|
- <el-popconfirm
|
|
|
|
- onOnConfirm={async () => {
|
|
|
|
- this.handleDelete(row.id)
|
|
|
|
- }}
|
|
|
|
- title="是否确定需要删除该项内容?"
|
|
|
|
- >
|
|
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
|
|
|
+ <el-popconfirm
|
|
|
|
+ onOnConfirm={async() => {
|
|
|
|
+ this.handleDelete(row.id)
|
|
|
|
+ }}
|
|
|
|
+ title='是否确定需要删除该项内容?'
|
|
|
|
+ >
|
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
删除
|
|
删除
|
|
- </el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- ) : (
|
|
|
|
- ''
|
|
|
|
- )}
|
|
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ ) : (
|
|
|
|
+ ''
|
|
|
|
+ )}
|
|
</div>
|
|
</div>
|
|
)
|
|
)
|
|
}
|
|
}
|
|
@@ -612,7 +611,7 @@ export default {
|
|
* @param {String} index - 索引值
|
|
* @param {String} index - 索引值
|
|
* @return Boolean
|
|
* @return Boolean
|
|
*/
|
|
*/
|
|
- selectable: function (row, index) {
|
|
|
|
|
|
+ selectable: function(row, index) {
|
|
if (row.automaticStatus) {
|
|
if (row.automaticStatus) {
|
|
return false
|
|
return false
|
|
}
|
|
}
|