소스 검색

费用管理

gjy 3 년 전
부모
커밋
4679bd83f6

+ 4 - 2
src/views/profitable/cashout.vue

@@ -453,7 +453,7 @@
             this.deptBudgetList.costType=3
             this.deptBudgetList.expenseAllocationInfoList=this.feeDetailsDistributions
           }else if(this.deptBudgetList.type=='保证金'){
-            this.deptBudgetList.expensesPurpose=5
+            this.deptBudgetList.costType=5
             this.deptBudgetList.expenseAllocationInfoList=[]
           }
         }
@@ -591,7 +591,9 @@
               message: '提交成功!',
               type: 'success',
             })
-            this.deptBudgetList={}
+            this.deptBudgetList={purpose:"合同费用",type:'粮款'}
+            this.paymentScreenshot=[]
+            this.$refs.uploadfiles.clearFiles()
             this.$router.go(-1)
           })
           })

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

@@ -287,7 +287,7 @@
           }else if(this.deptBudgetList.type=='非粮款'){
             this.deptBudgetList.costType=3
           }else if(this.deptBudgetList.type=='保证金'){
-            this.deptBudgetList.expensesPurpose=5
+            this.deptBudgetList.costType=5
           }
         }
         this.deptBudgetList.expensesType=2

+ 3 - 3
src/views/profitable/contractprofits.vue

@@ -141,9 +141,9 @@
           for (let i = 0; i < response.formList.length; i++) {
             // response.formList[i]
             if( response.formList[i].type=='采购重量'){
-            this.deptBudgetList.cgweight=response.formList[i].profit
+            this.deptBudgetList.cgweight=response.formList[i].profit.toFixed(4)
           }else if(response.formList[i].type=='销售重量'){
-            this.deptBudgetList.xsweight=response.formList[i].profit
+            this.deptBudgetList.xsweight=response.formList[i].profit.toFixed(4)
           }else if(response.formList[i].type=='支付粮款'){
             this.deptBudgetList.zfweight=(response.formList[i].profit/10000).toFixed(4)
           }else if(response.formList[i].type=='收入粮款'){
@@ -158,7 +158,7 @@
             this.deptBudgetList.lrweight=(response.formList[i].profit/10000).toFixed(4)
           }
           }
-          console.log(this.deptBudgetList)
+          // console.log(this.deptBudgetList)
           
           for (let i = 0; i < this.datalist2.length; i++) {
           if(this.datalist2[i]<0){

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

@@ -379,7 +379,7 @@ weight: 4000}]],
             this.deptBudgetList.costType=3
             this.deptBudgetList.expenseAllocationInfoList=this.feeDetailsDistributions
           }else if(this.deptBudgetList.type=='保证金'){
-            this.deptBudgetList.expensesPurpose=5
+            this.deptBudgetList.costType=5
             this.deptBudgetList.expenseAllocationInfoList=[]
           }
         }

+ 3 - 7
src/views/profitable/receipt.vue

@@ -184,24 +184,18 @@
           this.deptBudgetList.costNo='HTF'+this.getdate()+this.MathRand()
         }else if(this.deptBudgetList.purpose=='库点费用'){
           this.deptBudgetList.expensesPurpose=3
-          this.deptBudgetList.expenseAllocationInfoList=[]
            this.deptBudgetList.costNo='KDF'+this.getdate()+this.MathRand()
         }else if(this.deptBudgetList.purpose=='经营性费用'){
           this.deptBudgetList.expensesPurpose=5
            this.deptBudgetList.costNo='JYF'+this.getdate()+this.MathRand()
         }
-        if(this.deptBudgetList.expensesPurpose==1){
           if(this.deptBudgetList.type=='粮款'){
             this.deptBudgetList.costType=1
-            this.deptBudgetList.expenseAllocationInfoList=[]
           }else if(this.deptBudgetList.type=='非粮款'){
             this.deptBudgetList.costType=3
-            this.deptBudgetList.expenseAllocationInfoList=[]
           }else if(this.deptBudgetList.type=='保证金'){
-            this.deptBudgetList.expensesPurpose=5
-            this.deptBudgetList.expenseAllocationInfoList=[]
+            this.deptBudgetList.costType=5
           }
-        }
         this.deptBudgetList.expensesType=1
         if(!this.deptBudgetList.contractNo&&this.deptBudgetList.expensesPurpose==1){
           this.$message({
@@ -246,6 +240,8 @@
               message: '提交成功!',
               type: 'success',
             })
+            this.deptBudgetList={purpose:"合同费用",type:'粮款'}
+            this.paymentScreenshot=[]
             this.$refs.uploadfiles.clearFiles()
             this.$router.go(-1)
             })

+ 2 - 0
src/views/profitable/receiptaduit.vue

