|
@@ -1,7 +1,7 @@
|
|
<!-- 采购管理 -->
|
|
<!-- 采购管理 -->
|
|
<template>
|
|
<template>
|
|
<div class="purchase">
|
|
<div class="purchase">
|
|
- <template v-if="!addOrUpdateVisible && !detailVisible && !operateVisible && !inboundVisible">
|
|
|
|
|
|
+ <template v-if="!addOrUpdateVisible && !detailVisible && !operateVisible && !inboundVisible && !noticeChangeAttachVisible">
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
|
|
<el-form-item label="类别">
|
|
<el-form-item label="类别">
|
|
<el-select
|
|
<el-select
|
|
@@ -45,7 +45,7 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button @click="search()">查询</el-button>
|
|
<el-button @click="search()">查询</el-button>
|
|
<el-button v-if="isAuth('purchase:detail:save')" type="primary" @click="addOrUpdateHandle(0, false)">新建采购申请</el-button>
|
|
<el-button v-if="isAuth('purchase:detail:save')" type="primary" @click="addOrUpdateHandle(0, false)">新建采购申请</el-button>
|
|
- <el-button v-if="isAuth('purchase:detail:noteChangeConfig')" type="primary" @click="setNoticeChangeHandel()">工作提示通知设置</el-button>
|
|
|
|
|
|
+ <el-button v-if="isAuth('purchase:detail:noteChangeConfig')" type="primary" @click="setNoticeChangeHandel()">业务变更通知设置</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<el-table
|
|
<el-table
|
|
@@ -228,6 +228,8 @@
|
|
<operate v-if="operateVisible" ref="operate" @onChose="onChose"/>
|
|
<operate v-if="operateVisible" ref="operate" @onChose="onChose"/>
|
|
<!-- 入库 -->
|
|
<!-- 入库 -->
|
|
<inbound v-if="inboundVisible" ref="inbound" @onChose="onChose"/>
|
|
<inbound v-if="inboundVisible" ref="inbound" @onChose="onChose"/>
|
|
|
|
+ <notice-change-setting v-if="noticeChangeAttachVisible" ref="noticeChangeSetting" @onChose="onChose"/>
|
|
|
|
+<!-- <change-form v-if="changeFormVisible" ref="changeForm" @refreshDataList="getDataList" @onChose="onChose"/>-->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -238,10 +240,11 @@
|
|
import Inbound from '../warehouse/stock-order-inbound'
|
|
import Inbound from '../warehouse/stock-order-inbound'
|
|
import { getDictList } from '@/api/dict'
|
|
import { getDictList } from '@/api/dict'
|
|
import { getPurchaseList, revokePurchase } from '@/api/sale'
|
|
import { getPurchaseList, revokePurchase } from '@/api/sale'
|
|
|
|
+ import NoticeChangeSetting from './purchase-notice-change-setting'
|
|
export default {
|
|
export default {
|
|
name: 'purchase',
|
|
name: 'purchase',
|
|
components: {
|
|
components: {
|
|
- AddOrUpdate, Detail, Operate, Inbound
|
|
|
|
|
|
+ AddOrUpdate, Detail, Operate, Inbound, NoticeChangeSetting
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
@@ -249,6 +252,7 @@
|
|
detailVisible: false,
|
|
detailVisible: false,
|
|
operateVisible: false,
|
|
operateVisible: false,
|
|
inboundVisible: false,
|
|
inboundVisible: false,
|
|
|
|
+ noticeChangeAttachVisible: false,
|
|
dataForm: {},
|
|
dataForm: {},
|
|
dataList: [],
|
|
dataList: [],
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
@@ -281,6 +285,7 @@
|
|
this.detailVisible = false
|
|
this.detailVisible = false
|
|
this.operateVisible = false
|
|
this.operateVisible = false
|
|
this.inboundVisible = false
|
|
this.inboundVisible = false
|
|
|
|
+ this.noticeChangeAttachVisible = false
|
|
},
|
|
},
|
|
// 获取采购类别字典
|
|
// 获取采购类别字典
|
|
getTypeList () {
|
|
getTypeList () {
|
|
@@ -406,6 +411,13 @@
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.inbound.init(0, false, dataForm)
|
|
this.$refs.inbound.init(0, false, dataForm)
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ // 变更通知人设置
|
|
|
|
+ setNoticeChangeHandel () {
|
|
|
|
+ this.noticeChangeAttachVisible = true
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.noticeChangeSetting.init()
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|