|
@@ -101,7 +101,7 @@
|
|
bordered>
|
|
bordered>
|
|
<!-- 采购退货单号 -->
|
|
<!-- 采购退货单号 -->
|
|
<template slot="purchaseReceiptNo" slot-scope="text, record">
|
|
<template slot="purchaseReceiptNo" slot-scope="text, record">
|
|
- <span v-if="$hasPermissions('B_purchaseReturnDetail')" id="purchaseReceiptList-detail-btn" class="link-bule" @click="handleDetail(record)">{{ record.sparePartsNo }}</span>
|
|
|
|
|
|
+ <span v-if="$hasPermissions('B_purchaseReceiptDetail')" id="purchaseReceiptList-detail-btn" class="link-bule" @click="handleDetail(record)">{{ record.sparePartsNo }}</span>
|
|
<span v-else>{{ record.sparePartsNo }}</span>
|
|
<span v-else>{{ record.sparePartsNo }}</span>
|
|
</template>
|
|
</template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
@@ -113,23 +113,23 @@
|
|
type="link"
|
|
type="link"
|
|
class="button-warning"
|
|
class="button-warning"
|
|
@click="handleCheck(record)"
|
|
@click="handleCheck(record)"
|
|
- v-if="$hasPermissions('B_purchaseReturnRate') && record.state ==='WAIT_AUDIT'&&(!record.thirdpartyBizState)"
|
|
|
|
|
|
+ v-if="$hasPermissions('B_purchaseReceiptAudit') && record.state ==='WAIT_AUDIT'&&(!record.thirdpartyBizState)"
|
|
id="purchaseReceiptList-examine-btn">审核</a-button>
|
|
id="purchaseReceiptList-examine-btn">审核</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
@click="handleEdit(record)"
|
|
@click="handleEdit(record)"
|
|
class="button-info"
|
|
class="button-info"
|
|
- v-if="$hasPermissions('B_purchaseReturnEdit') && (record.state ==='WAIT_SUBMIT'||record.state ==='WAIT_AUDIT'||record.state ==='REJECT') && (!record.thirdpartyBizState)"
|
|
|
|
|
|
+ v-if="$hasPermissions('B_purchaseReceiptEdit') && (record.state ==='WAIT_SUBMIT'||record.state ==='WAIT_AUDIT'||record.state ==='REJECT') && (!record.thirdpartyBizState)"
|
|
id="purchaseReceiptList-edit-btn">编辑</a-button>
|
|
id="purchaseReceiptList-edit-btn">编辑</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
- v-if="$hasPermissions('B_purchaseReturnDel')&&isShowCancelBtn(record)"
|
|
|
|
|
|
+ v-if="$hasPermissions('B_purchaseReceiptDel')&&isShowCancelBtn(record)"
|
|
@click="handleDel(record)"
|
|
@click="handleDel(record)"
|
|
class="button-error"
|
|
class="button-error"
|
|
id="purchaseReceiptList-del-btn">取消</a-button>
|
|
id="purchaseReceiptList-del-btn">取消</a-button>
|
|
- <a-tooltip placement="left">
|
|
|
|
|
|
+ <a-tooltip placement="left" v-if="$hasPermissions('B_purchaseReceiptTransportNo') && (record.state === 'WAIT_PUT'&&record.thirdpartyBizState==='FINISH')||(record.state === 'FINISH'&&record.thirdpartyBizState==='FINISH')">
|
|
<template slot="title">
|
|
<template slot="title">
|
|
<span>物流单号:{{ record.transportNo }}</span>
|
|
<span>物流单号:{{ record.transportNo }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -137,7 +137,6 @@
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
class="button-warning"
|
|
class="button-warning"
|
|
- v-if="$hasPermissions('B_purchaseReturnRate') && (record.state === 'WAIT_PUT'&&record.thirdpartyBizState==='FINISH')||(record.state === 'FINISH'&&record.thirdpartyBizState==='FINISH')"
|
|
|
|
id="purchaseReceiptList-logistics-btn">
|
|
id="purchaseReceiptList-logistics-btn">
|
|
物流
|
|
物流
|
|
</a-button>
|
|
</a-button>
|
|
@@ -147,14 +146,14 @@
|
|
type="link"
|
|
type="link"
|
|
class="button-warning"
|
|
class="button-warning"
|
|
@click="addVoucher(record)"
|
|
@click="addVoucher(record)"
|
|
- v-if="$hasPermissions('B_purchaseReturnRate') && isShowUploadBtn(record)"
|
|
|
|
|
|
+ v-if="$hasPermissions('B_purchaseReceiptAddVoucher') && isShowUploadBtn(record)"
|
|
id="purchaseReceiptList-addVoucher-btn">上传凭证</a-button>
|
|
id="purchaseReceiptList-addVoucher-btn">上传凭证</a-button>
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
class="button-warning"
|
|
class="button-warning"
|
|
@click="seeVoucher(record)"
|
|
@click="seeVoucher(record)"
|
|
- v-if="$hasPermissions('B_purchaseReturnRate') && isShowCheckBtn(record)"
|
|
|
|
|
|
+ v-if="$hasPermissions('B_purchaseReceiptSeeVoucher') && isShowCheckBtn(record)"
|
|
id="purchaseReceiptList-seeVoucher-btn">查看凭证</a-button>
|
|
id="purchaseReceiptList-seeVoucher-btn">查看凭证</a-button>
|
|
<span v-if="isShowNoBtn(record)">--</span>
|
|
<span v-if="isShowNoBtn(record)">--</span>
|
|
</template>
|
|
</template>
|
|
@@ -257,7 +256,7 @@ export default {
|
|
{ title: '提交时间', dataIndex: 'updateDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '提交时间', dataIndex: 'updateDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '供应商名称', dataIndex: 'supplierName', align: 'left', width: '14%', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '供应商名称', dataIndex: 'supplierName', align: 'left', width: '14%', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '采购数量', dataIndex: 'productTotalQty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '采购数量', dataIndex: 'productTotalQty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
- { title: '采购金额', dataIndex: 'productTotalCost', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
|
|
|
|
|
|
+ // { title: '采购金额', dataIndex: 'productTotalCost', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
|
|
{ title: '入库仓库', dataIndex: 'warehouseName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '入库仓库', dataIndex: 'warehouseName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '关联单号', dataIndex: 'lockBizNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '关联单号', dataIndex: 'lockBizNo', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '客户名称', dataIndex: 'lockBizDealerName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '客户名称', dataIndex: 'lockBizDealerName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
@@ -266,9 +265,9 @@ export default {
|
|
{ title: '备注', dataIndex: 'bizRemark', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '备注', dataIndex: 'bizRemark', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }
|
|
]
|
|
]
|
|
- // if (this.$hasPermissions('M_purchaseReturnList_costPrice')) { // 售价权限
|
|
|
|
- // arr.splice(7, 0, { title: '采购金额', dataIndex: 'totalCost', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } })
|
|
|
|
- // }
|
|
|
|
|
|
+ if (this.$hasPermissions('M_purchaseReceiptList_costPrice')) { // 成本价权限
|
|
|
|
+ arr.splice(6, 0, { title: '采购金额', dataIndex: 'productTotalCost', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } })
|
|
|
|
+ }
|
|
return arr
|
|
return arr
|
|
}
|
|
}
|
|
},
|
|
},
|