소스 검색

审计收费 报备类型 需求提交 vue

lijt 1 년 전
부모
커밋
f57fa937c0

+ 14 - 0
src/api/cw/workClientInfo/WorkClientService.js

@@ -8,6 +8,20 @@ export default class WorkClientService {
       params: params
     })
   }
+  list1 (params) {
+    return request({
+      url: '/cw_work_client/info/list1',
+      method: 'get',
+      params: params
+    })
+  }
+  list2 (params) {
+    return request({
+      url: '/cw_work_client/info/list2',
+      method: 'get',
+      params: params
+    })
+  }
   listTree (params) {
     return request({
       url: '/cw_work_client/info/list_tree',

+ 1 - 1
src/views/modules/cw/invoice/InvoiceFormTask.vue

@@ -25,7 +25,7 @@
           :edit-rules="tableRules"
           :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true, icon: '-'}"
         >
-          <vxe-table-column field="programName" align="center" title="项目名称1111111" :edit-render="{}">
+          <vxe-table-column field="programName" align="center" title="项目名称" :edit-render="{}">
             <template v-slot:edit="scope">
               <el-input @focus="openProgramPageForm(scope.$rowIndex)" placeholder="请填写项目名称" :readonly="true" v-model="scope.row.programName"/>
             </template>

+ 47 - 47
src/views/modules/cw/invoice/InvoiceFormTaskInvalid.vue

@@ -24,7 +24,7 @@
           :edit-rules="tableRules"
           :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true, icon: '-'}"
         >
-          <vxe-table-column field="programName" align="center" title="项目名称555" :edit-render="{}">
+          <vxe-table-column field="programName" align="center" title="项目名称" :edit-render="{}">
             <template v-slot:edit="scope">
               <el-input @focus="openProgramPageForm(scope.$rowIndex)" placeholder="请填写项目名称" :readonly="true" v-model="scope.row.programName"/>
             </template>
@@ -1258,56 +1258,56 @@
           }
         }
       },
