Bladeren bron

Merge remote-tracking branch 'origin/master'

阿伏兔 4 jaren geleden
bovenliggende
commit
9e2b63f6d8

+ 1 - 1
src/api/agreement/agreement.js

@@ -36,7 +36,7 @@ export function listAgreement(query) {
 // 查询作业费协议
 export function operationAgreement(query) {
   return request({
-    url: '/warehouseBusiness/agreementitems/list',
+    url: '/warehouseBusiness/agreementitems/warehousebills/list',
     method: 'get',
     params: query
   })

+ 8 - 8
src/views/basicdata/dept/index.vue

@@ -47,31 +47,31 @@
       :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
     >
       <el-table-column prop="fName" label="仓库名称" width="260"></el-table-column>
-      <el-table-column prop="fTotalgross" label="库容(吨)" width="200"></el-table-column>
+      <el-table-column prop="fTotalgross" label="库容(吨)" width="140"></el-table-column>
       <el-table-column prop="fLocation" label="库位" width="100">
         <template slot-scope="scope">
           <span v-if="scope.row.fLocation === 0">否</span>
           <span v-else>是</span>
         </template>
       </el-table-column>
-      <el-table-column prop="fAddr" label="地址" width="260"></el-table-column>
+      <el-table-column prop="fAddr" label="地址" width="100"></el-table-column>
       <el-table-column prop="fContacts" label="联系人" width="100"></el-table-column>
       <el-table-column prop="fTel" label="电话" width="150"></el-table-column>
-      <el-table-column prop="fCharg" label="计费" width="100">
+      <el-table-column prop="fCharg" label="计费" width="50">
         <template slot-scope="scope">
           <span v-if="scope.row.fCharg === 0">否</span>
           <span v-else>是</span>
         </template>
       </el-table-column>
-      <el-table-column prop="remark" label="备注" width="260"></el-table-column>
-      <el-table-column prop="orderNum" label="排序" width="200"></el-table-column>
-      <el-table-column prop="fStatus" label="状态" :formatter="statusFormat" width="100"></el-table-column>
-      <el-table-column label="创建时间" align="center" prop="createTime" width="200">
+      <el-table-column prop="remark" label="备注" width="100"></el-table-column>
+      <el-table-column prop="orderNum" label="排序" width="50"></el-table-column>
+      <el-table-column prop="fStatus" label="状态" :formatter="statusFormat" width="50"></el-table-column>
+      <el-table-column label="创建时间" align="center" prop="createTime" width="170">
         <template slot-scope="scope">
           <span>{{ parseTime(scope.row.createTime) }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
+      <el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width">
         <template slot-scope="scope">
           <el-button
             size="mini"

+ 23 - 35
src/views/reportManagement/whgenleg/index.vue

@@ -2,40 +2,12 @@
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="仓库" prop="fwarehouseid">
-        <el-select
-          v-model="queryParams.fWarehouseid"
-          filterable
-          remote
-          clearable
-          size="small"
-          :remote-method="warehouseRemoteMethod"
-          @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 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>
+        <treeselect style="width:160px"
+                    v-model="queryParams.fWarehouseLocationid"
+                    :options="fWarehouseidOption"
+                    @select="treeseLect"
+                    :show-count="true"
+                    placeholder="请选择归属库区" />
       </el-form-item>
       <el-form-item label="货物名称" prop="fgoodsid">
         <el-select
@@ -284,17 +256,22 @@
 
 <script>
 import { listWhgenleg, getWhgenleg, delWhgenleg, addWhgenleg, updateWhgenleg, exportWhgenleg } from "@/api/reportManagement/whgenleg";
-import {listWarehouse} from "@/api/basicdata/warehouse";
+import { listWarehouse, treeselect } from '@/api/basicdata/warehouse'
 import {listArea} from "@/api/basicdata/area";
 import {listGoods} from "@/api/basicdata/goods";
 import {listCorps} from "@/api/basicdata/corps";
+import Treeselect from '@riophae/vue-treeselect'
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 
 export default {
   name: "Whgenleg",
   components: {
+    Treeselect
   },
   data() {
     return {
+      //仓库树状下拉
+      fWarehouseidOption:[],
       // 货权方(客户数据)
       fMblnoOptions: [],
       // 贸易方式(数据字典),对应t_trademodels 字典
@@ -356,8 +333,19 @@ export default {
     this.getDicts("data_trademodes").then((response) => {
       this.fTrademodeidOptions = response.data;
     });
+    treeselect().then(response => {
+      this.fWarehouseidOption = response.data
+    })
   },
   methods: {
+    treeseLect(tree){
+      this.queryParams.fWarehouseLocationid = tree.id
+    },
+    getTreeselect() {
+      treeselect().then(response => {
+        this.warehousesOptions = response.data;
+      });
+    },
     // 贸易方式(数据字典),对���t_trademodels 字典翻译
     fTrademodeidFormat(row, column) {
       return this.selectDictLabel(this.fTrademodeidOptions, row.fTrademodeid);

+ 14 - 18
src/views/warehouseBusiness/goodsTransfer/index.vue

@@ -132,24 +132,13 @@
         </el-select>
       </el-form-item>
       <el-form-item label="仓库" prop="fWarehouseid">
-        <el-select
-          v-model="queryParams.fWarehouseid"
-          filterable
-          :disabled="browseStatus"
-          remote
-          clearable
-          style="width: 80%"
-          :remote-method="warehouseRemoteMethod"
-          @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>
+        <treeselect style="width:160px"
+                    v-model="queryParams.fWarehouselocid"
+                    :options="fWarehouseidOption"
+                    @select="treeseLect"
+                    :show-count="true"
+                    :disable-branch-nodes="true"
+                    placeholder="请选择归属库区" />
       </el-form-item>
       <el-form-item label="品牌" prop="fMarks">
         <el-input
@@ -1745,6 +1734,7 @@
         activeNames:['1'],
         //仓库树状图
         warehousesOptions:[],
+        fWarehouseidOption:[],
         Lander:'',
         Operator:'',
         colseButton:true,
@@ -1972,6 +1962,9 @@
       this.getDicts("data_stltype_type").then(response => {
         this.fStltypeidOptions = response.data;
       });
+      treeselect().then(response => {
+        this.fWarehouseidOption = response.data
+      })
       this.register()
     },
     activated(){
@@ -1979,6 +1972,9 @@
     },
     methods: {
       /** 查询部门下拉树结构 */
+      treeseLect(tree){
+        this.queryParams.fWarehouselocid = tree.id
+      },
       getTreeselect() {
         treeselect().then(response => {
           this.warehousesOptions = response.data;

+ 310 - 227
src/views/warehouseBusiness/inStock/index.vue

@@ -7,173 +7,175 @@
       v-show="showSearch"
       label-width="88px"
     >
-      <el-form-item label="业务编号" prop="fBillno">
-        <el-input
-          v-model="queryParams.fBillno"
-          placeholder="请输入业务编号"
-          style="width: 80%"
-          clearable
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="制单人" prop="createBy">
-        <el-select
-          v-model="queryParams.createBy"
-          filterable
-          remote
-          clearable
-          style="width: 80%"
-          :remote-method="userRemoteMethod"
-          placeholder="请选择制单人"
-        >
-          <el-option
-            v-for="(dict, index) in userOptions"
-            :key="index.userName"
-            :label="dict.nickName"
-            :value="dict.userName"
-          ></el-option>
-        </el-select>
-      </el-form-item>
-      <el-form-item label="入库日期" prop="timeInterval">
-        <el-date-picker
-          v-model="queryParams.timeInterval"
-          type="daterange"
-          value-format="yyyy-MM-dd"
-          clearable
-          style="width: 60%"
-          range-separator="至"
-          start-placeholder="开始日期"
-          end-placeholder="结束日期"
-          @keyup.enter.native="handleQuery"
-        >
-        </el-date-picker>
-      </el-form-item>
-
-      <el-form-item label="贸易方式" prop="fTrademodeid">
-        <el-select
-          v-model="queryParams.fTrademodeid"
-          placeholder="请选择贸易方式"
-          clearable
-          style="width: 80%"
-          @keyup.enter.native="handleQuery"
-        >
-          <el-option
-            v-for="(dict, index) in fTrademodeidOptions"
-            :key="index.dictValue"
-            :label="dict.dictLabel"
-            :value="dict.dictValue"
+      <el-row>
+        <el-form-item label="业务编号" prop="fBillno">
+          <el-input
+            v-model="queryParams.fBillno"
+            placeholder="请输入业务编号"
+            style="width: 80%"
+            clearable
+            size="small"
+            @keyup.enter.native="handleQuery"
           />
-        </el-select>
-      </el-form-item>
-      <el-form-item label="货权方" prop="fCorpid">
-        <el-select
-          v-model="queryParams.fCorpid"
-          filterable
-          remote
-          clearable
-          style="width: 80%"
-          @keyup.enter.native="handleQuery"
-          :remote-method="corpsRemoteMethod"
-          placeholder="请输入模糊查找"
-        >
-          <el-option
-            v-for="(dict, index) in fMblnoOptions"
-            :key="index.fId"
-            :label="dict.fName"
-            :value="dict.fId"
-          ></el-option>
-        </el-select>
-      </el-form-item>
-      <el-form-item label="提单号" prop="fMblno">
-        <el-input
-          v-model="queryParams.fMblno"
-          placeholder="请输入提单号"
-          clearable
-          style="width: 80%"
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item label="经营单位" prop="fSbu">
-        <el-select
-          v-model="queryParams.fSbu"
-          filterable
-          remote
-          clearable
-          :remote-method="fSbuRemoteMethod"
-          @keyup.enter.native="handleQuery"
-          style="width: 80%"
-          placeholder="请选择经营单位"
-        >
-          <el-option
-            v-for="(dict, index) in fMblnoOptions"
-            :key="index.fId"
-            :label="dict.fName"
-            :value="dict.fId"
-          ></el-option>
-        </el-select>
-      </el-form-item>
-      <el-form-item label="货物名称" prop="fGoodsid">
-        <el-select
-          v-model="queryParams.fGoodsid"
-          filterable
-          remote
-          clearable
-          style="width: 80%"
-          :remote-method="goodsRemoteMethod"
-          @keyup.enter.native="handleQuery"
-          placeholder="请选择货物名称"
-        >
-          <el-option
-            v-for="(dict, index) in goodsOptions"
-            :key="index.fId"
-            :label="dict.fName"
-            :value="dict.fId"
-          ></el-option>
-        </el-select>
-      </el-form-item>
-      <el-form-item label="仓库" prop="fWarehouseid">
-        <el-select
-          v-model="queryParams.fWarehouseid"
-          filterable
-          remote
-          clearable
-          style="width: 80%"
-          :remote-method="warehouseRemoteMethod"
-          @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 label="品牌" prop="fMarks">
-        <el-input
-          v-model="queryParams.fMarks"
-          placeholder="请输入品牌"
-          clearable
-          style="width: 80%"
-          size="small"
-          @keyup.enter.native="handleQuery"
-        />
-      </el-form-item>
-      <el-form-item>
-        <el-button
-          type="cyan"
-          icon="el-icon-search"
-          size="mini"
-          @click="handleQuery"
-        >搜索
-        </el-button>
-        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
-        >重置
-        </el-button>
-      </el-form-item>
+        </el-form-item>
+        <el-form-item label="制单人" prop="createBy">
+          <el-select
+            v-model="queryParams.createBy"
+            filterable
+            remote
+            clearable
+            style="width: 80%"
+            :remote-method="userRemoteMethod"
+            placeholder="请选择制单人"
+          >
+            <el-option
+              v-for="(dict, index) in userOptions"
+              :key="index.userName"
+              :label="dict.nickName"
+              :value="dict.userName"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="入库日期" prop="timeInterval">
+          <el-date-picker
+            v-model="queryParams.timeInterval"
+            type="daterange"
+            value-format="yyyy-MM-dd"
+            clearable
+            style="width: 60%"
+            range-separator="至"
+            start-placeholder="开始日期"
+            end-placeholder="结束日期"
+            @keyup.enter.native="handleQuery"
+          >
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="贸易方式" prop="fTrademodeid">
+          <el-select
+            v-model="queryParams.fTrademodeid"
+            placeholder="请选择贸易方式"
+            clearable
+            style="width: 80%"
+            @keyup.enter.native="handleQuery"
+          >
+            <el-option
+              v-for="(dict, index) in fTrademodeidOptions"
+              :key="index.dictValue"
+              :label="dict.dictLabel"
+              :value="dict.dictValue"
+            />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="货权方" prop="fCorpid">
+          <el-select
+            v-model="queryParams.fCorpid"
+            filterable
+            remote
+            clearable
+            style="width: 80%"
+            @keyup.enter.native="handleQuery"
+            :remote-method="corpsRemoteMethod"
+            placeholder="请输入模糊查找"
+          >
+            <el-option
+              v-for="(dict, index) in fMblnoOptions"
+              :key="index.fId"
+              :label="dict.fName"
+              :value="dict.fId"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="提单号" prop="fMblno">
+          <el-input
+            v-model="queryParams.fMblno"
+            placeholder="请输入提单号"
+            clearable
+            style="width: 80%"
+            size="small"
+            @keyup.enter.native="handleQuery"
+          />
+        </el-form-item>
+        <el-form-item label="经营单位" prop="fSbu">
+          <el-select
+            v-model="queryParams.fSbu"
+            filterable
+            remote
+            clearable
+            :remote-method="fSbuRemoteMethod"
+            @keyup.enter.native="handleQuery"
+            style="width: 80%"
+            placeholder="请选择经营单位"
+          >
+            <el-option
+              v-for="(dict, index) in fMblnoOptions"
+              :key="index.fId"
+              :label="dict.fName"
+              :value="dict.fId"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="货物名称" prop="fGoodsid">
+          <el-select
+            v-model="queryParams.fGoodsid"
+            filterable
+            remote
+            clearable
+            style="width: 80%"
+            :remote-method="goodsRemoteMethod"
+            @keyup.enter.native="handleQuery"
+            placeholder="请选择货物名称"
+          >
+            <el-option
+              v-for="(dict, index) in goodsOptions"
+              :key="index.fId"
+              :label="dict.fName"
+              :value="dict.fId"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="仓库" prop="fWarehouseid">
+          <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 label="品牌" prop="fMarks">
+          <el-input
+            v-model="queryParams.fMarks"
+            placeholder="请输入品牌"
+            clearable
+            style="width: 80%"
+            size="small"
+            @keyup.enter.native="handleQuery"
+          />
+        </el-form-item>
+        <el-form-item>
+          <el-button
+            type="cyan"
+            icon="el-icon-search"
+            size="mini"
+            @click="handleQuery"
+          >搜索
+          </el-button>
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+          >重置
+          </el-button>
+        </el-form-item>
+
+      </el-row>
     </el-form>
 
     <el-row :gutter="10" class="mb8">
@@ -378,7 +380,7 @@
       <el-form ref="form" :model="form" :rules="rules" label-width="120px">
         <el-row>
           <el-col :span="8">
-            <el-form-item label="货1权方" prop="fCorpid">
+            <el-form-item label="货权方" prop="fCorpid">
               <el-select
                 v-model="form.fCorpid"
                 filterable
@@ -1691,19 +1693,21 @@
               width="180px"
               label="作业类型"
             >
-              <el-select
-                style="width: 80%"
-                v-model="warehouseDrList.fBusinessType"
-                filterable
-                disabled
-              >
-                <el-option
-                  v-for="(dict) in businessTypeOption"
-                  :key="dict.dictValue"
-                  :label="dict.dictLabel"
-                  :value="dict.dictValue"
-                ></el-option>
-              </el-select>
+              <template slot-scope="scope">
+                <el-select
+                  style="width: 80%"
+                  v-model="scope.row.fBusinessType"
+                  filterable
+                  disabled
+                >
+                  <el-option
+                    v-for="(dict) in businessTypeOption"
+                    :key="dict.dictValue"
+                    :label="dict.dictLabel"
+                    :value="dict.dictValue"
+                  ></el-option>
+                </el-select>
+              </template>
             </el-table-column>
             <el-table-column
               prop="fFeeUnitid"
@@ -1958,7 +1962,7 @@
               </el-button>
               <el-button type="primary" size="small" @click="submitForm(2)" :disabled="browseStatus">保 存</el-button>
               <el-button type="danger" size="small" @click.prevent="handleSelect(1)" :disabled="browseStatus"
-              >作业费1协议</el-button>
+              >作业费协议</el-button>
             </div>
           </div>
           <el-table
@@ -2032,19 +2036,21 @@
               width="180px"
               label="作业类型"
             >
-              <el-select
-                style="width: 80%"
-                v-model="warehouseDrList.fBusinessType"
-                filterable
-                disabled
-              >
-                <el-option
-                  v-for="(dict) in businessTypeOption"
-                  :key="dict.dictValue"
-                  :label="dict.dictLabel"
-                  :value="dict.dictValue"
-                ></el-option>
-              </el-select>
+              <template slot-scope="scope">
+                <el-select
+                  style="width: 80%"
+                  v-model="scope.row.fBusinessType"
+                  filterable
+                  disabled
+                >
+                  <el-option
+                    v-for="(dict) in businessTypeOption"
+                    :key="dict.dictValue"
+                    :label="dict.dictLabel"
+                    :value="dict.dictValue"
+                  ></el-option>
+                </el-select>
+              </template>
             </el-table-column>
 
             <el-table-column
@@ -2484,7 +2490,7 @@
       </el-dialog>
       <!-- 选择作业费协议数据 -->
       <el-dialog
-        title="作业费协1议"
+        title="作业费协议"
         :close-on-click-modal="false"
         :modal="false"
         style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
@@ -2492,8 +2498,8 @@
         width="70%"
       >
         <el-menu :default-active="activeIndex" v-if="Navigation === true" class="el-menu-demo" mode="horizontal" @select="handleSelect">
-          <el-menu-item index="1">劳务作业费</el-menu-item>
-          <el-menu-item index="2">车队作业费</el-menu-item>
+          <el-menu-item index="1">车队作业费</el-menu-item>
+          <el-menu-item index="2">劳务作业费</el-menu-item>
         </el-menu>
 
         <el-table
@@ -2562,7 +2568,7 @@
           @pagination="getWhgenlegList"
         />
         <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="zhgenlegData">导入</el-button>
+          <el-button type="primary" @click="zhgenlegData">导 入</el-button>
           <el-button @click="warehousingagreements = false ; Navigation = false">取 消</el-button>
         </div>
       </el-dialog>
@@ -2834,15 +2840,32 @@
               入库日期:{{ fBsdates }}
             </td>
           </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">{{ 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>
+            <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>
             <td width="1400" colspan="6">&nbsp;</td>
@@ -2970,6 +2993,8 @@ export default {
       },
       // 部门树选项
       fWarehouseidOptions:[],
+      fWarehouseIdOptions:[],
+      fWarehouseidOption:[],
       activeNames:['1'],
       isrequired:2,
       isrequired_s:2,
@@ -2978,6 +3003,7 @@ export default {
       doNot:false,
       // 修改查看状态
       browseStatus: false,
+      key_id:'',
       contrOl:false,
       // 审批状态控制
       approvalStatus: false,
@@ -2987,6 +3013,7 @@ export default {
       formBrowseStatus: false,
       fTruckno: "",
       fBsdates: "",
+      fMblno:"",
       fCntrtype: "",
       fGoodsids: "",
       fPlaNnumber: "",
@@ -3154,6 +3181,7 @@ export default {
       choiceWarehouse:false,
       // 查询参数
       queryParams: {
+        fWarehouselocid:null,
         pageNum: 1,
         pageSize: 10,
         fBillno: null,
@@ -3309,6 +3337,11 @@ export default {
     this.getDicts("data_customer_category").then(response => {
       this.fleetOptions = response.data;
     });
+    treeselect().then(response => {
+      console.log(response)
+      this.warehouseOptions = response.data
+    })
+    this.warehousesssMethod()
   },
   activated() {
     this.adoPt()
@@ -3321,12 +3354,18 @@ export default {
       this.addAgreements(key)
     },
     /** 查询部门下拉树结构 */
+    treeseLect(tree){
+      console.log(tree)
+      this.queryParams.fWarehouselocid = tree.id
+    },
     getTreeselect(row) {
       this.treeselectList.fWarehouselocid = null
       this.inDex = row.$index
       this.choiceWarehouse = true
       treeselect(this.form.fWarehouseid).then(response => {
+        console.log(response)
         this.fWarehouseidOptions = response.data;
+        this.fWarehouseidOption = response.data;
       })
       this.Warehouse = this.dataList[this.inDex].fWarehouseInformation
     },
@@ -3651,13 +3690,16 @@ export default {
       }
     },
     showEditDialog_ss() {
+      console.log("000")
       if (this.Printinglist.length > 0) {
+        console.log("111")
         for (let li in this.Printinglist) {
           if (this.dataListSelection.length > 0) {
             this.fTruckno = this.dataListSelection[0].fTruckno;
             this.fCntrtype = this.dataListSelection[0].fCntrtype;
             this.fGoodsids = this.dataListSelection[0].fGoodsids;
             this.fPackagespecs = this.dataListSelection[0].fPackagespecs;
+            console.log(this.Printinglist)
             var date = new Date(this.dataListSelection[0].fBsdate);
             var Y = date.getFullYear() + "-";
             var M =
@@ -3766,11 +3808,16 @@ export default {
           }
         }
         if (this.dataListSelection.length > 0) {
+          console.log(this.dataListSelection)
           this.fTruckno = this.dataListSelection[0].fTruckno
           this.fCntrtype = this.dataListSelection[0].fCntrtype
           this.fGoodsids = this.dataListSelection[0].fGoodsids
           this.fDriverTel = this.dataListSelection[0].fDriverTel
           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 Y = date.getFullYear() + '-'
           var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
@@ -3861,29 +3908,34 @@ export default {
     },
     // 查询作业费信息
     getWhgenlegList(kye) {
-      // this.queryParams.fCorpid = this.form.fCorpid;
-      // this.queryParams.fLineno = this.form.fCorpid;
       let data = {}
-      if (kye === 1){
+      let fTaskType = kye
+      if (kye == 2){
+        this.key_id = kye
         this.Navigation = true
         data = {
           pageNum:1,
           pageSize:10,
+          fTaskType:Number(fTaskType),
           fLabour:this.form.fLabour
         }
-      }else if (kye === 2) {
+      }else if (kye == 1) {
+        this.key_id = kye
         this.Navigation = true
         data = {
           pageNum:1,
           pageSize:10,
-          fCorpid:this.form.fCorpid
+          fTaskType:Number(fTaskType),
+          fFleet:this.form.fFleet
+
         }
       }else {
         this.Navigation = false
+        this.key_id = kye
         data = {
           pageNum:1,
           pageSize:10,
-          fFleet:this.form.fFleet
+          fCorpid:this.form.fCorpid
         }
       }
       operationAgreement(data).then( response => {
@@ -4018,6 +4070,7 @@ export default {
         for (let zhgen in this.dialogWhgenlegList) {
           let feeId = this.dialogWhgenlegList[zhgen].feeFId;
           getFees(feeId).then((response) => {
+            console.log(response)
             this.fWbuOptions.push(response.data);
           });
           let qty = 1;
@@ -4033,21 +4086,43 @@ export default {
           // qty=(qty/1000).toFixed(2);
           let fAmount = parseFloat(Number(this.dialogWhgenlegList[zhgen].fPrice) * Number(qty)).toFixed(2)
 
-          this.warehouseCrList.push({
-            fQty: qty,
-            fCorpid: this.dialogWhgenlegList[zhgen].fCorpid,
-            fFeeid: feeId,
-            fFeeunitid: this.dialogWhgenlegList[zhgen].fFeeUnitid + '',
-            fUnitprice: this.dialogWhgenlegList[zhgen].fPrice,
-            fCurrency: 'RMB',
-            fExrate: 1,
-            fAmount: fAmount,
-            fTaxrate: this.fTaxrate,
-            fMblno:this.form.fMblno,
-            fProductName:this.form.fProductName,
-            fMarks:this.form.fMarks,
-            fBusinessType:this.$set(this.warehouseCrList,'fBusinessType',this.form.fBusinessType)
-          })
+
+          if(this.key_id == 3){
+            console.log("111")
+            this.warehouseDrList.push({
+              fQty: qty,
+              fCorpid: this.dialogWhgenlegList[zhgen].fCorpid,
+              fFeeid: feeId,
+              fFeeunitid: this.dialogWhgenlegList[zhgen].fFeeUnitid + '',
+              fUnitprice: this.dialogWhgenlegList[zhgen].fPrice,
+              fCurrency: 'RMB',
+              fExrate: 1,
+              fAmount: fAmount,
+              fTaxrate: this.fTaxrate,
+              fMblno:this.form.fMblno,
+              fProductName:this.form.fProductName,
+              fMarks:this.form.fMarks,
+              fBusinessType:this.$set(this.warehouseDrList,'fBusinessType',this.form.fBusinessType)
+            })
+          }else{
+            this.warehouseCrList.push({
+              fQty: qty,
+              fCorpid: this.dialogWhgenlegList[zhgen].fCorpid,
+              fFeeid: feeId,
+              fFeeunitid: this.dialogWhgenlegList[zhgen].fFeeUnitid + '',
+              fUnitprice: this.dialogWhgenlegList[zhgen].fPrice,
+              fCurrency: 'RMB',
+              fExrate: 1,
+              fAmount: fAmount,
+              fTaxrate: this.fTaxrate,
+              fMblno:this.form.fMblno,
+              fProductName:this.form.fProductName,
+              fMarks:this.form.fMarks,
+              fBusinessType:this.$set(this.warehouseCrList,'fBusinessType',this.form.fBusinessType)
+            })
+
+          }
+
         }
         this.warehousingagreements = false;
       }
@@ -4265,7 +4340,6 @@ export default {
       this.detailsHidden = false;
       this.formBrowseStatus = false;
       const fId = row.fId || this.ids;
-      this.dataList = [];
       console.log(fId)
       this.goodsRemoteMethod()
       getWarehousebills(fId).then((response) => {
@@ -4294,9 +4368,13 @@ export default {
             if (this.dataList[list].fBillstatus > 10) {
               this.formBrowseStatus = true;
               this.$set(this.dataList[list], "fBusinessType", this.dataList[list].fBusinessType + '')
+            }else{
+              this.formBrowseStatus = false;
             }
             if(this.dataList[list].fBillstatus === 40){
               this.contrOl = true
+            }else{
+              this.contrOl = false
             }
           }
         }
@@ -4328,7 +4406,10 @@ export default {
         }
         this.kqhouseOptions = response.data.warehouseAreas;
         this.warehouseDrList = response.data.warehousebillsfeesDr;
+        console.log(this.businessTypeOption)
+        console.log(this.warehouseDrList)
         for (let dr in this.warehouseDrList) {
+          this.$forceUpdate()
           this.$set(this.warehouseDrList[dr], "fFeeUnitid", this.warehouseDrList[dr].fFeeunitid + "");
           this.$set(this.warehouseDrList[dr], "fQty", this.warehouseDrList[dr].fQty.toFixed(2));
           this.$set(this.warehouseDrList[dr], "fAmount", this.warehouseDrList[dr].fAmount.toFixed(2));
@@ -4338,6 +4419,7 @@ export default {
           this.$set(this.warehouseCrList[cr], "fFeeUnitid", this.warehouseCrList[cr].fFeeunitid + "");
         }
         this.userOptions = response.data.sysUser;
+        this.warehouseDrList[0].fBusinessType = this.form.fBusinessType
         this.open = true;
         this.title = "修改仓入库";
       });
@@ -4648,6 +4730,7 @@ export default {
         this.fid = response.data;
         this.formBrowseStatus = false;
         this.msgSuccess("撤销入账成功");
+        this.contrOl = false
         for (let li in this.dataWithdrawList) {
           for (let i in this.dataList) {
             if (this.dataWithdrawList[li].fId === this.dataList[i].fId) {

+ 74 - 28
src/views/warehouseBusiness/outStock/index.vue

@@ -136,11 +136,11 @@
           v-model="queryParams.fWarehouseid"
           filterable
           remote
-          clearable
+          @select="treeseLect"
+          :disabled="browseStatus || formBrowseStatus"
           style="width: 80%"
-          :remote-method="warehouseRemoteMethod"
           @keyup.enter.native="handleQuery"
-          placeholder="请选择仓库"
+          placeholder="请选择"
         >
           <el-option
             v-for="(dict, index) in warehouseOptions"
@@ -1424,7 +1424,7 @@
               <!--          <el-button type="warning" @click.prevent="addStorages('Dr')">仓储费协议</el-button >-->
               <el-button type="danger"
                          :disabled="browseStatus"
-                         @click.prevent="addAgreement('Dr')"
+                         @click.prevent="addAgreement('Dr',3)"
               >作业费协议</el-button
               >
             </div>
@@ -1768,7 +1768,7 @@
               <!--          <el-button type="warning" @click.prevent="addStorages('Cr')">仓储费协议</el-button>-->
               <el-button type="danger"
                          :disabled="browseStatus"
-                         @click.prevent="addAgreement('Cr')"
+                         @click.prevent="addAgreement('Cr',1)"
               >作业费协议</el-button
               >
             </div>
@@ -2215,9 +2215,9 @@
         :visible.sync="warehousingagreements"
         width="70%"
       >
-        <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
-          <el-menu-item index="1">作业费</el-menu-item>
-          <el-menu-item index="2">劳务费</el-menu-item>
+        <el-menu :default-active="activeIndex"  v-if="Navigation === true" class="el-menu-demo" mode="horizontal" @select="handleSelect">
+          <el-menu-item index="1">车队作业费</el-menu-item>
+          <el-menu-item index="2">劳务作业费</el-menu-item>
         </el-menu>
 
         <el-table
@@ -2278,7 +2278,7 @@
         />
         <div slot="footer" class="dialog-footer">
           <el-button type="primary" @click="zhgenlegData">导入作业费</el-button>
-          <el-button @click="warehousingagreements = false">取 消</el-button>
+          <el-button @click="warehousingagreements = false ; Navigation = false">取 消</el-button>
         </div>
       </el-dialog>
       <!-- 选择仓储费协议数据 -->
@@ -2601,13 +2601,29 @@
               出库日期:{{ fBsdate }}
             </td>
           </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">{{ item.fTruckno }}</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.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>
             <td width="1400" colspan="6">&nbsp;</td>
@@ -2730,6 +2746,7 @@ export default {
     return {
       // 劳务公司
       fCompanyOptIons: [],
+      Navigation:false,
       fleetOptions:[],
       activeIndex: '1',
       activeIndex2: '1',
@@ -2744,6 +2761,7 @@ export default {
       },
       // 部门树选项
       fWarehouseidOptions:[],
+      fWarehouseidOption:[],
       //控制作业类型校验
       isrequired:2,
       isrequired_s:2,
@@ -2881,6 +2899,7 @@ export default {
       jFeetunitOptions: [],
       // 查询参数
       queryParams: {
+        fWarehouselocid:null,
         pageNum: 1,
         pageSize: 10,
         fBillno: null,
@@ -3019,6 +3038,10 @@ export default {
     this.getDicts("data_customer_category").then(response => {
       this.fleetOptions = response.data;
     });
+    treeselect().then(response => {
+      this.warehouseOptions = response.data
+    })
+    this.warehousesssMethod()
   },
   activated() {
     this.adoPt()
@@ -3055,12 +3078,17 @@ export default {
         .catch(_ => {});
     },
     /** 查询部门下拉树结构 */
+    treeseLect(tree){
+      console.log(tree)
+      this.queryParams.fWarehouselocid = tree.id
+    },
     getTreeselect(row) {
       this.treeselectList.fWarehouselocid = null
       this.inDex = row.$index
       this.choiceWarehouse = true
       treeselect(this.form.fWarehouseid).then(response => {
         this.fWarehouseidOptions = response.data;
+        this.fWarehouseidOption = response.data;
       })
       this.Warehouse = this.dataList[this.inDex].fWarehouseInformation
     },
@@ -3157,6 +3185,7 @@ export default {
             this.$set(this.warehouseDrList[dr], "fAmount", this.warehouseDrList[dr].fAmount.toFixed(2));
           }
           this.warehouseCrList = response.data.warehousebillsfeesCr;
+          console.log("zhangs1")
           for (let cr in this.warehouseCrList) {
             this.$set(this.warehouseCrList[cr], "fFeeunitid", this.warehouseCrList[cr].fFeeunitid + "");
           }
@@ -3249,7 +3278,7 @@ export default {
       });
     },
     // 新增作业费协议
-    addAgreement(status) {
+    addAgreement(status,kye) {
       this.costStatus = status
       if (!this.form.fCorpid) {
         this.$message({ message: "请维护货权方", type: "warning", });
@@ -3263,7 +3292,7 @@ export default {
         this.dialogWhgenlegList = [];
         this.whgenlegTotal = 0;
         this.warehousingagreements = true;
-        this.getWhgenlegListt();
+        this.getWhgenlegListt(kye);
       }
     },
     // 新增仓储费协议
@@ -3287,12 +3316,33 @@ export default {
       });
     },
     // 查询作业费信息
-    getWhgenlegListt() {
-      let data = {
-        pageNum:1,
-        pageSize:10,
-        fLineno:this.form.fCorpid,
-        fFeeid:this.dataList[0].fGoodsid
+    getWhgenlegListt(kye) {
+      console.log(kye)
+      let data = {}
+      let fTaskType = kye
+      if (kye == 2){
+        this.Navigation = true
+        data = {
+          pageNum:1,
+          pageSize:10,
+          fTaskType:Number(fTaskType),
+          fLabour:this.form.fLabour
+        }
+      }else if (kye == 1) {
+        this.Navigation = true
+        data = {
+          pageNum:1,
+          pageSize:10,
+          fTaskType:Number(fTaskType),
+          fFleet:this.form.fFleet
+        }
+      }else {
+        this.Navigation = false
+        data = {
+          pageNum:1,
+          pageSize:10,
+          fCorpid:this.form.fCorpid
+        }
       }
       operationAgreement(data).then((response) => {
         console.log(response)
@@ -3981,6 +4031,9 @@ export default {
         this.warehouseCrList = response.data.warehousebillsfeesCr;
         for (let cr in this.warehouseCrList) {
           this.$set(this.warehouseCrList[cr], "fFeeunitid", this.warehouseCrList[cr].fFeeunitid + "");
+          this.$set(this.warehouseDrList[cr], "fBusinessType", this.warehouseDrList[cr].fBusinessType + "");
+
+          console.log(this.warehouseDrList[cr].fBusinessType)
         }
         this.userOptions = response.data.sysUser;
         this.open = true;
@@ -4762,13 +4815,6 @@ export default {
         this.warehouseOptions = response.rows;
       });
     },
-    /* 弹窗获取所有商品信息 */
-    goodsRemoteMethod() {
-      let queryParams = { pageNum: 1, pageSize: 10, fStatus: 0, delFlag: 0 };
-      listGoods(queryParams).then((response) => {
-        this.goodsOptions = response.rows;
-      });
-    },
     /* 获取所有仓库信息 */
     warehousesssMethod() {
       let queryParams = { pageNum: 1, pageSize: 10, fStatus: 0, delFlag: 0 };

+ 87 - 33
src/views/warehouseBusiness/stockTransfer/index.vue

@@ -136,11 +136,11 @@
           v-model="queryParams.fWarehouseid"
           filterable
           remote
-          clearable
+          @select="treeseLect"
+          :disabled="browseStatus || formBrowseStatus"
           style="width: 80%"
-          :remote-method="warehouseRemoteMethod"
           @keyup.enter.native="handleQuery"
-          placeholder="请选择仓库"
+          placeholder="请选择"
         >
           <el-option
             v-for="(dict, index) in warehouseOptions"
@@ -247,7 +247,8 @@
           <span>{{ parseTime(scope.row.fBsdate, "{y}-{m}-{d}") }}</span>
         </template>
       </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="fPlangrossweight" />
       <el-table-column label="调拨净重" align="center" prop="fPlannetweight" />
@@ -470,9 +471,6 @@
               </el-select>
             </el-form-item>
           </el-col>
-
-        </el-row>
-        <el-row>
           <el-col :span="8">
             <el-form-item label="单据编号" prop="fBillno">
               <el-input
@@ -638,11 +636,13 @@
               <el-select
                 style="width: 80%"
                 v-model="form.fLabour"
+                @keyup.enter.native="handleQuery"
                 :remote-method="flabourRemoteMethod"
-                filterable
                 remote
+                filterable
                 :disabled="contrOl"
-                placeholder="请输入劳务公司">
+                placeholder="请输入劳务公司"
+              >
                 <el-option
                   v-for="(dict, index) in fCompanyOptIons"
                   :key="index.fId"
@@ -1380,7 +1380,7 @@
               <el-button type="primary" :disabled="browseStatus" @click="saveForm">保 存</el-button>
               <el-button type="danger"
                          :disabled="browseStatus"
-                         @click.prevent="addAgreement('Dr')"
+                         @click.prevent="addAgreement('Dr',3)"
                 >作业费协议</el-button
               >
             </div>
@@ -1717,7 +1717,7 @@
               <el-button type="primary" :disabled="browseStatus" @click="saveForm">保 存</el-button>
               <el-button type="danger"
                          :disabled="browseStatus"
-                         @click.prevent="addAgreement('Cr')"
+                         @click.prevent="addAgreement('Cr',1)"
               >作业费协议</el-button>
             </div>
           </div>
@@ -2141,9 +2141,9 @@
         width="70%"
 
       >
-        <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
-          <el-menu-item index="1">作业费</el-menu-item>
-          <el-menu-item index="2">劳务费</el-menu-item>
+        <el-menu :default-active="activeIndex"  v-if="Navigation === true" class="el-menu-demo" mode="horizontal" @select="handleSelect">
+          <el-menu-item index="1">车队作业费</el-menu-item>
+          <el-menu-item index="2">劳务作业费</el-menu-item>
         </el-menu>
 
         <el-table
@@ -2205,7 +2205,7 @@
         />
         <div slot="footer" class="dialog-footer">
           <el-button type="primary" @click="zhgenlegData">导入作业费</el-button>
-          <el-button @click="warehousingagreements = false">取 消</el-button>
+          <el-button @click="warehousingagreements = false;Navigation = false">取 消</el-button>
         </div>
       </el-dialog>
       <el-dialog
@@ -2249,15 +2249,31 @@
               调拨日期:{{ form.fBsdates }}
             </td>
           </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">{{ 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>
+            <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>
             <td width="1400" colspan="6">&nbsp;</td>
@@ -2395,9 +2411,11 @@ export default {
       },
       //仓库树状图
       fWarehouseidOptions:[],
+      fWarehouseidOption:[],
       activeNames:['1'],
       //作业类型校验
       isrequired:2,
+      Navigation:false,
       isrequired_s:2,
       isrequired_l:2,
       contrOl:false,
@@ -2665,6 +2683,10 @@ export default {
     this.getDicts("data_customer_category").then(response => {
       this.fleetOptions = response.data;
     });
+    treeselect().then(response => {
+      this.warehouseOptions = response.data
+    })
+    this.warehousesssMethod()
     this.register()
   },
   activated(){
@@ -2676,6 +2698,7 @@ export default {
   methods: {
     handleSelect(key, keyPath) {
       this.addAgreements(key)
+      this.getWhgenlegListt(key)
     },
     // 新增付款作业费协议
     addAgreements(kye) {
@@ -2698,6 +2721,9 @@ export default {
       }
     },
     /** 查询部门下拉树结构 */
+    treeseLect(tree){
+      this.queryParams.fWarehouselocid = tree.id
+    },
     getTreeselect(row) {
       this.treeselectList.fWarehouselocid = null
       this.inDex = row.$index
@@ -2948,7 +2974,7 @@ export default {
       });
     },
     // 新增作业费协议
-    addAgreement(status) {
+    addAgreement(status,kye) {
       this.costStatus = status
       if (this.dataList.length === 0 || !this.dataList[0].fGoodsid) {
         this.$message({ message: "请维护库存明细,或第一行品名", type: "warning", });
@@ -2962,7 +2988,7 @@ export default {
       this.dialogWhgenlegList = []
       this.whgenlegTotal = 0
       this.warehousingagreements = true
-      this.getWhgenlegListt()
+      this.getWhgenlegListt(kye)
     },
     // 新增仓储费协议
     addStorages() {
@@ -2985,14 +3011,34 @@ export default {
       });
     },
     // 查询作业费信息
-    getWhgenlegListt() {
-      let data = {
-        pageNum:1,
-        pageSize:10,
-        fLineno:this.form.fCorpid,
-        fFeeid:this.dataList[0].fGoodsid
+    getWhgenlegListt(kye) {
+      let daTa = []
+      let fTaskType = kye
+      if (kye == 2){
+        this.Navigation = true
+        daTa = {
+          pageNum:1,
+          pageSize:10,
+          fTaskType:Number(fTaskType),
+          fLabour:this.form.fLabour
+        }
+      }else if (kye == 1) {
+        this.Navigation = true
+        daTa = {
+          pageNum:1,
+          pageSize:10,
+          fTaskType:Number(fTaskType),
+          fFleet:this.form.fFleet
+        }
+      }else {
+        this.Navigation = false
+        daTa = {
+          pageNum:1,
+          pageSize:10,
+          fCorpid:this.form.fCorpid
+        }
       }
-      operationAgreement(data).then((response) => {
+      operationAgreement(daTa).then((response) => {
         this.tasklegList = response.rows;
         this.whgenlegTotal = response.total;
       });
@@ -3325,6 +3371,15 @@ export default {
     },
     /** 查询仓库主(出入库)列表 */
     getList() {
+      let queryParams = { pageNum: 1, pageSize: 10, fTypeid: 6}
+      listCorps(queryParams).then((response) => {
+        this.fCompanyOptIons = response.rows;
+      });
+      let params = { pageNum: 1, pageSize: 10, fTypeid: 2}
+      listCorps(params).then((response) => {
+        console.log(response)
+        this.fleetOptions = response.rows;
+      });
       this.loading = true;
       getStockTransferList(this.queryParams).then((response) => {
         this.warehousebillsList = response.rows;
@@ -3337,9 +3392,8 @@ export default {
       this.whgenlegParams.fMblno = this.form.fMblno;
       this.whgenlegParams.fCorpid = this.form.fCorpid;
       this.whgenlegParams.fTrademodeid = this.form.fTrademodeid;
-      this.whgenlegParams.fInwarehouseid = this.form.fInwarehouseid
+      this.whgenlegParams.fWarehouseid = this.form.fInwarehouseid
       listWhgenleg(this.whgenlegParams).then((response) => {
-        console.log(response)
         this.whgenlegList = response.rows;
         this.whgenlegTotal = response.total;
       });