|
@@ -1,15 +1,15 @@
|
|
|
<template>
|
|
|
<template-page
|
|
|
ref="pageRef"
|
|
|
- :getList="getList"
|
|
|
+ :get-list="getList"
|
|
|
:operation="operation()"
|
|
|
- :optionsEvensGroup="optionsEvensGroup"
|
|
|
- :exportList="exportList"
|
|
|
- :columnParsing="columnParsing"
|
|
|
- :tableAttributes="tableAttributes"
|
|
|
- :tableEvents="tableEvents"
|
|
|
+ :options-evens-group="optionsEvensGroup"
|
|
|
+ :export-list="exportList"
|
|
|
+ :column-parsing="columnParsing"
|
|
|
+ :table-attributes="tableAttributes"
|
|
|
+ :table-events="tableEvents"
|
|
|
>
|
|
|
- <ExamineDialog @submit="submitExamineForm" :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" />
|
|
|
+ <ExamineDialog :is-show.sync="isShowExamineDialog" :examine-form.sync="examineForm" @submit="submitExamineForm" />
|
|
|
|
|
|
<Popu v-if="show !== 1">
|
|
|
<!-- <el-page-header slot="head" :content="content" @back="handleClose" /> -->
|
|
@@ -35,18 +35,26 @@ import {
|
|
|
getPriceSubmit,
|
|
|
getProductRricedel,
|
|
|
getProductRriceDetail,
|
|
|
- getProductRriceList,
|
|
|
getTypeList,
|
|
|
examineData,
|
|
|
v2ProductUpdPriceList,
|
|
|
v2ProductUpdPriceListExport,
|
|
|
productUpdPriceDownload,
|
|
|
+ productUpdPriceReview,
|
|
|
productUpdPriceMaterialImport
|
|
|
} from '@/api/basic_data/material'
|
|
|
// import { downloadFiles, handleImport } from '@/utils/util'
|
|
|
import { getCategoryList } from '@/api/common'
|
|
|
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ ExamineDialog,
|
|
|
+ ModifyListApply,
|
|
|
+ ModifyListApproval,
|
|
|
+ ModifyListDetail,
|
|
|
+ TemplatePage,
|
|
|
+ Popu
|
|
|
+ },
|
|
|
mixins: [import_mixin, add_callback_mixin],
|
|
|
data() {
|
|
|
return {
|
|
@@ -74,7 +82,7 @@ export default {
|
|
|
[
|
|
|
{
|
|
|
name: '批量删除',
|
|
|
- click: async () => {
|
|
|
+ click: async() => {
|
|
|
if (this.recordSelected.length === 0) {
|
|
|
this.$message.error('请选择需要删除的数据')
|
|
|
return
|
|
@@ -89,7 +97,7 @@ export default {
|
|
|
[
|
|
|
{
|
|
|
name: '批量审批',
|
|
|
- click: async () => {
|
|
|
+ click: async() => {
|
|
|
this.batchExamine()
|
|
|
}
|
|
|
}
|
|
@@ -111,13 +119,13 @@ export default {
|
|
|
name: '导入模版',
|
|
|
click: () => {
|
|
|
productUpdPriceDownload({}, `${this.$route.meta.title}`)
|
|
|
- .then(res => {
|
|
|
+ .then(() => {
|
|
|
this.$message({
|
|
|
message: '下载成功',
|
|
|
type: 'success'
|
|
|
})
|
|
|
})
|
|
|
- .catch(err => {
|
|
|
+ .catch(() => {
|
|
|
this.$message.error('下载失败')
|
|
|
})
|
|
|
}
|
|
@@ -208,14 +216,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- components: {
|
|
|
- ExamineDialog,
|
|
|
- ModifyListApply,
|
|
|
- ModifyListApproval,
|
|
|
- ModifyListDetail,
|
|
|
- TemplatePage,
|
|
|
- Popu
|
|
|
- },
|
|
|
computed: {
|
|
|
exParams() {
|
|
|
return {
|
|
@@ -226,7 +226,7 @@ export default {
|
|
|
},
|
|
|
comWallets() {
|
|
|
return e => {
|
|
|
- let map = new Map()
|
|
|
+ const map = new Map()
|
|
|
for (const item of e) {
|
|
|
map.set(item.walletId, item)
|
|
|
}
|
|
@@ -236,7 +236,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- let params = {
|
|
|
+ const params = {
|
|
|
pageNum: 1,
|
|
|
pageSize: -1,
|
|
|
saleCode: '',
|
|
@@ -257,7 +257,7 @@ export default {
|
|
|
// 列表导出函数
|
|
|
exportList: v2ProductUpdPriceListExport,
|
|
|
// 表格列解析渲染数据更改
|
|
|
- columnParsing(item, defaultData) {
|
|
|
+ columnParsing(defaultData) {
|
|
|
return defaultData
|
|
|
},
|
|
|
// 监听勾选变化
|
|
@@ -265,18 +265,18 @@ export default {
|
|
|
this.recordSelected = data
|
|
|
},
|
|
|
operation() {
|
|
|
- return (h, { row, index, column }) => {
|
|
|
+ return (h, { row }) => {
|
|
|
console.log(row)
|
|
|
return (
|
|
|
- <div class="operation-btns">
|
|
|
+ <div class='operation-btns'>
|
|
|
{row.examineStatus == '保存' ? (
|
|
|
<el-popconfirm
|
|
|
- onOnConfirm={async () => {
|
|
|
+ onOnConfirm={async() => {
|
|
|
this.handleGetPriceSubmit(row.updPriceBillId)
|
|
|
}}
|
|
|
- title="是否确定需要提审该项内容?"
|
|
|
+ title='是否确定需要提审该项内容?'
|
|
|
>
|
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
|
提审
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
@@ -286,12 +286,12 @@ export default {
|
|
|
|
|
|
{row.examineStatus == '待审核' ? (
|
|
|
<el-popconfirm
|
|
|
- onOnConfirm={async () => {
|
|
|
+ onOnConfirm={async() => {
|
|
|
this.approvalFn(row.updPriceBillId)
|
|
|
}}
|
|
|
- title="是否确定需要审批该项内容?"
|
|
|
+ title='是否确定需要审批该项内容?'
|
|
|
>
|
|
|
- <el-button slot="reference" size="mini" type="text">
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
|
审批
|
|
|
</el-button>
|
|
|
</el-popconfirm>
|
|
@@ -301,9 +301,9 @@ export default {
|
|
|
|
|
|
{row.examineStatus == '保存' ? (
|
|
|
<el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- onClick={async () => {
|
|
|
+ size='mini'
|
|
|
+ type='text'
|
|
|
+ onClick={async() => {
|
|
|
this.editFn(row.updPriceBillId, row)
|
|
|
}}
|
|
|
>
|
|
@@ -312,11 +312,27 @@ export default {
|
|
|
) : (
|
|
|
''
|
|
|
)}
|
|
|
-
|
|
|
+ {row.examineStatus == '审核通过' ? (
|
|
|
+ <el-popconfirm
|
|
|
+ onOnConfirm={async() => {
|
|
|
+ productUpdPriceReview({ id: row.updPriceBillId }).then(() => {
|
|
|
+ this.$successMsg('弃审成功')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ title='是否确定需要审批该项内容?'
|
|
|
+ >
|
|
|
+ <el-button slot='reference' size='mini' type='text'>
|
|
|
+ 弃审
|
|
|
+ </el-button>
|
|
|
+ </el-popconfirm>
|
|
|
+ ) : (
|
|
|
+ ''
|
|
|
+ )}
|
|
|
<el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- onClick={async () => {
|
|
|
+ size='mini'
|
|
|
+ type='text'
|
|
|
+ onClick={async() => {
|
|
|
this.detailFn(row.updPriceBillId)
|
|
|
}}
|
|
|
>
|
|
@@ -338,7 +354,7 @@ export default {
|
|
|
this.show = 2
|
|
|
},
|
|
|
hanleDeleteAllPromise(id) {
|
|
|
- return new Promise((resolve, reject) => {
|
|
|
+ return new Promise((resolve) => {
|
|
|
const ids = id ? [id] : this.recordSelected.map(v => v.updPriceBillId)
|
|
|
if (!ids.length) {
|
|
|
this.$errorMsg('请选择删除内容')
|
|
@@ -349,7 +365,7 @@ export default {
|
|
|
},
|
|
|
hanleDeleteAll(id) {
|
|
|
this.hanleDeleteAllPromise(id).then(ids => {
|
|
|
- getProductRricedel(ids).then(res => {
|
|
|
+ getProductRricedel(ids).then(() => {
|
|
|
this.$successMsg('删除成功')
|
|
|
// this.getList()
|
|
|
this.$refs.pageRef.refreshList()
|
|
@@ -374,7 +390,7 @@ export default {
|
|
|
ids: ids.join(','),
|
|
|
examineStatus: this.examineForm.status,
|
|
|
examineRemark: this.examineForm.remark
|
|
|
- }).then(res => {
|
|
|
+ }).then(() => {
|
|
|
this.isShowExamineDialog = false
|
|
|
this.$successMsg('修改成功')
|
|
|
// this.getList()
|
|
@@ -383,7 +399,7 @@ export default {
|
|
|
},
|
|
|
handleGetPriceSubmit(id) {
|
|
|
console.log(id)
|
|
|
- getPriceSubmit({ ids: id }).then(res => {
|
|
|
+ getPriceSubmit({ ids: id }).then(() => {
|
|
|
this.$successMsg('已提审')
|
|
|
// this.getList()
|
|
|
this.$refs.pageRef.refreshList()
|
|
@@ -439,7 +455,7 @@ export default {
|
|
|
},
|
|
|
hanleInfo() {
|
|
|
if (this.type === 1) {
|
|
|
- getProductAdd(this.diaLogForm).then(res => {
|
|
|
+ getProductAdd(this.diaLogForm).then(() => {
|
|
|
this.$successMsg('保存成功')
|
|
|
console.log(params, 123)
|
|
|
this.getList()
|
|
@@ -449,7 +465,7 @@ export default {
|
|
|
...this.diaLogForm
|
|
|
}
|
|
|
console.log(params, 123)
|
|
|
- getProductEdit(params).then(res => {
|
|
|
+ getProductEdit(params).then(() => {
|
|
|
this.$successMsg('编辑成功')
|
|
|
this.getList()
|
|
|
})
|
|
@@ -459,13 +475,13 @@ export default {
|
|
|
},
|
|
|
hanleDelete(id) {
|
|
|
this.hanleDeleteAllPromise(id).then(ids => {
|
|
|
- getProductDel(ids).then(res => {
|
|
|
+ getProductDel(ids).then(() => {
|
|
|
this.$successMsg('删除成功')
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
handleExport() {
|
|
|
- let screenData = {
|
|
|
+ const screenData = {
|
|
|
customerName: this.screenForm.customerName,
|
|
|
freeDay: this.screenForm.freeDay,
|
|
|
toll: this.screenForm.toll
|
|
@@ -508,7 +524,7 @@ export default {
|
|
|
hanleDownloadFiles() {
|
|
|
downloadFiles('product-upd-price/download')
|
|
|
},
|
|
|
- tableRowClassName({ row, rowIndex }) {
|
|
|
+ tableRowClassName({ row }) {
|
|
|
// || row.examineStatus=='FAIL'
|
|
|
if (this.ids.includes(row.updPriceBillId)) {
|
|
|
return 'warning-row'
|