|
@@ -1,15 +1,15 @@
|
|
|
<template>
|
|
|
<template-page
|
|
|
ref="pageRef"
|
|
|
- :get-list="getList"
|
|
|
+ :getList="getList"
|
|
|
:operation="operation()"
|
|
|
- :options-evens-group="optionsEvensGroup"
|
|
|
- :export-list="exportList"
|
|
|
- :column-parsing="columnParsing"
|
|
|
- :table-attributes="tableAttributes"
|
|
|
- :table-events="tableEvents"
|
|
|
+ :optionsEvensGroup="optionsEvensGroup"
|
|
|
+ :exportList="exportList"
|
|
|
+ :columnParsing="columnParsing"
|
|
|
+ :tableAttributes="tableAttributes"
|
|
|
+ :tableEvents="tableEvents"
|
|
|
>
|
|
|
- <ExamineDialog :is-show.sync="isShowExamineDialog" :examine-form.sync="examineForm" @submit="submitExamineForm" />
|
|
|
+ <ExamineDialog @submit="submitExamineForm" :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" />
|
|
|
|
|
|
<Popu v-if="show !== 1">
|
|
|
<!-- <el-page-header slot="head" :content="content" @back="handleClose" /> -->
|
|
@@ -35,26 +35,18 @@ import {
|
|
|
getPriceSubmit,
|
|
|
getProductRricedel,
|
|
|
getProductRriceDetail,
|
|
|
+ productUpdPriceReview,
|
|
|
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 {
|
|
@@ -82,7 +74,7 @@ export default {
|
|
|
[
|
|
|
{
|
|
|
name: '批量删除',
|
|
|
- click: async() => {
|
|
|
+ click: async () => {
|
|
|
if (this.recordSelected.length === 0) {
|
|
|
this.$message.error('请选择需要删除的数据')
|
|
|
return
|
|
@@ -97,7 +89,7 @@ export default {
|
|
|
[
|
|
|
{
|
|
|
name: '批量审批',
|
|
|
- click: async() => {
|
|
|
+ click: async () => {
|
|
|
this.batchExamine()
|
|
|
}
|
|
|
}
|
|
@@ -119,13 +111,13 @@ export default {
|
|
|
name: '导入模版',
|
|
|
click: () => {
|
|
|
productUpdPriceDownload({}, `${this.$route.meta.title}`)
|
|
|
- .then(() => {
|
|
|
+ .then(res => {
|
|
|
this.$message({
|
|
|
message: '下载成功',
|
|
|
type: 'success'
|
|
|
})
|
|
|
})
|
|
|
- .catch(() => {
|
|
|
+ .catch(err => {
|
|
|
this.$message.error('下载失败')
|
|
|
})
|
|
|
}
|
|
@@ -216,6 +208,14 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ components: {
|
|
|
+ ExamineDialog,
|
|
|
+ ModifyListApply,
|
|
|
+ ModifyListApproval,
|
|
|
+ ModifyListDetail,
|
|
|
+ TemplatePage,
|
|
|
+ Popu
|
|
|
+ },
|
|
|
computed: {
|
|
|
exParams() {
|
|
|
return {
|
|
@@ -226,7 +226,7 @@ export default {
|
|
|
},
|
|
|
comWallets() {
|
|
|
return e => {
|
|
|
- const map = new Map()
|
|
|
+ let map = new Map()
|
|
|
for (const item of e) {
|
|
|
map.set(item.walletId, item)
|
|
|
}
|
|
@@ -236,7 +236,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- const params = {
|
|
|
+ let params = {
|
|
|
pageNum: 1,
|
|
|
pageSize: -1,
|
|
|
saleCode: '',
|
|
@@ -257,7 +257,7 @@ export default {
|
|
|
// 列表导出函数
|
|
|
exportList: v2ProductUpdPriceListExport,
|
|
|
// 表格列解析渲染数据更改
|
|
|
- columnParsing(defaultData) {
|
|
|
+ columnParsing(item, defaultData) {
|
|
|
return defaultData
|
|
|
},
|
|
|
// 监听勾选变化
|
|
@@ -265,18 +265,17 @@ export default {
|
|
|
this.recordSelected = data
|
|
|
},
|
|
|
operation() {
|
|
|
- return (h, { row }) => {
|
|
|
- console.log(row)
|
|
|
+ return (h, { row, index, column }) => {
|
|
|
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 +285,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 +300,9 @@ export default {
|
|
|
|
|
|
{row.examineStatus == '保存' ? (
|
|
|
<el-button
|
|
|
- size='mini'
|
|
|
- type='text'
|
|
|
- onClick={async() => {
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ onClick={async () => {
|
|
|
this.editFn(row.updPriceBillId, row)
|
|
|
}}
|
|
|
>
|
|
@@ -330,9 +329,9 @@ export default {
|
|
|
''
|
|
|
)}
|
|
|
<el-button
|
|
|
- size='mini'
|
|
|
- type='text'
|
|
|
- onClick={async() => {
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ onClick={async () => {
|
|
|
this.detailFn(row.updPriceBillId)
|
|
|
}}
|
|
|
>
|
|
@@ -354,7 +353,7 @@ export default {
|
|
|
this.show = 2
|
|
|
},
|
|
|
hanleDeleteAllPromise(id) {
|
|
|
- return new Promise((resolve) => {
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
const ids = id ? [id] : this.recordSelected.map(v => v.updPriceBillId)
|
|
|
if (!ids.length) {
|
|
|
this.$errorMsg('请选择删除内容')
|
|
@@ -365,7 +364,7 @@ export default {
|
|
|
},
|
|
|
hanleDeleteAll(id) {
|
|
|
this.hanleDeleteAllPromise(id).then(ids => {
|
|
|
- getProductRricedel(ids).then(() => {
|
|
|
+ getProductRricedel(ids).then(res => {
|
|
|
this.$successMsg('删除成功')
|
|
|
// this.getList()
|
|
|
this.$refs.pageRef.refreshList()
|
|
@@ -390,7 +389,7 @@ export default {
|
|
|
ids: ids.join(','),
|
|
|
examineStatus: this.examineForm.status,
|
|
|
examineRemark: this.examineForm.remark
|
|
|
- }).then(() => {
|
|
|
+ }).then(res => {
|
|
|
this.isShowExamineDialog = false
|
|
|
this.$successMsg('修改成功')
|
|
|
// this.getList()
|
|
@@ -399,7 +398,7 @@ export default {
|
|
|
},
|
|
|
handleGetPriceSubmit(id) {
|
|
|
console.log(id)
|
|
|
- getPriceSubmit({ ids: id }).then(() => {
|
|
|
+ getPriceSubmit({ ids: id }).then(res => {
|
|
|
this.$successMsg('已提审')
|
|
|
// this.getList()
|
|
|
this.$refs.pageRef.refreshList()
|
|
@@ -455,7 +454,7 @@ export default {
|
|
|
},
|
|
|
hanleInfo() {
|
|
|
if (this.type === 1) {
|
|
|
- getProductAdd(this.diaLogForm).then(() => {
|
|
|
+ getProductAdd(this.diaLogForm).then(res => {
|
|
|
this.$successMsg('保存成功')
|
|
|
console.log(params, 123)
|
|
|
this.getList()
|
|
@@ -465,7 +464,7 @@ export default {
|
|
|
...this.diaLogForm
|
|
|
}
|
|
|
console.log(params, 123)
|
|
|
- getProductEdit(params).then(() => {
|
|
|
+ getProductEdit(params).then(res => {
|
|
|
this.$successMsg('编辑成功')
|
|
|
this.getList()
|
|
|
})
|
|
@@ -475,13 +474,13 @@ export default {
|
|
|
},
|
|
|
hanleDelete(id) {
|
|
|
this.hanleDeleteAllPromise(id).then(ids => {
|
|
|
- getProductDel(ids).then(() => {
|
|
|
+ getProductDel(ids).then(res => {
|
|
|
this.$successMsg('删除成功')
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
handleExport() {
|
|
|
- const screenData = {
|
|
|
+ let screenData = {
|
|
|
customerName: this.screenForm.customerName,
|
|
|
freeDay: this.screenForm.freeDay,
|
|
|
toll: this.screenForm.toll
|
|
@@ -524,7 +523,7 @@ export default {
|
|
|
hanleDownloadFiles() {
|
|
|
downloadFiles('product-upd-price/download')
|
|
|
},
|
|
|
- tableRowClassName({ row }) {
|
|
|
+ tableRowClassName({ row, rowIndex }) {
|
|
|
// || row.examineStatus=='FAIL'
|
|
|
if (this.ids.includes(row.updPriceBillId)) {
|
|
|
return 'warning-row'
|