瀏覽代碼

Merge branch 'master' of http://47.100.3.209:3000/gdc/yiliangyiyun-pc

zhongtianhaoyuan 3 年之前
父節點
當前提交
011c2e6a6c

+ 11 - 3
src/components/balanceAlert.vue

@@ -56,7 +56,7 @@ export default {
           // The Web Serial API is supported.
           console.log('the Web Serial API is supported.')
           const port = await navigator.serial.requestPort()
-          if (this.deptBudgetList.warehouseName == '白城内陆港') {
+          if (this.deptBudgetList.warehouseName == '白城内陆港'||this.deptBudgetList.warehouseName == '肇东金信库') {
             this.param = 1200
           } else {
             this.param = 9600
@@ -106,11 +106,18 @@ export default {
           //     this.deptBudgetList.tare = parseInt(result)
           //   }
           // }
+          
           if(value.length > 3){
-            console.log('value23:', value)
              if(value.length <= 6){
               continue
              }
+            if(this.deptBudgetList.warehouseName == '肇东金信库' && value.length < 10){
+              var start = (new Date()).getTime();
+              while((new Date()).getTime() - start < 200) {
+              }
+              continue
+            }
+            console.log('value23:', value)
           }
           else if(this.deptBudgetList.warehouseName == '白城内陆港'){
             console.log('value:', value)
@@ -127,7 +134,8 @@ export default {
               this.deptBudgetList.warehouseName == '鲅鱼圈祥腾库' ||
               this.deptBudgetList.warehouseName == '哈尔滨依兰库' ||
               this.deptBudgetList.warehouseName == '龙江金信库' ||
-              this.deptBudgetList.warehouseName == '白城内陆港')
+              this.deptBudgetList.warehouseName == '白城内陆港'||
+              this.deptBudgetList.warehouseName == '肇东金信库')
           ) {
             for (var i = 0; i < value.length; i++) {
               var tmp = String.fromCharCode(value[i])

+ 2 - 2
src/views/houseSelfCollect/inspectInfo.vue

@@ -95,11 +95,11 @@
             </ws-form-item>
             <ws-form-item label="净重单价(元/公斤)" span="1" prop="tidalGrainPrice" v-if="inspect.type == '潮粮'">
               <ws-input type="number" @mousewheel.native.prevent v-model="inspect.tidalGrainPrice" placeholder="请输入净重单价"
-                maxlength="10" size="small" :disabled="disabled2" />
+                maxlength="10" size="small"  />
             </ws-form-item>
             <ws-form-item label="干粮单价(元/公斤)" span="2" prop="dryGrainPrice" v-if="inspect.type == '干粮'">
               <ws-input type="number" @mousewheel.native.prevent v-model="inspect.dryGrainPrice" placeholder="请输入干粮单价"
-                maxlength="10" size="small" :disabled="disabled2" />
+                maxlength="10" size="small"  />
             </ws-form-item>
               <ws-form-item label="复检备注" span="2" prop="reMemo" v-if="information == '编辑复检' || statusShow == '已复检'">
                 <ws-input type="textarea" v-model="inspect.reMemo" placeholder="请输入复检备注" maxlength="300" v-if="statusShow != '已复检'" />

文件差異過大導致無法顯示
+ 1569 - 1947
src/views/warehouse/warehouseManagementGross.vue


+ 20 - 0
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -103,6 +103,9 @@
               <ws-form-item label="扣款(元/公斤)" span="1" prop="deductionAmount">
                 <ws-input @input="kkInput(dataList.deductionAmount)" v-model="dataList.deductionAmount"
                   placeholder="请输入扣款金额" maxlength="120" size="small" />
+              <el-button v-if="dataList.warehouseName=='克东千丰库'" class="bg-bottom" type="primary" size="small"
+                @click="automaticCalculation"> 自动计算
+              </el-button>
               </ws-form-item>
 
               <!-- 品级 -->
@@ -618,6 +621,23 @@
       // }
     },
     methods: {
+      // 千丰自动计算扣款
+      automaticCalculation() {
+        let _price = 0
+        if (this.dataList.warehouseInOutDetail.waterContent) {
+          let _water = this.dataList.warehouseInOutDetail.waterContent
+          if (Number(_water) > 14.9) {
+            _price = ((Number(_water) - 14.9) * 0.05).toFixed(3)
+          }
+          this.dataList.deductionAmount = _price
+          this.kkInput(_price)
+        } else {
+          this.$message({
+            message: '自动计算扣款,请先输入水分!',
+            type: 'warning',
+          })
+        }
+      },
       setVal(data) {
         if (this.information == '毛重检斤') {
           this.dataList.grossWeight = data

部分文件因文件數量過多而無法顯示