Browse Source

仓储业务修改

wengyuwen 4 years ago
parent
commit
2742bc0b8f

+ 0 - 17
src/views/reportManagement/whgenleg/index.vue

@@ -10,23 +10,6 @@
                     :disable-branch-nodes="true"
                     :disable-branch-nodes="true"
                     placeholder="请选择归属库区" />
                     placeholder="请选择归属库区" />
       </el-form-item>
       </el-form-item>
-      <el-form-item label="库区" prop="fWarehouseLocationid">
-        <el-select
-          v-model="queryParams.fWarehouseLocationid"
-          filterable
-          remote
-          size="small"
-          :remote-method="kqhouseRemoteMethod"
-          placeholder="请选择库区"
-        >
-          <el-option
-            v-for="(dict, index) in kqhouseOptions"
-            :key="index.fId"
-            :label="dict.fName"
-            :value="dict.fId"
-          ></el-option>
-        </el-select>
-      </el-form-item>
       <el-form-item label="货物名称" prop="fgoodsid">
       <el-form-item label="货物名称" prop="fgoodsid">
         <el-select
         <el-select
           v-model="queryParams.fGoodsid"
           v-model="queryParams.fGoodsid"

+ 55 - 16
src/views/warehouseBusiness/inStock/index.vue

@@ -7,6 +7,7 @@
       v-show="showSearch"
       v-show="showSearch"
       label-width="88px"
       label-width="88px"
     >
     >
+      <el-row>
         <el-form-item label="业务编号" prop="fBillno">
         <el-form-item label="业务编号" prop="fBillno">
           <el-input
           <el-input
             v-model="queryParams.fBillno"
             v-model="queryParams.fBillno"
@@ -133,13 +134,23 @@
           </el-select>
           </el-select>
         </el-form-item>
         </el-form-item>
         <el-form-item label="仓库" prop="fWarehouseid">
         <el-form-item label="仓库" prop="fWarehouseid">
-            <treeselect style="width:160px"
-                        v-model="queryParams.fWarehouselocid"
-                        :options="fWarehouseidOption"
-                        @select="treeseLect"
-                        :show-count="true"
-                        :disable-branch-nodes="true"
-                        placeholder="请选择归属库区" />
+          <el-select
+            v-model="queryParams.fWarehouseid"
+            filterable
+            remote
+            @select="treeseLect"
+            :disabled="browseStatus || formBrowseStatus"
+            style="width: 80%"
+            @keyup.enter.native="handleQuery"
+            placeholder="请选择"
+          >
+            <el-option
+              v-for="(dict, index) in warehouseOptions"
+              :key="index.fId"
+              :label="dict.fName"
+              :value="dict.fId"
+            ></el-option>
+          </el-select>
         </el-form-item>
         </el-form-item>
         <el-form-item label="品牌" prop="fMarks">
         <el-form-item label="品牌" prop="fMarks">
           <el-input
           <el-input
@@ -2825,15 +2836,32 @@
               入库日期:{{ fBsdates }}
               入库日期:{{ fBsdates }}
             </td>
             </td>
           </tr>
           </tr>
-          <tr v-for="(item, index) in Printinglist" :key="index">
+
+<!--          <tr v-for="(item, index) in Printinglist" :key="index">-->
+<!--            <td width="200">车号</td>-->
+<!--            <td width="200">{{ item.fTruckno }}</td>-->
+<!--            <td width="200">货物品名</td>-->
+<!--            <td width="200" class="zzss">-->
+<!--              {{ item.fGoodsids }}-->
+<!--            </td>-->
+<!--            <td width="200">{{item.fBusinessTypes}}</td>-->
+<!--            <td width="200">{{item.fMarks}}</td>-->
+<!--          </tr>-->
+          <tr>
             <td width="200">车号</td>
             <td width="200">车号</td>
-            <td width="200">{{ item.fTruckno }}</td>
             <td width="200">货物品名</td>
             <td width="200">货物品名</td>
-            <td width="200" class="zzss">
-              {{ item.fGoodsids }}
-            </td>
-            <td width="200">{{item.fBusinessTypes}}</td>
-            <td width="200">{{item.fMarks}}</td>
+            <td width="200">提单号</td>
+            <td width="200">品牌/规格/产地</td>
+            <td width="200">净重(吨)</td>
+            <td width="200">件数(50KG)</td>
+          </tr>
+          <tr v-for="(item, index) in Printinglist" :key="index">
+            <td width="200">{{ item.fTruckno }}</td>
+            <td width="200">{{ item.fGoodsids }}</td>
+            <td width="200">{{ item.fMblno }}</td>
+            <td width="200">{{item.fBusinessTypes}}/{{item.fMarks}}</td>
+            <td width="200">{{item.fNetweight}}</td>
+            <td width="200">{{ item.fQty }}</td>
           </tr>
           </tr>
           <tr>
           <tr>
             <td width="1400" colspan="6">&nbsp;</td>
             <td width="1400" colspan="6">&nbsp;</td>