@@ -135,6 +135,7 @@
         })
         .toPromise()
         .then((response) => {
+          this.srcList=[]
           this.deptBudgetList=response
           var arr=response.addressUrl.split(',')
           for (let i = 0; i < arr.length; i++) {
@@ -155,6 +156,7 @@
             type: 'warning'
           })
           .then(() => {
+            this.deptBudgetList.addressUrl=this.paymentScreenshot.toString()
         this.deptBudgetList.flag=0
         editexenseinfo(this.deptBudgetList)
         .toPromise()

+ 3 - 3
src/views/profitable/warehouseprofits.vue

@@ -145,7 +145,7 @@
         .then((response) => {
           for (let i = 0; i < response.chartList.length; i++) {
             this.goodstypelist.push(response.chartList[i].goodsName)
-            this.datalist2.push(response.chartList[i].profit/10000)
+            this.datalist2.push((response.chartList[i].profit/10000).toFixed(4))
           }
           
           for (let i = 0; i < this.datalist2.length; i++) {
@@ -163,9 +163,9 @@
            console.log(response.formList[i].num)
             // response.formList[i]
             if( response.formList[i].type=='收购重量'){
-              this.$set(this.deptBudgetList,'sgweight',response.formList[i].num)
+              this.$set(this.deptBudgetList,'sgweight',response.formList[i].num?response.formList[i].num.toFixed(4):response.formList[i].num)
           }else if(response.formList[i].type=='销售重量'){
-            this.deptBudgetList.xsweight=response.formList[i].num
+            this.deptBudgetList.xsweight=response.formList[i].num?response.formList[i].num.toFixed(4):response.formList[i].num
           }else if(response.formList[i].type=='支付粮款'){
             this.deptBudgetList.zfweight=(response.formList[i].num/10000).toFixed(4)
           }else if(response.formList[i].type=='收入粮款'){

+ 20 - 10
src/views/warehousenew/inventoryCheck.vue

@@ -5,7 +5,7 @@
       <template slot="left">
           <div style='width:50%;margin-right:10px;'>
             <el-date-picker v-model="value2" type="daterange" align="right" unlink-panels range-separator="至"
-          start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions">
+          start-placeholder="开始日期" value-format='yyyy-MM-dd' end-placeholder="结束日期" @change='datechange' :picker-options="pickerOptions">
         </el-date-picker>
   
           </div>
@@ -56,7 +56,7 @@
         </ws-button>
         </div>
       </div>
-      <el-table class="wenzi" :data="item.goodssourcelist" style="width: 100%"    height="calc(100% - 110px)">
+      <el-table class="wenzi" :data="item.goodssourcelist" style="width: 100%"   >
         <el-table-column  width="40">
           <template scope="scope">
             <img v-if="!scope.row.select" style='width:15px;vertical-align: text-top;' @click='radiochange(index,scope.row)' src="../../../public/img/wxz.png" alt="">
@@ -105,7 +105,7 @@
       </el-table>
     </div>
       <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
-        :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal"></el-pagination>
+        :page-size="pageSize" layout="total, prev, pager, next" :total="deptBudgetTotal"></el-pagination>
         <el-dialog
         :title="title"
         :visible.sync="aduitshow"
@@ -267,6 +267,8 @@
         aduitList:[],
         flag:'',
         currectflag:'',
+        startDate:'',
+        endDate:'',
         warehouseName: '',
         deptBudgetTotal: 0,
         compId: localStorage.getItem('ws-pf_compId'),
@@ -287,12 +289,16 @@
     //   this.showType = this.isShow
     // },
     activated() {
-      
-      this.getList()
       this.value2=this.getNowTime()
+      this.getList()
       this.showType = this.isShow
     },
     methods: {
+      datechange(e){
+        this.value2=e
+        this.getList()
+        console.log(e)
+      },
       indexMethod(index) {
         return index * 2;
       },
@@ -306,16 +312,16 @@
         
       },
       getNowTime() {
-      const start = new Date(new Date().getTime() - 3600 * 1000 * 24*30 )
+      const start = new Date(new Date().getTime() - 3600 * 1000 * 24 )
         .toISOString()
         .replace('T', ' ')
-        .split('.')[0] //默认开始时间30天前
+        .split('.')[0] //默认开始时间1天前
       const end = new Date(new Date().getTime())
         .toISOString()
         .replace('T', ' ')
         .split('.')[0]//默认结束时间今天
-      console.log([start, end])
-      return [start, end]
+      // console.log([start.split(' '), end])
+      return [start.split(' ')[0], end.split(' ')[0]]
     },
       selectinOutType(){
         this.getList()
@@ -559,10 +565,14 @@
         return newArr;
       },
       getList() {
+        this.startDate=this.value2[0]
+        this.endDate=this.value2[1]
         getwarehousingorder({
             compId: localStorage.getItem('ws-pf_compId'),
             currentPage: this.currentPage,
-            pageSize: this.pageSize,
+            pageSize: 9999,
+            startDate:this.startDate,
+            endDate:this.endDate,
             searchType: this.searchType,
             searchKeyWord: this.searchKeyWord,
             inOutType:this.inOutType,

+ 3 - 4
src/views/warehousenew/warehousingOrder.vue

@@ -67,7 +67,7 @@
         </ws-button>
         </div>
       </div>
-      <el-table class="wenzi" :data="item.goodssourcelist" style="width: 100%"  @selection-change="handleSelectionChange" height="calc(100% - 110px)">
+      <el-table class="wenzi" :data="item.goodssourcelist" style="width: 100%"  @selection-change="handleSelectionChange" >
           <el-table-column
           :selectable='selectInit'
       type="selection"
@@ -126,7 +126,7 @@
       </el-table>
     </div>
       <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
-        :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal"></el-pagination>
+        :page-size="pageSize" layout="total, prev, pager, next" :total="deptBudgetTotal"></el-pagination>
         <el-dialog
         title="付款"
         :visible.sync="aduitshow"
@@ -450,7 +450,7 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
             }
           }
           
-        }else if(localStorage.getItem('ws-pf_roleName')=='采购副总'){
+        }else if(localStorage.getItem('ws-pf_staffName')=='杜大光'){
           return true
         }else if(localStorage.getItem('ws-pf_roleName')=='财务'){
           return true
@@ -608,7 +608,6 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
             });
             return
           }
-           
         }
         for (let i = 0; i < arr2.length; i++) {
           if(!arr2[i].approveStatus){