|
@@ -214,6 +214,7 @@
|
|
|
<el-button v-if="isAuth('purchase:detail:updatePurchaseDetail')&& (Number(scope.row.approvalState) === 3) && (Number(scope.row.purchaseState) === 1)" type="text" size="small" @click="operateHandle(scope.row)">采购</el-button>
|
|
|
<el-button v-if="isAuth('purchase:detail:infoPutIn') && (Number(scope.row.approvalState) === 3 && (Number(scope.row.purchaseState) === 2 || Number(scope.row.purchaseState) === 5))" type="text" size="small" @click="inboundHandle(scope.row)">入库</el-button>
|
|
|
<el-button v-if="isAuth('purchase:detail:infoPutInAgain') && (Number(scope.row.purchaseState) === 5)" type="text" size="small" @click="inboundHandle(scope.row.procurementId)">再次入库</el-button>
|
|
|
+ <el-button type="text" size="small" @click="exportHandle(scope.row.procurementId)">导出</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -249,6 +250,7 @@
|
|
|
import { getPurchaseList, revokePurchase } from '@/api/sale'
|
|
|
import NoticeChangeSetting from './purchase-notice-change-setting'
|
|
|
import AmountMaskSetting from './purchase-amount-mask-setting'
|
|
|
+ import Vue from 'vue'
|
|
|
export default {
|
|
|
name: 'purchase',
|
|
|
components: {
|
|
@@ -445,6 +447,13 @@
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.amountMaskSetting.init()
|
|
|
})
|
|
|
+ },
|
|
|
+ exportHandle (procurementId) {
|
|
|
+ if (!procurementId) {
|
|
|
+ this.$message.error('参数不正确!')
|
|
|
+ }
|
|
|
+ let url = this.$http.adornUrl('/biz-service/purchaseDetail/exportExcel/' + procurementId)
|
|
|
+ window.open(url + '?_token=' + Vue.cookie.get('token'), '_blank')
|
|
|
}
|
|
|
}
|
|
|
}
|