baichengfei 4 anni fa
parent
commit
16ba2464b5

+ 58 - 54
src/dashoo.cn/frontend_web/src/pages/oilsupplier/paymentinfo/icbclist.vue

@@ -15,14 +15,17 @@
         <el-col>
           <el-form ref="form" :inline="true">
             <el-form-item label="">
-              <el-input v-model="searchForm.commercialNo" clearable placeholder="组织机构代码" style="width: 300px"></el-input>
+              <el-input v-model="searchForm.commercialNo" clearable placeholder="组织机构代码"
+                        style="width: 300px"></el-input>
             </el-form-item>
             <el-form-item label="">
               <el-input v-model="Remark" clearable placeholder="备注" style="width: 300px"></el-input>
             </el-form-item>
             <el-form-item>
-              <el-button type="plain" plain icon="el-icon-search" @click="handleSearch" :loading="btnLoading">获取账单</el-button>
-              <el-button type="primary" icon="el-icon-money" @click="handleGetMoneyConfirm" :loading="btnLoading">确认收款</el-button>
+              <el-button type="plain" plain icon="el-icon-search" @click="handleSearch" :loading="btnLoading">获取账单
+              </el-button>
+              <el-button type="primary" icon="el-icon-money" @click="handleGetMoneyConfirm" :loading="btnLoading">确认收款
+              </el-button>
               <!--<el-button type="warning" size="mini" icon="el-icon-search" @click="handleCheckBill">对账功能</el-button>-->
             </el-form-item>
           </el-form>
@@ -44,7 +47,8 @@
       </el-row>
     </el-card>
     <el-card class="box-card" style="height: calc(100vh - 115px);">
-      <el-table :data="entityList" size="mini" border height="calc(100vh - 243px)" style="width: 100%" @sort-change="orderby">
+      <el-table :data="entityList" size="mini" border height="calc(100vh - 243px)" style="width: 100%"
+                @sort-change="orderby">
 
         <el-table-column sortable min-width="120" align="center" prop="SupplierName" label="企业名称"></el-table-column>
         <!--<el-table-column sortable min-width="120" align="center" show-overflow-tooltip prop="SupplierTypeName" label="项目类型"></el-table-column>-->
@@ -79,7 +83,7 @@
     },
     name: 'paymentinfo',
 
