瀏覽代碼

仓储业务-入库页面

lichao 3 年之前
父節點
當前提交
f2bcd2f7ee
共有 2 個文件被更改,包括 118 次插入3 次删除
  1. 114 0
      src/views/Warehousing/inStock/AddOrUpdate.vue
  2. 4 3
      src/views/Warehousing/inStock/index.vue

+ 114 - 0
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -1214,6 +1214,7 @@
                   <el-dropdown-item command="a">收货单</el-dropdown-item>
                   <el-dropdown-item command="g">标准入库单</el-dropdown-item>
                   <el-dropdown-item command="y">标准入库单(件数)</el-dropdown-item>
+                  <el-dropdown-item command="z">标准入库单(详情)</el-dropdown-item>
                   <!--                  <el-dropdown-item command="b">入库单</el-dropdown-item>-->
                   <!--                  <el-dropdown-item command="c">理货单</el-dropdown-item>-->
                   <!--                  <el-dropdown-item command="d">货物确认</el-dropdown-item>-->
@@ -2275,6 +2276,108 @@
       </span>
     </el-dialog>
     <el-dialog
+      :visible.sync="print_bzrkd_xq"
+      width="70%"
+      :close-on-click-modal="false"
+      :modal="false"
+    >
+      <div id="print_area16" class="print-div">
+        <div
+          class="print-title"
+          style="
+            display: flex;
+            justify-content: center;
+            font-size: 24px;
+            margin-bottom: 5px;
+          "
+        >
+          {{ company }}入库单
+        </div>
+        <div class="print_table" style="display: flex">
+          <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; line-height: 30px">
+            <tr>
+              <td>客户名称</td>
+              <td>{{ form.fCorpidName }}</td>
+              <td>入库日期</td>
+              <td>{{ form.fBsdate | fBsdateFormat }}</td>
+              <td>流水号</td>
+              <td colspan="5" v-if="form.fBillno">
+                {{ form.fBillno }}-{{ lsTime }}
+              </td>
+              <td colspan="5" v-else></td>
+            </tr>
+            <tr>
+              <td>车号</td>
+              <td>{{ form.fTruckno }}</td>
+              <td>提单号</td>
+              <td>{{ form.fMblno }}</td>
+              <td>箱号</td>
+              <td colspan="5" v-if="Printinglist.length">
+                {{ Printinglist[0].fCntrno }}
+              </td>
+              <td colspan="5" v-else></td>
+            </tr>
+            <tr>
+              <td>货名</td>
+              <td>箱量</td>
+              <td>货物属性</td>
+              <td>属性详情</td>
+              <td>件数</td>
+              <td>毛重(吨)</td>
+              <td>净重(吨)</td>
+              <td>规格</td>
+              <td>区位</td>
+              <td>备注</td>
+            </tr>
+            <tr v-for="(item, index) in Printinglist" :key="index">
+              <td>{{ item.fGoodsids }}</td>
+              <td>{{ item.fCntqty }}</td>
+              <td>{{ item.fBusinessType | fStorageTypeFormat(fStorageTypeOptions) }}</td>
+              <td>{{ item.fMarks }}</td>
+              <td>{{ item.fQty }}</td>
+              <td v-if="item.fGrossweight">
+                {{ (item.fGrossweight / 1000).toFixed(4) }}
+              </td>
+              <td v-else></td>
+              <td>{{ (item.fNetweight/1000).toFixed(4)}}</td>
+              <td>{{ item.fPackagespecs }}</td>
+              <td>{{ item.fWarehouseInformation }}</td>
+              <td>{{ item.remark }}</td>
+            </tr>
+            <tr>
+              <td>备注</td>
+              <!--              <td colspan="4">不贴标签不卸货</td>-->
+              <td colspan="4">{{ form.remark }}</td>
+              <td>总件数</td>
+              <td colspan="4">{{ allfQty }}</td>
+            </tr>
+          </table>
+        </div>
+        <div
+          style="display: flex; justify-content: space-between; font-size: 12px"
+        >
+          <div>操作:</div>
+          <div>理货:</div>
+          <div>叉车:</div>
+          <div>司机:</div>
+
+          <div style="width: 150px">电话:</div>
+        </div>
+      </div>
+      <span slot="footer" class="dialog-footer">
+        <el-button
+          type="primary"
+          :disabled="browseStatus"
+          @click="
+            addprint('bzrkd_xq');
+            print_bzrkd_xq = false;
+          "
+        >打印
+        </el-button>
+        <el-button @click="print_bzrkd_xq = false">取消 </el-button>
+      </span>
+    </el-dialog>
+    <el-dialog
         :visible.sync="print_lhd"
         width="70%"
         :close-on-click-modal="false"
@@ -5963,6 +6066,7 @@ export default {
       print_zpdkrkd: false,
       print_bzrkd: false,
       print_bzrkd_js: false,
+      print_bzrkd_xq: false,
       print_dk: false,
       company: "",
       Printinglist: [],
@@ -8071,6 +8175,8 @@ export default {
               this.print_dk = true;
             } else if (command == "y") {
               this.print_bzrkd_js = true;
+            } else if (command == "z") {
+              this.print_bzrkd_xq = true;
             }
           }
         })
@@ -8409,6 +8515,14 @@ export default {
             scanStyles: false,
           });
           break
+        case 'bzrkd_xq':
+          print({
+            printable: "print_area16",
+            type: "html",
+            style: style, // 亦可使用引入的外部css;
+            scanStyles: false,
+          });
+          break
         case '001':
           print({
             printable: "print_area001",

+ 4 - 3
src/views/Warehousing/inStock/index.vue

@@ -989,13 +989,14 @@ export default {
             }
           }, 0);
           if (column.property === "fGrossweight") {
-            sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
+            sums[index] = (sums[index] / 1000).toFixed(4) + "()";
           }
           if (column.property === "fNetweight") {
-            sums[index] = (sums[index] / 1000).toFixed(4) + "吨";
+            sums[index] = (sums[index] / 1000).toFixed(4) + "()";
           }
           if (column.property === "fQty") {
-            sums[index] = sums[index].toFixed(2);
+            // sums[index] = sums[index].toFixed(2);
+            sums[index] = sums[index];
           }
           if (column.property === "fPlanqty") {
             if (sums[index]) {