-    footerMethod2 ({ columns, data }) {
-      const footerData = [
-        columns.map((column, columnIndex) => {
-          if (columnIndex === 0) {
-            return '发票金额汇总(元)'
-          }
-          if (['account'].includes(column.property)) {
-            // eslint-disable-next-line no-undef
-            this.inputForm.actualPrice = XEUtils.sum(data, column.property)
-            return XEUtils.sum(data, column.property)
-          }
-          if (['actualPrice'].includes(column.property)) {
-            // eslint-disable-next-line no-undef
-            this.inputForm.actualPrice = XEUtils.sum(data, column.property)
-            return XEUtils.sum(data, column.property)
-          }
-          return null
-        })
-      ]
-      console.log('actualPrice', this.inputForm.actualPrice)
-      return footerData
-    },
-    twoDecimalPlaces (num) {
-      let str = num.toString()
-      var len1 = str.substr(0, 1)
-      var len2 = str.substr(1, 1)
-      // eslint-disable-next-line eqeqeq
-      if (str.length > 1 && len1 == 0 && len2 != '.') {
-        str = str.substr(1, 1)
-      }
-      // eslint-disable-next-line eqeqeq
-      if (len1 == '.') {
-        str = ''
-      }
-      // eslint-disable-next-line eqeqeq
-      if (str.indexOf('.') != -1) {
-        var str_ = str.substr(str.indexOf('.') + 1)
+      footerMethod2 ({ columns, data }) {
+        const footerData = [
+          columns.map((column, columnIndex) => {
+            if (columnIndex === 0) {
+              return '发票金额汇总(元)'
+            }
+            if (['account'].includes(column.property)) {
+              // eslint-disable-next-line no-undef
+              this.inputForm.actualPrice = XEUtils.sum(data, column.property)
+              return XEUtils.sum(data, column.property)
+            }
+            if (['actualPrice'].includes(column.property)) {
+              // eslint-disable-next-line no-undef
+              this.inputForm.actualPrice = XEUtils.sum(data, column.property)
+              return XEUtils.sum(data, column.property)
+            }
+            return null
+          })
+        ]
+        console.log('actualPrice', this.inputForm.actualPrice)
+        return footerData
+      },
+      twoDecimalPlaces (num) {
+        let str = num.toString()
+        var len1 = str.substr(0, 1)
+        var len2 = str.substr(1, 1)
         // eslint-disable-next-line eqeqeq
-        if (str_.indexOf('.') != -1) {
-          str = str.substr(0, str.indexOf('.') + str_.indexOf('.') + 1)
+        if (str.length > 1 && len1 == 0 && len2 != '.') {
+          str = str.substr(1, 1)
+        }
+      // eslint-disable-next-line eqeqeq
+        if (len1 == '.') {
+          str = ''
         }
-        if (str_.length > 2) {
-          this.$message.warning(`金额小数点后只能输入两位,请正确输入!`)
-          return (str = '')
+        // eslint-disable-next-line eqeqeq
+        if (str.indexOf('.') != -1) {
+          var str_ = str.substr(str.indexOf('.') + 1)
+          // eslint-disable-next-line eqeqeq
+          if (str_.indexOf('.') != -1) {
+            str = str.substr(0, str.indexOf('.') + str_.indexOf('.') + 1)
+          }
+          if (str_.length > 2) {
+            this.$message.warning(`金额小数点后只能输入两位,请正确输入!`)
+            return (str = '')
+          }
         }
+        // eslint-disable-next-line no-useless-escape
+        str = str.replace(/[^\d^\.]+/g, '') // 保留数字和小数点
+        return str
       }
-      // eslint-disable-next-line no-useless-escape
-      str = str.replace(/[^\d^\.]+/g, '') // 保留数字和小数点
-      return str
-    }
     }
   }
 </script>

+ 241 - 0
src/views/modules/cw/projectReportArchive/AuditingFeeFrom.vue

@@ -0,0 +1,241 @@
+<template>
+  <div>
+    <el-dialog
+      title="审计收费选择"
+      :close-on-click-modal="false"
+      v-dialogDrag
+      width="1100px"
+      height="500px"
+      @close="close"
+      append-to-body
+      @keyup.enter.native=""
+      :visible.sync="visible">
+      <div style="height: calc(100% - 80px);">
+        <el-form size="small" :inline="true" class="query-form" ref="searchForm" :model="searchForm" @submit.native.prevent>
+          <!-- 搜索框-->
+          <el-form-item label="发票号" prop="number">
+            <el-input size="small" v-model="searchForm.number" placeholder="请输入发票号" clearable></el-input>
+          </el-form-item>
+          <el-form-item label="开票申请编号" prop="no">
+            <el-input size="small" v-model="searchForm.no" placeholder="请输入开票申请编号" clearable></el-input>
+          </el-form-item>
+          <el-form-item label="报告号" prop="reportNo">
+            <el-input size="small" v-model="searchForm.reportNo" placeholder="请输入报告号" clearable></el-input>
+          </el-form-item>
+
+          <el-form-item>
+            <el-button type="primary" @click="list1()" size="small" icon="el-icon-search">查询</el-button>
+            <el-button @click="resetSearch()" size="small" icon="el-icon-refresh-right">重置</el-button>
+          </el-form-item>
+        </el-form>
+
+        <vxe-table
+          border="inner"
+          auto-resize
+          resizable
+          height="400px"
+          :loading="loading"
+          size="small"
+          ref="clientTable"
+          show-header-overflow
+          show-overflow
+          highlight-hover-row
+          :menu-config="{}"
+          :print-config="{}"
+          @sort-change=""
+          @checkbox-change="selectionChangeHandle"
+          :sort-config="{remote:true}"
+          :data="dataList"
+          :row-config="{isCurrent: true}"
+          :radio-config="{trigger: 'row'}"
+        >
+          <vxe-column type="seq" width="60" title="序号"></vxe-column>
+          <vxe-column type="checkbox" width="40px"></vxe-column>
+          <vxe-column min-width="230" align="center" title="项目名称" field="projectName"></vxe-column>
+          <vxe-column min-width="160" align="center" title="报告号" field="reportNo"></vxe-column>
+          <vxe-column min-width="160" align="center" title="开票申请编号" field="no">
+<!--            <template slot-scope="scope">-->
+<!--              {{$dictUtils.getDictLabel('cw_work_client_type', scope.row.type, '-')}}-->
+<!--            </template>-->
+          </vxe-column>
+          <vxe-column min-width="160" align="center" title="发票号" field="number"></vxe-column>
+          <vxe-column min-width="160" align="center" title="开票金额(元)" field="account">
+<!--            <template slot-scope="scope">-->
+<!--              {{$dictUtils.getDictLabel('cw_work_client_industry', scope.row.industry, '-')}}-->
+<!--            </template>-->
+          </vxe-column>
+          <vxe-column min-width="160" align="center" title="开票申请人" field="billingPeople"></vxe-column>
+          <vxe-column min-width="160" align="center" title="开票时间" field="billingDate"></vxe-column>
+
+        </vxe-table>
+        <vxe-pager
+          background
+          size="small"
+          :current-page="tablePage.currentPage"
+          :page-size="tablePage.pageSize"
+          :total="tablePage.total"
+          :page-sizes="[10, 20, 100, 1000, {label: '全量数据', value: 1000000}]"
+          :layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
+          @page-change="currentChangeHandle">
+        </vxe-pager>
+      </div>
+      <span slot="footer" class="dialog-footer">
+      <el-button size="small" @click="close()" icon="el-icon-circle-close">关闭</el-button>
+      <el-button size="small" type="primary" v-if="method != 'view'" @click="getClient()" icon="el-icon-circle-check" v-noMoreClick>({{numberTest}})确定</el-button>
+    </span>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import WorkClientService from '@/api/cw/workClientInfo/WorkClientService'
+export default {
+  data () {
+    return {
+      dataListAllSelections: [],
+      numberTest: 0,
+      title: '',
+      method: '',
+      visible: false,
+      loading: false,
+      tablePage: {
+        total: 0,
+        currentPage: 1,
+        pageSize: 10,
+        orders: []
+      },
+      dataList: [],
+      searchForm: {
+        number: '',
+        no: '',
+        reportNo: '',
+        affiliation: '',
+        cwWorkClientTypeDTO: {
+          ownershipType: ''
+        },
+        industry: '',
+        createDates: [],
+        status: '',
+        reportId: '',
+        selected: false
+      },
+      reportId: ''  // 报告归档id
+    }
+  },
+  workClientService: null,
+  created () {
+    this.workClientService = new WorkClientService()
+  },
+  components: {
+  },
+  methods: {
+    init (id) {
+      this.reportId = id
+      this.visible = true
+      this.list1()
+    },
+    // 表单提交
+    getClient () {
+      let row = this.$refs.clientTable.getCheckboxRecords()
+      if (this.commonJS.isEmpty(row)) {
+        this.$message.error('请选择一条数据')
+        return
+      }
+      row.numberTest = this.numberTest
+      row.reportNo = this.reportNo
+      this.$emit('getClient2', row)
+      this.close()
+      console.log('row', row)
+    },
+    selectionChangeHandle (event) {
+      console.log('event', event)
+      if (event.checked) { // 选中触发
+        let delIndex = -1
+        console.log('event.row.programId', event.row.programId)
+        for (let i = 0; i < this.dataListAllSelections.length; i++) {
+          console.log('event.row.id', event.row.id)
+          console.log('this.dataListAllSelections[i].programId', this.dataListAllSelections[i].programId)
+          if (this.dataListAllSelections[i].account === event.row.account) {
+            delIndex = i
+          }
+        }
+        if (this.commonJS.isNotEmpty(delIndex) && delIndex === -1) {
+          this.numberTest = 0
+          this.dataListAllSelections.push(event.row)
+          let rows = this.dataListAllSelections
+          rows.forEach((item, index) => {
+            console.log('item', item)
+            this.numberTest += parseFloat(item.account)
+          })
+        }
+      } else { // 取消选中触发
+        let delIndex = -1
+        for (let i = 0; i < this.dataListAllSelections.length; i++) {
+          if (this.dataListAllSelections[i].account === event.row.account) {
+            delIndex = i
+          }
+        }
+        if (this.commonJS.isNotEmpty(delIndex) && delIndex !== -1) {
+          this.numberTest = 0
+          this.dataListAllSelections.splice(delIndex, 1)
+          let rows = this.dataListAllSelections
+          rows.forEach((item, index) => {
+            console.log('item', item)
+            this.numberTest += parseFloat(item.account)
+          })
+        }
+      }
+      // if (this.commonJS.isNotEmpty(this.dataListAllSelections)) {
+      //   let rows = this.dataListAllSelections
+      //   rows.forEach((item, index) => {
+      //     console.log('item', item)
+      //     this.numberTest += parseFloat(item.account)
+      //   })
+      // }
+    },
+    list1 () {
+      this.loading = true
+      if (this.commonJS.isNotEmpty(this.reportId)) {
+        this.searchForm.reportId = this.reportId
+        this.searchForm.isTrue = '1'
+        this.workClientService.list1({
+          'current': this.tablePage.currentPage,
+          'size': this.tablePage.pageSize,
+          'orders': this.tablePage.orders,
+          ...this.searchForm
+        }).then(({data}) => {
+          this.dataList = data.records
+          this.tablePage.total = data.total
+          this.loading = false
+        })
+      } else {
+        this.dataList = []
+        this.tablePage.total = 0
+        this.loading = false
+      }
+    },
+    // 当前页
+    currentChangeHandle ({currentPage, pageSize}) {
+      this.tablePage.currentPage = currentPage
+      this.tablePage.pageSize = pageSize
+      this.list1()
+    },
+    resetSearch () {
+      this.$refs.searchForm.resetFields()
+      this.list1()
+    },
+    close () {
+      this.dataListAllSelections = []
+      this.numberTest = 0
+      this.$refs.searchForm.resetFields()
+      this.visible = false
+    }
+  }
+}
+</script>
+<style scoped>
+/deep/ .el-dialog__body {
+  padding-top: 0px;
+  padding-bottom: 15px;
+}
+</style>

+ 231 - 0
src/views/modules/cw/projectReportArchive/AuditingFeeFrom2.vue

@@ -0,0 +1,231 @@
+<template>
+  <div>
+    <el-dialog
+      title="关联报告选择"
+      :close-on-click-modal="false"
+      v-dialogDrag
+      width="1100px"
+      height="500px"
+      @close="close"
+      append-to-body
+      @keyup.enter.native=""
+      :visible.sync="visible">
+      <div style="height: calc(100% - 80px);">
+        <el-form size="small" :inline="true" class="query-form" ref="searchForm" :model="searchForm" @submit.native.prevent>
+<!--          &lt;!&ndash; 搜索框&ndash;&gt;-->
+<!--          <el-form-item label="发票号" prop="number">-->
+<!--            <el-input size="small" v-model="searchForm.number" placeholder="请输入发票号" clearable></el-input>-->
+<!--          </el-form-item>-->
+<!--          <el-form-item label="开票申请编号" prop="no">-->
+<!--            <el-input size="small" v-model="searchForm.no" placeholder="请输入开票申请编号" clearable></el-input>-->
+<!--          </el-form-item>-->
+<!--          <el-form-item label="报告号" prop="reportNo">-->
+<!--            <el-input size="small" v-model="searchForm.reportNo" placeholder="请输入报告号" clearable></el-input>-->
+<!--          </el-form-item>-->
+
+<!--          <el-form-item>-->
+<!--            <el-button type="primary" @click="list2()" size="small" icon="el-icon-search">查询</el-button>-->
+<!--            <el-button @click="resetSearch()" size="small" icon="el-icon-refresh-right">重置</el-button>-->
+<!--          </el-form-item>-->
+        </el-form>
+
+        <vxe-table
+          border="inner"
+          auto-resize
+          resizable
+          height="400px"
+          :loading="loading"
+          size="small"
+          ref="clientTable"
+          show-header-overflow
+          show-overflow
+          highlight-hover-row
+          :menu-config="{}"
+          :print-config="{}"
+          @sort-change=""
+          @checkbox-change="selectionChangeHandle"
+          :sort-config="{remote:true}"
+          :data="dataList"
+          :row-config="{isCurrent: true}"
+          :radio-config="{trigger: 'row'}"
+        >
+          <vxe-column type="seq" width="60" title="序号"></vxe-column>
+          <vxe-column type="radio" width="40px"></vxe-column>
+          <vxe-column min-width="230" align="center" title="项目名称" field="projectName"></vxe-column>
+          <vxe-column min-width="160" align="center" title="报告文号" field="reportNo"></vxe-column>
+          <vxe-column min-width="160" align="center" title="审计收费(元)" field="auditFees">
+          </vxe-column>
+          <vxe-column min-width="160" align="center" title="创建人" field="name"></vxe-column>
+          <vxe-column min-width="160" align="center" title="创建时间" field="createDate">
+          </vxe-column>
+
+        </vxe-table>
+        <vxe-pager
+          background
+          size="small"
+          :current-page="tablePage.currentPage"
+          :page-size="tablePage.pageSize"
+          :total="tablePage.total"
+          :page-sizes="[10, 20, 100, 1000, {label: '全量数据', value: 1000000}]"
+          :layouts="['PrevPage', 'JumpNumber', 'NextPage', 'FullJump', 'Sizes', 'Total']"
+          @page-change="currentChangeHandle">
+        </vxe-pager>
+      </div>
+      <span slot="footer" class="dialog-footer">
+      <el-button size="small" @click="close()" icon="el-icon-circle-close">关闭</el-button>
+      <el-button size="small" type="primary" v-if="method != 'view'" @click="getClient()" icon="el-icon-circle-check" v-noMoreClick>确定</el-button>
+    </span>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import WorkClientService from '@/api/cw/workClientInfo/WorkClientService'
+export default {
+  data () {
+    return {
+      dataListAllSelections: [],
+      numberTest: 0,
+      title: '',
+      method: '',
+      visible: false,
+      loading: false,
+      tablePage: {
+        total: 0,
+        currentPage: 1,
+        pageSize: 10,
+        orders: []
+      },
+      dataList: [],
+      searchForm: {
+        number: '',
+        no: '',
+        reportNo: '',
+        affiliation: '',
+        cwWorkClientTypeDTO: {
+          ownershipType: ''
+        },
+        industry: '',
+        createDates: [],
+        status: '',
+        reportId: '',
+        selected: false
+      },
+      reportId: ''  // 报告归档id
+    }
+  },
+  workClientService: null,
+  created () {
+    this.workClientService = new WorkClientService()
+  },
+  components: {
+  },
+  methods: {
+    init (id) {
+      this.reportId = id
+      this.visible = true
+      this.list2()
+    },
+    // 表单提交
+    getClient () {
+      let row = this.$refs.clientTable.getRadioRecord()
+      if (this.commonJS.isEmpty(row)) {
+        this.$message.error('请选择一条数据')
+        return
+      }
+      this.$emit('getClient3', row)
+      this.close()
+      console.log('row111', row)
+    },
+    selectionChangeHandle (event) {
+      console.log('event', event)
+      if (event.checked) { // 选中触发
+        let delIndex = -1
+        console.log('event.row.programId', event.row.programId)
+        for (let i = 0; i < this.dataListAllSelections.length; i++) {
+          console.log('event.row.id', event.row.id)
+          console.log('this.dataListAllSelections[i].programId', this.dataListAllSelections[i].programId)
+          if (this.dataListAllSelections[i].account === event.row.account) {
+            delIndex = i
+          }
+        }
+        if (this.commonJS.isNotEmpty(delIndex) && delIndex === -1) {
+          this.numberTest = 0
+          this.dataListAllSelections.push(event.row)
+          let rows = this.dataListAllSelections
+          rows.forEach((item, index) => {
+            console.log('item', item)
+            this.numberTest += parseFloat(item.account)
+          })
+        }
+      } else { // 取消选中触发
+        let delIndex = -1
+        for (let i = 0; i < this.dataListAllSelections.length; i++) {
+          if (this.dataListAllSelections[i].account === event.row.account) {
+            delIndex = i
+          }
+        }
+        if (this.commonJS.isNotEmpty(delIndex) && delIndex !== -1) {
+          this.numberTest = 0
+          this.dataListAllSelections.splice(delIndex, 1)
+          let rows = this.dataListAllSelections
+          rows.forEach((item, index) => {
+            console.log('item', item)
+            this.numberTest += parseFloat(item.account)
+          })
+        }
+      }
+      // if (this.commonJS.isNotEmpty(this.dataListAllSelections)) {
+      //   let rows = this.dataListAllSelections
+      //   rows.forEach((item, index) => {
+      //     console.log('item', item)
+      //     this.numberTest += parseFloat(item.account)
+      //   })
+      // }
+    },
+    list2 () {
+      this.loading = true
+      if (this.commonJS.isNotEmpty(this.reportId)) {
+        this.searchForm.reportId = this.reportId
+        this.searchForm.isTrue = '1'
+        this.workClientService.list2({
+          'current': this.tablePage.currentPage,
+          'size': this.tablePage.pageSize,
+          'orders': this.tablePage.orders,
+          ...this.searchForm
+        }).then(({data}) => {
+          this.dataList = data.records
+          this.tablePage.total = data.total
+          this.loading = false
+        })
+      } else {
+        this.dataList = []
+        this.tablePage.total = 0
+        this.loading = false
+      }
+    },
+    // 当前页
+    currentChangeHandle ({currentPage, pageSize}) {
+      this.tablePage.currentPage = currentPage
+      this.tablePage.pageSize = pageSize
+      this.list2()
+    },
+    resetSearch () {
+      this.$refs.searchForm.resetFields()
+      this.list2()
+    },
+    close () {
+      this.dataListAllSelections = []
+      this.numberTest = 0
+      this.$refs.searchForm.resetFields()
+      this.visible = false
+    }
+  }
+}
+</script>
+<style scoped>
+/deep/ .el-dialog__body {
+  padding-top: 0px;
+  padding-bottom: 15px;
+}
+</style>

+ 65 - 3
src/views/modules/cw/projectReportArchive/ProjectReportArchiveTaskForm.vue

@@ -110,10 +110,28 @@
                ]">
                     <el-input maxlength="15" v-model="inputForm.auditMoney" placeholder="请输入审计收费(元)"
                               @keyup.native="inputForm.auditMoney = twoDecimalPlaces(inputForm.auditMoney)"
