Browse Source

修改出库管理权限

mxx 3 years ago
parent
commit
4b28511f32

+ 3 - 3
src/views/outboundManagement/collectionManagement.vue

@@ -15,8 +15,8 @@
             :type="searchType == '' ? 'primary' : ''"
             @click="handlestatus('')"
         >全部</ws-button>
-        <ws-button type="primary" @click="adopt">备注</ws-button>
-        <ws-button type="primary" @click="collect">收款</ws-button>
+        <ws-button type="primary" @click="adopt" v-hasPermission=" `outbound.collectionOut.view`">备注</ws-button>
+        <ws-button type="primary" @click="collect" v-hasPermission=" `outbound.collectionOut.new`">收款</ws-button>
       </template>
       <template slot="right">
         <el-col
@@ -170,7 +170,7 @@
         label="操作"
         width="200"
       ><template scope="scope">
-        <el-button @click="collectment(2,scope.row)">查看</el-button>
+        <el-button @click="collectment(2,scope.row)" v-hasPermission="`outbound.collectionOut.weight`">查看</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 1 - 1
src/views/outboundManagement/qualityInspection.vue

@@ -115,7 +115,7 @@
                 :disabled="disabled"
               />
             </ws-form-item>
-            <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
+            <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
               <ws-input
                 v-model="inspect.bulkDensity"
                 placeholder="请输入容重"

+ 2 - 2
src/views/outboundManagement/qualityInspectionManagement.vue

@@ -65,8 +65,8 @@
       <el-table-column prop="status" label="状态"></el-table-column>
       <el-table-column width="300" label="操作">
         <template slot-scope="scope">
-          <span v-if="scope.row.status == '已质检'"><el-button @click="qualityInspection(scope.row, 2)">查看</el-button></span>
-          <span v-if="scope.row.status == '已称毛重' || scope.row.status == '' || scope.row.status == null"><el-button @click="qualityInspection(scope.row, 1)">质检</el-button></span>
+          <span v-if="scope.row.status == '已质检'" v-hasPermission=" `outbound.acquisitionQualityOut.view`"><el-button @click="qualityInspection(scope.row, 2)">查看</el-button></span>
+          <span v-if="scope.row.status == '已称毛重' || scope.row.status == '' || scope.row.status == null" v-hasPermission=" `outbound.acquisitionQualityOut.edit`"><el-button @click="qualityInspection(scope.row, 1)">质检</el-button></span>
         </template>
       </el-table-column>
     </el-table>

+ 2 - 0
src/views/outboundManagement/weighing.vue

@@ -57,6 +57,8 @@
 								disabled /> -->
 								<ws-input @input="calculation" v-model="weighingList.tare" placeholder="未获取到皮重" 
 								maxlength="100" size="small" :disabled="disabled2"/>
+								<!-- <ws-input @input="calculation" v-model="weighingList.tare" placeholder="未获取到皮重" 
+								maxlength="100" size="small"/> -->
 						</ws-form-item>
 						<el-button type="primary" v-if="this.types == 2 || this.types == null" @click="openPort">重新获取</el-button>
 						<!-- <div class="formItem"> -->

+ 4 - 4
src/views/outboundManagement/weighingManagement.vue

@@ -3,7 +3,7 @@
 	<div>
 		<BaseHeaderLayout :leftSpan="12">
 			<template slot="left">
-				<ws-button type="primary" @click="weighing(3)">添加</ws-button>
+				<ws-button type="primary" @click="weighing(3)" v-hasPermission=" `outbound.acquisitionWeightOut.new`">添加</ws-button>
 			</template>
 			<!-- <template slot="left"> </template> -->
 			<template slot="right">
@@ -58,9 +58,9 @@
 			<el-table-column prop="status" label="状态"></el-table-column>
 			<el-table-column width="300" prop="contractNo1" label="操作">
 				<template slot-scope="scope">
-					<el-button @click="weighing(scope.row, 1)" v-if="scope.row.status != '已质检'">毛重</el-button>
-					<el-button @click="weighing(scope.row, 2)" v-if="scope.row.status == '已称皮重'">皮重</el-button>
-					<el-button @click="del(scope.row)" v-if="scope.row.status == '已称皮重'">删除</el-button>
+					<el-button @click="weighing(scope.row, 1)" v-if="scope.row.status != '已质检'" v-hasPermission="`outbound.acquisitionWeightOut.mao`">毛重</el-button>
+					<el-button @click="weighing(scope.row, 2)" v-if="scope.row.status == '已称皮重'" v-hasPermission="`outbound.acquisitionWeightOut.weight`"> 皮重</el-button>
+					<el-button @click="del(scope.row)" v-if="scope.row.status == '已称皮重'" v-hasPermission="`outbound.acquisitionWeightOut.view`">删除</el-button>
 				</template>
 			</el-table-column>
 		</el-table>