-    data () {
+    data() {
       return {
         btnLoading: false,
         dialogVisible: false,
@@ -120,7 +124,7 @@
         Remark: ''
       }
     },
-    created () {
+    created() {
       // 查询条件初始值备份
       // Object.assign(this.searchFormReset, this.searchForm)
       // 查询列表
@@ -128,7 +132,7 @@
       // this.getDictOptions()
     },
     methods: {
-      initDatas () {
+      initDatas() {
         // 分页及列表条件
         let params = {
           commercialNo: this.searchForm.commercialNo
@@ -144,7 +148,7 @@
         })
       },
 
-      getDictOptions () {
+      getDictOptions() {
         api.getDictList(this.$axios).then(res => {
           // this.dictOptions.customerList = res.data.items['customerList']
           // this.dictOptions.projectList = res.data.items['projectList']
@@ -154,7 +158,7 @@
         })
       },
 
-      searchCommand (command) {
+      searchCommand(command) {
         if (command === 'search') {
           this.dialogVisible = true
         } else if (command === 'clear') {
@@ -162,7 +166,7 @@
         }
       },
       // 列表排序功能
-      orderby (column) {
+      orderby(column) {
         if (column.order === 'ascending') {
           this.Column.Order = 'asc'
         } else if (column.order === 'descending') {
@@ -171,14 +175,14 @@
         this.Column.Prop = column.prop
         this.initDatas()
       },
-      clearSearch () {
+      clearSearch() {
         Object.assign(this.searchForm, this.searchFormReset)
         // this.searchForm = this.searchFormReset;
         this.CreateOn = ''
         this.initDatas()
       },
 
-      transferStr (val) {
+      transferStr(val) {
         if (val === '1') {
           return '准入交费'
         } else if (val === '2') {
@@ -191,14 +195,14 @@
           return val
         }
       },
-      RndNum (n) {
+      RndNum(n) {
         let rnd = ''
         for (var i = 0; i < n; i++) {
           rnd += Math.floor(Math.random() * 10)
         }
         return rnd
       },
-      handleGetMoneyConfirm () {
+      handleGetMoneyConfirm() {
         let idlist = ''
         let sumMoeny = 0.0
         for (let idx in this.entityList) {
@@ -207,8 +211,8 @@
         }
         if (idlist.length <= 0) {
           this.$message({
-                    duration: 10000,
-                    type: 'warning',
+            duration: 10000,
+            type: 'warning',
             message: '请先获取账单,再确认收款'
           })
           this.btnLoading = false
@@ -234,7 +238,7 @@
           })
         }
       },
-      handleGetMoney () {
+      handleGetMoney() {
         let idlist = ''
         let sumMoeny = 0.0
         for (let idx in this.entityList) {
@@ -255,17 +259,17 @@
           if (res.data.code === 0) {
             this.initDatas()
             this.$message({
-                duration: 10000,
-                type: 'success',
-                message: res.data.message
-              })
+              duration: 10000,
+              type: 'success',
+              message: res.data.message
+            })
             this.btnLoading = false
           } else {
             this.$message({
-                duration: 10000,
-                type: 'warning',
-                message: res.data.message
-              })
+              duration: 10000,
+              type: 'warning',
+              message: res.data.message
+            })
             this.btnLoading = false
           }
         }).catch(err => {
@@ -273,7 +277,7 @@
           this.btnLoading = false
         })
       },
-      handleGetMoneyAgain () {
+      handleGetMoneyAgain() {
         let idlist = ''
         let sumMoeny = 0.0
         for (let idx in this.entityList) {
@@ -293,30 +297,30 @@
           if (res.data.code === 0) {
             this.initDatas()
             this.$message({
-                duration: 10000,
-                type: 'success',
-                message: res.data.message
-              })
+              duration: 10000,
+              type: 'success',
+              message: res.data.message
+            })
           } else {
             this.$message({
-                duration: 10000,
-                type: 'warning',
-                message: res.data.message
-              })
+              duration: 10000,
+              type: 'warning',
+              message: res.data.message
+            })
           }
         }).catch(err => {
           console.error(err)
         })
       },
 
-      handleSearch () {
+      handleSearch() {
         this.btnLoading = true
         this.currentPage = 1
         this.dialogVisible = false
         this.showSupplierInfo()
         this.initDatas()
       },
-      showSupplierInfo () {
+      showSupplierInfo() {
         apiSupplier.getEntityByCommercialNo(this.searchForm.commercialNo, this.$axios).then(res => {
           this.supplierEntity = res.data
           this.btnLoading = false
@@ -325,7 +329,7 @@
           console.error(err)
         })
       },
-      handleCheckBill () {
+      handleCheckBill() {
         let params = {
           startTime: new Date('2019-1-1'),
           endTime: new Date('2019-10-10')
@@ -336,44 +340,44 @@
           console.error(err)
         })
       },
-      handleCurrentChange (value) {
+      handleCurrentChange(value) {
         this.currentPage = value
         this.initDatas()
       },
-      handleSizeChange (value) {
+      handleSizeChange(value) {
         this.size = value
         this.currentPage = 1
         this.initDatas()
       },
-      deleteEntity (row) {
+      deleteEntity(row) {
         api.deleteEntity(row.Id, this.$axios).then(res => {
           if (res.data.code === 0) {
             this.initDatas()
             this.$message({
-                duration: 10000,
-                type: 'success',
-                message: res.data.message
-              })
+              duration: 10000,
+              type: 'success',
+              message: res.data.message
+            })
           } else {
             this.$message({
-                duration: 10000,
-                type: 'warning',
-                message: res.data.message
-              })
+              duration: 10000,
+              type: 'warning',
+              message: res.data.message
+            })
           }
         }).catch(err => {
           console.error(err)
         })
       },
 
-      GetCommand (cmdType, row) {
+      GetCommand(cmdType, row) {
         let cmd = {}
         cmd.Command = cmdType
         cmd.row = row
         return cmd
       },
 
-      jstimehandle (val) {
+      jstimehandle(val) {
         if (val === '') {
           return '----'
         } else if (val === '0001-01-01T08:00:00+08:00') {
@@ -386,7 +390,7 @@
         }
       },
 
-      formatDateTime (date) {
+      formatDateTime(date) {
         var y = date.getFullYear()
         var m = date.getMonth() + 1
         m = m < 10 ? ('0' + m) : m
@@ -397,7 +401,7 @@
         minute = minute < 10 ? ('0' + minute) : minute
         return y + '-' + m + '-' + d + ' ' + h + ':' + minute
       },
-      amountSum () {
+      amountSum() {
         let s = 0
         if (this.entityList && this.entityList != null) {
           for (let i = this.entityList.length - 1; i >= 0; i--) {
@@ -406,12 +410,12 @@
         }
         return s
       },
-      getUSCCode () {
+      getUSCCode() {
         if (this.entityList != null && this.entityList.length > 0) {
           return this.entityList[0].USCCode
         }
       },
-      getSupplierName () {
+      getSupplierName() {
         if (this.entityList != null && this.entityList.length > 0) {
           return this.entityList[0].SupplierName
         }