|
@@ -201,8 +201,8 @@
|
|
|
|
|
|
<!-- 操作 默认按钮 未提交未推送-->
|
|
|
<span slot="operationSlot" slot-scope="text, record">
|
|
|
- <a href="javascript:void(0);" @click="declareElements(record)" style="color:green" v-has="'cymx:sbys'" v-if="dd">报关要素</a>
|
|
|
- <a href="javascript:void(0);" @click="declareElements(record)" style="color:green" v-if="!dd">报关要素</a>
|
|
|
+ <a href="javascript:void(0);" @click="declareElements(record)" style="color:green" v-if="authority">报关要素</a>
|
|
|
+ <a href ="javascript:return false;" style="opacity: 0.2" v-if="!authority">报关要素</a>
|
|
|
<a-divider type="vertical" />
|
|
|
<a href="javascript:void(0);" @click="itemNumberElement(record)" style="color:green">维护款号成分</a>
|
|
|
|
|
@@ -327,7 +327,7 @@ import declareElementsModal from '@views/shipment-details/declareElementsModal.v
|
|
|
import ReferOrderDataModal from '@views/shipment-details/referOrderDataModal.vue'
|
|
|
import itemNumEleModal from '@views/shipment-details/itemNumEleModal.vue'
|
|
|
import { randomUUID } from '@/utils/util'
|
|
|
-
|
|
|
+import { USER_AUTH } from "@/store/mutation-types"
|
|
|
import {
|
|
|
shipmentList,
|
|
|
deleteShipment,
|
|
@@ -366,7 +366,7 @@ export default {
|
|
|
exportButton: '1',
|
|
|
exportButton1:'1',
|
|
|
id: '',
|
|
|
- dd:false,
|
|
|
+ authority:true,
|
|
|
selectedNumber:0,//已选择条数
|
|
|
monthStartDate:'',//本月1号
|
|
|
nextMonthStartDate:'',//下月1号
|
|
@@ -679,11 +679,17 @@ export default {
|
|
|
if(this.queryParam.flourOrGarment == '1'){
|
|
|
this.exportButton ='0'
|
|
|
this.exportButton1 = '1'
|
|
|
- this.dd = true
|
|
|
}else {
|
|
|
this.exportButton ='1'
|
|
|
this.exportButton1 = '0'
|
|
|
- this.dd = false
|
|
|
+ }
|
|
|
+ let allAuthes = JSON.parse(sessionStorage.getItem(USER_AUTH));
|
|
|
+ var quanXian = []
|
|
|
+ allAuthes.map(item=>{ quanXian.push(item.action)})
|
|
|
+ if(quanXian.indexOf('cymx:sbys')==-1 && this.queryParam.flourOrGarment=='0'){
|
|
|
+ this.authority = true
|
|
|
+ }else if(quanXian.indexOf('cymx:sbys')==-1 && this.queryParam.flourOrGarment=='1'){
|
|
|
+ this.authority = false
|
|
|
}
|
|
|
this.shipmentListData = res.result.records
|
|
|
for (var i=0; i<this.shipmentListData.length; i++){
|