|
@@ -1,9 +1,8 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div style="width: 100%; height: 100%">
|
|
|
<template-page
|
|
|
v-if="!pageType"
|
|
|
- style="width: 100%;
|
|
|
- height: 100%;"
|
|
|
+ style="width: 100%; height: 100%"
|
|
|
ref="pageRef"
|
|
|
:getList="getList"
|
|
|
:exportList="exportList"
|
|
@@ -12,12 +11,15 @@
|
|
|
:optionsEvensGroup="optionsEvensGroup"
|
|
|
>
|
|
|
</template-page>
|
|
|
- <customer_sales_form :detailsId="detailsId" v-else-if="pageType===1 || pageType ===2" />
|
|
|
- <customer_sales_details :detailsId="detailsId" v-else />
|
|
|
+ <popu v-if="pageType">
|
|
|
+ <customer_sales_form :detailsId="detailsId" v-if="pageType === 1 || pageType === 2" />
|
|
|
+ <customer_sales_details :detailsId="detailsId" v-else />
|
|
|
+ </popu>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import popu from '@/components/template/popu.vue'
|
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
import { delFrontOrder, exportCustomerFrontOrder, getFrontOrderList } from '@/api/sales'
|
|
@@ -25,7 +27,7 @@ import customer_sales_form from '@/views/sales_control/sales_management/componen
|
|
|
import customer_sales_details from '@/views/sales_control/sales_management/components/customer_sales_details'
|
|
|
|
|
|
export default {
|
|
|
- components: { TemplatePage, customer_sales_form, customer_sales_details },
|
|
|
+ components: { TemplatePage, customer_sales_form, customer_sales_details, popu },
|
|
|
mixins: [import_mixin],
|
|
|
data() {
|
|
|
return {
|
|
@@ -73,8 +75,7 @@ export default {
|
|
|
'selection-change': this.selectionChange
|
|
|
},
|
|
|
recordSelected: [],
|
|
|
- isFront: JSON.parse(localStorage.getItem('supply_user')).isFront,
|
|
|
-
|
|
|
+ isFront: JSON.parse(localStorage.getItem('supply_user')).isFront
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -99,55 +100,56 @@ export default {
|
|
|
<div class="operation-btns">
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
- type="text" onClick={() => {
|
|
|
- this.detailsId = row.id
|
|
|
- this.pageType = 3
|
|
|
-
|
|
|
- }}
|
|
|
+ type="text"
|
|
|
+ onClick={() => {
|
|
|
+ this.detailsId = row.id
|
|
|
+ this.pageType = 3
|
|
|
+ }}
|
|
|
>
|
|
|
查看
|
|
|
</el-button>
|
|
|
|
|
|
- {
|
|
|
- row.status == 1 ? (<el-button
|
|
|
+ {row.status == 1 ? (
|
|
|
+ <el-button
|
|
|
size="mini"
|
|
|
- type="text" onClick={() => {
|
|
|
- this.detailsId = row.id
|
|
|
- this.pageType = 2
|
|
|
- }}
|
|
|
+ type="text"
|
|
|
+ onClick={() => {
|
|
|
+ this.detailsId = row.id
|
|
|
+ this.pageType = 2
|
|
|
+ }}
|
|
|
>
|
|
|
编辑
|
|
|
- </el-button>) : null}
|
|
|
- {
|
|
|
- row.status == 1 ?
|
|
|
- (<el-popconfirm
|
|
|
- onOnConfirm={() => {
|
|
|
- delFrontOrder({ id: row.id }).then(res => {
|
|
|
- this.$successMsg('删除成功')
|
|
|
- this.$refs.pageRef.refreshList()
|
|
|
- })
|
|
|
- }}
|
|
|
- title="删除吗?"
|
|
|
- >
|
|
|
- <el-button slot="reference" size="mini" type="text">删除</el-button>
|
|
|
- </el-popconfirm>)
|
|
|
- : null
|
|
|
- }
|
|
|
+ </el-button>
|
|
|
+ ) : null}
|
|
|
+ {row.status == 1 ? (
|
|
|
+ <el-popconfirm
|
|
|
+ onOnConfirm={() => {
|
|
|
+ delFrontOrder({ id: row.id }).then(res => {
|
|
|
+ this.$successMsg('删除成功')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ title="删除吗?"
|
|
|
+ >
|
|
|
+ <el-button slot="reference" size="mini" type="text">
|
|
|
+ 删除
|
|
|
+ </el-button>
|
|
|
+ </el-popconfirm>
|
|
|
+ ) : null}
|
|
|
</div>
|
|
|
)
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
-// <el-popconfirm
|
|
|
-// onOnConfirm = {()=>{
|
|
|
-// deleteCustomerStockOrder({ id: row.id }).then(res => {
|
|
|
-// this.$successMsg('删除成功')
|
|
|
-// this.$refs.pageRef.getTableData()
|
|
|
-// }) }}
|
|
|
-// title="删除吗?"
|
|
|
-// >
|
|
|
-// <el-button slot="reference" type="text">删除</el-button>
|
|
|
-// </el-popconfirm>
|
|
|
+ // <el-popconfirm
|
|
|
+ // onOnConfirm = {()=>{
|
|
|
+ // deleteCustomerStockOrder({ id: row.id }).then(res => {
|
|
|
+ // this.$successMsg('删除成功')
|
|
|
+ // this.$refs.pageRef.getTableData()
|
|
|
+ // }) }}
|
|
|
+ // title="删除吗?"
|
|
|
+ // >
|
|
|
+ // <el-button slot="reference" type="text">删除</el-button>
|
|
|
+ // </el-popconfirm>
|
|
|
|
|
|
// 批量删除
|
|
|
// dels() {
|