-                    ></el-input>
+                              :disabled="commonJS.isNotEmpty(fee)"
+                    >
+                      <el-button slot="append" :disabled="status === 'audit' || status === 'taskFormDetail'" @click="openChooseClient1" icon="el-icon-search"></el-button>
+<!--                      <el-button slot="append" :disabled="status === 'audit' || status === 'taskFormDetail'" @click="openChooseClient" icon="el-icon-search"></el-button>-->
+                    </el-input>
+                  </el-form-item>
+                </el-col>
+
+                <el-col :span="12" v-if="inputForm.auditMoney === '0' || inputForm.auditMoney === 0">
+                  <el-form-item label="关联报告" prop="reportNo1"
+                                :rules="[
+                  {required: false, message:'请输入关联报告', trigger:'blur'}
+               ]">
+                    <el-input maxlength="15" v-model="inputForm.reportNo1" placeholder="请输入关联报告"
+                              :disabled="true"
+                    >
+                      <el-button slot="append" :disabled="status === 'audit' || status === 'taskFormDetail'" @click="openChooseClient2" icon="el-icon-search"></el-button>
+                    </el-input>
                   </el-form-item>
                 </el-col>
 
+
                 <el-col :span="12">
                   <el-form-item label="档案年度" prop="year"
                                 :rules="[
