Explorar el Código

产品检验管理调整

qymljy hace 7 meses
padre
commit
6382645222
Se han modificado 1 ficheros con 3 adiciones y 8 borrados
  1. 3 8
      src/HDrpManagement/productInspectionMag/modules/checkInfo.vue

+ 3 - 8
src/HDrpManagement/productInspectionMag/modules/checkInfo.vue

@@ -87,12 +87,7 @@
         <div v-else-if="scope.column.columnname == 'operation'">
           <el-button type="text" size="small" v-if="isAdd && nowIndex == scope.column.data.rowindex" @click="onSave(scope.column.data)" style="color: #e6a23c" :disabled="disabled">{{$t(`保存`)}}</el-button>
           <el-button type="text" size="small" class="inline-16" v-else @click="onEdit(scope.column.data)" :disabled="disabled">{{$t(`编辑`)}}</el-button>
-          <el-popconfirm
-              :title="$t(`确定删除该明细吗?`)"
-              @confirm="delInfo(scope.column.data)"
-          >
-            <el-button slot="reference" size="small" type="text" v-if="nowIndex != scope.column.data.rowindex" style="color: #f56c6c" :disabled="disabled">{{$t(`删除`)}}</el-button>
-          </el-popconfirm>
+          <el-button size="small" type="text" v-if="nowIndex != scope.column.data.rowindex" style="color: #f56c6c" :disabled="disabled" @click="delInfo(scope.column.data)">{{$t(`删除`)}}</el-button>
         </div>
         <div v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname] : '--'}}</div>
       </template>
@@ -162,9 +157,7 @@ export default {
     },
     async queryType(){
       const res = await this.$store.dispatch("optiontypeselect", "inspectionitems")
-      // const res1 = await this.$store.dispatch("optiontypeselect", "technicalrequirements")
       this.optionnameList = res.data
-      // this.askList = res1.data
     },
     async delInfo(data){
       const res = await this.$api.requested({
@@ -225,10 +218,12 @@ export default {
 
     },
     onEdit(data){
+      this.queryType()
       this.nowIndex = data.rowindex
       this.isAdd = true
     },
     selectChange(val){
+      this.list[this.nowIndex - 1].ask = ''
       this.optionnameList.forEach(item=>{
         if (val == item.value){
           this.askList = item.subvalues