|
@@ -1,7 +1,7 @@
|
|
<!-- 委外列表 -->
|
|
<!-- 委外列表 -->
|
|
<template>
|
|
<template>
|
|
<div class="sale">
|
|
<div class="sale">
|
|
- <template v-if="!detailVisible && !addOrUpdateVisible && !changeFormVisible &&!changeAttachVisible && !attachVisible && !noticeChangeAttachVisible && !inboundVisible">
|
|
|
|
|
|
+ <template v-if="!detailVisible && !addOrUpdateVisible && !changeFormVisible &&!changeAttachVisible && !attachVisible && !noticeChangeAttachVisible && !inboundVisible && !outsourceVisible">
|
|
<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
|
|
@@ -123,7 +123,7 @@
|
|
prop="deadline"
|
|
prop="deadline"
|
|
header-align="center"
|
|
header-align="center"
|
|
align="center"
|
|
align="center"
|
|
- min-width="140"
|
|
|
|
|
|
+ min-width="160"
|
|
:show-tooltip-when-overflow="true"
|
|
:show-tooltip-when-overflow="true"
|
|
label="采购期限">
|
|
label="采购期限">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -131,7 +131,7 @@
|
|
prop="arrivedTime"
|
|
prop="arrivedTime"
|
|
header-align="center"
|
|
header-align="center"
|
|
align="center"
|
|
align="center"
|
|
- min-width="140"
|
|
|
|
|
|
+ min-width="160"
|
|
:show-tooltip-when-overflow="true"
|
|
:show-tooltip-when-overflow="true"
|
|
label="到料时间">
|
|
label="到料时间">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -220,13 +220,14 @@
|
|
fixed="right"
|
|
fixed="right"
|
|
header-align="center"
|
|
header-align="center"
|
|
align="center"
|
|
align="center"
|
|
- width="180"
|
|
|
|
|
|
+ width="150"
|
|
label="操作">
|
|
label="操作">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button v-if="isAuth('pur:commDetail:info')" type="text" size="small" @click="detailHandle(scope.row.purchaseCommission.purchaseId)">查看</el-button>
|
|
|
|
|
|
+ <el-button v-if="isAuth('pur:commDetail:info')" type="text" size="small" @click="detailHandle(scope.row.purchaseId)">查看</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: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>
|
|
|
|
|
|
+ <el-button v-if="isAuth('pur:commDetail:updatePurCommissionDetail') && (Number(scope.row.purchaseState) === 1)" type="text" size="small" @click="outsourceHandle(scope.row.purComDetailId)">委外</el-button>
|
|
|
|
+ <el-button v-if="isAuth('pur:commDetail:infoPutIn') && (Number(scope.row.purchaseState) === 2)" type="text" size="small" @click="inBound(scope.row.purComDetailId, false)">入库</el-button>
|
|
|
|
+ <el-button v-if="isAuth('pur:commDetail:infoPutInAgain') && (Number(scope.row.purchaseState) === 5)" type="text" size="small" @click="inBound(scope.row.purComDetailId, false)">再次入库</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -247,13 +248,14 @@
|
|
<attach-detail v-if="attachVisible" ref="attachDetail" @onChose="onChose"/>
|
|
<attach-detail v-if="attachVisible" ref="attachDetail" @onChose="onChose"/>
|
|
<notice-change-setting v-if="noticeChangeAttachVisible" ref="noticeChangeSetting" @onChose="onChose"/>
|
|
<notice-change-setting v-if="noticeChangeAttachVisible" ref="noticeChangeSetting" @onChose="onChose"/>
|
|
<change-form v-if="changeFormVisible" ref="changeForm" @refreshDataList="getDataList" @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"/>
|
|
<stock-order-inbound v-if="inboundVisible" ref="inbound" @refreshDataList="getDataList" @onChose="onChose"/>
|
|
|
|
+ <outsource-pop v-if="outsourceVisible" ref="refOutsource" @refreshDataList="getDataList" @onChose="onChose"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import AddOrUpdate from '../cus/contract-record-add-or-update'
|
|
|
|
|
|
+import AddOrUpdate from './outsource-add-or-update'
|
|
import Detail from './outsource-detail'
|
|
import Detail from './outsource-detail'
|
|
import { getOutsourceList } from '@/api/sale'
|
|
import { getOutsourceList } from '@/api/sale'
|
|
import AttachDetail from '../common/attach-detail'
|
|
import AttachDetail from '../common/attach-detail'
|
|
@@ -261,9 +263,11 @@ import NoticeChangeSetting from '../cus/contract-record-notice-change-setting'
|
|
import ChangeForm from '../cus/contract-record-change'
|
|
import ChangeForm from '../cus/contract-record-change'
|
|
import { getDictList } from '@/api/dict'
|
|
import { getDictList } from '@/api/dict'
|
|
import StockOrderInbound from '../warehouse/stock-order-inbound'
|
|
import StockOrderInbound from '../warehouse/stock-order-inbound'
|
|
|
|
+import OutsourcePop from './outsource-pop'
|
|
export default {
|
|
export default {
|
|
name: 'outsource',
|
|
name: 'outsource',
|
|
components: {
|
|
components: {
|
|
|
|
+ OutsourcePop,
|
|
AttachDetail,
|
|
AttachDetail,
|
|
AddOrUpdate,
|
|
AddOrUpdate,
|
|
Detail,
|
|
Detail,
|
|
@@ -280,6 +284,7 @@ export default {
|
|
noticeChangeAttachVisible: false,
|
|
noticeChangeAttachVisible: false,
|
|
changeFormVisible: false,
|
|
changeFormVisible: false,
|
|
inboundVisible: false, // 入库申请
|
|
inboundVisible: false, // 入库申请
|
|
|
|
+ outsourceVisible: false, // 委外
|
|
dataForm: {},
|
|
dataForm: {},
|
|
dataList: [],
|
|
dataList: [],
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
@@ -294,23 +299,23 @@ export default {
|
|
value: '全部'
|
|
value: '全部'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- code: '0',
|
|
|
|
|
|
+ code: '1',
|
|
value: '待委外'
|
|
value: '待委外'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- code: '1',
|
|
|
|
|
|
+ code: '2',
|
|
value: '委外中'
|
|
value: '委外中'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- code: '2',
|
|
|
|
|
|
+ code: '3',
|
|
value: '已入库'
|
|
value: '已入库'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- code: '3',
|
|
|
|
|
|
+ code: '4',
|
|
value: '入库中'
|
|
value: '入库中'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- code: '4',
|
|
|
|
|
|
+ code: '5',
|
|
value: '入库异常'
|
|
value: '入库异常'
|
|
}
|
|
}
|
|
], // 委外状态
|
|
], // 委外状态
|
|
@@ -331,6 +336,7 @@ export default {
|
|
this.changeFormVisible = false
|
|
this.changeFormVisible = false
|
|
this.changeAttachVisible = false
|
|
this.changeAttachVisible = false
|
|
this.inboundVisible = false
|
|
this.inboundVisible = false
|
|
|
|
+ this.outsourceVisible = false
|
|
},
|
|
},
|
|
// 查询
|
|
// 查询
|
|
search () {
|
|
search () {
|
|
@@ -486,6 +492,13 @@ export default {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.inbound.init(id, display)
|
|
this.$refs.inbound.init(id, display)
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ // 委外
|
|
|
|
+ outsourceHandle (id) {
|
|
|
|
+ this.outsourceVisible = true
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.refOutsource.init(id)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|