@@ -256,6 +274,8 @@
     </el-row>
     <ProjectRecordsChooseCom ref="projectRecordsChooseCom" @getProject="getProject"></ProjectRecordsChooseCom>
     <WorkClientChooseByProjectCom ref="workClientChooseByProjectCom" @getClient="getClient"></WorkClientChooseByProjectCom>
+    <AuditingFeeFrom ref="AuditingFeeFrom" @getClient2="getClient2"></AuditingFeeFrom>
+    <AuditingFeeFrom2 ref="AuditingFeeFrom2" @getClient3="getClient3"></AuditingFeeFrom2>
     <ReportChooseByProjectCom ref="reportChooseByProjectCom" @getReport="getReport"></ReportChooseByProjectCom>
   </div>
 </template>
@@ -269,6 +289,8 @@
   import ProjectReportArchiveService from '@/api/cw/projectRecords/ProjectReportArchiveService'
   import ProjectRecordsChooseCom from '@/views/modules/cw/projectRecords/ProjectRecordsChooseCom'
   import WorkClientChooseByProjectCom from '@/views/modules/cw/projectReportArchive/WorkClientChooseByProjectCom'
+  import AuditingFeeFrom from './AuditingFeeFrom'
+  import AuditingFeeFrom2 from './AuditingFeeFrom2'
   import ReportChooseByProjectCom from '@/views/modules/cw/projectReportArchive/ReportChooseByProjectCom'
   import OfficeService from '@/api/sys/OfficeService'
   import ProcessService from '@/api/flowable/ProcessService'
