浏览代码

新增箱型箱量

qukaidi 4 年之前
父节点
当前提交
1ea0b93ad8
共有 1 个文件被更改,包括 51 次插入1 次删除
  1. 51 1
      src/views/warehouseBusiness/stockTransfer/index.vue

+ 51 - 1
src/views/warehouseBusiness/stockTransfer/index.vue

@@ -353,13 +353,14 @@
     >
       <el-table-column type="selection" width="60" fixed align="center" />
       <el-table-column type="index" label="行号" fixed align="center" />
-           <el-table-column
+      <el-table-column
         label="提单号"
         width="180"
         align="center"
         :show-overflow-tooltip="true"
         sortable
         fixed="left"
+        prop="fMblno"
       >
         <template slot-scope="scope">
           <el-link :underline="false" type="primary"
@@ -883,6 +884,41 @@
           </el-col>
           <el-col :span="8">
             <el-form-item>
+              <el-table
+                :data="CntrTable"
+                style="width: 80%"
+                :header-cell-style="{ lineHeight: '16px' }"
+              >
+                <el-table-column prop="fCntrid " label="箱型">
+                  <template slot-scope="scope">
+                    <el-input
+                      placeholder="请输入箱号"
+                      v-model="scope.row.fCntrid "
+                    >
+                    </el-input>
+                  </template>
+                </el-table-column>
+                <el-table-column prop="fCntrcount" label="箱量">
+                  <template slot-scope="scope">
+                    <el-input
+                      placeholder="请输入箱量"
+                      v-model="scope.row.fCntrcount"
+                    >
+                    </el-input>
+                  </template>
+                   </el-table-column>
+              </el-table>
+              <div style="display: flex; justify-content: center;width: 80%">
+                <el-tag size="mini" class="tag-hover"
+                  @click="addRow"><i class="el-icon-plus"></i
+                ></el-tag>
+              </div>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row>
+          <el-col :span="8">
+            <el-form-item>
               <el-button
                 @click="
                   detailsHidden
@@ -894,6 +930,7 @@
             </el-form-item>
           </el-col>
         </el-row>
+
         <div v-if="detailsHidden">
           <el-row style="margin-top: 30px">
             <el-col :span="8">
@@ -3709,6 +3746,7 @@ export default {
         fWarehouseid: null,
         fBstime: "",
       },
+      CntrTable:[{}],
       // 表单校验
       rules: {
         fDeptid: [{ required: true, message: " ", trigger: "blur" }],
@@ -3787,6 +3825,10 @@ export default {
     this.Jump();
   },
   methods: {
+   addRow() {
+      var obj = {};
+      this.CntrTable.push(obj);
+    },
     printYkd() {
       for (let corp in this.fMblnoOptions) {
         if (this.form.fCorpid === this.fMblnoOptions[corp].fId) {
@@ -4955,6 +4997,7 @@ export default {
         fCntrtype: null,
         fCntqty: null,
       };
+      this.CntrTable=[{}]
       this.deptOptions = [];
       this.userOptions = [];
       this.fSbuOptions = [];
@@ -6862,4 +6905,11 @@ export default {
 .print_form {
   font-size: 12px;
 }
+.tag-hover:hover {
+  background-color: #d9ebfb;
+}
+.tag-hover {
+  border-top-left-radius: 0;
+  border-top-right-radius: 0;
+}
 </style>