Explorar o código

修改卸货存档入库单时间

lichao %!s(int64=3) %!d(string=hai) anos
pai
achega
e80ac04557
Modificáronse 1 ficheiros con 12 adicións e 1 borrados
  1. 12 1
      src/views/Warehousing/inStock/AddOrUpdate.vue

+ 12 - 1
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -5101,7 +5101,8 @@
               <td>{{ item.fQty }}</td>
               <td>{{ item.fQty }}</td>
               <td>{{ item.fWarehouseInformation }}</td>
-              <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>
+<!--              <td>{{ item.fBsdate }}&nbsp;{{ timeOut }}</td>-->
+              <td>{{ item.fBsdate }}&nbsp;{{ inTime }}</td>
               <td>{{ item.fTruckno }}</td>
               <td>{{ item.fDriverName }}</td>
               <td>{{ item.remark }}</td>
@@ -6368,6 +6369,7 @@ export default {
       newPlan: 1,
       entryPrinting: 1,
       weighedRequired: 1,
+      inTime: '',
     };
   },
   created() {
@@ -8256,6 +8258,15 @@ export default {
               let _minute = (10 > now.getMinutes()) ? '0' + now.getMinutes() : now.getMinutes();
               this.timeOut = _hour + ':' + _minute
               console.log(this.data)
+              // 把入库时间的时间戳转换为时分秒
+              let inTime = new Date(this.form.fBstime);
+              let h = inTime.getHours()
+              h = h < 10 ? ('0' + h) : h
+              let m = inTime.getMinutes()
+              m = m < 10 ? ('0' + m) : m
+              let s = inTime.getSeconds()
+              s = s < 10 ? ('0' + s) : s
+              this.inTime = h + ':' + m + ':' + s
             });
             if (command == "a") {
               this.print_shd = true;