gjy преди 2 години
родител
ревизия
a27a897a00

+ 3 - 1
src/api/V2/profitable/index.js

@@ -73,4 +73,6 @@ export const API_RELATIONCONTRACT ='/contractManagementInfo/selectRelationContra
 // 结算
 export const API_EDIT_CONTRACT ='/contractManagementInfo/editInfo'
 // 结算校验
-export const API_JUDGE_SETTLEMENT ='/contractManagementInfo/judgeSettlementConditions'
+export const API_JUDGE_SETTLEMENT ='/contractManagementInfo/judgeSettlementConditions'
+// 油费列表
+export const API_FUELFILLINGINFO     ='/fuelFillingInfo/selectFillingPc'

+ 1 - 0
src/lang/zh.js

@@ -666,6 +666,7 @@ export default {
     billDetail: '备件结算详情',
     warehousingOrder: '入库单',
     storageCharge:'仓储费',
+    oilcost:'油费',
     inventoryCheck:'库存盘点',
     sparepartMa: '物料采购',
     applDetailMa: '物料申请详情',

+ 5 - 2
src/model/profitable/index.js

@@ -38,7 +38,8 @@ import {
   API_BUYPAYEEINFO,
   API_RELATIONCONTRACT,
   API_EDIT_CONTRACT,
-  API_JUDGE_SETTLEMENT
+  API_JUDGE_SETTLEMENT,
+  API_FUELFILLINGINFO
 } from '@/api/V2/profitable'
 //收支明细列表
 export const getInOutDetailed = appRx.get(API_GET_INOUTDETAILED, errorCatcher, errorHandle, filter)
@@ -115,4 +116,6 @@ export const getrelationcontract= appRx.get(API_RELATIONCONTRACT, errorCatcher,
 //结算
 export const editcontract= appRx.post(API_EDIT_CONTRACT, errorCatcher, errorHandle, filter)
 //结算校验
-export const judgesettlement= appRx.get(API_JUDGE_SETTLEMENT, errorCatcher, errorHandle, filter)
+export const judgesettlement= appRx.post(API_JUDGE_SETTLEMENT, errorCatcher, errorHandle, filter)
+// 油费列表
+export const getfielfillinginfo= appRx.get(API_FUELFILLINGINFO, errorCatcher, errorHandle, filter)

+ 20 - 2
src/views/contractManagement/acquisitionContractAdd.vue

@@ -74,8 +74,10 @@
               :value="item.customerName" />
           </el-select>
         </ws-form-item>
-        
-        
+        <ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营加价" span="1" prop="seller" class="readonly">
+          <ws-input v-model="deptBudgetList.jointVentureMarkup" placeholder="请输入合营加价" maxlength="3"
+            size="small" />
+        </ws-form-item>
         <!--交货日期(起)-->
         <ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
           <ws-date-picker v-model="deptBudgetList.deliveryDateStart" type="date" placeholder="请选择交货日期(起)"
@@ -591,6 +593,7 @@ import { isUndefined } from 'xe-utils/methods'
       },
       returnsales() {
         this.deptBudgetList =  {
+          agreementType:'收购合同',
           deliverType: '2',
           sourceGoods:'',
           placeDelivery:'',
@@ -786,6 +789,20 @@ import { isUndefined } from 'xe-utils/methods'
           })
           return
         }
+        if(!this.deptBudgetList.jointVentureMarkup&&this.deptBudgetList.jointVentureMarkup!=0){
+          this.$message({
+            message: '请输入合营加价!',
+            type: 'warning',
+          })
+          return
+        }
+        if(this.deptBudgetList.jointVentureMarkup<0||this.deptBudgetList.jointVentureMarkup>100){
+          this.$message({
+            message: '合营加价输入错误!',
+            type: 'warning',
+          })
+          return
+        }
        }
         
         // if (isNaN(this.deptBudgetList.sellerPhone)) {
@@ -1279,6 +1296,7 @@ import { isUndefined } from 'xe-utils/methods'
                 localStorage.setItem('deptBudgetList_data4', JSON.stringify(this.restaurants4));
                 this.$message.success('添加成功')
                 this.deptBudgetList = {
+                  agreementType:'收购合同',
                   deliverType: '2',
                   sourceGoods:'',
                   placeDelivery:'',

+ 3 - 0
src/views/contractManagement/acquisitionContractExamine.vue

@@ -71,6 +71,9 @@
         <ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营方电话" span="1" prop="sellerPhone">
           {{ deptBudgetList.sellerPhone }}
         </ws-form-item>
+        <ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营加价" span="1" prop="seller" class="readonly">
+          {{ deptBudgetList.jointVentureMarkup }}
+        </ws-form-item>
         <ws-form-item label="价格类型" span="1" prop="priceType">
           {{ deptBudgetList.priceType }}
         </ws-form-item>

+ 20 - 0
src/views/contractManagement/purchaseContractAdd.vue

@@ -80,6 +80,10 @@
           <el-radio v-model="deptBudgetList.transactionSubject" label="自营">自营</el-radio>
           <el-radio v-model="deptBudgetList.transactionSubject" label="合营">合营</el-radio>
         </ws-form-item>
+        <ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营加价" span="1" prop="seller" class="readonly">
+          <ws-input v-model="deptBudgetList.jointVentureMarkup" placeholder="请输入合营加价" maxlength="3"
+            size="small" />
+        </ws-form-item>
         <!--结算方式-->
         <ws-form-item label="结算方式" span="1" prop="settlementMethod">
           <ws-input v-model="deptBudgetList.settlementMethod" placeholder="请输入结算方式" maxlength="100" size="small" />
@@ -966,6 +970,22 @@ import { isUndefined } from 'xe-utils/methods'
       },
 
       submit() {
+        if(this.deptBudgetList.transactionSubject == '合营'){
+        if(!this.deptBudgetList.jointVentureMarkup&&this.deptBudgetList.jointVentureMarkup!=0){
+          this.$message({
+            message: '请输入合营加价!',
+            type: 'warning',
+          })
+          return
+        }
+        if(this.deptBudgetList.jointVentureMarkup<0||this.deptBudgetList.jointVentureMarkup>100){
+          this.$message({
+            message: '合营加价输入错误!',
+            type: 'warning',
+          })
+          return
+        }
+       }
         if(this.deptBudgetList.placeDelivery.indexOf('省')>-1){
               this.$message({
             message: '请手动删除详细地址中省市区/市,避免重复显示省市区/市!',

+ 20 - 0
src/views/contractManagement/purchaseContractEdit.vue

@@ -30,6 +30,10 @@
         <ws-form-item label="交易主体" span="1" prop="transactionSubject" class="readonly">
           {{deptBudgetList.transactionSubject}}
         </ws-form-item>
+        <ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营加价" span="1" prop="seller" class="readonly">
+          <ws-input v-model="deptBudgetList.jointVentureMarkup" placeholder="请输入合营加价" maxlength="3"
+            size="small" />
+        </ws-form-item>
         <ws-form-item label="关联合同" v-if="deptBudgetList.agreementType=='补充协议'" span="1" prop="agreementNo">
           {{ deptBudgetList.agreementNo }}
         </ws-form-item>
@@ -720,6 +724,22 @@
           })
       },
       submit() {
+        if(this.deptBudgetList.transactionSubject == '合营'){
+        if(!this.deptBudgetList.jointVentureMarkup&&this.deptBudgetList.jointVentureMarkup!=0){
+          this.$message({
+            message: '请输入合营加价!',
+            type: 'warning',
+          })
+          return
+        }
+        if(this.deptBudgetList.jointVentureMarkup<0||this.deptBudgetList.jointVentureMarkup>100){
+          this.$message({
+            message: '合营加价输入错误!',
+            type: 'warning',
+          })
+          return
+        }
+       }
         if (!this.deptBudgetList.contractNo) {
           this.$message({
             message: '合同编号不能为空',

+ 4 - 0
src/views/contractManagement/purchaseContractExamine.vue

@@ -55,12 +55,16 @@
         <ws-form-item label="交易主体" span="1" prop="transactionSubject" class="readonly">
           {{deptBudgetList.transactionSubject}}
         </ws-form-item>
+        <ws-form-item v-if="deptBudgetList.transactionSubject == '合营'" label="合营加价" span="1" prop="seller" class="readonly">
+          {{ deptBudgetList.jointVentureMarkup }}
+        </ws-form-item>
         <ws-form-item label="关联合同" v-if="deptBudgetList.agreementType=='补充协议'" span="1" prop="agreementNo">
           {{ deptBudgetList.agreementNo }}
         </ws-form-item>
         <ws-form-item label="补充协议编号" v-if="deptBudgetList.agreementType=='补充协议'" span="1" prop="contractNo">
           {{ deptBudgetList.contractNo }}
         </ws-form-item>
+        
         <ws-form-item label="运输方式" span="1" prop="shippingType">
           {{ deptBudgetList.shippingType }}
         </ws-form-item>

+ 6 - 1
src/views/contractManagement/salesContractAdd.vue

@@ -17,7 +17,7 @@
             <el-row>
             <el-col :span="12">
               <p style="color: #8890b1">
-                注:基本信息和货物信息均为必填项,“<span style="color:red">*</span>” 标记的条目提交后不可修改。
+                注:“<span style="color:red">*</span>” 标记的条目提交后不可修改。
               </p>
               </el-col>
               <el-col :span="12" style='text-align:right;'>
@@ -129,6 +129,7 @@
             <!-- <el-autocomplete class="inline-input" v-model="deptBudgetList.buyer" :fetch-suggestions="querySearch1"
               placeholder="请输入买方名称" @select="handleSelect"></el-autocomplete> -->
               <el-select  v-model="deptBudgetList.transitCompany" placeholder="无" class="typeselect" filterable clearable>
+                <el-option key="0"  label="无" value="无" />
             <el-option v-for="item in customerinfo" :key="item.customerName"  :label="item.customerName"
               :value="item.customerName" />
               </el-select>
@@ -486,6 +487,7 @@
         gradeList: [],
         ChapterTwoList: [],
         deptBudgetList: {
+          transitCompany:'无',
           deliverType: '1',
           agreementType: '销售合同',
           finalTradingVolume: 0,
@@ -582,6 +584,7 @@
       cancelcopy(){
         this.contractNo=''
         this.deptBudgetList={
+          transitCompany:'无',
           deliverType: '1',
           agreementType: '销售合同',
           finalTradingVolume: 0,
@@ -695,6 +698,7 @@
       },
       returnsales() {
         this.deptBudgetList = {
+          transitCompany:'无',
           deliverType: '1',
           agreementType: '销售合同',
           finalTradingVolume: 0,
@@ -1512,6 +1516,7 @@
                 localStorage.setItem('deptBudgetList_data4', JSON.stringify(this.restaurants4));
                 this.$message.success('添加成功')
                 this.deptBudgetList = {
+                  transitCompany:'无',
                   deliverType: '1',
                   agreementType: '销售合同',
                   finalTradingVolume: 0,

+ 1 - 1
src/views/contractManagement/salesContractEdit.vue

@@ -15,7 +15,7 @@
          <div class="remark">
       <h3>基本信息</h3>
       <p style="color: #8890b1">
-          &nbsp;&nbsp;注:基本信息均为必填项,“<span style="color:red">*</span>”
+          &nbsp;&nbsp;注:“<span style="color:red">*</span>”
           标记的条目提交后不可修改。
         </p>
     </div>

+ 19 - 1
src/views/profitable/component/routers/route.js

@@ -398,7 +398,25 @@ const profitableRouter = {
         // module: 'procurement.sparepart.applDetail'
       },
       hidden:true,
-    }, 
+    // 油费
+    },
+    {
+      path: 'oilcost',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/profitable/oilcost'),
+      name: 'oilcost',
+      meta: {
+        title: 'oilcost',
+        shortcutEntrance: 'profitable',
+        module: 'lirunhesuan.feiyongguanli.view',
+        permissicon: [],
+        keepAlive: true,
+        _title:'油费'
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden:true,
+    },
+
       // // 收支明细
       // {
       //   path: 'inOutDetailed',

+ 1 - 1
src/views/profitable/contractprofitsdetails.vue

@@ -230,7 +230,7 @@
             .toPromise()
             var arr=[row].concat(data)
             console.log(arr)
-            this.datalist.contractManagementInfoList=JSON.stringify(arr)
+            this.datalist.contractManagementInfoList=arr
             var response=await judgesettlement(this.datalist).toPromise()
         //           var weightprice=0
         //           for (let i = 0; i < data.length; i++) {

+ 33 - 1
src/views/profitable/expensemanagementdetails.vue

@@ -32,7 +32,11 @@
           <el-button @click="typeChange(2)" :type="searchType == 2?'primary':''">支出</el-button>
         </el-col>
         <el-col style='text-align:right;' :span="6">
-          <!-- <el-button  style="margin-left:10px" @click="storageCharge()">仓储费</el-button> -->
+          <el-badge v-if="approveStatus" is-dot class="item">
+            <el-button style="margin-left:10px" @click="oilcost()">油费</el-button>
+          </el-badge>
+          <!-- <el-button v-else style="margin-left:10px" @click="oilcost()">油费</el-button>
+          <el-button  style="margin-left:10px" @click="storageCharge()">仓储费</el-button> -->
           <el-button v-hasPermission="`lirunhesuan.feiyongguanli.add`" style="margin-left:10px" @click="cashout('')">请款</el-button>
           <el-button v-hasPermission="`lirunhesuan.feiyongguanli.shouk`" style="margin-right:10px" @click="receipt(1)" >收款</el-button>
         </el-col>
@@ -183,6 +187,7 @@
       return {
         value: "",
         tableData: [],
+        tableData1:[],
         deptBudgetTotal: 0,
         currentPage: 1,
         pageSize: 10,
@@ -201,6 +206,7 @@
         intotal:0,
         fujianshow:false,
         appendixIdss:[],
+        approveStatus:false,
       }
     },
     activated() {
@@ -293,6 +299,28 @@
             }
           })
       },
+      getfielfillingList() {
+        getfielfillinginfo({
+            // warehouseType: 1,
+            compId: localStorage.getItem('ws-pf_compId'),
+            searchKeyWord:this.searchKeyWord,
+            currentPage: this.currentPage,
+            pageSize:this.pageSize ,
+            strokeType:this.strokeType
+            // searchType:this.searchType
+          })
+          .toPromise()
+          .then(response => {
+            this.tableData1 = response.records
+            var arr=this.tableData1.filter((item)=>{return item.approveStatus})
+            if(arr.length>0){
+              this.approveStatus=true
+            }else{
+              this.approveStatus=false
+            }
+           this.deptBudgetTotal = response.total
+          })
+      },
       accomplish(row){
         var title1=''
         if(row.unallocatedAmount>0){
@@ -325,6 +353,9 @@
       edit(row){
         this.$router.push({name:'cashoutedit',query:{id:row.id}})
       },
+      oilcost(){
+        this.$router.push({name:'oilcost'})
+      },
       expenseedit(row){
          if(localStorage.getItem('ws-pf_roleName')=='销售内勤'||localStorage.getItem('ws-pf_roleName')=='采购内勤'){
           localStorage.setItem('expensebh',JSON.stringify(row.expenseAllocationInfoListBH))
@@ -433,6 +464,7 @@
           this.value=[this.startDate,this.endDate]
         },
       getList() {
+        this.getfielfillingList()
          getexenseinfo({
             // warehouseType: 1,
             compId: localStorage.getItem('ws-pf_compId'),

+ 429 - 0
src/views/profitable/oilcost.vue

@@ -0,0 +1,429 @@
+//油费
+<template>
+  <div class="container">
+    <el-row class="row_top">
+      <el-col :span="12">
+        <h2 class="bg-left title">油费</h2>
+      </el-col>
+      <el-col :span="12" class="bg-right"><el-button class="bg-bottom" type="primary" size="small" @click="returnsales()"><img width="6" height="10"
+            style="vertion-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
+        </el-button></el-col>
+    </el-row>
+    <div class="center">
+      <el-row style='margin-bottom:10px;'>
+        <el-col :span="12">
+          <el-button style="margin-left:10px" @click="strokeTypeChange(1)" :type="strokeType == 1?'primary':''">长途加油</el-button>
+          <el-button @click="strokeTypeChange(3)" :type="strokeType == 3?'primary':''">短途加油</el-button>
+          <!-- <el-button style="margin-left:10px" @click="typeChange('')" type="primary">导出</el-button> -->
+        </el-col>
+        <el-col :span="12">
+          <div style="flex-direction: row-reverse;" class="datascreen">
+             <el-button class="find" type="primary" @click="find()"><img width="16" height="16" style="left: -8px;"
+                src="../../../public/img/sousuo.png" alt="" /></el-button>
+            <el-input placeholder="可按费用名称、流向、经办人查找" class="input_css" v-model="searchKeyWord" clearable></el-input>
+           
+          </div>
+        </el-col>
+      </el-row>
+      <el-row style='margin-bottom:10px;'>
+        <el-col :span="18">
+          <el-button style="margin-left:10px" @click="typeChange('')" :type="searchType == ''?'primary':''">全部</el-button>
+          <el-button @click="typeChange(1)" :type="searchType == 1?'primary':''">待审核</el-button>
+          <el-button @click="typeChange(1)" :type="searchType == 1?'primary':''">已通过</el-button>
+          <el-button @click="typeChange(1)" :type="searchType == 1?'primary':''">已驳回</el-button>
+          <el-button @click="typeChange(2)" :type="searchType == 2?'primary':''">已付款</el-button>
+        </el-col>
+        <el-col style='text-align:right;' :span="6">
+        </el-col>
+      </el-row>
+      <div class="fromdata">
+        <el-table :data="tableData" stripe style="width: 100%">
+          <el-table-column type="index" label="序号">
+            <template scope="scope">
+              <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
+              <span v-else>{{ scope.$index + 1 }}</span>
+            </template>
+          </el-table-column>
+          <el-table-column prop="fillingNo" label="申请编号" width="100px">
+          </el-table-column>
+          <el-table-column v-if="strokeType == 1" prop="driverName" label="司机名" width="100px">
+          </el-table-column>
+          <el-table-column v-if="strokeType == 1" prop="carNo" label="车牌号" width="150px">
+          </el-table-column>
+          <el-table-column prop="feeType" label="请款金额">
+            <template scope="scope">
+              <span v-if="strokeType==1">0{{ scope.row.totalCost }}</span>
+              <span v-else>{{ scope.row.amountRequested }}</span>
+            </template>
+          </el-table-column>
+          
+          <el-table-column prop="purpose" label="起点" width="200px">
+            <template slot-scope="scope">
+              {{scope.row.originProvince}}{{scope.row.originCity}}{{scope.row.originArea}}{{scope.row.originAddress}}
+            </template>
+          </el-table-column>
+          <el-table-column prop="amountMoney" label="终点">
+            <template slot-scope="scope">
+              {{scope.row.destinationProvince}}{{scope.row.destinationCity}}{{scope.row.destinationArea}}{{scope.row.destinationAddress}}
+            </template>
+          </el-table-column>
+          <el-table-column prop="tfc" width="120" label="油耗(升)"></el-table-column>
+          <el-table-column prop="approveStatus" width="100" label="状态">
+            <template slot-scope="scope">
+              {{scope.row.destinationProvince}}{{scope.row.destinationCity}}{{scope.row.destinationArea}}{{scope.row.destinationAddress}}
+            </template>
+          </el-table-column>
+          <el-table-column prop="expenseRemarks" label="附件">
+              <template slot-scope="scope">
+          <img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
+            src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
+          <span v-if="scope.row.addressUrlArray != null">
+            {{
+              scope.row.addressUrlArray.length == 0
+                ? ''
+                : scope.row.addressUrlArray.length
+            }}
+          </span>
+        </template>
+          </el-table-column>
+          <el-table-column prop="agent" label="轨迹"></el-table-column>
+
+          <el-table-column prop="address" label="操作" width="300">
+            <template slot-scope="scope">
+              <el-button @click="look(scope.row)" type="primary">查看</el-button>
+             
+              <!-- <el-button v-if='scope.row.approveStatus=="待确认"' @click="accomplish(scope.row)" type="primary">完成</el-button> -->
+              <el-button v-if='scope.row.approveStatus' @click="pass(scope.row)" type="primary">通过</el-button>
+              <el-button v-if='scope.row.approveStatus' @click="edit(scope.row)" type="primary">驳回</el-button>
+              <!-- <el-button v-if='scope.row.status=="已驳回"' @click="expenseedit(scope.row)" type="primary">编辑</el-button> -->
+              <el-button v-if='!scope.row.approveStatus&&scope.row.expensesType==2&&scope.row.status=="待付款"' @click="payment(scope.row)" type="primary">付款</el-button>
+            </template>
+          </el-table-column>
+        </el-table>
+      </div>
+      <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
+        style="text-align:center" :page-size="pageSize"
+        layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal">
+      </el-pagination>
+    </div>
+    <el-dialog width='50%' :visible.sync="dialogVisible1" :title="title1">
+      <div  style='padding:20px;' v-for="(item,index) in recordList" :style="{'border-bottom':(index!=recordList.length-1?'1px solid #ccc':'none')}"
+>
+        <div style='width:100%;justify-content: space-between;' class='flex'>
+          <div style='width:33.333%;text-align:left;'>{{item.operateUser}}</div>
+          <div style='width:33.333%;text-align:center;'>{{item.dealMsg!='请款'?item.approveResult==1?'通过':'驳回':item.dealMsg}}</div>
+          <div style='width:33.333%;text-align:right;'>{{item.operateDate}}</div>
+        </div>
+        <div v-if='index<recordList.length-1' style='width:100%;text-align:left;'>审核意见:{{item.verifyRemark}}</div>
+        <div v-else style='width:100%;text-align:left;'>审核意见:{{item.verifyRemark}}</div>
+      </div>
+    </el-dialog>
+    <WinseaContentModal v-model="fujianshow" :title="title"
+      @on-cancel="handleClose">
+    <ws-upload :editable='false' ref="upload" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx" :comp-id="compId" :appendix-ids="appendixIdss" :size-limit="size"
+       />
+    </WinseaContentModal>
+  </div>
+</template>
+<script>
+  import WsUpload from '@/components/WsUpload'
+  import {
+    getfielfillinginfo
+  } from '@/model/profitable/index'
+  import {
+    woekflowhandle
+  } from '@/model/tasksport/index'
+  export default {
+    components: {
+      WsUpload,
+    },
+    data() {
+      return {
+        value: "",
+        tableData: [],
+        deptBudgetTotal: 0,
+        currentPage: 1,
+        pageSize: 10,
+        size:9,
+        recordList:[],
+        compId:localStorage.getItem('ws-pf_compId'),
+        dialogVisible1:false,
+        deptCircularPage: {},
+        searchType:"",
+        searchKeyWord:"",
+        strokeType:'1',
+        title:'附件',
+        title1:'',
+        outtotal:0,
+        intotal:0,
+        fujianshow:false,
+        appendixIdss:[],
+      }
+    },
+    activated() {
+      this.getList()
+    },
+    methods: {
+      handlerecord(row){
+        if(row.expensesType==1){
+          this.title1='收款审核记录'
+        }else{
+          this.title1='请款审核记录'
+        }
+        getAuditRecord({ id: row.id,
+            workflowId: row.workflowId}).toPromise()
+                .then((response) => {
+                  this.recordList=response
+                  this.dialogVisible1=true
+                }).catch((response) => {})
+      },
+      returnsales(){
+        this.$router.go(-1)
+      },
+      handleClose() {
+        this.fujianshow = false
+      },
+      fujian(row) {
+        this.id = row.id
+        this.fujianshow = true
+        if(row.addressUrl){
+         this.appendixIdss=row.addressUrl
+        }
+      },
+      look(row){
+        this.$router.push({name:'expensemanagentlook',query:{id:row.id,expensesType:row.expensesType}})
+      },
+      
+      strokeTypeChange(num){
+        this.strokeType = num
+        this.getList()
+      },
+      typeChange(num){
+        this.searchType = num
+        this.getList()
+      },
+      edit(row){
+        this.$router.push({name:'cashoutedit',query:{id:row.id}})
+      },
+      pass(row){
+        if(row.taskId){
+          this.$confirm('确认通过请款信息?', '提示', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning'
+          })
+          .then(() => {
+            woekflowhandle({
+              taskId: row.taskId,
+              approved:true,
+              auditMind: '34',
+              needReapply: true,
+            }).toPromise()
+            .then((response) => {
+              this.$message({
+                message: '通过成功!',
+                type: 'success',
+              })
+              this.$router.go(-1)
+            }).catch((response) => {
+              this.$message({
+                message: '通过失败!',
+                type: 'error',
+              })
+            })
+          })
+        }else{
+          this.$message({
+            message: '暂无此权限!',
+            type: 'warning',
+          })
+        }
+      },
+      pass(row){
+        if(row.taskId){
+          this.$confirm('确认通过请款信息?', '提示', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning'
+          })
+          .then(() => {
+            woekflowhandle({
+              taskId: row.taskId,
+              approved:false,
+              auditMind: '34',
+              needReapply: true,
+            }).toPromise()
+            .then((response) => {
+              this.$message({
+                message: '通过成功!',
+                type: 'success',
+              })
+              this.$router.go(-1)
+            }).catch((response) => {
+              this.$message({
+                message: '通过失败!',
+                type: 'error',
+              })
+            })
+          })
+        }else{
+          this.$message({
+            message: '暂无此权限!',
+            type: 'warning',
+          })
+        }
+      },
+      payment(row){
+        if(localStorage.getItem('ws-pf_roleName')=='出纳'){
+          this.$router.push({name:'payment',query:{id:row.id}})
+        }else{
+          this.$message({
+            message: '暂无此权限!',
+            type: 'warning',
+          })
+        }
+        
+      },
+      allot(row){
+        if(localStorage.getItem('ws-pf_roleName')=='销售内勤'||localStorage.getItem('ws-pf_roleName')=='采购内勤'){
+          this.$router.push({name:'expenseallot',query:{id:row.id}})
+        }else{
+          this.$message({
+            message: '暂无此权限!',
+            type: 'warning',
+          })
+        }
+      },
+      cashout(){
+        this.$router.push({name:'cashout'})
+      },
+      storageCharge(){
+        this.$router.push({name:'storageCharge'})
+      },
+      receipt(){
+        this.$router.push({name:'receipt'})
+      },
+      // inventory(){
+      //   this.$router.push({name:'contractinventory'})
+      // },
+      getList() {
+        getfielfillinginfo({
+            // warehouseType: 1,
+            compId: localStorage.getItem('ws-pf_compId'),
+            searchKeyWord:this.searchKeyWord,
+            currentPage: this.currentPage,
+            pageSize:this.pageSize ,
+            strokeType:this.strokeType
+            // searchType:this.searchType
+          })
+          .toPromise()
+          .then(response => {
+            this.tableData = response.records
+           this.deptBudgetTotal = response.total
+          })
+      },
+      changeDate(){
+        if(this.value){
+          this.startDate = this.value[0]
+          this.endDate = this.value[1]
+        }
+        this.getList()
+      },
+      pickerOptions() {},
+      find() {
+        this.getList()
+
+      },
+      handleSizeChange(val) {
+        console.log(`每页 ${val} 条`)
+        this.pageSize = val
+        this.getList()
+      },
+      handleCurrentChange(val) {
+        this.currentPage = val
+        console.log(`当前页: ${val}`)
+        this.getList()
+      },
+    },
+  }
+</script>
+<style lang="scss" scoped>
+  .container {
+    background: #E8ECF6;
+  }
+
+  .center {
+    margin: 0 auto;
+    background: #ffffff;
+    // height: calc(100vh - 13vh);
+    border-radius: 4px;
+    padding: 20px 0;
+
+    /deep/.el-table td,
+    /deep/.el-table th {
+      text-align: center;
+    }
+  }
+
+  .row_top {
+    background: #F6F7FC;
+    border-radius: 4px;
+    margin-bottom: 10px;
+
+    .bg-left {
+      padding-left: 30px;
+    }
+
+    .bg-right {
+      padding-right: 10px;
+      text-align: right;
+    }
+
+    .title {
+      position: relative;
+    }
+
+    .title::before {
+      content: '';
+      display: inline-block;
+      width: 5px;
+      height: 30px;
+      background: #5473e8;
+      position: absolute;
+      left: 0;
+    }
+  }
+
+  .datascreen {
+    display: flex;
+
+    .data_css {
+      width: 40%;
+    }
+
+    .input_css {
+      width: 50%;
+      margin: 0 10px;
+    }
+
+    .find {
+      margin-right: 10px;
+    }
+  }
+
+  .fromdata {
+    margin: 20px 0;
+    overflow-y: scroll;
+    height: 546px;
+  }
+  .top_info{
+    margin: 10px 0 0 10px;
+    min-width: 712px;
+    .info_css{
+      margin-right: 20px;
+    }
+  }
+  .bg-right{
+    padding-top:15px;
+  }
+</style>

+ 2 - 2
src/views/warehousenew/warehousingOrder.vue

@@ -34,8 +34,8 @@
         </ws-button>
         </el-col>
         <el-col style='text-align:right;' :span="12">
-          <ws-button v-hasPermission="
-            // `warehouseManagement.warehousingOrder.yufu`" type="primary" @click="interestrate()" >{{interestratevalue.value}}利率</ws-button>
+          <!-- <ws-button v-hasPermission="
+            `warehouseManagement.warehousingOrder.yufu`" type="primary" @click="interestrate()" >{{interestratevalue.value}}利率</ws-button> -->
           <ws-button v-hasPermission="
             `warehouseManagement.warehousingOrder.yufu`" type="primary" @click="fieldrations()" >折干</ws-button>
            <ws-button v-hasPermission="