caojunjie 4 лет назад
Родитель
Сommit
0db9b59849
3 измененных файлов с 9 добавлено и 3 удалено
  1. 1 1
      src/views/index.vue
  2. 1 1
      src/views/morePage/stock/index.vue
  3. 7 1
      src/views/purchaseRequest/index.vue

+ 1 - 1
src/views/index.vue

@@ -183,7 +183,7 @@
                   <span v-else-if="item.refno2 === 'XS'">销售出库</span>
                   <span v-else-if="item.refno2 === 'XMGL'">项目管理</span>
                 </div>
-                <div class="home_stock_table" @click="approval(item)">
+                <div class="home_stock_table" @click="item.audit === '审核通过'?$message.error('该单据已审批通过不允许再次审批'):approval(item)">
                   查看详情
                 </div>
               </div>

+ 1 - 1
src/views/morePage/stock/index.vue

@@ -359,7 +359,7 @@
       ></el-table-column> -->
       <el-table-column label="操作" width="80">
         <template slot-scope="scope">
-          <span style="cursor: pointer" @click="approval(scope.row)"
+          <span style="cursor: pointer" @click="scope.row.audit === '审核通过'?$message.error('该单据已审批通过不允许再次审批'):approval(scope.row)"
             >审核业务</span
           >
         </template>

+ 7 - 1
src/views/purchaseRequest/index.vue

@@ -983,7 +983,7 @@ export default {
     },
     //查询列数据
     getRow(data,list,add) {
-      console.log(data,list)
+      console.log(data,list,add)
       select(data).then((res) => {
         if (data.tableName === '采购申请详情') {
           if (res.data.length != 0) {
@@ -992,6 +992,7 @@ export default {
             this.setRowList = res.data
             this.purchaseList.columnList = this.purchaseList.columnList.filter((e) => e.checked == 0)
             // this.waitFor = true
+
           } else {
             this.$set(this.purchaseList,'columnList',this.$options.data().contentStyle)
             this.setRowList = this.$options.data().contentStyle
@@ -1037,6 +1038,11 @@ export default {
             if (response.data.length != 0) {
               this.before = response.data[0].userName
               if (this.$refs.avatar.form.fBillstatus === 6 && this.before == this.lander) {
+                // this.contentButton.forEach(item =>{
+                //   if (item.name === '审批'){
+                //
+                //   }
+                // })
                 this.contentButton.push({
                   type: 'danger',
                   size: 'mini',