|
@@ -20,8 +20,8 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="table-operator" style="margin-bottom: 8px;">
|
|
|
- <a-button v-if="$auth('purchase-purchase-orders-add')" type="primary" icon="plus" @click="$refs.baseForm.base()">采购计划</a-button>
|
|
|
-<!-- <a-button v-if="$auth('purchase-purchase-orders-add')" style="margin-left: 8px" type="primary" icon="plus" @click="$refs.addSpareForm.base()">新增物料</a-button>-->
|
|
|
+ <a-button v-if="$auth('purchase-purchase-orders-add')" type="primary" icon="plus" @click="$refs.baseForm.base()">采购申请</a-button>
|
|
|
+ <!-- <a-button v-if="$auth('purchase-purchase-orders-add')" style="margin-left: 8px" type="primary" icon="plus" @click="$refs.addSpareForm.base()">新增物料</a-button>-->
|
|
|
<!-- <a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('purchase-purchase-orders-del')">
|
|
|
<a-menu slot="overlay">
|
|
|
<a-popconfirm title="是否要删除所选数据?" @confirm="batchDelete()">
|
|
@@ -56,7 +56,7 @@
|
|
|
@click="handlePush(record)"
|
|
|
>推送</operation-button>
|
|
|
<operation-button
|
|
|
- v-if="record.status>2&&record.status<8"
|
|
|
+ v-if="record.status>2&&record.status<8"
|
|
|
@click="handleViewPurchase(record)"
|
|
|
>同步</operation-button>
|
|
|
<operation-button
|
|
@@ -83,7 +83,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { STable, Ellipsis } from '@/components'
|
|
|
-import { getPurchaseOrderPage2, deletePurchaseOrder2, getPurchaseOrderInfo, pushPurchaseOrder, wastePurchaseOrder,getPurchaseOrderList } from '@/api/purchase/purchase-order'
|
|
|
+import { getPurchaseOrderPage2, deletePurchaseOrder2, getPurchaseOrderInfo, pushPurchaseOrder, wastePurchaseOrder, getPurchaseOrderList } from '@/api/purchase/purchase-order'
|
|
|
import BaseForm from './modules/BaseForm.vue'
|
|
|
import Detail from './modules/Detail.vue'
|
|
|
import AddSpareForm from '@/views/store/sparestore/modules/AddSpareForm'
|
|
@@ -94,7 +94,7 @@ export default {
|
|
|
Ellipsis,
|
|
|
BaseForm,
|
|
|
AddSpareForm,
|
|
|
- Detail,
|
|
|
+ Detail
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -316,12 +316,12 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleViewPurchase (record) {
|
|
|
- getPurchaseOrderList({yongYouId:record.yongYouId})
|
|
|
- .then(res => {
|
|
|
- this.$message.info('同步成功')
|
|
|
- this.handleOk()
|
|
|
- this.$refs.table.clearSelected()
|
|
|
- })
|
|
|
+ getPurchaseOrderList({ yongYouId: record.yongYouId })
|
|
|
+ .then(res => {
|
|
|
+ this.$message.info('同步成功')
|
|
|
+ this.handleOk()
|
|
|
+ this.$refs.table.clearSelected()
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|