Explorar el Código

Merge branch 'master' of http://47.100.3.209:3000/gdc/yiliangyiyun-pc

mxx hace 3 años
padre
commit
e4e29c788b

+ 21 - 1
src/api/V2/statisticalReport/index.js

@@ -23,4 +23,24 @@ export const API_POST_CLOAEAUDIT = '/purchaseClosingReport/api/examine'
 //采购平仓付款
 export const API_POST_CLOSEPAYMONEY = '/purchaseClosingReport/api/payMoney'
 //采购平仓收款
-export const API_POST_CLOSECOLLMONEY = '/purchaseClosingReport/api/collectMoney'
+export const API_POST_CLOSECOLLMONEY = '/purchaseClosingReport/api/collectMoney'
+//采购入库开发票
+export const API_POST_OPENINVOICE = '/purchaseReceiptReport/api/openInvoice'
+//采购入库批量开发票
+export const API_POST_BATCHOPENINVOICE = '/purchaseReceiptReport/api/openInvoiceList'
+
+
+
+//销售出库报表
+export const API_GET_SALELIST = '/salesDeliveryReport/selectSalesDeliveryReport'
+// 销售出库出纳收款
+export const API_POST_CASHIER_PAYMENT = '/salesDeliveryReport/api/collectMoney'
+// 销售出库开发票
+export const API_POST_SALES_INVOICING = '/salesDeliveryReport/api/openInvoice'
+// 销售出库批量开发票
+export const API_POST_SALES_BATCH_INVOICING = '/salesDeliveryReport/api/openInvoiceList'
+// 销售出库最终结算价
+export const API_POST_FINAL_SETTLEMENT_PRICE = '/salesDeliveryReport/api/editSalesDeliveryReport'
+// 销售出库审核
+export const API_POST_ISSUE_APPROVAL = '/salesDeliveryReport/api/examineSalesDeliveryReport'
+

+ 32 - 2
src/model/statisticalReport/index.js

@@ -10,7 +10,16 @@ import {
     API_GET_CLOSE,
     API_POST_CLOAEAUDIT,
     API_POST_CLOSEPAYMONEY,
-    API_POST_CLOSECOLLMONEY
+    API_POST_CLOSECOLLMONEY,
+    API_POST_OPENINVOICE,
+    API_POST_BATCHOPENINVOICE,
+    API_GET_SALELIST,
+    API_POST_CASHIER_PAYMENT,
+    API_POST_SALES_INVOICING,
+    API_POST_SALES_BATCH_INVOICING,
+    API_POST_FINAL_SETTLEMENT_PRICE,
+    API_POST_ISSUE_APPROVAL
+
 } from '@/api/V2/statisticalReport'
 //采购入库报表
 export const getpurchreceipt = appRx.get(API_GET_PURCHRECEIPT, errorCatcher, errorHandle, filter)
