浏览代码

Merge remote-tracking branch 'origin/develop' into develop

scorpio 2 年之前
父节点
当前提交
f2607c412d
共有 1 个文件被更改,包括 8 次插入7 次删除
  1. 8 7
      src/views/contract/component/info2.vue

+ 8 - 7
src/views/contract/component/info2.vue

@@ -27,7 +27,7 @@
             </div>
           </div>
           <div v-else>
-            <uploads :max="9" @success="uploadSucc" :auto="true" />
+            <uploads :max="9" @success="uploadSucc" :auto="true"/>
             <div>
               <div v-for="item in fileList" :key="item.id">
                 {{ item.originalFileName }}
@@ -48,9 +48,10 @@
 <script>
 import uploads from '../../../components/uploads.vue'
 import api from '@/api/index.js'
+
 export default {
   name: 'info',
-  components: { uploads },
+  components: {uploads},
   data() {
     return {
       id: '',
@@ -196,7 +197,7 @@ export default {
   },
   methods: {
     onLoad() {
-      this.$api.contract.ledgerList({ contractId: this.id }).then(res => {
+      this.$api.contract.ledgerList({contractId: this.id}).then(res => {
         if (res.code === 200) {
           this.data = res.data
         }
@@ -215,7 +216,7 @@ export default {
       if (api.offices.includes(item.suffix)) {
         const routeData = this.$router.resolve({
           path: '/home/file_detail',
-          query: { id: item.fileId }
+          query: {id: item.fileId}
         })
         window.open(routeData.href, '_blank')
       } else {
@@ -226,9 +227,9 @@ export default {
     },
     handleRowSave(row, done, loading) {
       loading()
-      const data = Object.assign(row, { contractId: this.id })
+      const data = Object.assign(row, {contractId: this.id})
       this.$confirm(
-          '请检查并确认所填写内容是否正确,系统将会根据填写内容,计算合同付款等相关数据',
+          '请检查并确认所填写内容是否正确,系统将会根据填写内容,计算合同付款等相关数据',
           {
             type: 'warning'
           }
@@ -248,7 +249,7 @@ export default {
         type: 'warning'
       }).then(res => {
         if (res === 'confirm') {
-          this.$api.contract.remove({ ids: row.id }).then(res => {
+          this.$api.contract.remove({ids: row.id}).then(res => {
             if (res.code === 200) {
               this.$message.success(res.msg)
               this.onLoad()