@@ -289,10 +311,13 @@
     },
     data () {
       return {
+        fee: '',
         title: '',
         method: '',
         loading: false,
         inputForm: {
+          reportNo1: '',
+          reportAss: '',
           id: '',
           createDate: '',
           createBy: {
@@ -306,6 +331,7 @@
           reportNum: '',
           papersNum: '',
           auditMoney: '',
+          reportNo: '',
           year: '',
           number: '',
           isNumber: '',
@@ -334,7 +360,6 @@
           auditedUnitsName: '',
           fileNumber: '',
           reportDate: '',
-          reportNo: '',
           signatureAnnotator1: '',
           signatureAnnotator1Name: '',
           signatureAnnotator2: '',
@@ -399,6 +424,8 @@
       UserSelect,
       ProjectRecordsChooseCom,
       WorkClientChooseByProjectCom,
+      AuditingFeeFrom,
+      AuditingFeeFrom2,
       ReportChooseByProjectCom
     },
     methods: {
@@ -406,11 +433,13 @@
         this.keyWatch = keyWatch
       },
       init (method, id) {
+        this.fee = ''
         this.activeName = 'files'
         this.projectRecordsService = new ProjectRecordsService()
         this.projectReportArchiveService = new ProjectReportArchiveService()
         this.method = method
         this.inputForm = {
+          reportAss: '',
           id: '',
           createDate: '',
           createBy: {
@@ -424,6 +453,8 @@
           reportNum: '',
           papersNum: '',
           auditMoney: '',
+          reportNo: '',
+          reportNo1: '',
           year: '',
           number: '',
           isNumber: '',
@@ -452,7 +483,6 @@
           auditedUnitsName: '',
           fileNumber: '',
           reportDate: '',
-          reportNo: '',
           signatureAnnotator1: '',
           signatureAnnotator1Name: '',
           signatureAnnotator2: '',
@@ -773,6 +803,7 @@
           fileNumber: '',
           reportDate: '',
           reportNo: '',
+          reportNo1: '',
           signatureAnnotator1: '',
           signatureAnnotator1Name: '',
           signatureAnnotator2: '',
@@ -833,10 +864,37 @@
       openChooseClient () {
         this.$refs.workClientChooseByProjectCom.init(this.inputForm.projectId)
       },
+      openChooseClient1 () {
+        console.log('this.inputForm.id', this.inputForm.id)
+        this.$refs.AuditingFeeFrom.init(this.inputForm.id)
+      },
+      openChooseClient2 () {
+        console.log('this.inputForm.id', this.inputForm.id)
+        this.$refs.AuditingFeeFrom2.init(this.inputForm.id)
+      },
       // 被审计单位选择结果获取
       getClient (row) {
+        console.log('row', row)
         this.inputForm.auditedUnitsName = row.name
         this.inputForm.auditedUnits = row.id
+        this.inputForm.auditMoney = row.numberTest
+        this.inputForm.reportNo = row.reportNo
+        this.$nextTick()
+      },
+      getClient2 (row) {
+        console.log('row', row)
+        this.inputForm.auditMoney = row.numberTest
+        this.fee = row.numberTest
+        this.inputForm.reportNo = row.reportNo
+        console.log('fee', this.fee)
+        this.$nextTick()
+      },
+      getClient3 (row) {
+        console.log('row', row)
+        this.fee = row.numberTest
+        this.inputForm.reportNo1 = row.reportNo
+        console.log('fee', this.fee)
+        this.$nextTick()
       },
       // 打开审计报告选择组件
       openReportChoose () {
@@ -850,6 +908,7 @@
               if (data === false) {
                 this.inputForm.reportDate = row.reportDate
                 this.inputForm.reportNo = row.reportNo
+                this.inputForm.reportNo1 = row.reportNo1
                 this.inputForm.signatureAnnotator1 = row.signatureAnnotator1
                 this.inputForm.signatureAnnotator1Name = row.signatureAnnotator1Name
                 this.inputForm.signatureAnnotator2 = row.signatureAnnotator2
@@ -864,6 +923,7 @@
         }
       },
       twoDecimalPlaces (num) {
+        console.log(1234)
         let str = num.toString()
         var len1 = str.substr(0, 1)
         var len2 = str.substr(1, 1)
@@ -889,6 +949,8 @@
         }
         // eslint-disable-next-line no-useless-escape
         str = str.replace(/[^\d^\.]+/g, '') // 保留数字和小数点
+        this.inputForm.auditMoney = str
+        console.log(this.inputForm.auditMoney)
         return str
       }
     }