duanxiaoduan 2 years ago
parent
commit
17b9b0bcde

+ 2 - 3
.env.development

@@ -6,10 +6,9 @@ ENV = 'development'
 # VUE_APP_BASE_API = 'http://210.16.189.72:8081/'
 
  
-# VUE_APP_BASE_API = 'http://kpttest.kptyun.com/'
+VUE_APP_BASE_API = 'http://kpttest.kptyun.com/'
 
-
-  VUE_APP_BASE_API = 'http://lhpc81.kptyun.com/'
+# VUE_APP_BASE_API = 'http://lhpc81.kptyun.com/'
  
 
 # 沙巍

BIN
dist.zip


+ 7 - 7
src/views/formulationPlan/dailyExecutionPlan/typePage/materialIssuancePlan.vue

@@ -302,12 +302,8 @@
                           <div class="barname">
                             <span
                               style="float: left;width: 70px;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"
-                            >{{ item.barname }}</span>
-                            <b
-                              style="background: red;float: right;width: 18px;font-size: 18px;"
-                              class="el-icon-check"
-                              @click="clickBar(item)"
-                            />
+                            >{{ item.barname }}</span>
+                            <button style="background: red;float: right;width: 18px;color: #fff;font-size: 18px;border: none;text-align: center;" :disabled="isokDisable" @click="clickBar(item)">√</button>
                           </div>
                         </el-tooltip>
                         <div class="barWeight" :style="{ background: 'rgba('+item.background2+ ',0.1)' }">
@@ -1169,7 +1165,11 @@ export default {
         }
       })
     },
-    clickBar(item) {
+    clickBar(item) {
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
       console.log('点击了栏舍item==>', item)
       this.create.temp.sumweight = parseFloat(this.create.temp.sumweight)
       // if(this.create.temp.tclassname == '固定式'){

+ 5 - 27
src/views/formulationPlan/materialIssuancePlan/index.vue

@@ -248,7 +248,7 @@
                           <div slot="content">{{ item.barname }}</div>
                           <div class="barname">
                             <span style="float: left;width: 70px;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">{{ item.barname }}</span>
-                            <b style="background: red;float: right;width: 18px;font-size: 18px;" class="el-icon-check" @click="clickBar(item)" />
+                            <button style="background: red;float: right;color: #fff;width: 18px;font-size: 18px;border: none;text-align: center;" :disabled="isokDisable" @click="clickBar(item)">√</button>
                           </div>
                         </el-tooltip>
                         <div class="barWeight" :style="{ background: 'rgba('+item.background2+ ',0.1)' }"> {{ item.weight }} </div>
@@ -930,6 +930,10 @@ export default {
       })
     },
     clickBar(item) {
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 1000)
       console.log('点击了栏舍item==>', item)
       this.create.temp.sumweight = parseFloat(this.create.temp.sumweight)
       console.log('temp==>',this.create.temp)
@@ -1008,32 +1012,6 @@ export default {
           this.getCreateList1()
         })
       })
-      this.requestParam = {}
-      this.requestParam.common = { 'returnmap': '0' }
-      this.requestParam.data = []
-      this.requestParam.data[0] = { 'name': 'updateLpplandtlSorts', 'type': 'e',
-        'parammaps': { pastureid: evt.pastureid, sort: evt.sort, lppid: evt.id }
-      }
-      // this.requestParam.data[1] = { 'name': 'insertLppd', 'type': 'e',
-      //   'parammaps': {
-      //     pastureid: evt.pastureid, lppid: evt.id, barid: item.barid, barname: item.barname, fpdid: item.id, fttype: item.fttype,
-      //     lweight: item.weight, sort: evt.sort, tmrid: evt.tmrid, tmrname: evt.tmrname,
-      //     background: item.background, ccountradio: item.ccountradio, cowcount: item.cowcount
-      //   }
-      // }
-      this.requestParam.data[1] = { 'name': 'updateFpdetailUse', 'type': 'e',
-        'parammaps': { pastureid: item.pastureid, id: item.id, fttype: item.fttype, lweight: item.weight }
-      }
-      const url2 = 'authdata/ExecDataByConfig'
-      const data2 = this.requestParam
-      postJson(url2, data2).then(response => {
-        if (response.msg === 'fail') {
-          this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
-        } else {
-          this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
-        }
-        this.getCreateList1()
-      })
     },
     handleUpdate(row) {
       console.log(row)