gjy 3 年之前
父節點
當前提交
c02a3f0185
共有 1 個文件被更改,包括 7 次插入8 次删除
  1. 7 8
      src/views/houseSelfCollect/inspectionManagement.vue

+ 7 - 8
src/views/houseSelfCollect/inspectionManagement.vue

@@ -79,8 +79,6 @@
            <span class="water-left">{{scope.row.buckleMiscellaneous}} </span> 
            <span class="water-left">{{scope.row.buckleMiscellaneous}} </span> 
           <span class="water-line">|</span> 
           <span class="water-line">|</span> 
           <span class="water-right">{{scope.row.reBuckleMiscellaneous ? scope.row.reBuckleMiscellaneous : '未复检'}}</span> 
           <span class="water-right">{{scope.row.reBuckleMiscellaneous ? scope.row.reBuckleMiscellaneous : '未复检'}}</span> 
-           <!-- <div v-if="scope.row.paramType == 1"> <span>{{scope.row.buckleMiscellaneous}} | {{scope.row.reBuckleMiscellaneous ? scope.row.reBuckleMiscellaneous : '未复检'}}</span></div> -->
-         <!-- <div v-else>{{scope.row.reBuckleMiscellaneous}}</div> -->
          </div>
          </div>
         </template>
         </template>
        </el-table-column>
        </el-table-column>
@@ -100,7 +98,7 @@
       <el-table-column prop="qualityInspector" label="质检员">
       <el-table-column prop="qualityInspector" label="质检员">
           <template scope="scope">
           <template scope="scope">
             <span>{{scope.row.qualityInspector}}</span>
             <span>{{scope.row.qualityInspector}}</span>
-            <span v-if="scope.row.reInspector && scope.row.qualityInspector != scope.row.reInspector">,{{scope.row.reInspector}}</span>
+            <span v-if="scope.row.reInspector && scope.row.qualityInspector != scope.row.reInspector">{{scope.row.reInspector}}</span>
           </template>
           </template>
 
 
 
 
@@ -119,15 +117,14 @@
       </el-table-column>
       </el-table-column>
       <el-table-column width="500" label="操作">
       <el-table-column width="500" label="操作">
         <template slot-scope="scope">
         <template slot-scope="scope">
-          <el-button @click="inspectInfo(scope.row, 2)" v-hasPermission="`acquisitionManagement.acquisitionQuality.view`">查看</el-button>
+           <el-button @click="inspectInfo(scope.row, 2)" v-hasPermission="`acquisitionManagement.acquisitionQuality.view`">查看</el-button>
           <el-button @click="inspectInfo(scope.row, 3)" v-if="scope.row.status=='已初检'&& scope.row.confirm!='1'" v-hasPermission="`acquisitionManagement.acquisitionQuality.initial`">初检</el-button>
           <el-button @click="inspectInfo(scope.row, 3)" v-if="scope.row.status=='已初检'&& scope.row.confirm!='1'" v-hasPermission="`acquisitionManagement.acquisitionQuality.initial`">初检</el-button>
           <div v-show="scope.row.confirm !='1' && scope.row.status == '已复检'" style="display: inline-block;">
           <div v-show="scope.row.confirm !='1' && scope.row.status == '已复检'" style="display: inline-block;">
            <el-button @click="inspectInfo(scope.row, 5)" v-hasPermission="`acquisitionManagement.acquisitionQuality.con`">确认</el-button></div>
            <el-button @click="inspectInfo(scope.row, 5)" v-hasPermission="`acquisitionManagement.acquisitionQuality.con`">确认</el-button></div>
            <el-button @click="inspectInfo(scope.row, 4)" v-if="scope.row.confirm !='1'" v-hasPermission="`acquisitionManagement.acquisitionQuality.again`">复检</el-button>
            <el-button @click="inspectInfo(scope.row, 4)" v-if="scope.row.confirm !='1'" v-hasPermission="`acquisitionManagement.acquisitionQuality.again`">复检</el-button>
-            <!-- <el-button @click="inspectInfo(scope.row, 3)" v-if="scope.row.status=='已初检'" v-hasPermission="`acquisitionManagement.acquisitionQuality.edit`">初检</el-button>
-            <el-button @click="inspectInfo(scope.row, 5)" v-if="scope.row.confirm!='1'" v-hasPermission="`acquisitionManagement.acquisitionQuality.edit`">确认</el-button>
-            <el-button @click="inspectInfo(scope.row, 4)" v-if="scope.row.status!='1'" v-hasPermission="`acquisitionManagement.acquisitionQuality.edit`">复检</el-button> -->
-          <el-button @click="del(scope.row)" v-if="!scope.row.weighingManagement || scope.row.weighingManagement.status=='已质检'" type="danger" v-hasPermission="`acquisitionManagement.acquisitionQuality.delete`">删除</el-button>
+          <div  style="display: inline-block;" v-if="scope.row.weighingManagement&&scope.row.weighingManagement.status=='已质检'">
+            <el-button @click="del(scope.row)" type="danger" v-hasPermission="`acquisitionManagement.acquisitionQuality.delete`">删除</el-button>
+          </div>
           <el-button @click="print(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionQuality.print`">打印</el-button>
           <el-button @click="print(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionQuality.print`">打印</el-button>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
@@ -232,6 +229,7 @@ export default {
       })
       })
     },
     },
     warehouseNameChange(e) {
     warehouseNameChange(e) {
+      // console.log(e)
       for(let i = 0 ; i < this.warehouseList.length; i++){
       for(let i = 0 ; i < this.warehouseList.length; i++){
         if(this.warehouseList[i].value == e){
         if(this.warehouseList[i].value == e){
            this.warehouseName = this.warehouseList[i].value
            this.warehouseName = this.warehouseList[i].value
@@ -336,6 +334,7 @@ export default {
       })
       })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
+          console.log(response)
           this.inspect = response.records
           this.inspect = response.records
           this.deptBudgetTotal = response.total
           this.deptBudgetTotal = response.total
         })
         })