ccjgmwz %!s(int64=3) %!d(string=hai) anos
pai
achega
ec10c331e4

+ 13 - 3
src/views/houseSelfCollect/paymentManagement.vue

@@ -85,7 +85,7 @@
           :on-change="importClick" :show-file-list="false"
           accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
           :auto-upload="false">
-          <el-button type="primary">导入</el-button>
+          <ws-button type="primary">导入</ws-button>
         </el-upload>
       </template>
       <template slot="right"> </template>
@@ -514,7 +514,7 @@
         var reader = new FileReader();
         //if (!FileReader.prototype.readAsBinaryString) {
         FileReader.prototype.readAsBinaryString = function(f) {
-          var binary = "";
+          var binary = '';
           var rABS = false; //是否将文件读取为二进制字符串
           var pt = this;
           var wb; //读取完成的数据
@@ -556,7 +556,8 @@
               obj.tare = v.皮重
               obj.netWeight = v.净重
               obj.dryGrainPrice = v.单价
-              obj.qualityDate = v.日期
+              obj.qualityDate = _this.formatDate(v.日期,'-')
+              debugger
               _this.excelFreightspace.push(obj)
             })
             if (_this.excelFreightspace) {
@@ -586,6 +587,15 @@
         }
 
       },
+      formatDate(numb, format) {
+        const old = numb - 1;
+        const t = Math.round((old - Math.floor(old)) * 24 * 60 * 60);
+        const time = new Date(1900, 0, old, 0, 0, t)
+        const year = time.getFullYear() ;
+        const month = time.getMonth() + 1 ;
+        const date = time.getDate() ;
+        return year + format + (month < 10 ? '0' + month : month) + format + (date < 10 ? '0' + date : date)+' 00:00:00'
+      },
       invoicingClose() {
         this.invoicingshow = false
       },

+ 1 - 1
src/views/warehouse/warehouseManagementGross.vue

@@ -251,7 +251,7 @@
                   deptBudgetList.outType == '汽运' ||
                   deptBudgetList.outType == '集装箱船'
                 ">
-                <ws-input v-if="options2.length == 0 && deptBudgetList.inOutType != '移库入库'" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
+                <ws-input v-if="(options2.length == 0 && deptBudgetList.inOutType != '移库入库') || deptBudgetList.warehouseName=='鲅鱼圈祥腾库'" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
                   size="small" />
                 <el-select v-if="carstatus && options2.length == 0&&deptBudgetList.inOutType=='移库入库'" filterable clearable :filter-method="dataFilter2"
                   v-model="deptBudgetList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange">