Преглед на файлове

Merge branch 'master' of http://git.zthymaoyi.com/gdc/yiliangyiyun-pc

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

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

@@ -845,7 +845,7 @@ import { isUndefined } from 'xe-utils/methods'
         this.deptBudgetList.finalTradingVolume = e
       },
       pricechange(e) {
-        this.deptBudgetList.totalContractPrice = e * this.deptBudgetList.weight
+        this.deptBudgetList.totalContractPrice = (e * this.deptBudgetList.weight).toFixed(2)
       },
       returnsales() {
         this.deptBudgetList =  {

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

@@ -1702,7 +1702,7 @@
         this.deptBudgetList.finalTradingVolume = e
       },
       pricechange(e) {
-        this.deptBudgetList.totalContractPrice = e * this.deptBudgetList.weight
+        this.deptBudgetList.totalContractPrice = (e * this.deptBudgetList.weight).toFixed(2)
       },
       // 编辑
       editClick(item, index) {

+ 4 - 4
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -2929,28 +2929,28 @@ export default {
 
       }
       if (this.serviceManagementType==3&&this.zjJurisdiction&&this.statusTypetext=='初检') {
-        if (this.deptBudgetList.waterPriceIncrease>10||this.deptBudgetList.waterPriceIncrease<0) {
+        if (this.deptBudgetList.waterPriceIncrease>1000||this.deptBudgetList.waterPriceIncrease<0) {
           this.$message({
             message: '水分增价输入错误',
             type: 'warning',
           })
           return
         }
-        if (this.deptBudgetList.waterPriceDeduction>10||this.deptBudgetList.waterPriceDeduction<0) {
+        if (this.deptBudgetList.waterPriceDeduction>1000||this.deptBudgetList.waterPriceDeduction<0) {
           this.$message({
             message: '水分扣价输入错误',
             type: 'warning',
           })
           return
         }
-        if (this.deptBudgetList.qualityPriceIncrease>10||this.deptBudgetList.qualityPriceIncrease<0) {
+        if (this.deptBudgetList.qualityPriceIncrease>1000||this.deptBudgetList.qualityPriceIncrease<0) {
           this.$message({
             message: '质量增价输入错误',
             type: 'warning',
           })
           return
         }
-        if (this.deptBudgetList.qualityPriceDeduction>10||this.deptBudgetList.qualityPriceDeduction<0) {
+        if (this.deptBudgetList.qualityPriceDeduction>1000||this.deptBudgetList.qualityPriceDeduction<0) {
           this.$message({
             message: '质量扣价输入错误',
             type: 'warning',

+ 347 - 316
src/views/profitable/cashoutaduit.vue

@@ -5,82 +5,81 @@
       <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-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">
-      <div >
+      <div>
         <el-form label-position="left">
-          <el-form-item  label-width='100px' label="用途" span="1" prop="purpose" class="readonly">
-            <ws-select disabled v-model="deptBudgetList.expensesPurpose" placeholder="" class="typeselect" >
-              <ws-option label="合同费用" value="1"
-                style="color: #8890b1" />
-                <ws-option label="运费" value="2"
-                style="color: #8890b1" />
-                <ws-option label="库点费用" value="3"
-                style="color: #8890b1" />
-                <ws-option label="经营性费用" value="5"
-                style="color: #8890b1" />
+          <el-form-item label-width='100px' label="用途" span="1" prop="purpose" class="readonly">
+            <ws-select disabled v-model="deptBudgetList.expensesPurpose" placeholder="" class="typeselect">
+              <ws-option label="合同费用" value="1" style="color: #8890b1" />
+              <ws-option label="运费" value="2" style="color: #8890b1" />
+              <ws-option label="库点费用" value="3" style="color: #8890b1" />
+              <ws-option label="经营性费用" value="5" style="color: #8890b1" />
             </ws-select>
           </el-form-item>
-          <el-form-item label-width='100px' v-if='deptBudgetList.expensesPurpose==1' label="类型" span="1" prop="contractNo" class="readonly">
-            <ws-select disabled v-model="deptBudgetList.costType" placeholder="" class="typeselect" >
-                <ws-option label="粮款" value="1" style="color: #8890b1" />
-                <ws-option label="非粮款" value="3" style="color: #8890b1" />
-                <ws-option label="保证金" value="5" style="color: #8890b1" />
+          <el-form-item label-width='100px' v-if='deptBudgetList.expensesPurpose == 1' label="类型" span="1"
+            prop="contractNo" class="readonly">
+            <ws-select disabled v-model="deptBudgetList.costType" placeholder="" class="typeselect">
+              <ws-option label="粮款" value="1" style="color: #8890b1" />
+              <ws-option label="非粮款" value="3" style="color: #8890b1" />
+              <ws-option label="保证金" value="5" style="color: #8890b1" />
             </ws-select>
           </el-form-item>
-          <el-form-item label-width='100px' v-if='deptBudgetList.purpose=="库点费用"' label="仓储费" span="1" prop="contractNo" class="readonly">
-            <span v-if='(deptBudgetList.storageFeeFlag==1)'>是</span>
-              <span v-if='(deptBudgetList.storageFeeFlag==0)'>否</span>
+          <el-form-item label-width='100px' v-if='deptBudgetList.purpose == "库点费用"' label="仓储费" span="1"
+            prop="contractNo" class="readonly">
+            <span v-if='(deptBudgetList.storageFeeFlag == 1)'>是</span>
+            <span v-if='(deptBudgetList.storageFeeFlag == 0)'>否</span>
           </el-form-item>
-          <el-form-item v-if='deptBudgetList.expensesPurpose==3' label-width='100px' label="仓库名称" span="1" prop="warehouse" class="readonly">
-          {{deptBudgetList.warehouseName}}
+          <el-form-item v-if='deptBudgetList.expensesPurpose == 3' label-width='100px' label="仓库名称" span="1"
+            prop="warehouse" class="readonly">
+            {{ deptBudgetList.warehouseName }}
           </el-form-item>
-          <el-form-item v-if='deptBudgetList.expensesPurpose==3' label-width='100px' label="类型" span="1" prop="warehouse" class="readonly">
-          {{deptBudgetList.wareExpenseType}}
+          <el-form-item v-if='deptBudgetList.expensesPurpose == 3' label-width='100px' label="类型" span="1"
+            prop="warehouse" class="readonly">
+            {{ deptBudgetList.wareExpenseType }}
           </el-form-item>
-          <el-form-item v-if='deptBudgetList.expensesPurpose==1' label-width='100px' label="合同编号" span="1" prop="contractNo" class="readonly">
-          {{deptBudgetList.contractNo}}
+          <el-form-item v-if='deptBudgetList.expensesPurpose == 1' label-width='100px' label="合同编号" span="1"
+            prop="contractNo" class="readonly">
+            {{ deptBudgetList.contractNo }}
           </el-form-item>
           <el-form-item label-width='100px' label="费用名称" span="1" prop="settlementMethod">
-            {{deptBudgetList.expenseName}}
+            {{ deptBudgetList.expenseName }}
           </el-form-item>
           <el-form-item label-width='100px' label="付款方名头" span="1" prop="payerHeader" class="readonly">
-            {{deptBudgetList.payerHeader}}
+            {{ deptBudgetList.payerHeader }}
           </el-form-item>
           <el-form-item label-width='100px' label="金额(元)" span="1" prop="contractNo" class="readonly">
-            {{deptBudgetList.amountMoney}}
+            {{ deptBudgetList.amountMoney }}
           </el-form-item>
           <el-form-item label-width='100px' label="备注" span="1" prop="settlementMethod">
-            <el-input
-            disabled
-            type="textarea"
-            :rows="5"
-            placeholder="选填,不超过50个字"
-            v-model="deptBudgetList.remark">
+            <el-input disabled type="textarea" :rows="5" placeholder="选填,不超过50个字" v-model="deptBudgetList.remark">
             </el-input>
           </el-form-item>
           <el-form-item label-width='100px' label="附件">
-          <div v-if='srcList.length>0'>
-            <ws-upload :editable='false' ref="upload" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :size-limit="size"
-       />
-          </div>
-          <div v-else>暂无附件</div>
-        </el-form-item>
-        <div style='margin:20px -30px;font-weight:bold'>收款账户信息</div>
-        <el-form-item label-width='100px' label="收款方" span="1" prop="payee">
+            <div v-if='srcList.length > 0'>
+              <ws-upload :editable='false' ref="upload" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx"
+                :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :size-limit="size" />
+            </div>
+            <div v-else>暂无附件</div>
+          </el-form-item>
+          <div style='margin:20px -30px;font-weight:bold'>收款账户信息</div>
+          <el-form-item label-width='100px' label="收款方" span="1" prop="payee">
             <el-input disabled class='input50 input_css' placeholder="输入收款方" v-model="deptBudgetList.payee"></el-input>
           </el-form-item>
           <el-form-item label-width='100px' label="账号" span="1" prop="accountNumber">
-            <el-input disabled class='input50 input_css' placeholder="输入账号" v-model="deptBudgetList.accountNumber"></el-input>
+            <el-input disabled class='input50 input_css' placeholder="输入账号"
+              v-model="deptBudgetList.accountNumber"></el-input>
           </el-form-item>
           <el-form-item label-width='100px' label="开户行" span="1" prop="bank">
             <el-input disabled class='input50 input_css' placeholder="输入开户行" v-model="deptBudgetList.bank"></el-input>
           </el-form-item>
           <el-form-item label-width='100px' label="开户支行" span="1" prop="bankBranch">
-            <el-input disabled class='input50 input_css' placeholder="输入开户支行" v-model="deptBudgetList.bankBranch"></el-input>
+            <el-input disabled class='input50 input_css' placeholder="输入开户支行"
+              v-model="deptBudgetList.bankBranch"></el-input>
           </el-form-item>
         </el-form>
         <!-- <div v-if='deptBudgetList.expensesPurpose==1&&deptBudgetList.costType==3||deptBudgetList.expensesPurpose==2' style='width:90%;margin:10px auto;'>
@@ -135,59 +134,59 @@
           </el-table>
 
       </div> -->
-      <div v-if='deptBudgetList.expensesPurpose==2'>
+        <div v-if='deptBudgetList.expensesPurpose == 2'>
           <div v-for="item in deptBudgetList.tranTaskInfoList">
             <el-form label-position="left">
               <el-form-item label-width='100px' label="运输编号" span="1" prop="payee">
-                {{item.taskNo}}
+                {{ item.taskNo }}
               </el-form-item>
               <el-form-item label-width='100px' label="发货地" span="1" prop="accountNumber">
-              {{item.startPrivate}}{{item.startCity}}{{item.startArea}}{{item.startDetailedAddress}}
+                {{ item.startPrivate }}{{ item.startCity }}{{ item.startArea }}{{ item.startDetailedAddress }}
               </el-form-item>
               <el-form-item label-width='100px' label="收货地" span="1" prop="bank">
-                {{item.endPrivate}}{{item.endCity}}{{item.endArea}}{{item.endDetailedAddress}}
+                {{ item.endPrivate }}{{ item.endCity }}{{ item.endArea }}{{ item.endDetailedAddress }}
               </el-form-item>
             </el-form>
-            <el-table :data="item.tranSettlementReportList" style="width: 90%; margin: 20px auto; " ref="warehouseList" v-if='deptBudgetList.expensesPurpose==2' >
-          <el-table-column type="index" label="序号" width="50"></el-table-column>
-          <el-table-column class="table_td" prop="contractNo" width="120" label="合同编号"></el-table-column>
-          <el-table-column class="table_td" prop="startAddress" width="120" label="发货库"></el-table-column>
-          <el-table-column class="table_td" prop="createDate" width="120" label="发货时间"></el-table-column>
-          <el-table-column class="table_td" prop="carNo" label="车牌号" width="140"></el-table-column>
-          <el-table-column width="100" class="table_td" prop="loadingWeight" label="装车净重(吨)">
-          </el-table-column>
-          <el-table-column width="100" class="table_td" prop="unloadingWeight" label="卸车净重(吨)">
-          </el-table-column>
-          <el-table-column width="120" class="table_td" prop="transportDamage" label="公司承担运损">
-          </el-table-column>
-          <el-table-column width="100" class="table_td" prop="lossWeight" label="损耗(吨)">
-          </el-table-column>
-          <el-table-column width="120" class="table_td" prop="actualLoss" label="实际损耗">
-          </el-table-column>
-          <el-table-column width="120" class="table_td" prop="transportPrice" label="预计单价(元/吨)"></el-table-column>
-          <el-table-column width="120" class="table_td" prop="settlementPrice" label="结算单价(元/吨)">
-          </el-table-column>
-          <el-table-column width="120" class="table_td" prop="settlementWeight" label="结算重量(吨)"></el-table-column>
-          <el-table-column width="120" class="table_td" prop="cargoDamage" label="货损">
-          </el-table-column>
-          <el-table-column width="120" class="table_td" prop="deductionAmount" label="扣款(元)"></el-table-column>
-          <el-table-column width="100" class="table_td" label="服务费(元)" prop="serviceCharge">
-          </el-table-column>
-          <el-table-column width="100" class="table_td" label="实付金额(元)" prop="amountActuallyPaid"></el-table-column>
-          <el-table-column width="100" class="table_td" label="税点(元)" prop="taxPoint"></el-table-column>
-          <el-table-column width="100" class="table_td" label="合计应付(元)" prop="totalPayable"></el-table-column>
-          <el-table-column width="100" class="table_td" label="已付金额(元)" prop="amountEdPayable">
-          </el-table-column>
-          <el-table-column width="100" class="table_td" label="未付金额(元)" prop="amountNotPayable"></el-table-column>
-          <el-table-column width="100" class="table_td" label="已开发票(元)" prop="alreadyInvoice">
-          </el-table-column>
-          <el-table-column width="150" class="table_td" label="付款日期" prop="paymentDate"></el-table-column>
-            <el-table-column width="150" class="table_td" label="司机/车队" prop="name">
-              <template
-                slot-scope="scope">
-                {{ scope.row.name }}
-                <span v-if="scope.row.fleetFlag==1">(队)</span>
-              </template>
+            <el-table :data="item.tranSettlementReportList" style="width: 90%; margin: 20px auto; " ref="warehouseList"
+              v-if='deptBudgetList.expensesPurpose == 2'>
+              <el-table-column type="index" label="序号" width="50"></el-table-column>
+              <el-table-column class="table_td" prop="contractNo" width="120" label="合同编号"></el-table-column>
+              <el-table-column class="table_td" prop="startAddress" width="120" label="发货库"></el-table-column>
+              <el-table-column class="table_td" prop="createDate" width="120" label="发货时间"></el-table-column>
+              <el-table-column class="table_td" prop="carNo" label="车牌号" width="140"></el-table-column>
+              <el-table-column width="100" class="table_td" prop="loadingWeight" label="装车净重(吨)">
+              </el-table-column>
+              <el-table-column width="100" class="table_td" prop="unloadingWeight" label="卸车净重(吨)">
+              </el-table-column>
+              <el-table-column width="120" class="table_td" prop="transportDamage" label="公司承担运损">
+              </el-table-column>
+              <el-table-column width="100" class="table_td" prop="lossWeight" label="损耗(吨)">
+              </el-table-column>
+              <el-table-column width="120" class="table_td" prop="actualLoss" label="实际损耗">
+              </el-table-column>
+              <el-table-column width="120" class="table_td" prop="transportPrice" label="预计单价(元/吨)"></el-table-column>
+              <el-table-column width="120" class="table_td" prop="settlementPrice" label="结算单价(元/吨)">
+              </el-table-column>
+              <el-table-column width="120" class="table_td" prop="settlementWeight" label="结算重量(吨)"></el-table-column>
+              <el-table-column width="120" class="table_td" prop="cargoDamage" label="货损">
+              </el-table-column>
+              <el-table-column width="120" class="table_td" prop="deductionAmount" label="扣款(元)"></el-table-column>
+              <el-table-column width="100" class="table_td" label="服务费(元)" prop="serviceCharge">
+              </el-table-column>
+              <el-table-column width="100" class="table_td" label="实付金额(元)" prop="amountActuallyPaid"></el-table-column>
+              <el-table-column width="100" class="table_td" label="税点(元)" prop="taxPoint"></el-table-column>
+              <el-table-column width="100" class="table_td" label="合计应付(元)" prop="totalPayable"></el-table-column>
+              <el-table-column width="100" class="table_td" label="已付金额(元)" prop="amountEdPayable">
+              </el-table-column>
+              <el-table-column width="100" class="table_td" label="未付金额(元)" prop="amountNotPayable"></el-table-column>
+              <el-table-column width="100" class="table_td" label="已开发票(元)" prop="alreadyInvoice">
+              </el-table-column>
+              <el-table-column width="150" class="table_td" label="付款日期" prop="paymentDate"></el-table-column>
+              <el-table-column width="150" class="table_td" label="司机/车队" prop="name">
+                <template slot-scope="scope">
+                  {{ scope.row.name }}
+                  <span v-if="scope.row.fleetFlag == 1">(队)</span>
+                </template>
               </el-table-column>
             </el-table>
           </div>
@@ -196,283 +195,315 @@
           <el-button class="bg-bottom" type="primary" size="small" @click="reject()">驳回
           </el-button>
           <el-button class="bg-bottom" type="primary" size="small" @click="pass()">通过
-        </el-button>
+          </el-button>
         </div>
-    <el-dialog
-      :title="title"
-      :visible.sync="rejectshow"
-      width="30%"
-      :before-close="handleClose">
-      <span>{{title=='驳回'?'驳回审核':'通过审核'}}</span>
-      <div><el-input
-  type="textarea"
-  :rows="2"
-  placeholder="请输入审核意见"
-  v-model="textarea">
-</el-input>
-</div>
-      <span slot="footer" class="dialog-footer">
-        <el-button @click="rejectshow = false">取 消</el-button>
-        <el-button type="primary" @click="rejectclick">确 定</el-button>
-      </span>
-    </el-dialog>
-    </div>
+        <el-dialog :title="title" :visible.sync="rejectshow" width="30%" :before-close="handleClose">
+          <span>{{ title== '驳回' ? '驳回审核' : '通过审核'}}</span>
+          <div><el-input type="textarea" :rows="2" placeholder="请输入审核意见" v-model="textarea">
+            </el-input>
+          </div>
+          <div>
+            <!-- .pdf, .doc, .docx, .xls, .xlsx -->
+            <ws-upload ref="upload" accept=".jpg, .jpeg, .png," :comp-id="compId" :appendix-ids="auditList" :limit="9"
+              :size-limit="size" @onChange="auditUrlChange" @uploadSuccess="uploadSuccess" />
+          </div>
+
+          <span slot="footer" class="dialog-footer">
+            <el-button @click="cancelShow">取 消</el-button>
+            <el-button type="primary" @click="rejectclick">确 定</el-button>
+          </span>
+        </el-dialog>
+      </div>
     </div>
   </div>
 </template>
 <script>
 import WsUpload from '@/components/WsUpload'
-  import {
-    woekflowhandle
-  } from '@/model/tasksport/index'
-  import {getcontract,getwarehouse,lookexenseinfo,editexenseinfo} from '@/model/profitable/index'
-  export default {
-    components: {
-      WsUpload,
-    },
-    data() {
-      return {
-        value: [],
-        profitList: [{
-          name: '玉米',
-          count: 2000,
-        }],
-        mode:'全部分配',
-        ware:'指定仓库',
-        dates:'固定日期',
-        moneys:'按重量自动分配',
-        goods:'全部货品',
-        goodsList:[],
-        compId:localStorage.getItem('ws-pf_compId'),
-        warecontractList:[],
-        textarea:'',
-        size:100,
-        title:'驳回',
-        feeDetailsDistributions:[{proDate:'',weight:'',money:'',warehouse:'',belonging:'',index:0}],
-        deptBudgetList:{},
-        makeWordData: {},
-        warehouseList:[],
-        rejectshow:false,
-        srcList:[],
-        // modeList:[{key:1,value:'全部分配'},{key:2,value:'部分分配'},{key:3,value:'暂不分配'}],
-        // wareList:[{key:1,value:'指定仓库'},{key:2,value:'全部仓库'}],
-        // datesList:[{key:1,value:'固定日期'},{key:2,value:'指定日期'}],
-        // moneysList:[{key:1,value:'按重量自动分配'},{key:2,value:'指定分配金额'}],
-        // goodsList:[{key:1,value:'全部货品'},{key:2,value:'指定货品'}],
-        valueData: [{
-            date: 10
-          },
-          {
-            date: 20
-          }
-        ], //货值
+import {
+  woekflowhandle
+} from '@/model/tasksport/index'
+import { getcontract, getwarehouse, lookexenseinfo, editexenseinfo } from '@/model/profitable/index'
+export default {
+  components: {
+    WsUpload,
+  },
+  data() {
+    return {
+      value: [],
+      profitList: [{
+        name: '玉米',
+        count: 2000,
+      }],
+      mode: '全部分配',
+      ware: '指定仓库',
+      dates: '固定日期',
+      moneys: '按重量自动分配',
+      goods: '全部货品',
+      goodsList: [],
+      compId: localStorage.getItem('ws-pf_compId'),
+      warecontractList: [],
+      textarea: '',
+      size: 100,
+      title: '驳回',
+      feeDetailsDistributions: [{ proDate: '', weight: '', money: '', warehouse: '', belonging: '', index: 0 }],
+      deptBudgetList: {},
+      makeWordData: {},
+      warehouseList: [],
+      rejectshow: false,
+      srcList: [],
+      // modeList:[{key:1,value:'全部分配'},{key:2,value:'部分分配'},{key:3,value:'暂不分配'}],
+      // wareList:[{key:1,value:'指定仓库'},{key:2,value:'全部仓库'}],
+      // datesList:[{key:1,value:'固定日期'},{key:2,value:'指定日期'}],
+      // moneysList:[{key:1,value:'按重量自动分配'},{key:2,value:'指定分配金额'}],
+      // goodsList:[{key:1,value:'全部货品'},{key:2,value:'指定货品'}],
+      valueData: [{
+        date: 10
+      },
+      {
+        date: 20
+      }
+      ], //货值
+      auditList: "",//审核附件
+      auditUrl: ""
 
+    }
+  },
+  activated() {
+    this.getList()
+  },
+  methods: {
+    cancelShow() {
+      this.rejectshow = false
+      this.auditList = [],//审核附件
+        this.auditUrl = ""
+    },
+    auditUrlChange() {//审核附件
+      this.$refs.upload
+        .handleSaveBill()
+        .then(async response => {
+          this.auditList = response
+          // this.deptBudgetList.addressUrl = response
+        })
+        .catch(res => {
+          EventBus.$emit('error', (JSON.parse(res) || {}).message)
+          this.$refs.upload.clearFiles()
+        })
+    },
+    // 上传附件
+    uploadSuccess(data, files) {
+      if (!this.auditUrl) {
+        this.auditUrl = data.appendixPath
+      } else {
+        this.auditUrl = this.auditUrl + "," + data.appendixPath
       }
     },
-    activated() {
-      this.getList()
+    handleClose() {
+      this.rejectshow = false
     },
-    methods: {
-      handleClose(){
-        this.rejectshow=false
-      },
-      pass(){
-         this.$confirm('确认通过请款信息?', '提示', {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
-          })
-          .then(() => {
-            this.title='通过'
-            this.rejectshow=true
-            
-          })
-      },
-      returnsales(){
-        this.$router.go(-1)
-      },
-      reject(){
-        this.title='驳回'
-        this.rejectshow=true
-      },
-      rejectclick(){
-        if(this.title=='驳回'){
-          woekflowhandle({
-            taskId: this.deptBudgetList.taskId,
-            approved:false,
-            auditMind: this.textarea,
-            needReapply: true,
-          }).toPromise()
-          .then((response) => {
-            this.$message({
-              message: '驳回成功!',
-              type: 'success',
-            })
-            this.rejectshow=false
-            this.$router.go(-1)
-          }).catch((response) => {
-            this.$message({
-              message: '驳回失败!',
-              type: 'error',
-            })
-          })
-        }else{
-          woekflowhandle({
+    pass() {
+
+      this.title = '通过'
+      this.rejectshow = true
+    },
+    returnsales() {
+      this.$router.go(-1)
+    },
+    reject() {
+      this.title = '驳回'
+      this.rejectshow = true
+    },
+    rejectclick() {
+      this.$confirm('确认' + this.title + '请款信息?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      })
+        .then(() => {
+          if (this.title == '驳回') {
+            woekflowhandle({
               taskId: this.deptBudgetList.taskId,
-              approved:true,
-              auditMind: this.textarea,
+              approved: false,
+              auditMind: this.textarea + "##" + this.auditUrl,
               needReapply: true,
             }).toPromise()
-            .then((response) => {
-              this.$message({
-                message: '通过成功!',
-                type: 'success',
+              .then((response) => {
+                this.$message({
+                  message: '驳回成功!',
+                  type: 'success',
+                })
+                this.rejectshow = false
+                this.$router.go(-1)
+              }).catch((response) => {
+                this.$message({
+                  message: '驳回失败!',
+                  type: 'error',
+                })
               })
-              this.$router.go(-1)
-            }).catch((response) => {
-              this.$message({
-                message: '通过失败!',
-                type: 'error',
+          } else {
+            woekflowhandle({
+              taskId: this.deptBudgetList.taskId,
+              approved: true,
+              auditMind: this.textarea + "##" + this.auditUrl,
+              needReapply: true,
+            }).toPromise()
+              .then((response) => {
+                this.$message({
+                  message: '通过成功!',
+                  type: 'success',
+                })
+                this.$router.go(-1)
+              }).catch((response) => {
+                this.$message({
+                  message: '通过失败!',
+                  type: 'error',
+                })
               })
-            })
-        }
-        
-      },
-      getList() {
-       getcontract({
-        compId:localStorage.getItem('ws-pf_compId'),
-        flag:11
-        }).toPromise()
+          }
+
+        })
+
+
+    },
+    getList() {
+      getcontract({
+        compId: localStorage.getItem('ws-pf_compId'),
+        flag: 11
+      }).toPromise()
         .then((response) => {
-          this.contractList=response
+          this.contractList = response
         })
-        getwarehouse({
-          compId:localStorage.getItem('ws-pf_compId'),
-          warehouseType:1
-        }).toPromise()
+      getwarehouse({
+        compId: localStorage.getItem('ws-pf_compId'),
+        warehouseType: 1
+      }).toPromise()
         .then((response) => {
-          this.warehouseList=response
+          this.warehouseList = response
         })
-        lookexenseinfo({
-         id:this.$route.query.id
-        }).toPromise()
+      lookexenseinfo({
+        id: this.$route.query.id
+      }).toPromise()
         .then((response) => {
-          if(response.costType==1){
-            response.type='粮款'
-          }else if(response.costType==3){
-            response.type='非粮款'
-          }else if(response.costType==5){
-            response.type='保证金'
+          if (response.costType == 1) {
+            response.type = '粮款'
+          } else if (response.costType == 3) {
+            response.type = '非粮款'
+          } else if (response.costType == 5) {
+            response.type = '保证金'
           }
-          this.deptBudgetList=response
-          this.deptBudgetList.taskId=this.$route.query.taskId 
-          if(response.addressUrl){
-            this.srcList=[]
+          this.deptBudgetList = response
+          this.deptBudgetList.taskId = this.$route.query.taskId
+          if (response.addressUrl) {
+            this.srcList = []
             // var srcs=response.addressUrl.split(',')
-          var arr=response.addressUrl.split(',')
-          for (let i = 0; i < arr.length; i++) {
-            if(arr[i]!=''){
-              this.srcList.push(arr[i])
+            var arr = response.addressUrl.split(',')
+            for (let i = 0; i < arr.length; i++) {
+              if (arr[i] != '') {
+                this.srcList.push(arr[i])
+              }
             }
           }
-          }
         })
 
-      },
     },
-  }
+  },
+}
 </script>
 <style lang="scss" scoped>
-  .container {
-    background: #E8ECF6;
-  }
+.container {
+  background: #E8ECF6;
+}
 
-  .center {
-    margin: 0 auto;
-    background: #ffffff;
-    height: calc(100vh - 13vh);
-    border-radius: 4px;
-    margin-top: 10px;
-    overflow:scroll;
-  }
+.center {
+  margin: 0 auto;
+  background: #ffffff;
+  height: calc(100vh - 13vh);
+  border-radius: 4px;
+  margin-top: 10px;
+  overflow: scroll;
+}
 
-  .row_top {
-    // background: #F6F7FC;
-    border-radius: 4px;
+.row_top {
+  // background: #F6F7FC;
+  border-radius: 4px;
 
-    .bg-left {
-      padding-left: 30px;
-    }
+  .bg-left {
+    padding-left: 30px;
+  }
 
   .bg-right {
-      padding-right: 10px;
-      text-align: right;
-      height:60px;
-      padding-top:15px;
-    }
+    padding-right: 10px;
+    text-align: right;
+    height: 60px;
+    padding-top: 15px;
+  }
 
-    .title {
-      position: relative;
-    }
+  .title {
+    position: relative;
+  }
 
-    .title::before {
-      content: '';
-      display: inline-block;
-      width: 5px;
-      height: 30px;
-      background: #5473e8;
-      position: absolute;
-      left: 0;
-    }
+  .title::before {
+    content: '';
+    display: inline-block;
+    width: 5px;
+    height: 30px;
+    background: #5473e8;
+    position: absolute;
+    left: 0;
   }
+}
 
-  .datascreen {
-    // margin-top: 10px;
-    width: 500px;
-    height: 60px;
-    line-height: 60px;
-    margin-left: 30px;
+.datascreen {
+  // margin-top: 10px;
+  width: 500px;
+  height: 60px;
+  line-height: 60px;
+  margin-left: 30px;
+
+}
 
+.chart_css {
+  display: flex;
+  height: 410px;
+
+  .table {
+    width: 70%;
+    height: 410px;
   }
 
-  .chart_css {
-    display: flex;
+  .makeWord_css {
+    width: 30%;
     height: 410px;
+    margin-left: 30px;
+  }
+}
 
-    .table {
-      width: 70%;
-      height: 410px;
-    }
+.table_css {
 
-    .makeWord_css {
-      width: 30%;
-      height: 410px;
-      margin-left: 30px;
-    }
-  }
+  text-align: center;
 
-  .table_css {
+}
 
-    text-align:center;
+/deep/.el-form {
+  width: 90%;
+  margin: 0 auto;
 
+  .el-form-item__label {
+    color: #8890B1;
   }
-  /deep/.el-form{
-    width:90%;
-    margin:0 auto;
-    .el-form-item__label{
-      color:#8890B1;
-    }
-  }
-  /deep/.el-form-item {
-    width: 50%;
 }
-/deep/.el-upload--picture-card{
+
+/deep/.el-form-item {
+  width: 50%;
+}
+
+/deep/.el-upload--picture-card {
   width: 100px;
-  height:100px;
-  line-height:100px;
+  height: 100px;
+  line-height: 100px;
 }
-/deep/.el-upload-list--picture-card .el-upload-list__item{
+
+/deep/.el-upload-list--picture-card .el-upload-list__item {
   width: 110px;
-  height:140px;
+  height: 140px;
 }
 </style>

Файловите разлики са ограничени, защото са твърде много
+ 467 - 431
src/views/profitable/cashoutaduitNQ.vue


+ 194 - 180
src/views/profitable/expensemanagementdetails.vue

@@ -23,36 +23,46 @@
         <el-col :span="18">
           <div class="datascreen">
             <!-- <el-input placeholder="可按费用名称、流向、经办人查找" class="input_css" v-model="searchKeyWord" clearable></el-input> -->
-            <el-select v-model="warehouseName"  filterable placeholder="按仓库筛选" clearable @change="getList1" class="options_css">
+            <el-select v-model="warehouseName" filterable placeholder="按仓库筛选" clearable @change="getList1"
+              class="options_css">
               <el-option label="全部仓库" value=""></el-option>
-              <el-option v-for="item in warehousNameList" :key="item.id" :label="item.warehouseName" :value="item.warehouseName"></el-option>
+              <el-option v-for="item in warehousNameList" :key="item.id" :label="item.warehouseName"
+                :value="item.warehouseName"></el-option>
             </el-select>
-            <el-select v-model="costNo" multiple filterable allow-create default-first-option placeholder="按编号筛选" clearable @change="getList1" class="options_css">
+            <el-select v-model="costNo" multiple filterable allow-create default-first-option placeholder="按编号筛选"
+              clearable @change="getList1" class="options_css">
               <el-option v-for="item in choiceObj" :key="item.id" :label="item.costNo" :value="item.costNo">
               </el-option>
             </el-select>
-            <el-select v-model="purpose" multiple filterable allow-create default-first-option placeholder="按用途筛选" clearable  @change="getList1" class="options_css">
+            <el-select v-model="purpose" multiple filterable allow-create default-first-option placeholder="按用途筛选"
+              clearable @change="getList1" class="options_css">
               <el-option v-for="item in costChoice" :key="item.id" :label="item.name" :value="item.name">
               </el-option>
             </el-select>
-            <el-select v-model="flowTo" multiple filterable allow-create default-first-option placeholder="按流向筛选" clearable  @change="getList1" class="options_css">
+            <el-select v-model="flowTo" multiple filterable allow-create default-first-option placeholder="按流向筛选"
+              clearable @change="getList1" class="options_css">
               <el-option v-for="item in flowToList" :key="item.id" :label="item.flowTo" :value="item.flowTo">
               </el-option>
             </el-select>
-            
-            <el-select v-model="expenseName" multiple filterable allow-create default-first-option placeholder="按费用名称筛选" clearable  @change="getList1" class="options_css">
-              <el-option v-for="item in costNameList" :key="item.id" :label="item.expenseName" :value="item.expenseName">
+
+            <el-select v-model="expenseName" multiple filterable allow-create default-first-option placeholder="按费用名称筛选"
+              clearable @change="getList1" class="options_css">
+              <el-option v-for="item in costNameList" :key="item.id" :label="item.expenseName"
+                :value="item.expenseName">
               </el-option>
             </el-select>
-            <el-select v-model="unallocatedAmount" multiple filterable allow-create default-first-option placeholder="按未分配金额筛选" clearable  @change="getList1" class="options_css">
-              <el-option v-for="item in moneyList" :key="item.id" :label="item.unallocatedAmount" :value="item.unallocatedAmount">
+            <el-select v-model="unallocatedAmount" multiple filterable allow-create default-first-option
+              placeholder="按未分配金额筛选" clearable @change="getList1" class="options_css">
+              <el-option v-for="item in moneyList" :key="item.id" :label="item.unallocatedAmount"
+                :value="item.unallocatedAmount">
               </el-option>
-            </el-select> 
-            <el-select v-model="agent" multiple filterable allow-create default-first-option placeholder="按经办人筛选" clearable  @change="getList1" class="options_css">
+            </el-select>
+            <el-select v-model="agent" multiple filterable allow-create default-first-option placeholder="按经办人筛选"
+              clearable @change="getList1" class="options_css">
               <el-option v-for="item in personList" :key="item.id" :label="item.agent" :value="item.agent">
               </el-option>
             </el-select>
-            <el-select v-model="toExamineType"  filterable  clearable @change="getList1" class="options_css">
+            <el-select v-model="toExamineType" filterable clearable @change="getList1" class="options_css">
               <el-option label="全部状态" value=""></el-option>
               <el-option label="待审核" value="1"></el-option>
               <el-option label="待付款" value="2"></el-option>
@@ -60,7 +70,8 @@
             <!-- <el-select v-model="deptBudgetList.otherPersonPhone" placeholder="请选择其他驻库人员,可选多人"  allow-create default-first-option @change="selectstaffOther" multiple filterable clearable>
             <el-option v-for="item in optionsOther" :key="item.staffMobilePhone" :label="item.staffName" :value="item.staffMobilePhone" />
           </el-select> -->
-            <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-button class="find" type="primary" @click="find()"><img width="16" height="16" style="left: -8px"
+                src="../../../public/img/sousuo.png" alt="" /></el-button>
           </div>
         </el-col>
       </el-row>
@@ -152,9 +163,9 @@
                 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
+                  scope.row.addressUrlArray.length == 0
+                    ? ''
+                    : scope.row.addressUrlArray.length
                 }}
               </span>
             </template>
@@ -164,20 +175,20 @@
           <el-table-column prop="status" label="费用状态" width="100">
             <template slot-scope="scope">
               <span v-if="scope.row.approveStatus">{{
-                  scope.row.approveStatus
+                scope.row.approveStatus
               }}</span><span v-else>{{ scope.row.status }}</span>
               <i @click="handlerecord(scope.row)" class="el-icon-s-claim"></i>
             </template>
           </el-table-column>
           <el-table-column prop="address" label="操作" width="300">
             <template slot-scope="scope">
-              <el-button v-if="scope.row.expenseName!='保证金抵粮款'" @click="look(scope.row)" type="primary">查看</el-button>
+              <el-button v-if="scope.row.expenseName != '保证金抵粮款'" @click="look(scope.row)" type="primary">查看</el-button>
               <div v-hasPermission="`lirunhesuan.feiyongguanli.queshou`" style="display: inline-block">
                 <el-button v-if="
-                  scope.row.status == '待确认' &&scope.row.expenseName!='保证金抵粮款'
+                  scope.row.status == '待确认' && scope.row.expenseName != '保证金抵粮款'
                 " @click="shoukuanqueren(scope.row)" type="primary">确认</el-button>
                 <el-button v-if="
-                  scope.row.status == '待确认'&&scope.row.expenseName=='保证金抵粮款'
+                  scope.row.status == '待确认' && scope.row.expenseName == '保证金抵粮款'
                 " @click="shoukuanqueren1(scope.row)" type="primary">确认</el-button>
               </div>
               <!-- <el-button v-if='scope.row.approveStatus=="待确认"' @click="accomplish(scope.row)" type="primary">完成</el-button> -->
@@ -192,8 +203,10 @@
                   scope.row.status == '已付款' &&
                   !scope.row.approveStatus)
               " @click="accomplish(scope.row)" type="primary">完成</el-button>
-              <el-button v-if="scope.row.approveStatus && scope.row.approveStatus !='发起人撤回' " v-show="scope.row.showFlag"  @click="withdraw(scope.row)" type="primary">撤回</el-button>
-              <el-button v-if="scope.row.status == '已驳回' || scope.row.approveStatus == '发起人撤回'" @click="edit(scope.row)" type="primary">编辑</el-button>
+              <el-button v-if="scope.row.approveStatus && scope.row.approveStatus != '发起人撤回'"
+                v-show="scope.row.showFlag" @click="withdraw(scope.row)" type="primary">撤回</el-button>
+              <el-button v-if="scope.row.status == '已驳回' || scope.row.approveStatus == '发起人撤回'" @click="edit(scope.row)"
+                type="primary">编辑</el-button>
               <el-button v-if="
                 (!scope.row.distributionStatus &&
                   scope.row.expensesPurpose == 1 &&
@@ -213,9 +226,13 @@
                   scope.row.unallocatedAmount > 0)
               " @click="allot(scope.row)" type="primary">分配</el-button>
               <!-- <el-button v-if='scope.row.approveStatus=="已驳回"' @click="del(0,scope.row)" type="primary">删除</el-button> -->
-              <el-button v-if='scope.row.status=="已驳回" ||scope.row.approveStatus =="发起人撤回" ' @click="del(0,scope.row)" type="danger">删除</el-button>
-              <el-button v-if='scope.row.approveStatus=="待财务审核"||scope.row.approveStatus=="待杜大光审核"||scope.row.approveStatus=="待决策人审核"||scope.row.approveStatus=="待内勤审核"||scope.row.approveStatus=="待单证中心审核"' @click="aduit(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>
+              <el-button v-if='scope.row.status == "已驳回" || scope.row.approveStatus == "发起人撤回"' @click="del(0, scope.row)"
+                type="danger">删除</el-button>
+              <el-button
+                v-if='scope.row.approveStatus == "待财务审核" || scope.row.approveStatus == "待杜大光审核" || scope.row.approveStatus == "待决策人审核" || scope.row.approveStatus == "待内勤审核" || scope.row.approveStatus == "待单证中心审核"'
+                @click="aduit(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-column prop="expenseRemarks" label="分配状态">
@@ -265,11 +282,11 @@
           </div>
           <div style="width: 33.333%; text-align: center">
             {{
-                statusdata.expensesType != 1
-                  ? item.approveResult == 1
-                    ? '通过'
-                    : item.approveResult == 0?'驳回':item.dealMsg
-                  : item.dealMsg
+              statusdata.expensesType != 1
+                ? item.approveResult == 1
+                  ? '通过'
+                  : item.approveResult == 0 ? '驳回' : item.dealMsg
+                : item.dealMsg
             }}
           </div>
           <div style="width: 33.333%; text-align: right">
@@ -277,10 +294,10 @@
           </div>
         </div>
         <div v-if="index < recordList.length - 1" style="width: 100%; text-align: left">
-          审核意见:{{ item.verifyRemark }}
+          审核意见:{{item.verifyRemark?item.verifyRemark.split('##')[0]:""}}
         </div>
         <div v-else style="width: 100%; text-align: left">
-          审核意见:{{ item.verifyRemark }}
+          审核意见:{{item.verifyRemark?item.verifyRemark.split('##')[0]:""}}
         </div>
       </div>
     </el-dialog>
@@ -288,21 +305,16 @@
       <ws-upload ref="upload" @onChange="onChange1" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx"
         :comp-id="compId" :appendix-ids="appendixIdss" :size-limit="size" />
     </WinseaContentModal>
-    <el-dialog
-  title="确认保证金抵粮款信息"
-  :visible.sync="dialogVisible"
-  width="30%"
-  :before-close="handleClose">
-  <div>
-    <ws-upload ref="upload1" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx"
-    @onChange="onChange" :comp-id="compId" :appendix-ids="appendixIdss1" :size-limit="size" />
-    <span slot="footer" class="dialog-footer">
-      <el-button @click="dialogVisible = false">取 消</el-button>
-      <el-button type="primary" @click="querenbazheng">确 定</el-button>
-    </span> 
-  </div>
- 
-</el-dialog>
+    <el-dialog title="确认保证金抵粮款信息" :visible.sync="dialogVisible" width="30%" :before-close="handleClose">
+      <div>
+        <ws-upload ref="upload1" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx" @onChange="onChange"
+          :comp-id="compId" :appendix-ids="appendixIdss1" :size-limit="size" />
+        <span slot="footer" class="dialog-footer">
+          <el-button @click="dialogVisible = false">取 消</el-button>
+          <el-button type="primary" @click="querenbazheng">确 定</el-button>
+        </span>
+      </div>
+    </el-dialog>
   </div>
 </template>
 <script>
@@ -322,10 +334,11 @@ import {
   getcostNo,
   editfujian
 } from '@/model/profitable/index'
-import { getwarehousName} from '@/model/warehouse/index'
+import { getwarehousName } from '@/model/warehouse/index'
 import {
-    downloadFile
-  } from '@/utils/batchDown'
+  downloadFile
+} from '@/utils/batchDown'
+import { split } from 'lodash'
 export default {
   components: {
     WsUpload,
@@ -338,23 +351,23 @@ export default {
       deptBudgetTotal: 0,
       currentPage: 1,
       pageSize: 10,
-      showFlag:false,
+      showFlag: false,
       size: 100,
       expensesPurpose: '',
       recordList: [],
-      dialogVisible:false,
-      toExamineType:'',
+      dialogVisible: false,
+      toExamineType: '',
       compId: localStorage.getItem('ws-pf_compId'),
       dialogVisible1: false,
       deptCircularPage: {},
       searchType: '',
       searchKeyWord: '',
       costNo: [],//编号
-      purpose:[],//用途
-      flowTo:[],//流向
-      expenseName:[],//费用名称
-      unallocatedAmount:[],//未分配金额(元)
-      agent:[],//经办人
+      purpose: [],//用途
+      flowTo: [],//流向
+      expenseName: [],//费用名称
+      unallocatedAmount: [],//未分配金额(元)
+      agent: [],//经办人
       startDate: '',
       endDate: '',
       title: '附件',
@@ -362,11 +375,11 @@ export default {
       outtotal: 0,
       intotal: 0,
       fujianshow: false,
-      statusdata:{},
+      statusdata: {},
       appendixIdss: [],
-      appendixIdss1:'',
+      appendixIdss1: '',
       approveStatus: false,
-      currectdata:{},
+      currectdata: {},
       choiceObj: [],
       costChoice: [
         {
@@ -376,7 +389,7 @@ export default {
         {
           name: '库点费用',
           id: 2
-        }, 
+        },
         {
           name: '经营性费用',
           id: 3
@@ -390,13 +403,13 @@ export default {
           id: 5
         }
       ],
-      addressUrl:'',
-      flowToList:[],
-      costNameList:[],
-      moneyList:[],
-      personList:[],
-      warehousNameList:[],
-      warehouseName:''
+      addressUrl: '',
+      flowToList: [],
+      costNameList: [],
+      moneyList: [],
+      personList: [],
+      warehousNameList: [],
+      warehouseName: ''
     }
   },
   activated() {
@@ -405,38 +418,38 @@ export default {
     this.xiala()
   },
   methods: {
-    async exportFile(){
-        let _data = {
-          // expenseInfoExportList:this.choiceObj,
-          compId: localStorage.getItem('ws-pf_compId'),
-          startDate: this.startDate,
-          endDate: this.endDate,
-          searchKeyWord: this.searchKeyWord,
-          currentPage: this.currentPage,
-          pageSize: 9999,
-          searchType: this.searchType,
-          expensesPurpose: this.expensesPurpose,
-          costNo:this.costNo.length>0?this.costNo.toString():'',
-          purpose:this.purpose.length>0?this.purpose.toString():'',
-          expenseName:this.expenseName.length>0?this.expenseName.toString():'',
-          unallocatedNumber:this.unallocatedAmount.length>0?this.unallocatedAmount.toString():'',
-          agent:this.agent.length>0?this.agent.toString():'',
-          flowTo:this.flowTo.length>0?this.flowTo.toString():'',
-          warehouseName:this.warehouseName,
-          toExamineType:this.toExamineType
-        }
-        const {
-          data
-        } = await exportFile(
-          _data, {}, {
-            responseType: 'blob',
-          }
-        ).toPromise()
-        downloadFile({
-          res: data,
-          fileName: `费用明细`,
-          type: 'xls',
-        })
+    async exportFile() {
+      let _data = {
+        // expenseInfoExportList:this.choiceObj,
+        compId: localStorage.getItem('ws-pf_compId'),
+        startDate: this.startDate,
+        endDate: this.endDate,
+        searchKeyWord: this.searchKeyWord,
+        currentPage: this.currentPage,
+        pageSize: 9999,
+        searchType: this.searchType,
+        expensesPurpose: this.expensesPurpose,
+        costNo: this.costNo.length > 0 ? this.costNo.toString() : '',
+        purpose: this.purpose.length > 0 ? this.purpose.toString() : '',
+        expenseName: this.expenseName.length > 0 ? this.expenseName.toString() : '',
+        unallocatedNumber: this.unallocatedAmount.length > 0 ? this.unallocatedAmount.toString() : '',
+        agent: this.agent.length > 0 ? this.agent.toString() : '',
+        flowTo: this.flowTo.length > 0 ? this.flowTo.toString() : '',
+        warehouseName: this.warehouseName,
+        toExamineType: this.toExamineType
+      }
+      const {
+        data
+      } = await exportFile(
+        _data, {}, {
+        responseType: 'blob',
+      }
+      ).toPromise()
+      downloadFile({
+        res: data,
+        fileName: `费用明细`,
+        type: 'xls',
+      })
     },
     withdraw(row) {
       this.$confirm(`撤回成功后,可再次提交,确定撤回吗?`, {
@@ -454,7 +467,7 @@ export default {
           })
       })
     },
-    xiala(){
+    xiala() {
       //仓库筛选
       getwarehousName({
         compId: localStorage.getItem('ws-pf_compId'),
@@ -463,8 +476,8 @@ export default {
         .then((response) => {
           this.warehousNameList = response
         })
-       //搜索框下拉数据
-       getcostNo({
+      //搜索框下拉数据
+      getcostNo({
         compId: localStorage.getItem('ws-pf_compId'),
         // currentPage: 1,
         // pageSize: 9999,
@@ -473,21 +486,21 @@ export default {
         .then((response) => {
           this.choiceObj = response
         })
-         //流向
-         getXialaList({
+      //流向
+      getXialaList({
         removeRepeatFlag: 1,
       })
         .toPromise()
         .then((response) => {
           this.flowToList = response
-          for(let i = 0 ;i<this.flowToList.length;i++){
-            if(this.flowToList[i].expensesPurpose == 3){
+          for (let i = 0; i < this.flowToList.length; i++) {
+            if (this.flowToList[i].expensesPurpose == 3) {
               this.flowToList[i].flowTo = this.flowToList[i].warehouseName
-            }else if(this.flowToList[i].expensesPurpose == 1){
+            } else if (this.flowToList[i].expensesPurpose == 1) {
               this.flowToList[i].flowTo = this.flowToList[i].contractNo
-            }else if(this.flowToList[i].expensesPurpose == 5){
+            } else if (this.flowToList[i].expensesPurpose == 5) {
               this.flowToList[i].flowTo = '中天昊元'
-            }else if(this.flowToList[i].expensesPurpose == 2){
+            } else if (this.flowToList[i].expensesPurpose == 2) {
               this.flowToList[i].flowTo = this.flowToList[i].contractNo
             }
           }
@@ -500,16 +513,16 @@ export default {
         .then((response) => {
           this.costNameList = response
         })
-          //未分配金额
-          getXialaList({
+      //未分配金额
+      getXialaList({
         removeRepeatFlag: 3,
       })
         .toPromise()
         .then((response) => {
           this.moneyList = response
         })
-           //经办人
-           getXialaList({
+      //经办人
+      getXialaList({
         removeRepeatFlag: 4,
       })
         .toPromise()
@@ -518,64 +531,64 @@ export default {
         })
 
     },
-    querenbazheng(){
-    if(this.addressUrl){
-      this.currectdata.addressUrl=this.currectdata.addressUrl+','+this.addressUrl
-    }
-    this.currectdata.flag=7
-  console.log(this.addressUrl,this.currectdata)
-    editexenseinfo(this.currectdata)
-      .toPromise()
-      .then((response) => {
-        this.$message({
-          message: '提交成功!',
-          type: 'success',
+    querenbazheng() {
+      if (this.addressUrl) {
+        this.currectdata.addressUrl = this.currectdata.addressUrl + ',' + this.addressUrl
+      }
+      this.currectdata.flag = 7
+      console.log(this.addressUrl, this.currectdata)
+      editexenseinfo(this.currectdata)
+        .toPromise()
+        .then((response) => {
+          this.$message({
+            message: '提交成功!',
+            type: 'success',
+          })
+          this.dialogVisible = false
+          this.getList()
+          // this.$router.go(-1)
         })
-        this.dialogVisible=false
-        this.getList()
-        // this.$router.go(-1)
-      })
     },
-    getList1(){
+    getList1() {
       console.log(this.toExamineType)
-      this.currentPage=1
+      this.currentPage = 1
       this.getList()
     },
     onChange() {
-        this.$refs.upload1
-          .handleSaveBill()
-          .then(async response => {
-            this.addressUrl = response
-          })
-          .catch(res => {
-            EventBus.$emit('error', (JSON.parse(res) || {}).message)
-            this.$refs.upload1.clearFiles()
-          })
-      },
-      onChange1() {
-        this.$refs.upload
-          .handleSaveBill()
-          .then(async (response) => {
-            editfujian({addressUrl:response,id:this.id})
-              .toPromise()
-              .then((response) => {
-                this.fujianshow = false
-                this.$message.success('上传成功')
-                this.getList()
-              })
-          })
-          .catch((res) => {
-            EventBus.$emit('error', (JSON.parse(res) || {}).message)
-            this.$refs.upload.clearFiles()
-          })
-      },
+      this.$refs.upload1
+        .handleSaveBill()
+        .then(async response => {
+          this.addressUrl = response
+        })
+        .catch(res => {
+          EventBus.$emit('error', (JSON.parse(res) || {}).message)
+          this.$refs.upload1.clearFiles()
+        })
+    },
+    onChange1() {
+      this.$refs.upload
+        .handleSaveBill()
+        .then(async (response) => {
+          editfujian({ addressUrl: response, id: this.id })
+            .toPromise()
+            .then((response) => {
+              this.fujianshow = false
+              this.$message.success('上传成功')
+              this.getList()
+            })
+        })
+        .catch((res) => {
+          EventBus.$emit('error', (JSON.parse(res) || {}).message)
+          this.$refs.upload.clearFiles()
+        })
+    },
     handlerecord(row) {
       if (row.expensesType == 1) {
         this.title1 = '收款审核记录'
       } else {
         this.title1 = '请款审核记录'
       }
-      this.statusdata=row
+      this.statusdata = row
       getAuditRecord({ id: row.id, workflowId: row.workflowId })
         .toPromise()
         .then((response) => {
@@ -594,8 +607,8 @@ export default {
       this.id = row.id
 
       // if (row.addressUrl) {
-        this.appendixIdss = row.addressUrl
-        this.fujianshow = true
+      this.appendixIdss = row.addressUrl
+      this.fujianshow = true
       // } else {
       //   this.$message({
       //     message: '暂无附件查看!',
@@ -760,9 +773,9 @@ export default {
         })
       }
     },
-    shoukuanqueren1(row){
-      this.currectdata=row
-      this.dialogVisible=true
+    shoukuanqueren1(row) {
+      this.currectdata = row
+      this.dialogVisible = true
     },
     aduit(row) {
       if (row.taskId) {
@@ -785,7 +798,7 @@ export default {
       }
     },
     allotaduit(row) {
-      var role=allRoles()
+      var role = allRoles()
       if (role.roleName.indexOf('单证中心主任') != -1) {
         localStorage.setItem(
           'expenseqr',
@@ -860,7 +873,7 @@ export default {
         }
         this.startDate = year + '-' + month + '-' + strDate
         this.endDate = year1 + '-' + month1 + '-' + strDate1
-      }else{
+      } else {
         this.startDate = localStorage.getItem('startDate')
         this.endDate = localStorage.getItem('endDate')
       }
@@ -880,14 +893,14 @@ export default {
         pageSize: this.pageSize,
         searchType: this.searchType,
         expensesPurpose: this.expensesPurpose,
-        costNo:this.costNo.length>0?this.costNo.toString():'',
-        purpose:this.purpose.length>0?this.purpose.toString():'',
-        expenseName:this.expenseName.length>0?this.expenseName.toString():'',
-        unallocatedNumber:this.unallocatedAmount.length>0?this.unallocatedAmount.toString():'',
-        agent:this.agent.length>0?this.agent.toString():'',
-        flowTo:this.flowTo.length>0?this.flowTo.toString():'',
-        warehouseName:this.warehouseName,
-        toExamineType:this.toExamineType,
+        costNo: this.costNo.length > 0 ? this.costNo.toString() : '',
+        purpose: this.purpose.length > 0 ? this.purpose.toString() : '',
+        expenseName: this.expenseName.length > 0 ? this.expenseName.toString() : '',
+        unallocatedNumber: this.unallocatedAmount.length > 0 ? this.unallocatedAmount.toString() : '',
+        agent: this.agent.length > 0 ? this.agent.toString() : '',
+        flowTo: this.flowTo.length > 0 ? this.flowTo.toString() : '',
+        warehouseName: this.warehouseName,
+        toExamineType: this.toExamineType,
       })
         .toPromise()
         .then((response) => {
@@ -928,7 +941,7 @@ export default {
     },
     pickerOptions() { },
     find() {
-      this.currentPage=1
+      this.currentPage = 1
       this.getList()
     },
     handleSizeChange(val) {
@@ -1026,7 +1039,8 @@ export default {
 .bg-right {
   padding-top: 15px;
 }
-.options_css{
-  margin:0 5px;
+
+.options_css {
+  margin: 0 5px;
 }
 </style>

Някои файлове не бяха показани, защото твърде много файлове са промени