|
@@ -1,7 +1,7 @@
|
|
|
<!-- 委外列表 -->
|
|
|
<template>
|
|
|
<div class="sale">
|
|
|
- <template v-if="!detailVisible && !addOrUpdateVisible && !changeFormVisible &&!changeAttachVisible && !attachVisible && !noticeChangeAttachVisible">
|
|
|
+ <template v-if="!detailVisible && !addOrUpdateVisible && !changeFormVisible &&!changeAttachVisible && !attachVisible && !noticeChangeAttachVisible && !inboundVisible">
|
|
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="search()">
|
|
|
<el-form-item label="类别">
|
|
|
<el-select
|
|
@@ -220,12 +220,13 @@
|
|
|
fixed="right"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
- width="150"
|
|
|
+ width="180"
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button v-if="isAuth('cus:contractBook:info')" type="text" size="small" @click="detailHandle(scope.row.purComDetailId)">查看</el-button>
|
|
|
- <el-button v-if="isAuth('cus:contractBook:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.purComDetailId, false)">编辑</el-button>
|
|
|
- <el-button v-if="isAuth('cus:contractBook:changeContract')" type="text" size="small" @click="changeHandle(scope.row.purComDetailId)">变更</el-button>
|
|
|
+ <el-button v-if="isAuth('pur:commDetail:info')" type="text" size="small" @click="detailHandle(scope.row.purComDetailId)">查看</el-button>
|
|
|
+ <el-button v-if="isAuth('pur:commDetail:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.purComDetailId)">编辑</el-button>
|
|
|
+ <el-button v-if="isAuth('pur:commDetail:save')" type="text" size="small" @click="addOrUpdateHandle(scope.row.purComDetailId)">委外</el-button>
|
|
|
+ <el-button v-if="isAuth('wh:in:inbound')" type="text" size="small" @click="inBound(scope.row.purComDetailId, false)">入库</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -246,6 +247,8 @@
|
|
|
<attach-detail v-if="attachVisible" ref="attachDetail" @onChose="onChose"/>
|
|
|
<notice-change-setting v-if="noticeChangeAttachVisible" ref="noticeChangeSetting" @onChose="onChose"/>
|
|
|
<change-form v-if="changeFormVisible" ref="changeForm" @refreshDataList="getDataList" @onChose="onChose"/>
|
|
|
+ <!-- 入库-->
|
|
|
+ <stock-order-inbound v-if="inboundVisible" ref="inbound" @refreshDataList="getDataList" @onChose="onChose"/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -257,6 +260,7 @@ import AttachDetail from '../common/attach-detail'
|
|
|
import NoticeChangeSetting from '../cus/contract-record-notice-change-setting'
|
|
|
import ChangeForm from '../cus/contract-record-change'
|
|
|
import { getDictList } from '@/api/dict'
|
|
|
+import StockOrderInbound from '../warehouse/stock-order-inbound'
|
|
|
export default {
|
|
|
name: 'outsource',
|
|
|
components: {
|
|
@@ -264,7 +268,8 @@ export default {
|
|
|
AddOrUpdate,
|
|
|
Detail,
|
|
|
NoticeChangeSetting,
|
|
|
- ChangeForm
|
|
|
+ ChangeForm,
|
|
|
+ StockOrderInbound
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -274,6 +279,7 @@ export default {
|
|
|
changeAttachVisible: false,
|
|
|
noticeChangeAttachVisible: false,
|
|
|
changeFormVisible: false,
|
|
|
+ inboundVisible: false, // 入库申请
|
|
|
dataForm: {},
|
|
|
dataList: [],
|
|
|
pageIndex: 1,
|
|
@@ -324,6 +330,7 @@ export default {
|
|
|
this.noticeChangeAttachVisible = false
|
|
|
this.changeFormVisible = false
|
|
|
this.changeAttachVisible = false
|
|
|
+ this.inboundVisible = false
|
|
|
},
|
|
|
// 查询
|
|
|
search () {
|
|
@@ -472,6 +479,13 @@ export default {
|
|
|
return 'warning-row'
|
|
|
}
|
|
|
return ''
|
|
|
+ },
|
|
|
+ // 入库申请
|
|
|
+ inBound (id, display) {
|
|
|
+ this.inboundVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.inbound.init(id, display)
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|