|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <el-page-header @back="$parent.pageType=0" :content="detailsId?'编辑':'新增'" style=" padding: 20px 20px 0 20px;"
|
|
|
+ <el-page-header @back="pageType=0" :content="detailsId?'编辑':'新增'" style=" padding: 20px 20px 0 20px;"
|
|
|
></el-page-header>
|
|
|
<sales-header ref="header" />
|
|
|
<sales-table :dataList="dataList" :column="column" :isOperation="detailsId ?false:true" isSelection
|
|
@@ -63,7 +63,7 @@ export default {
|
|
|
SalesTable,
|
|
|
SalesDialog
|
|
|
},
|
|
|
- props: ['detailsId'],
|
|
|
+ props: ['detailsId','pageType'],
|
|
|
data() {
|
|
|
return {
|
|
|
dialogVisible: false,
|
|
@@ -249,7 +249,7 @@ export default {
|
|
|
console.log(33)
|
|
|
sbumitFrontOrder({ id: this.salesId, status }).then(res => {
|
|
|
this.$successMsg('通知发货')
|
|
|
- this.$parent.pageType = 0
|
|
|
+ this.$emit('close')
|
|
|
})
|
|
|
},
|
|
|
handelSubmit(type, status = 1) {
|
|
@@ -320,7 +320,7 @@ export default {
|
|
|
}
|
|
|
]
|
|
|
if (this.isFront ===false){
|
|
|
- this.$parent.pageType = 0
|
|
|
+ this.$emit('close')
|
|
|
} this.salesId = res.data
|
|
|
this.$set(this.$refs.header.screenForm,'id',res.data)
|
|
|
this.$forceUpdate()
|
|
@@ -329,7 +329,7 @@ export default {
|
|
|
} else {
|
|
|
updateFrontOrder(params).then(res => {
|
|
|
this.$successMsg('编辑成功')
|
|
|
- this.$parent.pageType = 0
|
|
|
+ this.$emit('close')
|
|
|
this.$forceUpdate()
|
|
|
})
|
|
|
|