@@ -2980,6 +3008,7 @@ export default {
       formBrowseStatus: false,
       formBrowseStatus: false,
       fTruckno: "",
       fTruckno: "",
       fBsdates: "",
       fBsdates: "",
+      fMblno:"",
       fCntrtype: "",
       fCntrtype: "",
       fGoodsids: "",
       fGoodsids: "",
       fPlaNnumber: "",
       fPlaNnumber: "",
@@ -3304,8 +3333,10 @@ export default {
       this.fleetOptions = response.data;
       this.fleetOptions = response.data;
     });
     });
     treeselect().then(response => {
     treeselect().then(response => {
-      this.fWarehouseidOption = response.data
+      console.log(response)
+      this.warehouseOptions = response.data
     })
     })
+    this.warehousesssMethod()
   },
   },
   activated() {
   activated() {
     this.adoPt()
     this.adoPt()
@@ -3319,6 +3350,7 @@ export default {
     },
     },
     /** 查询部门下拉树结构 */
     /** 查询部门下拉树结构 */
     treeseLect(tree){
     treeseLect(tree){
+      console.log(tree)
       this.queryParams.fWarehouselocid = tree.id
       this.queryParams.fWarehouselocid = tree.id
     },
     },
     getTreeselect(row) {
     getTreeselect(row) {
@@ -3653,13 +3685,16 @@ export default {
       }
       }
     },
     },
     showEditDialog_ss() {
     showEditDialog_ss() {
+      console.log("000")
       if (this.Printinglist.length > 0) {
       if (this.Printinglist.length > 0) {
+        console.log("111")
         for (let li in this.Printinglist) {
         for (let li in this.Printinglist) {
           if (this.dataListSelection.length > 0) {
           if (this.dataListSelection.length > 0) {
             this.fTruckno = this.dataListSelection[0].fTruckno;
             this.fTruckno = this.dataListSelection[0].fTruckno;
             this.fCntrtype = this.dataListSelection[0].fCntrtype;
             this.fCntrtype = this.dataListSelection[0].fCntrtype;
             this.fGoodsids = this.dataListSelection[0].fGoodsids;
             this.fGoodsids = this.dataListSelection[0].fGoodsids;
             this.fPackagespecs = this.dataListSelection[0].fPackagespecs;
             this.fPackagespecs = this.dataListSelection[0].fPackagespecs;
+            console.log(this.Printinglist)
             var date = new Date(this.dataListSelection[0].fBsdate);
             var date = new Date(this.dataListSelection[0].fBsdate);
             var Y = date.getFullYear() + "-";
             var Y = date.getFullYear() + "-";
             var M =
             var M =
@@ -3768,11 +3803,16 @@ export default {
           }
           }
         }
         }
         if (this.dataListSelection.length > 0) {
         if (this.dataListSelection.length > 0) {
+          console.log(this.dataListSelection)
           this.fTruckno = this.dataListSelection[0].fTruckno
           this.fTruckno = this.dataListSelection[0].fTruckno
           this.fCntrtype = this.dataListSelection[0].fCntrtype
           this.fCntrtype = this.dataListSelection[0].fCntrtype
           this.fGoodsids = this.dataListSelection[0].fGoodsids
           this.fGoodsids = this.dataListSelection[0].fGoodsids
           this.fDriverTel = this.dataListSelection[0].fDriverTel
           this.fDriverTel = this.dataListSelection[0].fDriverTel
           this.fPackagespecs = this.dataListSelection[0].fPackagespecs
           this.fPackagespecs = this.dataListSelection[0].fPackagespecs
+          this.fMblno = this.dataListSelection[0].fMblno
+          this.fQty = this.dataListSelection[0].fQty
+          // this.fQtys = this.dataListSelection[0].fQty
+          console.log(this.fQtys)
           var date = new Date(this.dataListSelection[0].fBsdate)
           var date = new Date(this.dataListSelection[0].fBsdate)
           var Y = date.getFullYear() + '-'
           var Y = date.getFullYear() + '-'
           var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
           var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
@@ -4267,7 +4307,6 @@ export default {
       this.detailsHidden = false;
       this.detailsHidden = false;
       this.formBrowseStatus = false;
       this.formBrowseStatus = false;
       const fId = row.fId || this.ids;
       const fId = row.fId || this.ids;
-      this.dataList = [];
       console.log(fId)
       console.log(fId)
       this.goodsRemoteMethod()
       this.goodsRemoteMethod()
       getWarehousebills(fId).then((response) => {
       getWarehousebills(fId).then((response) => {

+ 39 - 12
src/views/warehouseBusiness/outStock/index.vue

@@ -132,13 +132,23 @@
         </el-select>
         </el-select>
       </el-form-item>
       </el-form-item>
       <el-form-item label="仓库" prop="fWarehouseid">
       <el-form-item label="仓库" prop="fWarehouseid">
-        <treeselect style="width:160px"
-                    v-model="queryParams.fWarehouselocid"
-                    :options="fWarehouseidOption"
-                    @select="treeseLect"
-                    :show-count="true"
-                    :disable-branch-nodes="true"
-                    placeholder="请选择归属库区" />
+        <el-select
+          v-model="queryParams.fWarehouseid"
+          filterable
+          remote
+          @select="treeseLect"
+          :disabled="browseStatus || formBrowseStatus"
+          style="width: 80%"
+          @keyup.enter.native="handleQuery"
+          placeholder="请选择"
+        >
+          <el-option
+            v-for="(dict, index) in warehouseOptions"
+            :key="index.fId"
+            :label="dict.fName"
+            :value="dict.fId"
+          ></el-option>
+        </el-select>
       </el-form-item>
       </el-form-item>
       <el-form-item label="品牌" prop="fMarks">
       <el-form-item label="品牌" prop="fMarks">
         <el-input
         <el-input
@@ -2591,13 +2601,29 @@
               出库日期:{{ fBsdate }}
               出库日期:{{ fBsdate }}
             </td>
             </td>
           </tr>
           </tr>
-          <tr v-for="(item, index) in printinglist" :key="index">
+<!--          <tr v-for="(item, index) in printinglist" :key="index">-->
+<!--            <td width="200">车号</td>-->
+<!--            <td width="200">{{ item.fTruckno }}</td>-->
+<!--            <td width="200">货物品名</td>-->
+<!--            <td width="200">{{ item.fGoodsids }}</td>-->
+<!--            <td width="200">{{item.fBusinessTypes}}</td>-->
+<!--            <td width="200">{{item.fMarks}}</td>-->
+<!--          </tr>-->
+          <tr>
             <td width="200">车号</td>
             <td width="200">车号</td>
-            <td width="200">{{ item.fTruckno }}</td>
             <td width="200">货物品名</td>
             <td width="200">货物品名</td>
+            <td width="200">提单号</td>
+            <td width="200">品牌/规格/产地</td>
+            <td width="200">净重(吨)</td>
+            <td width="200">件数(50KG)</td>
+          </tr>
+          <tr v-for="(item, index) in printinglist" :key="index">
+            <td width="200">{{ item.fTruckno }}</td>
             <td width="200">{{ item.fGoodsids }}</td>
             <td width="200">{{ item.fGoodsids }}</td>
-            <td width="200">{{item.fBusinessTypes}}</td>
-            <td width="200">{{item.fMarks}}</td>
+            <td width="200">{{ item.fMblno }}</td>
+            <td width="200">{{item.fBusinessTypes}}/{{item.fMarks}}</td>
+            <td width="200">{{item.fNetweight}}</td>
+            <td width="200">{{ item.fQty }}</td>
           </tr>
           </tr>
           <tr>
           <tr>
             <td width="1400" colspan="6">&nbsp;</td>
             <td width="1400" colspan="6">&nbsp;</td>
@@ -3012,8 +3038,9 @@ export default {
       this.fleetOptions = response.data;
       this.fleetOptions = response.data;
     });
     });
     treeselect().then(response => {
     treeselect().then(response => {
-      this.fWarehouseidOption = response.data
+      this.warehouseOptions = response.data
     })
     })
+    this.warehousesssMethod()
   },
   },
   activated() {
   activated() {
     this.adoPt()
     this.adoPt()

+ 45 - 16
src/views/warehouseBusiness/stockTransfer/index.vue

@@ -132,13 +132,23 @@
         </el-select>
         </el-select>
       </el-form-item>
       </el-form-item>
       <el-form-item label="仓库" prop="fWarehouseid">
       <el-form-item label="仓库" prop="fWarehouseid">
-        <treeselect style="width:160px"
-                    v-model="queryParams.fWarehouselocid"
-                    :options="fWarehouseidOption"
-                    @select="treeseLect"
-                    :show-count="true"
-                    :disable-branch-nodes="true"
-                    placeholder="请选择归属库区" />
+        <el-select
+          v-model="queryParams.fWarehouseid"
+          filterable
+          remote
+          @select="treeseLect"
+          :disabled="browseStatus || formBrowseStatus"
+          style="width: 80%"
+          @keyup.enter.native="handleQuery"
+          placeholder="请选择"
+        >
+          <el-option
+            v-for="(dict, index) in warehouseOptions"
+            :key="index.fId"
+            :label="dict.fName"
+            :value="dict.fId"
+          ></el-option>
+        </el-select>
       </el-form-item>
       </el-form-item>
       <el-form-item label="品牌" prop="fMarks">
       <el-form-item label="品牌" prop="fMarks">
         <el-input
         <el-input
@@ -237,7 +247,8 @@
           <span>{{ parseTime(scope.row.fBsdate, "{y}-{m}-{d}") }}</span>
           <span>{{ parseTime(scope.row.fBsdate, "{y}-{m}-{d}") }}</span>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
-      <el-table-column label="仓库" align="center" prop="fWarehouseid" />
+      <el-table-column label="调入仓库" align="center" prop="fWarehouseid" />
+      <el-table-column label="调出仓库" align="center" prop="fInwarehouseid" />
       <el-table-column label="调拨件数" align="center" prop="fPlanqty" />
       <el-table-column label="调拨件数" align="center" prop="fPlanqty" />
       <el-table-column label="调拨毛重" align="center" prop="fPlangrossweight" />
       <el-table-column label="调拨毛重" align="center" prop="fPlangrossweight" />
       <el-table-column label="调拨净重" align="center" prop="fPlannetweight" />
       <el-table-column label="调拨净重" align="center" prop="fPlannetweight" />
@@ -2239,15 +2250,31 @@
               调拨日期:{{ form.fBsdates }}
               调拨日期:{{ form.fBsdates }}
             </td>
             </td>
           </tr>
           </tr>
-          <tr v-for="(item, index) in printinglist" :key="index">
+<!--          <tr v-for="(item, index) in printinglist" :key="index">-->
+<!--            <td width="200">车号</td>-->
+<!--            <td width="200">{{ item.fTruckno }}</td>-->
+<!--            <td width="200">货物品名</td>-->
+<!--            <td width="200" class="zzss">-->
+<!--              {{ item.fGoodsids }}-->
+<!--            </td>-->
+<!--            <td width="200">{{item.fBusinessTypes}}</td>-->
+<!--            <td width="200">{{item.fMarks}}</td>-->
+<!--          </tr>-->
+          <tr>
             <td width="200">车号</td>
             <td width="200">车号</td>
-            <td width="200">{{ item.fTruckno }}</td>
             <td width="200">货物品名</td>
             <td width="200">货物品名</td>
-            <td width="200" class="zzss">
-              {{ item.fGoodsids }}
-            </td>
-            <td width="200">{{item.fBusinessTypes}}</td>
-            <td width="200">{{item.fMarks}}</td>
+            <td width="200">提单号</td>
+            <td width="200">品牌/规格/产地</td>
+            <td width="200">净重(吨)</td>
+            <td width="200">件数(50KG)</td>
+          </tr>
+          <tr v-for="(item, index) in printinglist" :key="index">
+            <td width="200">{{ item.fTruckno }}</td>
+            <td width="200">{{ item.fGoodsids }}</td>
+            <td width="200">{{ item.fMblno }}</td>
+            <td width="200">{{item.fBusinessTypes}}/{{item.fMarks}}</td>
+            <td width="200">{{item.fNetweight}}</td>
+            <td width="200">{{ item.fQty }}</td>
           </tr>
           </tr>
           <tr>
           <tr>
             <td width="1400" colspan="6">&nbsp;</td>
             <td width="1400" colspan="6">&nbsp;</td>
@@ -2657,8 +2684,10 @@ export default {
       this.fleetOptions = response.data;
       this.fleetOptions = response.data;
     });
     });
     treeselect().then(response => {
     treeselect().then(response => {
-      this.fWarehouseidOption = response.data
+      console.log(response)
+      this.warehouseOptions = response.data
     })
     })
+    this.warehousesssMethod()
     this.register()
     this.register()
   },
   },
   activated(){
   activated(){