|
@@ -90,9 +90,11 @@
|
|
<a-button
|
|
<a-button
|
|
size="small"
|
|
size="small"
|
|
type="link"
|
|
type="link"
|
|
|
|
+ v-if="detailPermissions(record)"
|
|
class="button-success"
|
|
class="button-success"
|
|
@click="handleDetail(record)"
|
|
@click="handleDetail(record)"
|
|
id="outboundOrderList-detail-btn">详情</a-button>
|
|
id="outboundOrderList-detail-btn">详情</a-button>
|
|
|
|
+ <span v-if="!(record.state=='WAIT'&&$hasPermissions('B_outboundOut')) && !(detailPermissions(record))">--</span>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
</a-spin>
|
|
</a-spin>
|
|
@@ -171,6 +173,24 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ detailPermissions (row) {
|
|
|
|
+ let state = false
|
|
|
|
+ // 根据出库类型和对应功能权限 判断是否有查看详情的权限
|
|
|
|
+ if ((row.outBizType == 'PURCHASE_RETURN') && this.$hasPermissions('B_purchaseReturnDetail')) { // 采购退货
|
|
|
|
+ state = true
|
|
|
|
+ } else if ((row.outBizType == 'SALES') && this.$hasPermissions('B_salesDetail')) { // 销售
|
|
|
|
+ state = true
|
|
|
|
+ } else if ((row.outBizType == 'DISPATCH_DEDUCT') && this.$hasPermissions('M_urgentDetail')) { // 急件冲减
|
|
|
|
+ state = true
|
|
|
|
+ } else if ((row.outBizType == 'SHOP_CALL_OUT') && this.$hasPermissions('B_storeCallOutDetail')) { // 店内调出
|
|
|
|
+ state = true
|
|
|
|
+ } else if ((row.outBizType == 'LINKAGE_CALL_OUT') && this.$hasPermissions('B_allocLinkageOutDetail')) { // 连锁调出
|
|
|
|
+ state = true
|
|
|
|
+ } else if ((row.outBizType == 'WAREHOUSE_CALL_OUT') && this.$hasPermissions('B_warehouseAllocationDetail')) { // 仓库调出
|
|
|
|
+ state = true
|
|
|
|
+ }
|
|
|
|
+ return state
|
|
|
|
+ },
|
|
// 时间 change
|
|
// 时间 change
|
|
dateChange (date) {
|
|
dateChange (date) {
|
|
this.queryParam.beginDate = date[0]
|
|
this.queryParam.beginDate = date[0]
|
|
@@ -199,7 +219,7 @@ export default {
|
|
} else if (row.outBizType == 'SPARE_PARTS_RETURN') { // 散件退货
|
|
} else if (row.outBizType == 'SPARE_PARTS_RETURN') { // 散件退货
|
|
this.$message.warning('该出库类型对应页面未开发')
|
|
this.$message.warning('该出库类型对应页面未开发')
|
|
// this.$router.push({ path: `/purchasingManagement/purchaseReturn/detail/${row.outBizSn}` })
|
|
// this.$router.push({ path: `/purchasingManagement/purchaseReturn/detail/${row.outBizSn}` })
|
|
- } else if (row.outBizType == 'SALES') { // 出库
|
|
|
|
|
|
+ } else if (row.outBizType == 'SALES') { // 销售
|
|
this.$router.push({ path: `/salesManagement/salesQuery/detail/${row.outBizSn}` })
|
|
this.$router.push({ path: `/salesManagement/salesQuery/detail/${row.outBizSn}` })
|
|
} else if (row.outBizType == 'DISPATCH_DEDUCT') { // 急件冲减
|
|
} else if (row.outBizType == 'DISPATCH_DEDUCT') { // 急件冲减
|
|
this.$router.push({ path: `/salesManagement/urgentItemsOffset/detail/${row.outBizSn}` })
|
|
this.$router.push({ path: `/salesManagement/urgentItemsOffset/detail/${row.outBizSn}` })
|