@@ -31,4 +40,25 @@ export const closeaudit = appRx.post(API_POST_CLOAEAUDIT, errorCatcher, errorHan
 //采购平仓付款
 export const closepaymoney = appRx.post(API_POST_CLOSEPAYMONEY, errorCatcher, errorHandle, filter)
 //采购平仓收款
-export const closecollmoney = appRx.post(API_POST_CLOSECOLLMONEY, errorCatcher, errorHandle, filter)
+export const closecollmoney = appRx.post(API_POST_CLOSECOLLMONEY, errorCatcher, errorHandle, filter)
+//采购入库开发票
+export const postopeninvoice = appRx.post(API_POST_OPENINVOICE, errorCatcher, errorHandle, filter)
+//采购入库批量开发票
+export const postbatchopeninvoice = appRx.post(API_POST_BATCHOPENINVOICE, errorCatcher, errorHandle, filter)
+
+
+
+//销售出库报表
+export const salelist = appRx.get(API_GET_SALELIST, errorCatcher, errorHandle, filter)
+//销售出库出纳收款
+export const cashierpayment = appRx.post(API_POST_CASHIER_PAYMENT, errorCatcher, errorHandle, filter)
+//销售出库开发票
+export const salesinvoicing = appRx.post(API_POST_SALES_INVOICING, errorCatcher, errorHandle, filter)
+//销售出库批量开发票
+export const salesbatchinvoicing = appRx.post(API_POST_SALES_BATCH_INVOICING, errorCatcher, errorHandle, filter)
+//销售出库最终结算价
+export const finalsettlementprice = appRx.post(API_POST_FINAL_SETTLEMENT_PRICE, errorCatcher, errorHandle, filter)
+//销售出库审核
+export const issueapproval = appRx.post(API_POST_ISSUE_APPROVAL, errorCatcher, errorHandle, filter)
+
+

+ 28 - 55
src/views/statisticalReport/purchaseClosingCashierList.vue

@@ -44,6 +44,7 @@
           >
             <el-form :model="form">
               <el-form-item label="未付金额(元)" :label-width="formLabelWidth">
+                 <el-input v-model="allmoney" autocomplete="off" class="deal"></el-input>
               </el-form-item>
               <el-form-item label="本次付款金额(元)" :label-width="formLabelWidth">
                 <el-input
@@ -71,12 +72,15 @@
                 <el-upload
                   action="https://www.zthymaoyi.com/upload/admin"
                   list-type="picture-card"
-                  :on-preview="handlePictureCardPreview"
+                  :on-success="handlePictureCardPreview"
                   :on-remove="handleRemove"
                   class="photo2"
                 >
                   <i class="el-icon-plus"></i>
                 </el-upload>
+                <el-dialog :visible.sync="dialogVisible">
+                  <img width="100%" :src="paymentScreenshot" alt="">
+                </el-dialog>
               </el-form-item>
             </el-form>
             <div slot="footer" class="dialog-footer">
@@ -93,7 +97,7 @@
           >
             <el-form :model="form">
               <el-form-item label="未收金额(元)" :label-width="formLabelWidth">
-                <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
+                <el-input v-model="allmoney1" autocomplete="off" class="deal"></el-input>
               </el-form-item>
               <el-form-item label="本次收款金额(元)" :label-width="formLabelWidth">
                 <el-input
@@ -121,12 +125,15 @@
                 <el-upload
                   action="https://www.zthymaoyi.com/upload/admin"
                   list-type="picture-card"
-                  :on-preview="handlePictureCardPreview"
+                  :on-success="handlePictureCardPreview1"
                   :on-remove="handleRemove"
                   class="photo2"
                 >
                   <i class="el-icon-plus"></i>
                 </el-upload>
+                <el-dialog :visible.sync="dialogVisible">
+                  <img width="100%" :src="collectionScreenshot" alt="">
+                </el-dialog>
               </el-form-item>
             </el-form>
             <div slot="footer" class="dialog-footer">
@@ -205,18 +212,16 @@ export default {
 
   data() {
     return {
-      checked: true,
       dialogFormVisible1: false,
       dialogFormVisible2: false,
       dialogVisible: false,
-
+      showViewer: false,
       form: {
         transactionPrice: '',
         transactionsNumber: '',
         submissionDate: ''
       },
       formLabelWidth: '120px',
-
       barWidth: 0,
       barHeight: 0,
       retioX: 1,
@@ -224,6 +229,8 @@ export default {
       money:0,
       collectmoney:0,
       collectionDate:'',
+      paymentScreenshot: '',
+      collectionScreenshot:'',
       paymentDate:'',
       isTaped: false,
       isHover: false,
@@ -241,6 +248,8 @@ export default {
       // 年
       year: '',
       pickerOptions: {},
+      allmoney:0,
+      allmoney1:0,
       value2: '',
       deptBudgetTotal: 0,
       currentPage: 1,
@@ -261,13 +270,11 @@ export default {
       contractNoList:[],
       modification:[],
       contractNo: '',
-      inOutTaskNo: '',
       compId: sessionStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       warehouseList: [],
       deptBudgetList: {},
       pcFlag: 1,
-      historyList: [],
       pickerBeginDateBefore: {
         disabledDate: time => {
           return time.getTime() > Date.now()
@@ -282,11 +289,6 @@ export default {
     this.showType = this.isShow
   },
   methods: {
-    updated() {
-      this.$nextTick(() => {
-        this.$refs.warehouseList.doLayout()
-      })
-    },
     contractchange(e){ 
       this.contractNo=e
       this.getList()
@@ -301,6 +303,9 @@ export default {
       }
       else{
         this.dialogFormVisible1=true
+        for(var i=0;i<this.modification.length;i++){
+          this.allmoney+=this.modification[i].amountNotPayable
+        }
       }
     },
     handlecollect(){
@@ -309,6 +314,9 @@ export default {
       }
       else{
         this.dialogFormVisible2=true
+        for(var i=0;i<this.modification.length;i++){
+          this.allmoney1+=this.modification[i].collectionNotPayable
+        }
       }
     },
     //统计审核
@@ -359,7 +367,7 @@ export default {
       columns.forEach((column, index) => {
         if (index === 0) {
           sums[index] = '合计'
-        } else if (index === 5 || index === 7 || index === 8 || index === 9) {
+        } else if (index === 4 || index === 10 || index === 8 || index === 9|| index === 12 || index === 13 || index === 14 ) {
           const values = data.map(item => Number(item[column.property]))
           if (!values.every(value => isNaN(value))) {
             sums[index] = values.reduce((prev, curr) => {
@@ -386,7 +394,7 @@ export default {
         confirmButtonText: '确定',
         type: 'warning'
         }).then(() => {
-          closepaymoney({purchaseClosingReportList:this.modification,money:this.money,paymentDate:this.paymentDate}).toPromise()
+          closepaymoney({purchaseClosingReportList:this.modification,money:this.money,paymentDate:this.paymentDate,paymentScreenshot:this.paymentScreenshot}).toPromise()
           .then(response => {
             this.$message.success('付款成功')
             this.dialogFormVisible1=false
@@ -401,7 +409,7 @@ export default {
         confirmButtonText: '确定',
         type: 'warning'
         }).then(() => {
-          closecollmoney({purchaseClosingReportList:this.modification,money:this.collectmoney,collectionDate:this.collectionDate}).toPromise()
+          closecollmoney({purchaseClosingReportList:this.modification,money:this.collectmoney,collectionDate:this.collectionDate,collectionScreenshot:this.collectionScreenshot}).toPromise()
           .then(response => {
             this.$message.success('收款成功')
             this.dialogFormVisible2=false
@@ -446,8 +454,10 @@ export default {
       console.log(file)
     },
     handlePictureCardPreview(file) {
-      this.dialogImageUrl = file.url
-      this.dialogVisible = true
+      this.paymentScreenshot = file.url
+    },
+     handlePictureCardPreview1(file) {
+      this.collectionScreenshot = file.url
     },
     handleDownload(file) {
       console.log(file)
@@ -545,9 +555,6 @@ export default {
       }
       return fmt
     },
-    handleClose() {
-      this.accessoryTFs = false
-    },
     handleSizeChange(val) {
       console.log(`每页 ${val} 条`)
       this.pageSize = val
@@ -589,44 +596,10 @@ export default {
           return false
         })
     },
-    selecttaskType(e) {
-      for (var i = 0; i < this.taskTypeList.length; i++) {
-        if (this.taskTypeList[i].value == e) {
-          this.searchType = this.taskTypeList[i].type
-        }
-      }
-    },
-    // fujian(row) {
-    //   if (
-    //     row.receiveAttachmentPath === null ||
-    //     row.receiveAttachmentPath === ''
-    //   ) {
-    //     EventBus.$emit(
-    //       'warning',
-    //       this.$t('system.noticeCircular.NoInformation')
-    //     )
-    //   } else {
-    //     this.accessoryTFs = true
-    //   }
-    //   this.appendixIdss = row.receiveAttachmentPath
-    // },
-    handleExamine(row) {
-      this.$router.push({
-        name: 'salesContractExamine',
-        query: { id: row.id }
-      })
-    },
     // 关闭 dialog时 处理文件url 初始化upload组件
     handleCloe() {
       this.dialogViewSpareMoney = false
     },
-    history(row) {
-      billoperatehis({ id: row.id })
-        .toPromise()
-        .then(response => {
-          this.historyList = response
-        })
-    },
     //查找
     find() {
       this.currentPage = 1

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 771 - 361
src/views/statisticalReport/purchaseReceiptStatisticsList.vue


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 520 - 311
src/views/statisticalReport/salesDeliveryReportList.vue


+ 0 - 2
src/views/tranManagement/tranManagementDriver.vue

@@ -379,7 +379,6 @@ export default {
       deptBudgetTotal: 0,
       currentPage: 1,
       pageSize: 10,
-      searchType: 1,
       searchKeyWord: '',
       contractType: 2,
       startDate: null,
@@ -552,7 +551,6 @@ export default {
         compId: sessionStorage.getItem('ws-pf_compId'),
         currentPage: this.currentPage,
         pageSize: this.pageSize,
-        searchType: this.searchType,
         pcFlag:this.pcFlag,
         residentCityProvincial: this.residentCityProvincial,
         residentCityMunicipal: this.residentCityMunicipal,

+ 3 - 3
src/views/tranManagement/tranManagementTransporFeedback.vue

@@ -229,10 +229,10 @@
       <div style="text-align: right; color: #8890b1; font-size: 16px">
         合计(吨):{{ total }}/{{ deptBudgetList.weight }}
       </div>
-      <el-button class="add bg-bottom" type="primary" size="small" @click="add">
+      <!-- <el-button class="add bg-bottom" type="primary" size="small" @click="add">
         <img width="22" height="22" src="../../../public/img/add.png" alt="" />
         <div class="spans">添加临时用车</div></el-button
-      >
+      > -->
     </ws-form>
     <!-- 提交 -->
     <div style="text-align: right; padding: 10px" class="center">
@@ -322,7 +322,7 @@ export default {
           driverPhone: '',
           carNo: '',
           loadNetWeight: '',
-          loadPoundImg:""
+          loadPoundImg:''
         },
         // {loadPoundImg:{}},
           

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio