|
@@ -1,12 +1,14 @@
|
|
|
<!-- 任务处理中心 -->
|
|
|
<template>
|
|
|
<div class="production">
|
|
|
- <template v-if="!detailsVisible && !outsourceVisible && !checkVisible && !preCheckVisible && !purchaseVisible && !printLabelVisible && !addOrUpdateVisible && !addOrUpdateOutsourceVisible">
|
|
|
- <el-header style="font-size: large;text-align: center">任务处理中心</el-header>
|
|
|
+ <template v-if="!detailsVisible && !outsourceVisible && !checkVisible && !preCheckVisible && !purchaseVisible && !printLabelVisible && !addOrUpdateVisible && !addOrUpdateOutsourceVisible && !noticeChangeSettingVisible">
|
|
|
+ <!-- <el-header style="font-size: large;text-align: center">任务处理中心</el-header> -->
|
|
|
<el-form>
|
|
|
<el-form-item>
|
|
|
<el-button v-if="isAuth('prod:production:purchase')" type="primary" @click="batchBuyHandle()" :disabled="batchIncomeBtnDisabled">批量转采购</el-button>
|
|
|
<el-button v-if="isAuth('pur:commDetail:save')" type="primary" @click="batchOutsourceHandle()" :disabled="batchBtnDisabled">批量转委外</el-button>
|
|
|
+ <el-button type="primary" @click="noticeChangeSettingHandle()">工作通知设置</el-button>
|
|
|
+ <el-button @click="queryPage()">刷新</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-table
|
|
@@ -214,6 +216,7 @@
|
|
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" :options-type="optionsType" @refreshDataList="getDataList" @onChose="onChose"></add-or-update>
|
|
|
<!-- 委外 -->
|
|
|
<outsource-add-or-update v-if="addOrUpdateOutsourceVisible" ref="addOrUpdateOutsource" @refreshDataList="getDataList" @onChose="onChose"></outsource-add-or-update>
|
|
|
+ <scheduling-notice-change-setting v-if="noticeChangeSettingVisible" ref="noticeChangeSetting" @refreshDataList="getDataList" @onChose="onChose"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -230,6 +233,7 @@
|
|
|
import PrintLabel from '@/views/modules/production/components/print-label.vue'
|
|
|
import AddOrUpdate from '@/views/modules/sale/purchase-add-or-update'
|
|
|
import { getDictList } from '@/api/dict'
|
|
|
+ import SchedulingNoticeChangeSetting from '@/views/modules/production/scheduling-notice-change-setting'
|
|
|
export default {
|
|
|
name: 'scheduling',
|
|
|
components: {
|
|
@@ -241,7 +245,8 @@ export default {
|
|
|
SchedulingCheck,
|
|
|
Detail,
|
|
|
AddOrUpdate,
|
|
|
- OutsourceAddOrUpdate
|
|
|
+ OutsourceAddOrUpdate,
|
|
|
+ SchedulingNoticeChangeSetting
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -254,6 +259,7 @@ export default {
|
|
|
printLabelVisible: false,
|
|
|
addOrUpdateVisible: false,
|
|
|
addOrUpdateOutsourceVisible: false,
|
|
|
+ noticeChangeSettingVisible: false,
|
|
|
dataForm: {},
|
|
|
dataList: [],
|
|
|
pageIndex: 1,
|
|
@@ -332,6 +338,7 @@ export default {
|
|
|
this.batchBtnDisabled = false
|
|
|
this.addOrUpdateVisible = false
|
|
|
this.addOrUpdateOutsourceVisible = false
|
|
|
+ this.noticeChangeSettingVisible = false
|
|
|
},
|
|
|
// 获取采购类别字典
|
|
|
getTypeList () {
|
|
@@ -574,6 +581,12 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.addOrUpdateOutsource.init(null, null, null, list)
|
|
|
})
|
|
|
+ },
|
|
|
+ noticeChangeSettingHandle () {
|
|
|
+ this.noticeChangeSettingVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.noticeChangeSetting.init()
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|