浏览代码

仓库管理单据限制删除按钮

sunlupeng 6 月之前
父节点
当前提交
d2818193a7

+ 4 - 4
config/dev.env.js

@@ -3,11 +3,11 @@ module.exports = {
 	ENV_CONFIG: '"dev"',
   // 登录用户名 admin123,密码 admin123
   // 本地环境
-  BASE_API: '"http://192.168.100.188:9086/admin"',
-  OS_API: '"http://192.168.100.188:9086/oneportal/login"',
+  // BASE_API: '"http://192.168.100.188:9086/admin"',
+  // OS_API: '"http://192.168.100.188:9086/oneportal/login"',
 	// 阿里云环境
-  // BASE_API: '"http://47.103.79.143:9086/admin"',
-  // OS_API: '"http://dgtcloud.dgtis.com/oneportal/login"'
+  BASE_API: '"http://47.103.79.143:9086/admin"',
+  OS_API: '"http://dgtcloud.dgtis.com/oneportal/login"'
   //正式环境
   // BASE_API: '"https://xiaoyou.dgtis.com/admin"',
   // OS_API: '"http://dgt.dgtis.com/oneportal/login"'

+ 1 - 1
src/views/stock/assembly/assembly.vue

@@ -64,7 +64,7 @@
         <template slot-scope="scope">
           <el-button v-if="scope.row.isRunFinish == '1'" type="success" size="small" @click="handleExecute(scope.row)">组装</el-button>
           <el-button v-if="scope.row.isRunFinish == '1'" type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
-          <el-button type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button v-if="scope.row.isRunFinish == '1'" type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 2 - 2
src/views/stock/breakage/breakage.vue

@@ -48,8 +48,8 @@
       </el-table-column>
       <el-table-column align="center" label="操作" width="240px" class-name="small-padding fixed-width">
         <template slot-scope="scope">
-          <el-button type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
-          <el-button type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button  type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
+          <el-button v-if="scope.row.isRunFinish == '1'" type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 1 - 1
src/views/stock/disassembly/disassembly.vue

@@ -64,7 +64,7 @@
         <template slot-scope="scope">
           <el-button v-if="scope.row.isRunFinish == '1'" type="success" size="small" @click="handleExecute(scope.row)">拆卸</el-button>
           <el-button v-if="scope.row.isRunFinish == '1'" type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
-          <el-button type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button v-if="scope.row.isRunFinish == '1'" type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 1 - 1
src/views/stock/requisition/requisition.vue

@@ -70,7 +70,7 @@
         <template slot-scope="scope">
           <el-button v-if="scope.row.isDelivery == '1'" type="success" size="small" @click="handleExecute(scope.row)">发货</el-button>
           <el-button v-if="scope.row.isDelivery == '1'" type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
-          <el-button type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button v-if="scope.row.isRunFinish == '1'" type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 1 - 1
src/views/stock/retrieval/retrieval.vue

@@ -63,7 +63,7 @@
         <template slot-scope="scope">
           <el-button v-if="scope.row.isRunFinish == '1'" type="success" size="small" @click="handleExecute(scope.row)">发货</el-button>
           <el-button v-if="scope.row.isRunFinish == '1'" type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
-          <el-button type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button v-if="scope.row.isRunFinish == '1'" type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 1 - 1
src/views/stock/stockCount/stockCount.vue

@@ -47,7 +47,7 @@
       <el-table-column align="center" label="操作" width="240px" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
-          <el-button type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button v-if="scope.row.isRunFinish == '1'" type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 1 - 1
src/views/stock/swap/swap.vue

@@ -60,7 +60,7 @@
         <template slot-scope="scope">
           <el-button v-if="scope.row.isDelivery == '1'" type="success" size="small" @click="handleExecute(scope.row)">发货</el-button>
           <el-button v-if="scope.row.isDelivery == '1'" type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
-          <el-button type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button v-if="scope.row.isRunFinish == '1'" type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 1 - 1
src/views/stock/warehousing/warehousing.vue

@@ -56,7 +56,7 @@
         <template slot-scope="scope">
           <el-button v-if="scope.row.isRunFinish == '1'" type="success" size="small" @click="handleExecute(scope.row)">入库</el-button>
           <el-button v-if="scope.row.isRunFinish == '1'" type="primary" size="small" @click="handleUpdate(scope.row)">编辑</el-button>
-          <el-button type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button v-if="scope.row.isRunFinish == '1'" type="danger" size="small" @click="handleDelete(scope.row)">删除</el-button>
         </template>
       </el-table-column>
     </el-table>