|  | @@ -126,7 +126,7 @@
 | 
	
		
			
				|  |  |                      <div>外币核算:</div>
 | 
	
		
			
				|  |  |                      <el-row>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="币种:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="币种:" prop="curCode">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.curCode"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入币种" >
 | 
	
	
		
			
				|  | @@ -134,7 +134,7 @@
 | 
	
		
			
				|  |  |                              </el-form-item>
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="汇率:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="汇率:" prop="exrate">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.exrate"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入汇率" >
 | 
	
	
		
			
				|  | @@ -142,7 +142,7 @@
 | 
	
		
			
				|  |  |                              </el-form-item>
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="借方金额:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="借方金额:" prop="amountDrUsd">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.amountDrUsd"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入借方金额" >
 | 
	
	
		
			
				|  | @@ -150,7 +150,7 @@
 | 
	
		
			
				|  |  |                              </el-form-item>
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="贷方金额:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="贷方金额:" prop="amountCrUsd">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.amountCrUsd"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入贷方金额" >
 | 
	
	
		
			
				|  | @@ -158,7 +158,7 @@
 | 
	
		
			
				|  |  |                              </el-form-item>
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="本币借方:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="本币借方:" prop="amountDr">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.amountDr"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入本币借方" >
 | 
	
	
		
			
				|  | @@ -166,7 +166,7 @@
 | 
	
		
			
				|  |  |                              </el-form-item>
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="本币贷方:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="本币贷方:" prop="amountCr">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.amountCr"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入本币贷方" >
 | 
	
	
		
			
				|  | @@ -177,7 +177,7 @@
 | 
	
		
			
				|  |  |                      <div>数量核算:</div>
 | 
	
		
			
				|  |  |                      <el-row>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="单位:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="单位:" prop="unitNo">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.unitNo"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入单位" >
 | 
	
	
		
			
				|  | @@ -185,7 +185,7 @@
 | 
	
		
			
				|  |  |                              </el-form-item>
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="规格:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="规格:" prop="voucherNo">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.voucherNo"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入规格" >
 | 
	
	
		
			
				|  | @@ -193,7 +193,7 @@
 | 
	
		
			
				|  |  |                              </el-form-item>
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="借方数量:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="借方数量:" prop="quantityDr">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.quantityDr"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入借方数量" >
 | 
	
	
		
			
				|  | @@ -201,7 +201,7 @@
 | 
	
		
			
				|  |  |                              </el-form-item>
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="借方单价:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="借方单价:" prop="voucherNo">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.voucherNo"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入借方单价" >
 | 
	
	
		
			
				|  | @@ -209,7 +209,7 @@
 | 
	
		
			
				|  |  |                              </el-form-item>
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="贷方数量:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="贷方数量:" prop="quantityCr">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.quantityCr"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入贷方数量" >
 | 
	
	
		
			
				|  | @@ -217,7 +217,7 @@
 | 
	
		
			
				|  |  |                              </el-form-item>
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="4">
 | 
	
		
			
				|  |  | -                            <el-form-item label="贷方单价:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="贷方单价:" prop="voucherNo">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.voucherNo"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入贷方单价" >
 | 
	
	
		
			
				|  | @@ -229,7 +229,7 @@
 | 
	
		
			
				|  |  |                      <el-row :gutter="40">
 | 
	
		
			
				|  |  |                          <el-col :span="12" v-if="subjectAccount.isCorp">
 | 
	
		
			
				|  |  |                              <div>客户核算:</div>
 | 
	
		
			
				|  |  | -                            <el-form-item label="客户名称:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="客户名称:" prop="corpCnName">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.corpCnName"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入客户名称" >
 | 
	
	
		
			
				|  | @@ -238,7 +238,7 @@
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="12" v-if="subjectAccount.isDept">
 | 
	
		
			
				|  |  |                              <div>部门核算:</div>
 | 
	
		
			
				|  |  | -                            <el-form-item label="部门名称:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="部门名称:" prop="deptName">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.deptName"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入部门名称" >
 | 
	
	
		
			
				|  | @@ -247,7 +247,7 @@
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="12" v-if="subjectAccount.isEmpl">
 | 
	
		
			
				|  |  |                              <div>职员核算:</div>
 | 
	
		
			
				|  |  | -                            <el-form-item label="职员名称:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="职员名称:" prop="emplName">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.emplName"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入职员名称" >
 | 
	
	
		
			
				|  | @@ -256,7 +256,7 @@
 | 
	
		
			
				|  |  |                          </el-col>
 | 
	
		
			
				|  |  |                          <el-col :span="12" v-if="subjectAccount.isItem">
 | 
	
		
			
				|  |  |                              <div>项目核算:</div>
 | 
	
		
			
				|  |  | -                            <el-form-item label="项目名称:" prop="voucherType">
 | 
	
		
			
				|  |  | +                            <el-form-item label="项目名称:" prop="itemName">
 | 
	
		
			
				|  |  |                                  <el-input style="width: 100%;" v-model="subjectRow.itemName"
 | 
	
		
			
				|  |  |                                            size="small" autocomplete="off"
 | 
	
		
			
				|  |  |                                            clearable placeholder="请输入项目名称" >
 | 
	
	
		
			
				|  | @@ -279,7 +279,7 @@
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |      import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
 | 
	
		
			
				|  |  |      import {getWorkDicts} from "@/api/system/dictbiz";
 | 
	
		
			
				|  |  | -    import {finvouchersitemsRemove, finvouchersSubmit} from "@/api/iosBasicData/finvouchers";
 | 
	
		
			
				|  |  | +    import {finvouchersDetail, finvouchersitemsRemove, finvouchersSubmit} from "@/api/iosBasicData/finvouchers";
 | 
	
		
			
				|  |  |      import {getCurrentDate, getYearDate} from "@/util/date";
 | 
	
		
			
				|  |  |      import fromtableDetails from "@/views/iosBasicData/finvouchers/assembly/fromtableDetails.vue";
 | 
	
		
			
				|  |  |      import {accountsDetail} from "@/api/iosBasicData/accounts";
 | 
	
	
		
			
				|  | @@ -306,6 +306,14 @@
 | 
	
		
			
				|  |  |              this.getWorkDictsfun()
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          methods:{
 | 
	
		
			
				|  |  | +            // 详情接口
 | 
	
		
			
				|  |  | +            finvouchersDetailfun(id) {
 | 
	
		
			
				|  |  | +                this.pageLoading = true
 | 
	
		
			
				|  |  | +                finvouchersDetail(id).then(res=>{
 | 
	
		
			
				|  |  | +                    this.pageLoading = false
 | 
	
		
			
				|  |  | +                    this.form = res.data.data
 | 
	
		
			
				|  |  | +                })
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  |              // 添加分录
 | 
	
		
			
				|  |  |              addEntryfun(){
 | 
	
		
			
				|  |  |                  let obj = {}
 | 
	
	
		
			
				|  | @@ -323,30 +331,38 @@
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              // 行删除
 | 
	
		
			
				|  |  |              deletefun(row,index){
 | 
	
		
			
				|  |  | +                if (row.id) {
 | 
	
		
			
				|  |  | +                    this.finvouchersitemsRemovefun(row.id)
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  this.form.finVouchersItemsList.splice(index,1)
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              // 删除分录
 | 
	
		
			
				|  |  |              deleteEntryfun(){
 | 
	
		
			
				|  |  |                  console.log(this.handleSelectionData,323)
 | 
	
		
			
				|  |  | +                if (this.handleSelectionData.length == 0) {
 | 
	
		
			
				|  |  | +                    return this.$message.warning('请选择至少一条数据')
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  let arr = this.handleSelectionData.map(item=>{
 | 
	
		
			
				|  |  |                      return item.id
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  |                  console.log(arr.join(','))
 | 
	
		
			
				|  |  | +                this.finvouchersitemsRemovefun(arr.join(','))
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              // 大保存
 | 
	
		
			
				|  |  |              finvouchersSubmitfun(){
 | 
	
		
			
				|  |  |                  this.form.businessTypeCode = 'PZDH'
 | 
	
		
			
				|  |  | -                console.log(this.form,337)
 | 
	
		
			
				|  |  | -                // this.pageLoading = true
 | 
	
		
			
				|  |  | +                this.pageLoading = true
 | 
	
		
			
				|  |  |                  finvouchersSubmit(this.form).then(res=>{
 | 
	
		
			
				|  |  | -                    console.log(res,338)
 | 
	
		
			
				|  |  | -                    // this.pageLoading = false
 | 
	
		
			
				|  |  | +                    this.$message.success('操作成功')
 | 
	
		
			
				|  |  | +                    this.pageLoading = false
 | 
	
		
			
				|  |  | +                    this.finvouchersDetailfun(res.data.data.id)
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              // 分录删除接口
 | 
	
		
			
				|  |  | -            finvouchersitemsRemovefun(){
 | 
	
		
			
				|  |  | -                finvouchersitemsRemove().then(res=>{
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +            finvouchersitemsRemovefun(id){
 | 
	
		
			
				|  |  | +                finvouchersitemsRemove(id).then(res=>{
 | 
	
		
			
				|  |  | +                    this.$message.success('操作成功')
 | 
	
		
			
				|  |  | +                    this.finvouchersDetailfun()
 | 
	
		
			
				|  |  |                  })
 | 
	
		
			
				|  |  |              },
 | 
	
		
			
				|  |  |              // 科目编辑打开辅助核算弹窗
 |