Browse Source

首页和收费弹窗

caojunjie 4 years ago
parent
commit
3e85421fe7
2 changed files with 47 additions and 13 deletions
  1. 45 12
      src/views/finance/charge/index.vue
  2. 2 1
      src/views/index.vue

+ 45 - 12
src/views/finance/charge/index.vue

@@ -310,7 +310,7 @@
         </el-table-column>
       </el-table>
       <div slot="footer" class="dialog-footer">
-        <el-button v-if="approve = false" @click="addOrUpdateHand">审批</el-button>
+        <el-button v-if="approve === true">审批</el-button>
         <el-button type="info" v-if="notChange" @click="addOrUpdateHandle">查看审批流</el-button>
         <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
         <el-button type="primary" @click="submitForm" :disabled="notChange">保 存</el-button>
@@ -527,7 +527,7 @@ export default {
     return {
       Lander:'',
       Operator:'',
-      approve:true,
+      approve:false,
       addOrUpdateVisible: false,
       contrastId:220,
       tablefilter:false,
@@ -620,6 +620,7 @@ export default {
         fAccbilldate: null,
         fDeptid: null
       },
+      approval:[],
       // 表单参数
       form: {},
       // 表单校验
@@ -661,8 +662,40 @@ export default {
   created() {
     this.getList()
     this.register()
+    this.adoPt()
   },
   methods: {
+    adoPt(){
+      this.approval = this.$route.query.data
+      // this.approval = JSON.parse()
+      console.log(this.approval)
+      if (this.approval){
+        console.log('张三')
+        this.hide = false
+        this.notChange = true
+        this.approve = true
+        this.reset()
+        this.pass = {
+          fAmtdr: '',    //应收合计
+          fAmtcr: '',    //应付合计
+          fMblno: '',    //提单号
+          fName: '',      //货权方
+          fFeesName: '',   //结算单位
+          fCorpid: ''     //结算单位ID
+        }
+        getCharge(32).then(response => {
+          console.log(response)
+          this.Operator = response.data.tFee.createBy
+          this.increase_s = response.data.feeDoList
+          this.fWbuOptions = response.data.feesList
+          this.queryParams = response.data.tFee
+          this.fWbuOptions = response.data.feesList
+          this.fMblnoOptions = response.data.corps
+          this.open = true
+          this.title = '修改收费列表'
+        })
+      }
+    },
     register(){
       queryUserVal().then((response)=>{
         this.Lander = response.user.userName
@@ -918,16 +951,16 @@ export default {
     },
     /** 查询财务数据主列表 */
     getList() {
-      this.loading = true
-      this.getDicts('approval_process').then((response) => {
-        this.options = response.data
-      })
-      listCharge(this.tableFilter).then(response => {
-        console.log(response)
-        this.chargeList = response.rows
-        this.total = response.total
-        this.loading = false
-      })
+        this.loading = true
+        this.getDicts('approval_process').then((response) => {
+          this.options = response.data
+        })
+        listCharge(this.tableFilter).then(response => {
+          console.log(response)
+          this.chargeList = response.rows
+          this.total = response.total
+          this.loading = false
+        })
     },
     // 取消按钮
     cancel() {

+ 2 - 1
src/views/index.vue

@@ -217,7 +217,8 @@ export default {
           break
         }
         case 'DZ':{
-          this.$router.push({ path: '/finance/contrast',query:{data:row}})
+          this.$router.push({ path: '/finance/charge',query:{data:row}})
+          // this.$router.push({ path: '/finance/contrast',query:{data:row}})
           break
         }
         case 'FF':{