Browse Source

Merge branch 'master' of git.echepei.com:zhujiawei/Warehouse_management_ui into master

qukaidi 4 years ago
parent
commit
92dc28675f

+ 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
   })

+ 1 - 1
src/api/reportManagement/Statistics.js

@@ -46,7 +46,7 @@ export function delWhgenleg(fAccyear) {
 // 导出库存总账
 export function exportWhgenleg(query) {
   return request({
-    url: '/warehouseBusiness/whgenleg/export',
+    url: '/warehouseBusiness/summary/export',
     method: 'get',
     params: query
   })

+ 6 - 4
src/views/agreement/agreementTask/index.vue

@@ -289,8 +289,8 @@
         </el-form-item>
         <el-form-item label="作业费类型" prop="fTaskType" label-width="90px">
           <el-select v-model="form.fTaskType" placeholder="请选择作业费类型" :disabled="browseStatus">
-            <el-option label="车队作业费" value="1"></el-option>
-            <el-option label="劳务作业费" value="2"></el-option>
+            <el-option label="车队作业费" value="1"/>
+            <el-option label="劳务作业费" value="2"/>
           </el-select>
         </el-form-item>
         <el-form-item label="费用类型" prop="fDc">
@@ -934,8 +934,10 @@ export default {
       this.reset()
       this.open = true
       this.title = '添加作业费'
-      this.form.fTaskType = '1'
-      this.form.fDc = "D"
+      this.form = {
+        fTaskType :'1',
+        fDc:"D"
+      }
       queryUserVal().then((response) => {
         this.deptName = response.dept.deptName
         this.form.fDeptid = response.dept.deptId

+ 6 - 6
src/views/basicdata/corps/index.vue

@@ -397,31 +397,31 @@
       <el-table v-loading="loading" :data="contactList" @selection-change="handleSelectionChange">
 
         <el-table-column label="编号" align="center" prop="fNo" >
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.fNo"  placeholder="编号" />
           </template>
         </el-table-column>
 
         <el-table-column label="名称" align="center" prop="fName" >
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.fName"  placeholder="名称" />
           </template>
         </el-table-column>
 
         <el-table-column label="英文名称" align="center" prop="fEname">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.fEname"  placeholder="英文名称" />
           </template>
         </el-table-column>
 
         <el-table-column label="电话" align="center" prop="fTel" >
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.fTel"  placeholder="电话" />
           </template>
         </el-table-column>
 
         <el-table-column label="状态" align="center" prop="fStatus" >
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-select
               v-model="scope.row.fStatus"
               placeholder="状态"
@@ -439,7 +439,7 @@
         </el-table-column>
 
         <el-table-column label="备注" align="center" prop="remark" >
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.remark"  placeholder="备注" />
           </template>
         </el-table-column>

+ 25 - 6
src/views/basicdata/dept/index.vue

@@ -43,18 +43,35 @@
       v-loading="loading"
       :data="deptList"
       row-key="fId"
-      default-expand-all
+      :default-expand-all="false"
       :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
     >
       <el-table-column prop="fName" 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="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="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="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="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"
@@ -220,7 +237,7 @@ export default {
       },
       // 表单参数
       form: {
-        fLocation:'0'
+        fLocation: 0
       },
       // 表单校验
       rules: {
@@ -328,6 +345,8 @@ export default {
       this.reset();
       getDept(row.fId).then(response => {
         this.form = response.data;
+        this.form.fLocation = this.form.fLocation + ''
+        this.form.fCharg = this.form.fCharg + ''
         this.open = true;
         this.title = "修改仓库";
       });

+ 15 - 15
src/views/basicdata/warehousebills/index.vue

@@ -119,7 +119,7 @@ RK CK DB HZ
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="计划毛重,单位为吨,保留6位小数,由明细表自动合计生成" prop="fPlangrossweight">
+      <el-form-item label="计划毛重(kg),单位为吨,保留6位小数,由明细表自动合计生成" prop="fPlangrossweight">
         <el-input
           v-model="queryParams.fPlangrossweight"
           placeholder="请输入计划毛重,单位为吨,保留6位小数,由明细表自动合计生成"
@@ -128,7 +128,7 @@ RK CK DB HZ
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="计划净重,由明细表自动合计生成" prop="fPlannetweight">
+      <el-form-item label="计划净重(kg),由明细表自动合计生成" prop="fPlannetweight">
         <el-input
           v-model="queryParams.fPlannetweight"
           placeholder="请输入计划净重,由明细表自动合计生成"
@@ -146,7 +146,7 @@ RK CK DB HZ
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="毛重,由明细表自动合计生成" prop="fGrossweight">
+      <el-form-item label="毛重(kg),由明细表自动合计生成" prop="fGrossweight">
         <el-input
           v-model="queryParams.fGrossweight"
           placeholder="请输入毛重,由明细表自动合计生成"
@@ -155,7 +155,7 @@ RK CK DB HZ
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="净重,由明细表自动合计生成" prop="fNetweight">
+      <el-form-item label="净重(kg),由明细表自动合计生成" prop="fNetweight">
         <el-input
           v-model="queryParams.fNetweight"
           placeholder="请输入净重,由明细表自动合计生成"
@@ -174,7 +174,7 @@ RK CK DB HZ
           />
         </el-select>
       </el-form-item>
-      <el-form-item label="计费单位(数据字典),下拉选择毛重或净重" prop="fFeetunit">
+      <el-form-item label="计费单位(数据字典),下拉选择毛重(kg)或净重(kg)" prop="fFeetunit">
         <el-input
           v-model="queryParams.fFeetunit"
           placeholder="请输入计费单位(数据字典),下拉选择毛重或净重"
@@ -349,13 +349,13 @@ RK CK DB HZ
       </el-table-column>
       <el-table-column label="货物品名,t_goods 中的no或 name,模糊查找选择后,存储f_id,显示name" align="center" prop="fGoodsid" />
       <el-table-column label="计划件数,由明细表自动合计生成" align="center" prop="fPlanqty" />
-      <el-table-column label="计划毛重,单位为吨,保留6位小数,由明细表自动合计生成" align="center" prop="fPlangrossweight" />
-      <el-table-column label="计划净重,由明细表自动合计生成" align="center" prop="fPlannetweight" />
+      <el-table-column label="计划毛重(kg),单位为吨,保留6位小数,由明细表自动合计生成" align="center" prop="fPlangrossweight" />
+      <el-table-column label="计划净重(kg),由明细表自动合计生成" align="center" prop="fPlannetweight" />
       <el-table-column label="件数,由明细表自动合计生成" align="center" prop="fQty" />
-      <el-table-column label="毛重,由明细表自动合计生成" align="center" prop="fGrossweight" />
-      <el-table-column label="净重,由明细表自动合计生成" align="center" prop="fNetweight" />
+      <el-table-column label="毛重(kg),由明细表自动合计生成" align="center" prop="fGrossweight" />
+      <el-table-column label="净重(kg),由明细表自动合计生成" align="center" prop="fNetweight" />
       <el-table-column label="贸易方式(数据字典),对应t_trademodels " align="center" prop="fTrademodeid" :formatter="fTrademodeidFormat" />
-      <el-table-column label="计费单位(数据字典),下拉选择毛重或净重" align="center" prop="fFeetunit" />
+      <el-table-column label="计费单位(数据字典),下拉选择毛重(kg)或净重(kg)" align="center" prop="fFeetunit" />
       <el-table-column label="提单号" align="center" prop="fMblno" />
       <el-table-column label="船名航次" align="center" prop="fVslvoy" />
       <el-table-column label="到港日期" align="center" prop="fEta" width="180">
@@ -460,19 +460,19 @@ RK CK DB HZ
         <el-form-item label="计划件数,由明细表自动合计生成" prop="fPlanqty">
           <el-input v-model="form.fPlanqty" placeholder="请输入计划件数,由明细表自动合计生成" />
         </el-form-item>
-        <el-form-item label="计划毛重,单位为吨,保留6位小数,由明细表自动合计生成" prop="fPlangrossweight">
+        <el-form-item label="计划毛重(kg),单位为吨,保留6位小数,由明细表自动合计生成" prop="fPlangrossweight">
           <el-input v-model="form.fPlangrossweight" placeholder="请输入计划毛重,单位为吨,保留6位小数,由明细表自动合计生成" />
         </el-form-item>
-        <el-form-item label="计划净重,由明细表自动合计生成" prop="fPlannetweight">
+        <el-form-item label="计划净重(kg),由明细表自动合计生成" prop="fPlannetweight">
           <el-input v-model="form.fPlannetweight" placeholder="请输入计划净重,由明细表自动合计生成" />
         </el-form-item>
         <el-form-item label="件数,由明细表自动合计生成" prop="fQty">
           <el-input v-model="form.fQty" placeholder="请输入件数,由明细表自动合计生成" />
         </el-form-item>
-        <el-form-item label="毛重,由明细表自动合计生成" prop="fGrossweight">
+        <el-form-item label="毛重(kg),由明细表自动合计生成" prop="fGrossweight">
           <el-input v-model="form.fGrossweight" placeholder="请输入毛重,由明细表自动合计生成" />
         </el-form-item>
-        <el-form-item label="净重,由明细表自动合计生成" prop="fNetweight">
+        <el-form-item label="净重(kg),由明细表自动合计生成" prop="fNetweight">
           <el-input v-model="form.fNetweight" placeholder="请输入净重,由明细表自动合计生成" />
         </el-form-item>
         <el-form-item label="贸易方式(数据字典),对应t_trademodels " prop="fTrademodeid">
@@ -485,7 +485,7 @@ RK CK DB HZ
             ></el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="计费单位(数据字典),下拉选择毛重或净重" prop="fFeetunit">
+        <el-form-item label="计费单位(数据字典),下拉选择毛重(kg)或净重(kg)" prop="fFeetunit">
           <el-input v-model="form.fFeetunit" placeholder="请输入计费单位(数据字典),下拉选择毛重或净重" />
         </el-form-item>
         <el-form-item label="提单号" prop="fMblno">

+ 94 - 16
src/views/finance/charge/index.vue

@@ -41,12 +41,12 @@
           ></el-option>
         </el-select>
       </el-form-item>
-      <el-form-item label="对账日期" prop="fAccbilldate">
+      <el-form-item label="对账日期" prop="timeInterval">
         <el-date-picker
           type="daterange"
           size="small"
           style="width: 240px"
-          v-model="tableFilter.fAccbilldate"
+          v-model="tableFilter.timeInterval"
           start-placeholder="开始日期"
           end-placeholder="结束日期"
           value-format="yyyy-MM-dd"
@@ -226,7 +226,7 @@
             style="width: 200px"
             @keyup.enter.native="handleQuery"
             :remote-method="corpsRemoteMethod"
-            :disabled="notChange"
+            :disabled="doNot"
             placeholder="请输入结算单位"
           >
             <el-option
@@ -305,6 +305,7 @@
             <span v-else>{{ scope.row.fBilltype }}</span>
           </template>
         </el-table-column>
+        <el-table-column label="作业类型" align="center" prop="fBusinessType" />
         <el-table-column label="金额" align="center" prop="fAmtdr"/>
         <el-table-column label="本次金额" align="center" prop="fAmt"/>
         <el-table-column label="备注" align="center" prop="fRemarks"/>
@@ -363,6 +364,7 @@
               clearable
               size="small"
               style="width: 200px"
+              :disabled="doNot"
               @keyup.enter.native="handleQuery"
               :remote-method="corpsRemoteMethod"
               placeholder="请输入结算单位"
@@ -398,6 +400,38 @@
               </el-select>
             </template>
           </el-form-item>
+          <el-form-item label="仓储业务" prop="fFeeid">
+            <el-select
+              v-model="queryParameter.fBilltype"
+              size="small"
+              style="width:200px"
+              @change="changefBilltype"
+              placeholder="请选择仓储业务"
+            >
+              <el-option label="入库" value="SJRK"></el-option>
+              <el-option label="出库" value="SJCK"></el-option>
+              <el-option label="货权转移" value="HQZY"></el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label="作业类型" prop="fBusinessType">
+            <el-select
+              v-model="queryParameter.fBusinessType"
+              filterable
+              remote
+              size="small"
+              style="width:200px"
+              placeholder="作业类型"
+              multiple
+            >
+              <el-option
+                v-for="dict in businessTypeOption"
+                :key="dict.dictValue"
+                :label="dict.dictLabel"
+                :value="dict.dictValue"
+              >
+              </el-option>
+            </el-select>
+          </el-form-item>
           <el-form-item label="审核日期" prop="timeExamine">
             <el-date-picker
               size="small"
@@ -445,6 +479,7 @@
               <span v-else>{{ scope.row.fBilltype }}</span>
             </template>
           </el-table-column>
+          <el-table-column label="作业类型" align="center" prop="fBusinessType" />
           <el-table-column label="审核日期" align="center" prop="fReviewDate"/>
           <el-table-column label="费用名称" align="center" prop="fFeeName"/>
           <el-table-column label="金额" align="center" prop="fAmtdr"/>
@@ -474,7 +509,7 @@
         </el-table>
         <div slot="footer" class="dialog-footer">
           <el-button type="primary" @click="confirmImport">确 定</el-button>
-          <el-button @click="innerVisible = false">取 消</el-button>
+          <el-button @click="signOut">取 消</el-button>
         </div>
       </el-dialog>
     </el-dialog>
@@ -511,6 +546,7 @@
             <span v-else>{{ scope.row.fBilltype }}</span>
           </template>
         </el-table-column>
+        <el-table-column label="作业类型" align="center" prop="fBusinessType" />
         <el-table-column label="金额" align="center" prop="fAmtdr" width="120"/>
         <el-table-column label="本次金额" align="center" prop="fAmt" width="120"/>
       </el-table>
@@ -547,10 +583,12 @@ export default {
   name: 'Charge',
   data() {
     return {
+      doNot:false,
       Lander:'',
       Operator:'',
       approve:false,
       addOrUpdateVisible: false,
+      businessTypeOption:[],
       contrastId:220,
       tablefilter:false,
       hide:false,
@@ -602,7 +640,10 @@ export default {
         fStatementNo: '',
         fFeeid: '',
         timeExamine: '',
-        timeInterval: ''
+        timeInterval: '',
+        fBilltype:'',
+        fBusinessType:''
+
       },
       empty: [],
       //导入从表传主表
@@ -689,11 +730,24 @@ export default {
   created() {
     this.getList()
     this.register()
+    this.getDicts("st_in_type").then((response) => {
+      this.businessTypeOption = response.data;
+    });
   },
   activated(){
     this.adoPt()
   },
   methods: {
+    //财务主取消
+    signOut(){
+      if(this.increase_s.length == 0){
+        this.doNot = false
+      }else{
+        this.doNot = true
+      }
+      this.innerVisible = false
+      this.feeList = []
+    },
     //收费页面合计
     listTotal(param){
       const { columns, data } = param
@@ -739,6 +793,22 @@ export default {
     getDataList(){
       this.addOrUpdateVisible = false
     },
+    changefBilltype(){
+      this.businessTypeOption = []
+      if (this.queryParameter.fBilltype == 'SJRK'){
+        this.getDicts("st_in_type").then((response) => {
+          this.businessTypeOption = response.data;
+        });
+      }else if (this.queryParameter.fBilltype == 'SJCK'){
+        this.getDicts("st_out_type").then((response) => {
+          this.businessTypeOption = response.data;
+        });
+      }else if(this.queryParameter.fBilltype == 'HQZY'){
+        this.getDicts("st_trans_type").then((response) => {
+          this.businessTypeOption = response.data;
+        });
+      }
+    },
     homepaGe(){
       let view = {
         fullPath: "/finance/charge",
@@ -966,6 +1036,9 @@ export default {
       this.chargeList_s = []
       // this.queryParameter.fToCorpid = this.queryParams.fCorpid
       this.innerVisible = true
+      if(this.queryParams.fCorpid){
+        this.doNot = true
+      }
     },
     getSum(param){
       const {columns,data} = param;
@@ -1025,6 +1098,7 @@ export default {
     },
     //确认导入
     confirmImport() {
+      this.doNot = true
       this.hide = true
       for (let item in this.selection) {
         this.pass.fAmtcr += Number(this.selection[item].fAmt)
@@ -1187,17 +1261,10 @@ export default {
       this.tableFilter = {
         pageNum: 1,
         pageSize: 10,
-        fBillno: null,
-        fCtrlcorpid: null,
-        fCorpid: null,
-        tMblno: null,
-        fAmtdr: null,
-        fAmtcr: null,
-        fBilltype: null,
-        fBillstatus: null,
-        fRemarks: null,
-        fAccbilldate: null,
-        fDeptid: null
+        fBillno:null,
+        fCtrlcorpid:null,
+        fCorpid:null,
+        timeInterval:null
       }
       this.handleQuery()
     },
@@ -1282,6 +1349,11 @@ export default {
         this.fMblnoOptions = response.data.corps
         this.open = true
         this.title = '修改收费列表'
+        if(this.DzfeeList){
+          this.doNot = true
+        }else{
+          this.doNot = false
+        }
       })
     },
     /** 提交按钮 */
@@ -1373,6 +1445,12 @@ export default {
         this.queryParams.fAmtcr += this.increase_s[item].fAmt
         this.queryParams.fAmtdr += this.increase_s[item].fAmtdr
       }
+      if(this.increase_s == 0){
+        console.log("111")
+        this.doNot = false
+      }else{
+        this.doNot = true
+      }
     }
   }
 }

+ 172 - 77
src/views/finance/contrast/index.vue

@@ -44,9 +44,9 @@
       </el-form-item>
 
 
-      <el-form-item label="对账日期" prop="dateRange">
+      <el-form-item label="对账日期" prop="timeInterval">
         <el-date-picker
-          v-model="tablefilter.dateRange"
+          v-model="tablefilter.timeInterval"
           size="small"
           style="width: 240px"
           value-format="yyyy-MM-dd"
@@ -159,6 +159,7 @@
         label="操作"
         align="center"
         class-name="small-padding fixed-width"
+        width="160"
       >
         <template slot-scope="scope">
           <el-button
@@ -317,7 +318,8 @@
         <el-table-column label="提单号" align="center" prop="fMblno" />
         <el-table-column label="业务日期" align="center" prop="fBsdate">
           <template slot-scope="scope">
-            <span>{{scope.row.fBsdate.slice(0, 10)}}</span>
+            <span v-if="scope.row.fBsdate === undefined">无</span>
+            <span v-else>{{scope.row.fBsdate.slice(0, 10)}}</span>
           </template>
         </el-table-column>
         <el-table-column label="费用名称" align="center" prop="fFeeName" />
@@ -332,6 +334,8 @@
         <el-table-column label="数量" align="center" prop="fQty" />
         <el-table-column label="单价" align="center" prop="fUnitprice" />
         <el-table-column label="本次金额" align="center" prop="fAmt" />
+        <el-table-column label="作业类型" align="center" prop="fBusinessType" />
+
         <el-table-column label="业务类型" align="center" prop="fBilltype">
           <template slot-scope="scope">
             <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
@@ -348,12 +352,14 @@
         <el-table-column label="品牌" align="center" prop="fMarks" />
         <el-table-column label="计费起始日期" align="center" prop="fChargedate">
           <template slot-scope="scope">
-            <span>{{scope.row.fChargedate.slice(0, 10)}}</span>
+            <span v-if="scope.row.fChargedate === undefined">无</span>
+            <span v-else>{{scope.row.fChargedate.slice(0, 10)}}</span>
           </template>
         </el-table-column>
         <el-table-column label="计费截止日期" align="center" prop="fBillingDeadline">
           <template slot-scope="scope">
-            <span>{{scope.row.fBillingDeadline.slice(0, 10)}}</span>
+            <span v-if="scope.row.fBillingDeadline === undefined">无</span>
+            <span v-else>{{scope.row.fBillingDeadline.slice(0, 10)}}</span>
           </template>
         </el-table-column>
         <el-table-column label="计费天数" align="center" prop="fBillingDays" />
@@ -498,7 +504,39 @@
               </el-select>
             </template>
           </el-form-item>
-
+          <el-form-item label="仓储业务" prop="fFeeid">
+            <el-select
+              v-model="TWareHouseFees.fBilltype"
+              size="small"
+              style="width:200px"
+              @change="changefBilltype"
+              placeholder="请选择仓储业务"
+            >
+              <el-option label="入库" value="SJRK"></el-option>
+              <el-option label="出库" value="SJCK"></el-option>
+              <el-option label="货权转移" value="HQZY"></el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label="作业类型" prop="fBusinessType">
+            <el-select
+              v-model="TWareHouseFees.fBusinessType"
+              filterable
+              :disabled="browseStatus"
+              remote
+              size="small"
+              style="width:200px"
+              placeholder="作业类型"
+              multiple
+            >
+              <el-option
+                v-for="dict in businessTypeOption"
+                :key="dict.dictValue"
+                :label="dict.dictLabel"
+                :value="dict.dictValue"
+              >
+              </el-option>
+            </el-select>
+          </el-form-item>
           <el-form-item label="审核日期" prop="timeExamine">
             <el-date-picker
               style="width: 240px"
@@ -524,7 +562,6 @@
               :default-time="['00:00:00', '23:59:59']"
             ></el-date-picker>
           </el-form-item>
-
           <el-form-item>
             <!-- <el-button class="btnColor" type="info" size="mini">导入</el-button> -->
             <el-button
@@ -567,6 +604,7 @@
                 <span v-else-if="scope.row.fBilltype == 'JSCCF'">仓储费</span>
               </template>
             </el-table-column>
+            <el-table-column label="作业类型" align="center" prop="fBusinessType" />
             <!--       <el-table-column label="单据类型" align="center" prop="fBilltype" />-->
             <el-table-column
               label="审核日期"
@@ -745,6 +783,7 @@ export default {
       },
       hide:false,
       cancelButton:true,
+      businessTypeOption:[],
       // 传值对象
       TWareHouseFees:{
         fCorpid:'',
@@ -757,6 +796,8 @@ export default {
         fDc:'D',
         fReconciliation:'0',
         timeReconci:'',
+        fBusinessType:'',
+        fBilltype:'SJRK'
       },
       // 查询参数
       queryParams: {
@@ -834,6 +875,9 @@ export default {
     this.getDicts("data_unitfees").then((response) => {
       this.jFeetunitOptions = response.data;
     });
+    this.getDicts("st_in_type").then((response) => {
+      this.businessTypeOption = response.data;
+    });
   },
   activated(){
     this.Jump()
@@ -864,6 +908,11 @@ export default {
     },
     //财务主取消
     signOut(){
+      if(this.DzfeeList.length == 0){
+        this.doNot = false
+      }else{
+        this.doNot = true
+      }
       this.innerVisible = false
       this.feeList = []
     },
@@ -1076,7 +1125,8 @@ export default {
         fSrcdc:'',
         fReconciliation:'0',
         timeReconci: '',
-        fDc:'D'
+        fDc:'D',
+        fBilltype:''
       }
       if(this.queryParams.fCorpid){
         this.doNot = true
@@ -1168,10 +1218,51 @@ export default {
             this.nothing.push(this.selection[item].fName)
             if(this.DzfeeList.length === 0) {
                 this.DzfeeList = this.DzfeeList.concat(this.selection)
+
+              //去重提单号
+              this.empty = new Set(this.empty)
+              this.empty = Array.from(this.empty)
+              //去重货权方
+              this.nothing = new Set(this.nothing)
+              this.nothing = Array.from(this.nothing)
+              if(this.empty.length <= 1){
+                this.pass.fMblno = this.empty[0]
+              }else {
+                this.pass.fMblno = this.empty[0] + "..."
+              }
+              if (this.nothing.length <= 1){
+                this.pass.fName = this.nothing[0]
+              }else {
+                this.pass.fName = this.nothing[0] + "..."
+              }
+              // this.DzfeeList = this.DzfeeList.concat(this.Fee)
+              this.queryParams.tMblno = this.pass.fMblno //提单号
+              this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid
+              this.queryParams.fCtrlcorpid = this.pass.fName
+              this.queryParams.fAmtcr = this.pass.fAmtcr
+              this.queryParams.fAmtdr = this.pass.fAmtdr
+              this.innerVisible = false
+              this.feeList = []
+              //  this.feeList = this.DzfeeList
+              this.TWareHouseFees = {
+                fCorpid:'',
+                fToCorpid:'',
+                fMblno:'',
+                fStatementNo:'',
+                fFeeid :'',
+                timeExamine:'',
+                timeInterval:'',
+                fSrcdc:'',
+                fReconciliation:'0',
+                timeReconci: '',
+                fDc:'D'
+              }
+              return
             }else{
               for(let li in this.DzfeeList){
                 if(this.selection[item].fSrcid !== this.DzfeeList[li].fSrcid){
                   this.Fee = this.DzfeeList.concat(this.selection)
+                  console.log(this.Fee)
                   let result = [];
                   let obj = {};
                   for(let lis in this.Fee){
@@ -1180,51 +1271,53 @@ export default {
                       obj[this.Fee[lis].fSrcid] = true;
                     }
                   }
+                  //去重提单号
+                  this.empty = new Set(this.empty)
+                  this.empty = Array.from(this.empty)
+                  //去重货权方
+                  this.nothing = new Set(this.nothing)
+                  this.nothing = Array.from(this.nothing)
+                  if(this.empty.length <= 1){
+                    this.pass.fMblno = this.empty[0]
+                  }else {
+                    this.pass.fMblno = this.empty[0] + "..."
+                  }
+                  if (this.nothing.length <= 1){
+                    this.pass.fName = this.nothing[0]
+                  }else {
+                    this.pass.fName = this.nothing[0] + "..."
+                  }
+                  // this.DzfeeList = this.DzfeeList.concat(this.Fee)
+                  this.queryParams.tMblno = this.pass.fMblno //提单号
+                  this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid
+                  this.queryParams.fCtrlcorpid = this.pass.fName
+                  this.queryParams.fAmtcr = this.pass.fAmtcr
+                  this.queryParams.fAmtdr = this.pass.fAmtdr
+                  this.innerVisible = false
+                  this.feeList = []
+                  //  this.feeList = this.DzfeeList
+                  this.TWareHouseFees = {
+                    fCorpid:'',
+                    fToCorpid:'',
+                    fMblno:'',
+                    fStatementNo:'',
+                    fFeeid :'',
+                    timeExamine:'',
+                    timeInterval:'',
+                    fSrcdc:'',
+                    fReconciliation:'0',
+                    timeReconci: '',
+                    fDc:'D'
+                  }
                   this.DzfeeList = result
                 }else{
-                  this.$message.error("从表已存在无法导入")
+                  let i = Number(item)+1
+                  this.$message.error('行号为'+ i +'重复')
+
                 }
               }
             }
           }
-          //去重提单号
-          this.empty = new Set(this.empty)
-          this.empty = Array.from(this.empty)
-          //去重货权方
-          this.nothing = new Set(this.nothing)
-          this.nothing = Array.from(this.nothing)
-          if(this.empty.length <= 1){
-            this.pass.fMblno = this.empty[0]
-          }else {
-            this.pass.fMblno = this.empty[0] + "..."
-          }
-          if (this.nothing.length <= 1){
-            this.pass.fName = this.nothing[0]
-          }else {
-            this.pass.fName = this.nothing[0] + "..."
-          }
-          // this.DzfeeList = this.DzfeeList.concat(this.Fee)
-          this.queryParams.tMblno = this.pass.fMblno //提单号
-          this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid
-          this.queryParams.fCtrlcorpid = this.pass.fName
-          this.queryParams.fAmtcr = this.pass.fAmtcr
-          this.queryParams.fAmtdr = this.pass.fAmtdr
-          this.innerVisible = false
-          this.feeList = []
-          //  this.feeList = this.DzfeeList
-          this.TWareHouseFees = {
-            fCorpid:'',
-            fToCorpid:'',
-            fMblno:'',
-            fStatementNo:'',
-            fFeeid :'',
-            timeExamine:'',
-            timeInterval:'',
-            fSrcdc:'',
-            fReconciliation:'0',
-            timeReconci: '',
-            fDc:'D'
-          }
         }
       }else if(this.state_s == false){
         this.$message.error('本次金额不能大于原定金额');
@@ -1272,7 +1365,8 @@ export default {
         // this.feeList = response.rows;
         this.options = response.data
       });
-      listFee(this.tableFilter).then(response => {
+       console.log(this.tablefilter)
+      listFee(this.tablefilter).then(response => {
         this.contrastList = response.rows
         this.total = response.total
         this.loading = false
@@ -1315,41 +1409,34 @@ export default {
       this.getList();
       // this.searchFee()
     },
+    changefBilltype(){
+      this.businessTypeOption = []
+      if (this.TWareHouseFees.fBilltype == 'SJRK'){
+        this.getDicts("st_in_type").then((response) => {
+          this.businessTypeOption = response.data;
+        });
+      }else if (this.TWareHouseFees.fBilltype == 'SJCK'){
+        this.getDicts("st_out_type").then((response) => {
+          this.businessTypeOption = response.data;
+        });
+      }else if(this.TWareHouseFees.fBilltype == 'HQZY'){
+        this.getDicts("st_trans_type").then((response) => {
+          this.businessTypeOption = response.data;
+        });
+      }
+    },
     /** 重置按钮操作 */
     resetQuery() {
       // this.resetForm("queryParams_s");
-      this.tableFilter = {
+      this.tablefilter = {
         pageNum: 1,
         pageSize: 10,
         fBillno: null,
         fCtrlcorpid: null,
-        fId: null,
-        fCorpid: null,
-        tMblno: null,
-        fAmtdr: null,
-        fAmtcr: null,
-        fBilltype: null,
-        fBillstatus: null,
-        fRemarks: null,
-        fAccbilldate: null,
-        fDeptid: null
-      }
-      this.queryParams_s = {
-        pageNum: 1,
-        pageSize: 10,
-        fBillno: null,
-        fCtrlcorpid: null,
-        fId: null,
         fCorpid: null,
-        tMblno: null,
-        fAmtdr: null,
-        fAmtcr: null,
-        fBilltype: null,
-        fBillstatus: null,
-        fRemarks: null,
-        fAccbilldate: null,
-        fDeptid: null
+        timeInterval:null,
       }
+
       this.handleQuery();
       this.TWareHouseFees={
         fCorpid:'',
@@ -1488,6 +1575,7 @@ export default {
             this.fWbuOptions = response.data.feesList
             this.fMblnoOptions = response.data.corps
             this.open = true
+            this.open = true
           })
         }
       })
@@ -1514,10 +1602,10 @@ export default {
         this.fMblnoOptions = response.data.corps
         this.open = true;
         this.title = "修改财务数据主";
-        if(this.queryParams.fCorpid === null){
-          this.doNot = false
-        }else{
+        if(this.DzfeeList){
           this.doNot = true
+        }else{
+          this.doNot = false
         }
       });
     },
@@ -1542,6 +1630,7 @@ export default {
             formData.append('tFee', JSON.stringify(this.queryParams))
             formData.append('tFeeDo', JSON.stringify(this.DzfeeList))
             updateFee(formData).then(response => {
+              console.log(response)
               this.queryParams = response.data.tFee
               this.msgSuccess('新增成功')
               // this.DzfeeList = []
@@ -1658,6 +1747,12 @@ export default {
         this.queryParams.fAmtcr = this.DzfeeList[item].fAmt
         this.queryParams.fAmtdr = this.DzfeeList[item].fAmtdr
       }
+      if(this.DzfeeList == 0){
+        console.log("111")
+        this.doNot = false
+      }else{
+        this.doNot = true
+      }
     },
   },
 };

+ 83 - 15
src/views/finance/payment/index.vue

@@ -41,12 +41,12 @@
           ></el-option>
         </el-select>
       </el-form-item>
-      <el-form-item label="对账日期" prop="fAccbilldate">
+      <el-form-item label="对账日期" prop="timeInterval">
         <el-date-picker
           type="daterange"
           size="small"
           style="width: 240px"
-          v-model="tableFilter.fAccbilldate"
+          v-model="tableFilter.timeInterval"
           start-placeholder="开始日期"
           end-placeholder="结束日期"
           value-format="yyyy-MM-dd"
@@ -226,7 +226,7 @@
             style="width: 200px"
             @keyup.enter.native="handleQuery"
             :remote-method="corpsRemoteMethod"
-            :disabled="notChange"
+            :disabled="doNot"
             placeholder="请输入结算单位"
           >
             <el-option
@@ -304,6 +304,7 @@
             <span v-else>{{ scope.row.fBilltype }}</span>
           </template>
         </el-table-column>
+        <el-table-column label="作业类型" align="center" prop="fBusinessType" />
         <el-table-column label="金额" align="center" prop="fAmtdr"/>
         <el-table-column label="本次金额" align="center" prop="fAmt"/>
         <el-table-column label="备注" align="center" prop="fRemarks"/>
@@ -361,6 +362,7 @@
               remote
               clearable
               size="small"
+              :disabled="doNot"
               style="width: 200px"
               @keyup.enter.native="handleQuery"
               :remote-method="corpsRemoteMethod"
@@ -397,6 +399,38 @@
               </el-select>
             </template>
           </el-form-item>
+          <el-form-item label="仓储业务" prop="fFeeid">
+            <el-select
+              v-model="queryParameter.fBilltype"
+              size="small"
+              style="width:200px"
+              @change="changefBilltype"
+              placeholder="请选择仓储业务"
+            >
+              <el-option label="入库" value="SJRK"></el-option>
+              <el-option label="出库" value="SJCK"></el-option>
+              <el-option label="货权转移" value="HQZY"></el-option>
+            </el-select>
+          </el-form-item>
+          <el-form-item label="作业类型" prop="fBusinessType">
+            <el-select
+              v-model="queryParameter.fBusinessType"
+              filterable
+              remote
+              size="small"
+              style="width:200px"
+              placeholder="作业类型"
+              multiple
+            >
+              <el-option
+                v-for="dict in businessTypeOption"
+                :key="dict.dictValue"
+                :label="dict.dictLabel"
+                :value="dict.dictValue"
+              >
+              </el-option>
+            </el-select>
+          </el-form-item>
           <el-form-item label="审核日期" prop="timeExamine">
             <el-date-picker
               size="small"
@@ -444,6 +478,7 @@
               <span v-else>{{ scope.row.fBilltype }}</span>
             </template>
           </el-table-column>
+          <el-table-column label="作业类型" align="center" prop="fBusinessType" />
           <el-table-column label="审核日期" align="center" prop="fReviewDate"/>
           <el-table-column label="费用名称" align="center" prop="fFeeName"/>
           <el-table-column label="金额" align="center" prop="fAmtdr"/>
@@ -473,7 +508,7 @@
         </el-table>
         <div slot="footer" class="dialog-footer">
           <el-button type="primary" @click="confirmImport">确 定</el-button>
-          <el-button @click="innerVisible = false">取 消</el-button>
+          <el-button @click="signOut">取 消</el-button>
         </div>
       </el-dialog>
     </el-dialog>
@@ -546,6 +581,7 @@ export default {
   name: 'Charge',
   data() {
     return {
+      doNot:false,
       Lander:'',
       Operator:'',
       approve:false,
@@ -592,6 +628,7 @@ export default {
       title: '',
       // 是否显示弹出层
       open: false,
+      businessTypeOption:[],
       fMblnoOptions: '',
       //导入查询参数
       queryParameter: {
@@ -688,11 +725,24 @@ export default {
   created() {
     this.getList()
     this.register()
+    this.getDicts("st_in_type").then((response) => {
+      this.businessTypeOption = response.data;
+    });
   },
   activated(){
     this.adoPt()
   },
   methods: {
+    //财务主取消
+    signOut(){
+      if(this.increase_s == 0){
+        this.doNot = false
+      }else{
+        this.doNot = true
+      }
+      this.innerVisible = false
+      this.feeList = []
+    },
     //付费页面合计
     listTotal(param){
       const { columns, data } = param
@@ -730,6 +780,22 @@ export default {
         }
       })
     },
+    changefBilltype(){
+      this.businessTypeOption = []
+      if (this.queryParameter.fBilltype == 'SJRK'){
+        this.getDicts("st_in_type").then((response) => {
+          this.businessTypeOption = response.data;
+        });
+      }else if (this.queryParameter.fBilltype == 'SJCK'){
+        this.getDicts("st_out_type").then((response) => {
+          this.businessTypeOption = response.data;
+        });
+      }else if(this.queryParameter.fBilltype == 'HQZY'){
+        this.getDicts("st_trans_type").then((response) => {
+          this.businessTypeOption = response.data;
+        });
+      }
+    },
     returnData(){
       this.addOrUpdateVisib = false
       this.open = false
@@ -965,6 +1031,9 @@ export default {
       this.chargeList_s = []
       // this.queryParameter.fToCorpid = this.queryParams.fCorpid
       this.innerVisible = true
+      if(this.queryParams.fCorpid){
+        this.doNot = true
+      }
     },
     getSum(param){
       const {columns,data} = param;
@@ -1024,6 +1093,7 @@ export default {
     },
     //确认导入
     confirmImport() {
+      this.doNot = true
       this.hide = true
       for (let item in this.selection) {
         this.pass.fAmtcr += Number(this.selection[item].fAmt.toFixed(2))
@@ -1185,17 +1255,10 @@ export default {
       this.tableFilter = {
         pageNum: 1,
         pageSize: 10,
-        fBillno: null,
-        fCtrlcorpid: null,
-        fCorpid: null,
-        tMblno: null,
-        fAmtdr: null,
-        fAmtcr: null,
-        fBilltype: null,
-        fBillstatus: null,
-        fRemarks: null,
-        fAccbilldate: null,
-        fDeptid: null
+        timeInterval:null,
+        fBillno:null,
+        fCtrlcorpid:null,
+        fCorpid:null
       }
       this.handleQuery()
     },
@@ -1383,6 +1446,11 @@ export default {
         this.queryParams.fAmtcr += this.increase_s[item].fAmt
         this.queryParams.fAmtdr += this.increase_s[item].fAmtdr
       }
+      if(this.increase_s == 0){
+        this.doNot = false
+      }else{
+        this.doNot = true
+      }
     }
   }
 }

+ 24 - 24
src/views/fleet/plans/edit.vue

@@ -280,34 +280,34 @@
       </div>
       <el-table :data="planList">
         <el-table-column label="箱型" align="center" prop="cntrId">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.cntrId" placeholder="箱型" />
           </template>
         </el-table-column>
 
         <el-table-column label="计费方式" align="center" prop="priceType">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.priceType" placeholder="计费方式" />
           </template>
         </el-table-column>
 
         <el-table-column label="应收运价" align="center" prop="priceDr">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.priceDr" placeholder="应收运价" />
           </template>
         </el-table-column>
         <el-table-column label="应付运价" align="center" prop="priceCr">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.priceCr" placeholder="应付运价" />
           </template>
         </el-table-column>
         <el-table-column label="计划货量" align="center" prop="cntrQty">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.cntrQty" placeholder="计划货量" />
           </template>
         </el-table-column>
         <el-table-column label="已调度货量" align="center" prop="cntrPlanQty">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input
               v-model="scope.row.cntrPlanQty"
               placeholder="已调度货量"
@@ -315,12 +315,12 @@
           </template>
         </el-table-column>
         <el-table-column label="已派车货量" align="center" prop="cntrBlcQty">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.cntrBlcQty" placeholder="已派车货量" />
           </template>
         </el-table-column>
         <el-table-column label="备注" align="center" prop="remarks">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.remarks" placeholder="备注" />
           </template>
         </el-table-column>
@@ -453,59 +453,59 @@
       </div>
       <el-table :data="detailList">
         <el-table-column label="结算单位" align="center" prop="cntrId">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.cntrId" placeholder="结算单位" />
           </template>
         </el-table-column>
 
         <el-table-column label="费用名称" align="center" prop="priceType">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.priceType" placeholder="费用名称" />
           </template>
         </el-table-column>
 
         <el-table-column label="收付" align="center" prop="dc">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.dc" placeholder="收付" />
           </template>
         </el-table-column>
         <el-table-column label="计费单位" align="center" prop="priceCr">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.priceCr" placeholder="计费单位" />
           </template>
         </el-table-column>
         <el-table-column label="计费数量" align="center" prop="qty">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.qty" placeholder="计费数量" />
           </template>
         </el-table-column>
         <el-table-column label="单价" align="center" prop="price">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.price" placeholder="单价" />
           </template>
         </el-table-column>
         <el-table-column label="币种" align="center" prop="cntrBlcQty">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.cntrBlcQty" placeholder="币种" />
           </template>
         </el-table-column>
         <el-table-column label="税率" align="center" prop="cntrBlcQty">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.cntrBlcQty" placeholder="税率" />
           </template>
         </el-table-column>
         <el-table-column label="金额" align="center" prop="amt">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.amt" placeholder="金额" />
           </template>
         </el-table-column>
         <el-table-column label="税率" align="center" prop="cntrBlcQty">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.cntrBlcQty" placeholder="税率" />
           </template>
         </el-table-column>
         <el-table-column label="备注" align="center" prop="remarks">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.remarks" placeholder="备注" />
           </template>
         </el-table-column>
@@ -543,29 +543,29 @@
       </div>
       <el-table :data="schedulingList">
         <el-table-column label="箱型" align="center" prop="cntrId">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.cntrId" placeholder="箱型" />
           </template>
         </el-table-column>
 
         <el-table-column label="车队名称" align="center" prop="carcorPid">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.carcorPid" placeholder="车队名称" />
           </template>
         </el-table-column>
 
         <el-table-column label="调度安排货量" align="center" prop="cntrQty">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.cntrQty" placeholder="调度安排货量" />
           </template>
         </el-table-column>
         <el-table-column label="已派车货量" align="center" prop="carQty">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.carQty" placeholder="已派车货量" />
           </template>
         </el-table-column>
         <el-table-column label="备注" align="center" prop="remarks">
-          <template scope="scope">
+          <template slot-scope="scope">
             <el-input v-model="scope.row.remarks" placeholder="备注" />
           </template>
         </el-table-column>

+ 44 - 51
src/views/reportManagement/Statistics/index.vue

@@ -2,41 +2,14 @@
   <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.fWarehouseid"
+                    :options="fWarehouseidOption"
+                    @select="treeseLect"
+                    :show-count="true"
+                    placeholder="请选择归属库区" />
       </el-form-item>
+
       <el-form-item label="货物名称" prop="fgoodsid">
         <el-select
           v-model="queryParams.fGoodsid"
@@ -56,16 +29,18 @@
           ></el-option>
         </el-select>
       </el-form-item>
-      <el-form-item label="入库日期" prop="createTime">
+      <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">
+          @keyup.enter.native="handleQuery"
+        >
         </el-date-picker>
       </el-form-item>
       <el-form-item label="贸易方式" prop="fTrademodeid">
@@ -169,17 +144,18 @@
       <el-table-column label="货物属性" align="center" prop="fBusinessTypes" width="120"/>
       <el-table-column label="属性详情" align="center" prop="fMarks" width="120"/>
       <el-table-column label="品名" align="center" prop="fGoodsName" width="120"/>
-      <el-table-column label="库区" align="center" prop="fWarehouseLocationids" width="120"/>
-      <el-table-column
+      <el-table-column label="库区" align="center" prop="fWarehouseLocationids" width="160"/>
+      <el-table-column label="贸易方式" align="center" prop="fTrademodeid" width="120"/>
+<!--      <el-table-column
         label="贸易方式"
         align="center"
         prop="fTrademodeid"
         :formatter="fTrademodeidFormat"
         width="120"
-      />
+      />-->
       <el-table-column label="件数" align="center" prop="fQty" />
-      <el-table-column label="毛重" align="center" prop="fGrossweight" />
-      <el-table-column label="净重" align="center" prop="fNetweight" />
+      <el-table-column label="毛重(kg)" align="center" prop="fGrossweight" />
+      <el-table-column label="净重(kg)" align="center" prop="fNetweight" />
 
 <!--      <el-table-column v-if="queryParams.fBilltype === 'SJRK'" label="入库件数" align="center" prop="fQty" width="120"/>-->
 <!--      <el-table-column v-if="queryParams.fBilltype === 'SJCK'" label="出库件数" align="center" prop="fQty" width="120"/>-->
@@ -235,10 +211,10 @@
         <el-form-item label="上期件数" prop="fPreqty">
           <el-input v-model="form.fPreqty" placeholder="请输入上期件数" />
         </el-form-item>
-        <el-form-item label="上期毛重,单位为吨,保留6位小数" prop="fPregrossweight">
+        <el-form-item label="上期毛重(kg),单位为吨,保留6位小数" prop="fPregrossweight">
           <el-input v-model="form.fPregrossweight" placeholder="请输入上期毛重,单位为吨,保留6位小数" />
         </el-form-item>
-        <el-form-item label="上期净重," prop="fPrenetweight">
+        <el-form-item label="上期净重(kg)," prop="fPrenetweight">
           <el-input v-model="form.fPrenetweight" placeholder="请输入上期净重," />
         </el-form-item>
         <el-form-item label="入库件数" prop="fQtyd">
@@ -247,10 +223,10 @@
         <el-form-item label="入库尺码" prop="fVolumnd">
           <el-input v-model="form.fVolumnd" placeholder="请输入入库尺码" />
         </el-form-item>
-        <el-form-item label="入库毛重" prop="fGrossweightd">
+        <el-form-item label="入库毛重(kg)" prop="fGrossweightd">
           <el-input v-model="form.fGrossweightd" placeholder="请输入入库毛重" />
         </el-form-item>
-        <el-form-item label="入库净重" prop="fNetweightd">
+        <el-form-item label="入库净重(kg)" prop="fNetweightd">
           <el-input v-model="form.fNetweightd" placeholder="请输入入库净重" />
         </el-form-item>
         <el-form-item label="出口尺码" prop="fVolumnc">
@@ -262,13 +238,13 @@
         <el-form-item label="结余件数" prop="fQtyblc">
           <el-input v-model="form.fQtyblc" placeholder="请输入结余件数" />
         </el-form-item>
-        <el-form-item label="出库毛重,单位为吨" prop="fGrossweightc">
-          <el-input v-model="form.fGrossweightc" placeholder="请输入出库毛重,单位为吨" />
+        <el-form-item label="出库毛重(kg),单位为吨" prop="fGrossweightc">
+          <el-input v-model="form.fGrossweightc" placeholder="请输入出库毛重(kg),单位为吨" />
         </el-form-item>
-        <el-form-item label="出库净重" prop="fNetweightc">
+        <el-form-item label="出库净重(kg)" prop="fNetweightc">
           <el-input v-model="form.fNetweightc" placeholder="请输入出库净重" />
         </el-form-item>
-        <el-form-item label="结余毛重" prop="fGrossweightblc">
+        <el-form-item label="结余毛重(kg)" prop="fGrossweightblc">
           <el-input v-model="form.fGrossweightblc" placeholder="请输入结余毛重" />
         </el-form-item>
         <el-form-item label="结余净重" prop="fNetweightblc">
@@ -301,18 +277,23 @@
 </template>
 
 <script>
-import { listWhgenleg, getWhgenleg, delWhgenleg, addWhgenleg, updateWhgenleg, exportWhgenleg } from "@/api/reportManagement/Statistics";
-import {listWarehouse} from "@/api/basicdata/warehouse";
+import { listWhgenleg, getWhgenleg, delWhgenleg, addWhgenleg, updateWhgenleg, exportWhgenleg , } from "@/api/reportManagement/Statistics";
+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:[],
       options:[{
         name:'出库',
         key:'SJCK'
@@ -383,8 +364,20 @@ export default {
     this.getDicts("data_trademodes").then((response) => {
       this.fTrademodeidOptions = response.data;
     });
+    treeselect().then(response => {
+      this.fWarehouseidOption = response.data
+    })
   },
   methods: {
+    treeseLect(tree){
+      this.queryParams.fWarehouseid = tree.id
+    },
+    getTreeselect() {
+      treeselect().then(response => {
+        this.warehousesOptions = response.data;
+      });
+    },
+
     // 贸易方式(数据字典),对���t_trademodels 字典翻译
     fTrademodeidFormat(row, column) {
       return this.selectDictLabel(this.fTrademodeidOptions, row.fTrademodeid);

+ 34 - 41
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
@@ -149,6 +121,11 @@
           <span>{{ parseTime(scope.row.fOriginalbilldate , "{y}-{m}-{d}") }}</span>
         </template>
       </el-table-column>
+      <el-table-column label="仓储费计算日期" align="center" prop="fChargedate" width="120">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.fChargedate , "{y}-{m}-{d}") }}</span>
+        </template>
+      </el-table-column>
       <el-table-column label="提单号" align="center" prop="fMblno" show-overflow-tooltip width="120"/>
       <el-table-column label="货物属性" align="center" prop="fBusinessTypes" width="120"/>
       <el-table-column label="属性详情" align="center" prop="fMarks" width="120"/>
@@ -163,15 +140,15 @@
       />
       <el-table-column label="入库件数" align="center" prop="fQtyD" width="120"/>
 <!--      <el-table-column label="入库尺码" align="center" prop="fVolumnD" />-->
-      <el-table-column label="入库毛重" align="center" prop="fGrossweightD" width="120"/>
-      <el-table-column label="入库净重" align="center" prop="fNetweightD" width="120"/>
+      <el-table-column label="入库毛重(kg)" align="center" prop="fGrossweightD" width="120"/>
+      <el-table-column label="入库净重(kg)" align="center" prop="fNetweightD" width="120"/>
 <!--      <el-table-column label="出库尺码" align="center" prop="fVolumnC" />-->
       <el-table-column label="出库件数" align="center" prop="fQtyC" width="120"/>
-      <el-table-column label="出库毛重" align="center" prop="fGrossweightC" width="120"/>
-      <el-table-column label="出库净重" align="center" prop="fNetweightC" width="120"/>
+      <el-table-column label="出库毛重(kg)" align="center" prop="fGrossweightC" width="120"/>
+      <el-table-column label="出库净重(kg)" align="center" prop="fNetweightC" width="120"/>
       <el-table-column label="结余件数" align="center" prop="fQtyblc" width="120"/>
-      <el-table-column label="结余毛重" align="center" prop="fGrossweightblc" width="120"/>
-      <el-table-column label="结余净重" align="center" prop="fNetweightblc" width="120"/>
+      <el-table-column label="结余毛重(kg)" align="center" prop="fGrossweightblc" width="120"/>
+      <el-table-column label="结余净重(kg)" align="center" prop="fNetweightblc" width="120"/>
       <el-table-column label="箱号" align="center" prop="fCntrno" width="120"/>
       <el-table-column label="备注" align="center" prop="remark" width="120"/>
       <!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
@@ -279,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 字典
@@ -351,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);

+ 42 - 47
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
@@ -262,8 +251,8 @@
       />
       <el-table-column label="仓库" align="center" prop="fWarehouseid"/>
       <el-table-column label="件数" align="center" prop="fQty"/>
-      <el-table-column label="毛重" align="center" prop="fGrossweight"/>
-      <el-table-column label="净重" align="center" prop="fNetweight"/>
+      <el-table-column label="毛重(kg)" align="center" prop="fGrossweight"/>
+      <el-table-column label="净重(kg)" align="center" prop="fNetweight"/>
       <el-table-column
         width="100"
         label="货转状态"
@@ -724,7 +713,7 @@
           header-align="center"
           align="center"
           width="180px"
-          label="*库存毛重"
+          label="*库存毛重(kg)"
         >
         </el-table-column>
         <el-table-column
@@ -732,7 +721,7 @@
           header-align="center"
           width="180px"
           align="center"
-          label="*库存净重"
+          label="*库存净重(kg)"
         >
         </el-table-column>
         <el-table-column
@@ -758,7 +747,7 @@
           header-align="center"
           width="180px"
           align="center"
-          label="*货转毛重"
+          label="*货转毛重(kg)"
         >
           <template slot-scope="scope">
             <el-input
@@ -776,7 +765,7 @@
           header-align="center"
           width="180px"
           align="center"
-          label="*货转净重"
+          label="*货转净重(kg)"
         >
           <template slot-scope="scope">
             <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;
@@ -2498,8 +2494,6 @@
           this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
           this.open = true
           this.title = '修改货存转移'
-          console.log(this.Operator)
-          console.log(this.Lander)
         })
       },
 
@@ -2510,7 +2504,6 @@
         this.browseStatus = true
         const fId = row.fId || this.ids
         getGoodsTransfer(fId).then((response) => {
-          console.log(response.data.corps[0].createBy)
           this.Operator = response.data.corps[0].createBy
           this.form = response.data.warehousebills
           this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '')
@@ -2549,8 +2542,6 @@
           this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
           this.open = true
           this.title = '修改货存转移'
-          console.log(this.Operator)
-          console.log(this.Lander)
         })
       },
 
@@ -2598,6 +2589,8 @@
           this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
           this.open = true
           this.title = '修改货存转移'
+
+          this.warehousesssMethod()
         })
       },
       // 库存明细合计
@@ -2677,7 +2670,7 @@
           if (valid) {
             for (let li in this.dataList) {
               if(this.form.fFeetunit > 3){
-                this.$message.error('请维护主表计费单位为件数、毛重或净重')
+                this.$message.error('请维护主表计费单位为件数、毛重(kg)或净重(kg)')
                 return false
               }
               if (!this.dataList[li].fWarehouselocids) {
@@ -2689,11 +2682,11 @@
                 return false
               }
               if (!this.dataList[li].fGrossweight) {
-                this.$message({ message: '请维护第' + Number(li) + 1 + '行货转毛重', type: 'warning' })
+                this.$message({ message: '请维护第' + Number(li) + 1 + '行货转毛重(kg)', type: 'warning' })
                 return false
               }
               if (!this.dataList[li].fNetweight) {
-                this.$message({ message: '请维护第' + Number(li) + 1 + '行货转净重', type: 'warning' })
+                this.$message({ message: '请维护第' + Number(li) + 1 + '行货转净重(kg)', type: 'warning' })
                 return false
               }
               if (!this.dataList[li].fPackagespecs) {
@@ -2830,10 +2823,10 @@
             this.$message.error('新货权方不得与货权方一致')
             return false
           }
-          if (this.dataList.length === 0) {
-            this.$message.error('请添加库存明细!')
-            return false
-          }
+          // if (this.dataList.length === 0) {
+          //   this.$message.error('请添加库存明细!')
+          //   return false
+          // }
           this.updateDeduplication()
           for (let list in this.dataList) {
             if (!this.dataList[list].fQty || Number(this.dataList[list].fQty) === 0) {
@@ -2841,7 +2834,7 @@
               return false
             }
             if (!this.dataList[list].fGrossweight || Number(this.dataList[list].fGrossweight) === 0) {
-              this.$message.error('请维护序号为' + (Number(list) + 1) + '的货转毛重!')
+              this.$message.error('请维护序号为' + (Number(list) + 1) + '的货转毛重(kg)!')
               return false
             }
           }
@@ -2854,6 +2847,7 @@
             formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
             formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
             addGoodsTransfer(formData).then((response) => {
+              console.log(response)
               this.msgSuccess('保存成功')
               this.form = response.data.warehouseBills
               this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
@@ -2887,7 +2881,7 @@
               return false
             }
             if (!this.dataList[list].fGrossweight || Number(this.dataList[list].fGrossweight) === 0) {
-              this.$message.error('请维护序号为' + (Number(list) + 1) + '的货转毛重!')
+              this.$message.error('请维护序号为' + (Number(list) + 1) + '的货转毛重(kg)!')
               return false
             }
           }
@@ -3000,11 +2994,11 @@
           fGrossweight = row.fGrossweight
         }
         if (row.fPlannetweight < fNetweight) {
-          this.$message({ message: '货转净重超出结余净重', type: 'warning' })
+          this.$message({ message: '货转净重(kg)超出结余净重(kg)', type: 'warning' })
           return false
         }
         if (row.fPlangrossweight < fGrossweight) {
-          this.$message({ message: '货转毛重超出结余毛重', type: 'warning' })
+          this.$message({ message: '货转毛重(kg)超出结余毛重(kg)', type: 'warning' })
           return false
         }
       },
@@ -3020,7 +3014,7 @@
         let fQty = 0;
         let fGrossweight = 0;
         let fNetweight = 0;
-        let volumn = 0;
+        let fCntqty = 0;
         let fixed = 1;
         for (let li in this.dataList) {
           if (this.dataList[li].fQty) {
@@ -3032,8 +3026,8 @@
           if (this.dataList[li].fNetweight) {
             fNetweight = parseFloat(Number(fNetweight) + Number(this.dataList[li].fNetweight)).toFixed(2)
           }
-          if (this.dataList[li].volumn) {
-            volumn = parseFloat(Number(volumn) + Number(this.dataList[li].volumn)).toFixed(2)
+          if (this.dataList[li].fCntqty) {
+            fCntqty = parseFloat(Number(fCntqty) + Number(this.dataList[li].fCntqty))
           }
         }
         if (row.fFeeunitid === "1") {
@@ -3042,10 +3036,11 @@
           this.$set(row, 'fQty', (fGrossweight/1000).toFixed(2))
         }else if (row.fFeeunitid === "3") {
           this.$set(row, 'fQty', (fNetweight/1000).toFixed(2))
-        }else if (row.fFeeunitid === "4") {
-          this.$set(row, 'fQty', (volumn/1000).toFixed(2))
-        }else if (row.fFeeunitid === "5") {
-          this.$set(row, 'fQty', (fixed/1000).toFixed(2))
+        }else if (row.fFeeunitid === "7") {
+
+          this.$set(row, "fQty", fCntqty)
+        }else {
+          this.$set(row, "fQty", 0);
         }
         if (row.fUnitprice) {
           this.$set(row, 'fAmount', parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2))

File diff suppressed because it is too large
+ 620 - 618
src/views/warehouseBusiness/inStock/index.vue


File diff suppressed because it is too large
+ 482 - 162
src/views/warehouseBusiness/outStock/index.vue


+ 326 - 155
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,10 +247,12 @@
           <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="fPlanqty" />
-      <el-table-column label="调拨毛重" align="center" prop="fPlangrossweight" />
-      <el-table-column label="调拨净重" align="center" prop="fPlannetweight" />
+      <el-table-column label="调入仓库" align="center" prop="fWarehouseid" />
+      <el-table-column label="调出仓库" align="center" prop="fInwarehouseid" />
+      <el-table-column label="实际调拨件数" align="center" prop="fQty" />
+      <el-table-column label="计划调拨件数" align="center" prop="fPlanqty" />
+      <el-table-column label="计划调拨毛重(kg)" align="center" prop="fPlangrossweight" />
+      <el-table-column label="计划调拨净重(kg)" align="center" prop="fPlannetweight" />
       <el-table-column label="业务类别" align="center" prop="fBusinessType" :formatter="fBusinessTypeFormat"/>
 
       <el-table-column
@@ -430,7 +432,7 @@
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item label="仓库" prop="fWarehouseid">
+            <el-form-item label="调入仓库" prop="fWarehouseid">
               <el-select
                 v-model="form.fWarehouseid"
                 filterable
@@ -450,8 +452,26 @@
             </el-form-item>
           </el-col>
 
-        </el-row>
-        <el-row>
+          <el-col :span="8">
+            <el-form-item label="调出仓库" prop="fInwarehouseid">
+              <el-select
+                v-model="form.fInwarehouseid"
+                filterable
+                remote
+                :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-col>
           <el-col :span="8">
             <el-form-item label="单据编号" prop="fBillno">
               <el-input
@@ -529,7 +549,7 @@
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item label="计划调拨净重">
+            <el-form-item label="计划调拨净重(kg)">
               <el-input
                 v-model="form.fPlannetweight"
                 style="width: 80%"
@@ -539,7 +559,7 @@
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item label="计划调拨毛重">
+            <el-form-item label="计划调拨毛重(kg)">
               <el-input
                 v-model="form.fPlangrossweight"
                 style="width: 80%"
@@ -619,11 +639,13 @@
                 v-model="form.fLabour"
                 @keyup.enter.native="handleQuery"
                 :remote-method="flabourRemoteMethod"
+                remote
+                filterable
                 :disabled="contrOl"
                 placeholder="请输入劳务公司"
               >
                 <el-option
-                  v-for="(dict, index) in fMblnoOptions"
+                  v-for="(dict, index) in fCompanyOptIons"
                   :key="index.fId"
                   :label="dict.fName"
                   :value="dict.fId"
@@ -642,13 +664,13 @@
               <el-select
                 style="width: 80%"
                 v-model="form.fFleet"
-                @keyup.enter.native="handleQuery"
+                filterable
+                remote
                 :remote-method="fleetRemoteMethod"
                 :disabled="contrOl"
-                placeholder="请输入车队"
-              >
+                placeholder="请输入车队">
                 <el-option
-                  v-for="(dict, index) in fMblnoOptions"
+                  v-for="(dict, index) in fleetOptions"
                   :key="index.fId"
                   :label="dict.fName"
                   :value="dict.fId"
@@ -790,7 +812,7 @@
             </div>
             <div style="display: flex">
               <el-button type="info" :disabled="printinglist.length <= 0 || browseStatus" prop="打印" @click="printJobSheet">作业单</el-button>
-              <el-button :disabled="printinglist.length <= 0 || browseStatus" @click="discharge">装货</el-button>
+              <el-button :disabled="printinglist.length <= 0 || browseStatu " @click="discharge">装货</el-button>
               <el-button
                 :disabled="dataListSelection.length <= 0 || browseStatus"
                 @click.prevent="creditClick"
@@ -908,7 +930,7 @@
             </el-table-column>
 
             <el-table-column
-              prop="fWarehouseids"
+              prop="fOrgwarehouseInformation"
               header-align="center"
               align="center"
               label="库位"
@@ -916,11 +938,11 @@
             </el-table-column>
 
             <el-table-column
-              prop="fWarehouseInformation"
+              prop="fTransferWarehouselocid"
               header-align="center"
               width="240px"
               align="center"
-              label="*调入库位"
+              label="*调入1库位"
             >
               <template slot-scope="scope">
                 <el-input
@@ -931,7 +953,8 @@
                 >
                 </el-input>
               </template>
-            </el-table-column>            <el-table-column
+            </el-table-column>
+            <el-table-column
               prop="fPlanqty"
               header-align="center"
               align="center"
@@ -944,7 +967,7 @@
               header-align="center"
               align="center"
               width="180px"
-              label="*结余毛重"
+              label="*结余毛重(kg)"
             >
             </el-table-column>
             <el-table-column
@@ -952,7 +975,7 @@
               header-align="center"
               align="center"
               width="180px"
-              label="*结余净重"
+              label="*结余净重(kg)"
             >
             </el-table-column>
             <el-table-column
@@ -978,7 +1001,7 @@
               header-align="center"
               width="180px"
               align="center"
-              label="*调拨毛重"
+              label="*调拨毛重(kg)"
             >
               <template slot-scope="scope">
                 <el-input
@@ -996,7 +1019,7 @@
               header-align="center"
               width="180px"
               align="center"
-              label="*调拨净重"
+              label="*调拨净重(kg)"
             >
               <template slot-scope="scope">
                 <el-input
@@ -1358,7 +1381,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>
@@ -1434,19 +1457,22 @@
               width="180px"
               label="作业类型"
             >
-              <el-select
-                style="width: 80%"
-                v-model="warehouseDrList.fBusinessType"
-                filterable
-                disabled
-              >
-                <el-option
-                  v-for="(dict,index) 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,index) in businessTypeOption"
+                    :key="dict.dictValue"
+                    :label="dict.dictLabel"
+                    :value="dict.dictValue"
+                  ></el-option>
+                </el-select>
+
+              </template>
             </el-table-column>
 
             <el-table-column
@@ -1540,7 +1566,7 @@
                   :disabled="browseStatus"
                 >
                   <el-option
-                    v-for="dict in fStltypeidOptions"
+                    v-for="dict in fStltypeOptions"
                     :key="dict.dictValue"
                     :label="dict.dictLabel"
                     :value="parseInt(dict.dictValue)"
@@ -1695,7 +1721,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>
@@ -1770,19 +1796,22 @@
               width="180px"
               label="作业类型"
             >
-              <el-select
-                style="width: 80%"
-                v-model="warehouseDrList.fBusinessType"
-                filterable
-                disabled
-              >
-                <el-option
-                  v-for="(dict,index) 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,index) in businessTypeOption"
+                    :key="dict.dictValue"
+                    :label="dict.dictLabel"
+                    :value="dict.dictValue"
+                  ></el-option>
+                </el-select>
+
+              </template>
             </el-table-column>
 
             <el-table-column
@@ -1876,7 +1905,7 @@
                   :disabled="browseStatus"
                 >
                   <el-option
-                    v-for="dict in fStltypeidOptions"
+                    v-for="dict in fStltypeOptions"
                     :key="dict.dictValue"
                     :label="dict.dictLabel"
                     :value="parseInt(dict.dictValue)"
@@ -2117,7 +2146,13 @@
         style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
         :visible.sync="warehousingagreements"
         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>
+
         <el-table
           :data="tasklegList"
           ref="table"
@@ -2177,7 +2212,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
@@ -2221,15 +2256,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">净重(kg)</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>
@@ -2351,6 +2402,11 @@ export default {
   },
   data() {
     return {
+      browseStatu:false,
+      fCompanyOptIons:[],
+      fleetOptions:[],
+      activeIndex: '1',
+      activeIndex2: '1',
       //控制选择库位弹出
       choiceWarehouse:false,
       information:'',
@@ -2363,9 +2419,11 @@ export default {
       },
       //仓库树状图
       fWarehouseidOptions:[],
+      fWarehouseidOption:[],
       activeNames:['1'],
       //作业类型校验
       isrequired:2,
+      Navigation:false,
       isrequired_s:2,
       isrequired_l:2,
       contrOl:false,
@@ -2551,6 +2609,7 @@ export default {
         fMblno: null,
         fCorpid: null,
         fWarehouseid: null,
+        fInwarehouseid:null
       },
       // 表单参数
       form: {
@@ -2626,9 +2685,16 @@ export default {
     this.getDicts("st_trans_type").then((response) => {
       this.businessTypeOption = response.data;
     });
-    this.getDicts("data_stltype_type").then(response => {
-      this.fStltypeidOptions = response.data;
-    });
+    // this.getDicts("data_customer_category").then(response => {
+    //   this.fCompanyOptIons = response.data;
+    // });
+    // this.getDicts("data_customer_category").then(response => {
+    //   this.fleetOptions = response.data;
+    // });
+    treeselect().then(response => {
+      this.warehouseOptions = response.data
+    })
+    this.warehousesssMethod()
     this.register()
   },
   activated(){
@@ -2638,13 +2704,41 @@ export default {
   //   'form.fWarehouseid' : 'warehouseMethod'
   // },
   methods: {
+    handleSelect(key, keyPath) {
+      this.addAgreements(key)
+      this.getWhgenlegListt(key)
+    },
+    // 新增付款作业费协议
+    addAgreements(kye) {
+      if (!this.form.fCorpid) {
+        this.$message({
+          message: "请维护货权方",
+          type: "warning",
+        });
+      }else if(this.form.fProductName == undefined) {
+        this.$message({
+          message: "请维护入库明细品名",
+          type: "warning",
+        });
+      } else {
+        this.whgenlegList = [];
+        this.dialogWhgenlegList = [];
+        this.whgenlegTotal = 0;
+        this.warehousingagreements = true;
+        this.getWhgenlegList(kye);
+      }
+    },
     /** 查询部门下拉树结构 */
+    treeseLect(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.dataList[this.inDex].fTransferWarehouselocid
       })
       this.Warehouse = this.dataList[this.inDex].fWarehouseInformation
     },
@@ -2654,8 +2748,9 @@ export default {
     },
     confirm(){
       this.$set(this.dataList[this.inDex], 'fWarehouseInformation', this.information)
-      this.$set(this.dataList[this.inDex], 'fWarehouselocid', this.informationId)
+      this.$set(this.dataList[this.inDex], 'fTransferWarehouselocid', this.informationId)
       this.choiceWarehouse = false
+      this.dataList.fTransferWarehouselocid = this.informationId
     },
     // 撤销审核
     backrRconciliation(){
@@ -2683,13 +2778,13 @@ export default {
     Jump(){
       this.approval = this.$route.query.data
       if(this.approval){
-        this.getTreeselect()
         this.reset()
         this.colseButton = false
         this.approval = JSON.parse(this.approval)
         this.hide = false
         this.open = true
         this.browseStatus = true
+        this.browseStatus = true
         this.contrOl = true
         this.notChange = true
         this.approve = true
@@ -2708,7 +2803,7 @@ export default {
           if (response.data.corps) {
             this.fMblnoOptions = response.data.corps;
             this.KHblnoOptions = response.data.corps;
-            this.fSbuOptions = response.data.corps;
+            this.fCompanyOptIons = response.data.corps;
           }
           if (response.data.feesList) {
             this.fWbuOptions = response.data.feesList;
@@ -2889,7 +2984,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", });
@@ -2903,7 +2998,7 @@ export default {
       this.dialogWhgenlegList = []
       this.whgenlegTotal = 0
       this.warehousingagreements = true
-      this.getWhgenlegListt()
+      this.getWhgenlegListt(kye)
     },
     // 新增仓储费协议
     addStorages() {
@@ -2926,14 +3021,39 @@ 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
+        }
+        this.ueryTO(daTa)
+      }else if (kye == 1) {
+        this.Navigation = true
+        daTa = {
+          pageNum:1,
+          pageSize:10,
+          fTaskType:Number(fTaskType),
+          fFleet:this.form.fFleet
+        }
+        this.ueryTO(daTa)
+      }else {
+        this.Navigation = false
+        daTa = {
+          pageNum:1,
+          pageSize:10,
+          fCorpid:this.form.fCorpid
+        }
+        this.ueryTO(daTa)
       }
-      operationAgreement(data).then((response) => {
+    },
+    ueryTO(daTa){
+      operationAgreement(daTa).then((response) => {
         this.tasklegList = response.rows;
         this.whgenlegTotal = response.total;
       });
@@ -3013,7 +3133,6 @@ export default {
             fProductName:this.form.fProductName,
             fMarks:this.form.fMarks,
             fBusinessType:this.$set(this.warehouseCrList,'fBusinessType',this.form.fBusinessType)
-
           })
         } else {
           this.warehouseDrList.push({
@@ -3118,14 +3237,18 @@ export default {
           fGoodsids: this.dialogWhgenlegList[whgen].fGoodsids,
           fBillingway: this.dialogWhgenlegList[whgen].fBillingway,
           fChargedate: this.dialogWhgenlegList[whgen].fChargedate,
-          fWarehouseids: this.dialogWhgenlegList[whgen].fWarehouseids,
+          fOrgwarehouseInformation: this.dialogWhgenlegList[whgen].fWarehouseids,
           fPackagespecs: this.dialogWhgenlegList[whgen].fPackagespecs,
           fPlannetweight: this.dialogWhgenlegList[whgen].fNetweightblc,
           fOriginalbillno: this.dialogWhgenlegList[whgen].fOriginalbillno,
           fBusinessType: this.dialogWhgenlegList[whgen].fBusinessType + '',
           fPlangrossweight: this.dialogWhgenlegList[whgen].fGrossweightblc,
           fOriginalbilldate: this.dialogWhgenlegList[whgen].fOriginalbilldate,
+
+
           fWarehouselocid: this.dialogWhgenlegList[whgen].fWarehouseLocationid,
+
+
           fWarehouselocids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
           fWarehouseLocationids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
           fTransferWarehouselocid: null,
@@ -3213,38 +3336,50 @@ export default {
     },
     // 收款信息
     addCollection() {
-      this.warehouseDrList.push({
-        fcorpid: this.form.fCorpid,
-        ffeeid: null,
-        fFeeUnitid: null,
-        fQty: 0,
-        funitprice: 0,
-        fAmount: 0,
-        fCurrency: "RMB",
-        fExrate: 1,
-        fTaxrate: this.fTaxrate,
-        remarks: null,
-        fMblno:this.form.fMblno,
-        fProductName:this.form.fProductName,
-        fMarks:this.form.fMarks
-      });
+      if(this.form.fBusinessType == null){
+        this.$message.error("请维护作业类型")
+        return false
+      }else{
+        this.warehouseDrList.push({
+          fcorpid: this.form.fCorpid,
+          ffeeid: null,
+          fFeeunitid: '2',
+          fQty: 0,
+          funitprice: 0,
+          fAmount: 0,
+          fCurrency: "RMB",
+          fExrate: 1,
+          fTaxrate: this.fTaxrate,
+          remarks: null,
+          fMblno:this.form.fMblno,
+          fProductName:this.form.fProductName,
+          fMarks:this.form.fMarks,
+          fBusinessType: this.form.fBusinessType
+        });
+      }
     },
     addpayment() {
-      this.warehouseCrList.push({
-        fcorpid: this.form.fCorpid,
-        ffeeid: null,
-        fFeeUnitid: null,
-        fQty: 0,
-        funitprice: 0,
-        fAmount: 0,
-        fCurrency: "RMB",
-        fExrate: 1,
-        fTaxrate: this.fTaxrate,
-        remarks: null,
-        fMblno:this.form.fMblno,
-        fProductName:this.form.fProductName,
-        fMarks:this.form.fMarks
-      });
+      if(this.form.fBusinessType == null){
+        this.$message.error("请维护作业类型")
+        return false
+      }else {
+        this.warehouseCrList.push({
+          fcorpid: this.form.fCorpid,
+          ffeeid: null,
+          fFeeunitid: '2',
+          fQty: 0,
+          funitprice: 0,
+          fAmount: 0,
+          fCurrency: "RMB",
+          fExrate: 1,
+          fTaxrate: this.fTaxrate,
+          remarks: null,
+          fMblno: this.form.fMblno,
+          fProductName: this.form.fProductName,
+          fMarks: this.form.fMarks,
+          fBusinessType: this.form.fBusinessType
+        });
+      }
     },
     queryUser() {
       queryUserVal().then((response) => {
@@ -3266,6 +3401,14 @@ 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) => {
+        this.fleetOptions = response.rows;
+      });
       this.loading = true;
       getStockTransferList(this.queryParams).then((response) => {
         this.warehousebillsList = response.rows;
@@ -3278,6 +3421,7 @@ export default {
       this.whgenlegParams.fMblno = this.form.fMblno;
       this.whgenlegParams.fCorpid = this.form.fCorpid;
       this.whgenlegParams.fTrademodeid = this.form.fTrademodeid;
+      this.whgenlegParams.fWarehouseid = this.form.fInwarehouseid
       listWhgenleg(this.whgenlegParams).then((response) => {
         this.whgenlegList = response.rows;
         this.whgenlegTotal = response.total;
@@ -3428,6 +3572,7 @@ export default {
       this.reset();
       this.contrOl = true
       this.browseStatus = status;
+      this.browseStatu = status;
       this.detailsHidden = false;
       let data = row || this.ids;
       getStockTransfer(data.fId).then((response) => {
@@ -3592,12 +3737,14 @@ export default {
     /** 修改按钮操作 */
     handleUpdate(row, status) {
       this.reset();
-
       this.browseStatus = status;
       this.contrOl = status
       this.detailsHidden = false;
       this.formBrowseStatus = false;
       let fId = row.fId || this.ids;
+      if (fId.length === 1){
+        fId = fId[0].fId
+      }
       this.dataList = [];
       getStockTransfer(fId).then((response) => {
         if (response.data.warehousebills) {
@@ -3615,9 +3762,11 @@ export default {
           }
         }
         if (response.data.corps) {
+          this.flabourOptions = response.data.corps;
           this.fMblnoOptions = response.data.corps;
           this.KHblnoOptions = response.data.corps;
-          this.fSbuOptions = response.data.corps;
+          this.fCompanyOptIons = response.data.corps;
+          this.fleetOptions = response.data.corps;
         }
         if (response.data.feesList) {
           this.fWbuOptions = response.data.feesList;
@@ -3678,6 +3827,8 @@ export default {
         }
         this.open = true;
         this.title = "修改调拨";
+
+        this.warehousesssMethod()
       });
     },
     // 数量计算
@@ -3774,7 +3925,8 @@ export default {
             } else {
               return prev;
             }
-          }, 0); // sums[index]
+          }, 0);
+          sums[index] = sums[index].toFixed(2);
         }
       });
       this.sums = sums;
@@ -3838,15 +3990,13 @@ export default {
         }
       }
       if (row.fFeeunitid == "1") {
-        this.$set(row, 'fQty', this.fQty.toFixed(2))
+        this.$set(row, 'fQty', this.fPlanqty.toFixed(2))
       } else if (row.fFeeunitid == "2") {
-        this.$set(row, 'fQty', (fGrossweight/1000).toFixed(2))
+        this.$set(row, 'fQty', (fPlannetweight/1000).toFixed(2))
       }else if (row.fFeeunitid == "3") {
-        this.$set(row, 'fQty', (fNetweight/1000).toFixed(2))
-      // }else if (row.fFeeunitid == "4") {
-      //   this.$set(row, 'fQty', (volumn/1000).toFixed(2))
-      // }else if (row.fFeeunitid == "5") {
-      //   this.$set(row, 'fQty', (fixed/1000).toFixed(2))
+        this.$set(row, 'fQty', (fPlangrossweight/1000).toFixed(2))
+      }else if (row.fFeeunitid == "7") {
+        this.$set(row, 'fQty', this.fCntqty.toFixed(2))
       }else {
         this.$set(row, "fQty", 0);
       }
@@ -3863,7 +4013,7 @@ export default {
             return false;
           }
           if (!this.dataListSelection[warehouse].fGrossweight) {
-            this.$message.error("请选择调拨毛重");
+            this.$message.error("请选择调拨毛重(kg)");
             return false;
           } else if (!this.dataListSelection[warehouse].fWarehouseInformation) {
             this.$message.error("请选择调入库位");
@@ -3872,7 +4022,7 @@ export default {
             this.$message.error("调拨库区不得与原库区相同");
             return false;
           } else if (!this.dataListSelection[warehouse].fNetweight) {
-            this.$message.error("请选择调拨净重");
+            this.$message.error("请选择调拨净重(kg)");
             return false;
           }
           // else if (!this.dataListSelection[warehouse].fQty) {
@@ -3911,27 +4061,37 @@ export default {
     addList() {
       this.$refs["form"].validate((valid) => {
         if (valid) {
-          let listSelection = JSON.parse(JSON.stringify(this.dataListSelection))
-          let formData = new window.FormData();
-          formData.append("warehouseBills", JSON.stringify(this.form));
-          formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
-          formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
-          formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
-          formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
-          addJoblist(formData).then((response) => {
-            this.formBrowseStatus = true;
-            this.$refs.tableDr.clearSelection();
-            this.$refs.tableList.clearSelection();
-            let dataitem = response.data.warehousebillsitems
-            for (let ite in dataitem) {
-              for (let li in this.dataList) {
-                if (this.dataList[li].fId === dataitem[ite].fId) {
-                  this.$set(this.dataList[li], 'fBillstatus', dataitem[ite].fBillstatus)
-                  this.$set(this.dataList[li], 'fSerialNumber', dataitem[ite].fSerialNumber)
+          let dataList = []
+          for (let se in this.dataListSelection) {
+            if (Number(this.dataListSelection[se].fBillstatus) >= 10) {
+              dataList.push(this.dataListSelection[se])
+              console.log("111")
+            }
+          }
+          if (dataList.length !== 0) {
+            let formData = new window.FormData();
+            formData.append("warehouseBills", JSON.stringify(this.form));
+            formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
+            formData.append("warehousebillsitems", JSON.stringify(dataList));
+            formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
+            formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
+            addJoblist(formData).then((response) => {
+              this.formBrowseStatus = true;
+              // this.$refs.tableDr.clearSelection();
+              // this.$refs.tableList.clearSelection();
+              let dataSelection = response.data.warehousebillsitems
+              for (let ite in dataSelection) {
+                for (let li in this.dataList) {
+                  if (dataSelection[ite].fId === this.dataList[li].fId && this.dataList[li].fBillstatus === 10) {
+                    this.$set(this.dataList[li], 'fBillstatus', dataSelection[li].fBillstatus)
+                    this.$set(this.dataList[li], 'fSerialNumber', dataSelection[li].fSerialNumber)
+                    break
+                  }
                 }
               }
-            }
-          });
+              this.$refs.tableList.clearSelection()
+            });
+          }
         }
       });
     },
@@ -4050,6 +4210,15 @@ export default {
     },
     // 库存明细多选
     selectinventory(selection) {
+      for(let item in selection){
+        console.log(selection[item].fBillstatus)
+        if(selection[item].fBillstatus > '20'){
+          console.log("111")
+          this.browseStatu = true
+        }else{
+          this.browseStatu = false
+        }
+      }
       this.dataWithdrawList = [];
       this.dataListSelection = [];
       this.printinglist = selection;
@@ -4090,10 +4259,10 @@ export default {
     saveForm () {
       this.updateDeduplication()
       this.$refs['form'].validate((valid) => {
-        if (this.dataList.length === 0) {
-          this.$message.error('请添加库存明细!')
-          return false
-        }
+        // if (this.dataList.length === 0) {
+        //   this.$message.error('请添加库存明细!')
+        //   return false
+        // }
         for (let list in this.dataList) {
           this.changeStock(this.dataList[list])
         }
@@ -4101,13 +4270,13 @@ export default {
           setTimeout(() => {
             this.form.fBillstatus = 2
             let formData = new window.FormData()
+            // this.dataList.fTransferWarehouselocid = this.treeselectList.fWarehouselocid
             formData.append("warehouseBills", JSON.stringify(this.form));
             formData.append("warehousebillsitems", JSON.stringify(this.dataList));
             formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
             formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
             formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
             addStockTransfer(formData).then((response) => {
-              console.log(response)
               this.msgSuccess('保存成功')
               this.form = response.data.warehouseBills
               this.$set(this.form, 'fEta', Date.parse(this.form.fEta))
@@ -4129,14 +4298,10 @@ export default {
     },
     //作业类型校验
     educationChange() {
-      console.log(this.form.fBusinessType)
       if (this.form.fBusinessType === '0') {
-        console.log("111")
-        console.log("走这")
         this.isrequired = 1
         this.isrequired_l = 2
       }else if(this.form.fBusinessType === '1' || this.form.fBusinessType === '3'){
-        console.log("333")
         this.isrequired_l = 1
         this.isrequired = 2
       }else if(this.form.fBusinessType === '2'){
@@ -4318,7 +4483,7 @@ export default {
       }
       let queryParams = { pageNum: 1, pageSize: 10, fName: name, fTypeid: 6};
       listCorps(queryParams).then((response) => {
-        this.fSbuOptions = response.rows;
+        this.fCompanyOptIons = response.rows;
       });
     },
     /* 远程模糊查询车队 */
@@ -4328,7 +4493,7 @@ export default {
       }
       let queryParams = { pageNum: 1, pageSize: 10, fName: name, fTypeid: 2 };
       listCorps(queryParams).then((response) => {
-        this.fSbuOptions = response.rows;
+        this.fleetOptions = response.rows;
       });
     },
     /* 远程模糊查询用户 */
@@ -4403,9 +4568,7 @@ export default {
         fWarehouseid: this.form.fWarehouseid,
         fName: name
       };
-      console.log(this.kqhouseOptions)
       listArea(queryParams).then((response) => {
-        console.log(response)
         this.kqhouseOptions = response.rows;
       });
     },
@@ -4447,4 +4610,12 @@ export default {
 .el-form-item__label {
   font-size: 12px !important;
 }
+.el-collapse-item__header{
+  font-size: 16px;
+  font-weight: bolder;
+  padding-left: 5px;
+}
+.el-icon-s-home,.el-icon-s-order,.el-icon-circle-plus,.el-icon-remove{
+  padding-right: 5px;
+}
 </style>

+ 6 - 0
src/views/warehouseBusiness/storageFeeCalculation/index.vue

@@ -1231,11 +1231,13 @@
             cancelButtonText: '取消',
             type: 'warning'
           }).then(() => {
+            this.dataList = []
             this.getStorageFee()
           }).catch(() => {
             return false
           })
         } else {
+          this.dataList = []
           this.getStorageFee()
         }
       },
@@ -1268,11 +1270,15 @@
           }
           if (response.data.warehouseItemList) {
             this.dataList = response.data.warehouseItemList
+
+
+
             for (let li in this.dataList) {
               this.$set(this.dataList[li], 'fBsdate', Date.parse(this.dataList[li].fBsdate))
               this.$set(this.dataList[li], 'fChargedate', Date.parse(this.dataList[li].fChargedate))
               this.$set(this.dataList[li], 'fBillingDeadline', Date.parse(this.dataList[li].fBillingDeadline))
               this.$set(this.dataList[li], 'fOriginalbilldate', Date.parse(this.dataList[li].fOriginalbilldate))
+              this.$set(this.dataList[li], 'fBillingway', this.dataList[li].fBillingway + '')
             }
           }
           if (response.data.feesList) {

+ 10 - 10
src/views/warehouseBusiness/warehousebills/index.vue

@@ -554,12 +554,12 @@ RK CK DB HZ
         prop="fPlanqty"
       />
       <el-table-column
-        label="计划毛重,由明细表自动合计生成"
+        label="计划毛重(kg),由明细表自动合计生成"
         align="center"
         prop="fPlangrossweight"
       />
       <el-table-column
-        label="计划净重,由明细表自动合计生成"
+        label="计划净重(kg),由明细表自动合计生成"
         align="center"
         prop="fPlannetweight"
       />
@@ -574,12 +574,12 @@ RK CK DB HZ
         prop="fQty"
       />
       <el-table-column
-        label="毛重,由明细表自动合计生成"
+        label="毛重(kg),由明细表自动合计生成"
         align="center"
         prop="fGrossweight"
       />
       <el-table-column
-        label="净重,由明细表自动合计生成"
+        label="净重(kg),由明细表自动合计生成"
         align="center"
         prop="fNetweight"
       />
@@ -596,7 +596,7 @@ RK CK DB HZ
       />
       <el-table-column label="经营单位(客户列表)" align="center" prop="fSbu" />
       <el-table-column
-        label="计费单位(数据字典),下拉选择毛重或净重"
+        label="计费单位(数据字典),下拉选择毛重(kg)或净重"
         align="center"
         prop="fFeetunit"
         :formatter="fFeetunitFormat"
@@ -789,7 +789,7 @@ RK CK DB HZ
           />
         </el-form-item>
         <el-form-item
-          label="计划毛重,由明细表自动合计生成"
+          label="计划毛重(kg),由明细表自动合计生成"
           prop="fPlangrossweight"
         >
           <el-input
@@ -798,7 +798,7 @@ RK CK DB HZ
           />
         </el-form-item>
         <el-form-item
-          label="计划净重,由明细表自动合计生成"
+          label="计划净重(kg),由明细表自动合计生成"
           prop="fPlannetweight"
         >
           <el-input
@@ -818,13 +818,13 @@ RK CK DB HZ
             placeholder="请输入件数,由明细表自动合计生成"
           />
         </el-form-item>
-        <el-form-item label="毛重,由明细表自动合计生成" prop="fGrossweight">
+        <el-form-item label="毛重(kg),由明细表自动合计生成" prop="fGrossweight">
           <el-input
             v-model="form.fGrossweight"
             placeholder="请输入毛重,由明细表自动合计生成"
           />
         </el-form-item>
-        <el-form-item label="净重,由明细表自动合计生成" prop="fNetweight">
+        <el-form-item label="净重(kg),由明细表自动合计生成" prop="fNetweight">
           <el-input
             v-model="form.fNetweight"
             placeholder="请输入净重,由明细表自动合计生成"
@@ -852,7 +852,7 @@ RK CK DB HZ
           />
         </el-form-item>
         <el-form-item
-          label="计费单位(数据字典),下拉选择毛重或净重"
+          label="计费单位(数据字典),下拉选择毛重(kg)或净重(kg)"
           prop="fFeetunit"
         >
           <el-select

+ 13 - 13
src/views/warehouseBusiness/warehousebillsitems/index.vue

@@ -64,12 +64,12 @@
         <el-input
           v-model="queryParams.fPlanvolumn"
           placeholder="请输入计划尺码"
-          clearable
+          clearablef
           size="small"
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="计划毛重" prop="fPlangrossweight">
+      <el-form-item label="计划毛重(kg)" prop="fPlangrossweight">
         <el-input
           v-model="queryParams.fPlangrossweight"
           placeholder="请输入计划毛重"
@@ -78,7 +78,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="计划净重" prop="fPlannetweight">
+      <el-form-item label="计划净重(kg)" prop="fPlannetweight">
         <el-input
           v-model="queryParams.fPlannetweight"
           placeholder="请输入计划净重"
@@ -96,7 +96,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="毛重" prop="fGrossweight">
+      <el-form-item label="毛重(kg)" prop="fGrossweight">
         <el-input
           v-model="queryParams.fGrossweight"
           placeholder="请输入毛重"
@@ -114,7 +114,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="净重" prop="fNetweight">
+      <el-form-item label="净重(kg)" prop="fNetweight">
         <el-input
           v-model="queryParams.fNetweight"
           placeholder="请输入净重"
@@ -210,12 +210,12 @@
       <el-table-column label="箱型,20GP 4OGP" align="center" prop="fCntrtype" />
       <el-table-column label="计划件数" align="center" prop="fPlanqty" />
       <el-table-column label="计划尺码" align="center" prop="fPlanvolumn" />
-      <el-table-column label="计划毛重" align="center" prop="fPlangrossweight" />
-      <el-table-column label="计划净重" align="center" prop="fPlannetweight" />
+      <el-table-column label="计划毛重(kg)" align="center" prop="fPlangrossweight" />
+      <el-table-column label="计划净重(kg)" align="center" prop="fPlannetweight" />
       <el-table-column label="件数" align="center" prop="fQty" />
-      <el-table-column label="毛重" align="center" prop="fGrossweight" />
+      <el-table-column label="毛重(kg)" align="center" prop="fGrossweight" />
       <el-table-column label="尺码" align="center" prop="fVolumn" />
-      <el-table-column label="净重" align="center" prop="fNetweight" />
+      <el-table-column label="净重(kg)" align="center" prop="fNetweight" />
       <el-table-column label="箱号" align="center" prop="fCntrno" />
       <el-table-column label="车号" align="center" prop="fTruckno" />
       <el-table-column label="状态,N 入" align="center" prop="fBillstatus" />
@@ -289,22 +289,22 @@
         <el-form-item label="计划尺码" prop="fPlanvolumn">
           <el-input v-model="form.fPlanvolumn" placeholder="请输入计划尺码" />
         </el-form-item>
-        <el-form-item label="计划毛重" prop="fPlangrossweight">
+        <el-form-item label="计划毛重(kg)" prop="fPlangrossweight">
           <el-input v-model="form.fPlangrossweight" placeholder="请输入计划毛重" />
         </el-form-item>
-        <el-form-item label="计划净重" prop="fPlannetweight">
+        <el-form-item label="计划净重(kg)" prop="fPlannetweight">
           <el-input v-model="form.fPlannetweight" placeholder="请输入计划净重" />
         </el-form-item>
         <el-form-item label="件数" prop="fQty">
           <el-input v-model="form.fQty" placeholder="请输入件数" />
         </el-form-item>
-        <el-form-item label="毛重" prop="fGrossweight">
+        <el-form-item label="毛重(kg)" prop="fGrossweight">
           <el-input v-model="form.fGrossweight" placeholder="请输入毛重" />
         </el-form-item>
         <el-form-item label="尺码" prop="fVolumn">
           <el-input v-model="form.fVolumn" placeholder="请输入尺码" />
         </el-form-item>
-        <el-form-item label="净重" prop="fNetweight">
+        <el-form-item label="净重(kg)" prop="fNetweight">
           <el-input v-model="form.fNetweight" placeholder="请输入净重" />
         </el-form-item>
         <el-form-item label="箱号" prop="fCntrno">

Some files were not shown because too many files changed in this diff