Explorar el Código

营销费用调整

qymljy hace 1 año
padre
commit
ad6311d539
Se han modificado 1 ficheros con 12 adiciones y 11 borrados
  1. 12 11
      src/components/marketingExpenses/index.vue

+ 12 - 11
src/components/marketingExpenses/index.vue

@@ -26,7 +26,7 @@
         type="primary"
         size="small"
         @click="addClick"
-        v-if="tool.checkAuth($route.name,'marketingExpenses')"
+        v-if="tool.checkAuth($route.name,'marketingExpenses') && userid == useridLogin"
       >{{$t(`新增费用明细`)}}</el-button>
       <el-table
         :data="list"
@@ -36,55 +36,55 @@
         :cell-style="{height:'40px',color:'#666666',fontWeight:'400'}"
         height="calc(100vh - 600px)"
       >
-        <el-table-column width="200" :label="$t(`单号`)">
+        <el-table-column min-width="200" :label="$t(`单号`)">
           <template slot-scope="scope">
             <span style="margin-left: 10px">{{ scope.row.billno?scope.row.billno:'--' }}</span>
           </template>
         </el-table-column>
-        <el-table-column width="150" :label="$t(`业务员`)">
+        <el-table-column min-width="150" :label="$t(`业务员`)">
           <template slot-scope="scope">
             <span style="margin-left: 10px">{{ scope.row.name?scope.row.name:'--' }}</span>
           </template>
         </el-table-column>
-        <el-table-column width="150" :label="$t(`部门`)">
+        <el-table-column min-width="150" :label="$t(`部门`)">
           <template slot-scope="scope">
             <span style="margin-left: 10px">{{ scope.row.depname?scope.row.depname:'--' }}</span>
           </template>
         </el-table-column>
-        <el-table-column width="200" :label="$t(`客户名称`)">
+        <el-table-column min-width="200" :label="$t(`客户名称`)">
           <template slot-scope="scope">
             <span
               style="margin-left: 10px"
             >{{ scope.row.enterprisename?scope.row.enterprisename:'--' }}</span>
           </template>
         </el-table-column>
-        <el-table-column width="200" :label="$t(`项目名称`)">
+        <el-table-column min-width="200" :label="$t(`项目名称`)">
           <template slot-scope="scope">
             <span style="margin-left: 10px">{{ scope.row.projectname?scope.row.projectname:'--' }}</span>
           </template>
         </el-table-column>
-        <el-table-column width="150" :label="$t(`联系人`)">
+        <el-table-column min-width="150" :label="$t(`联系人`)">
           <template slot-scope="scope">
             <span style="margin-left: 10px">{{ scope.row.names?scope.row.names:'--' }}</span>
           </template>
         </el-table-column>
-        <el-table-column width="200" :label="$t(`费用类型`)">
+        <el-table-column min-width="200" :label="$t(`费用类型`)">
           <template slot-scope="scope">
             <span
               style="margin-left: 10px"
             >{{ scope.row.feestypefullname?scope.row.feestypefullname:'--' }}</span>
           </template>
         </el-table-column>
-        <el-table-column width="200" :label="$t(`营销费用(元)`)">
+        <el-table-column min-width="200" :label="$t(`营销费用(元)`)">
           <template slot-scope="scope">
             <span style="margin-left: 10px">{{ scope.row.amount?scope.row.amount:'--' }}</span>
           </template>
         </el-table-column>
         <el-table-column
-          width="120"
+          min-width="120"
           :label="$t(`操作`)"
           fixed="right"
-          v-if="tool.checkAuth($route.name,'marketingExpenses')"
+          v-if="tool.checkAuth($route.name,'marketingExpenses') && userid == useridLogin"
         >
           <template slot-scope="scope">
             <el-button type="text" class="inline-16" @click="editClick(scope.row)">{{$t(`编辑`)}}</el-button>
@@ -158,6 +158,7 @@ export default {
   data() {
     return {
       dialogVisible: false,
+      useridLogin:JSON.parse(sessionStorage.getItem('active_account')).userid,
       list: [],
       param: {
         id: 20240629082704,