|
|
@@ -1,10 +1,13 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div>
|
|
|
- <el-form :model="assemblyForm" ref="form" label-width="90px" class="demo-ruleForm">
|
|
|
- <el-row :gutter="20">
|
|
|
+ <el-form :model="assemblyForm" ref="form" label-width="90px" style="margin-bottom: 4px" class="demo-ruleForm">
|
|
|
+ <el-row :gutter="10">
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="客户名称" prop="corpCnName" >
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">客户名称</span>
|
|
|
+ </span>
|
|
|
<el-input type="age" style="width: 100%;" v-model="assemblyForm.corpCnName"
|
|
|
size="small" autocomplete="off"
|
|
|
disabled
|
|
|
@@ -13,6 +16,9 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="MB/L NO" prop="mblno" >
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">MB/L NO</span>
|
|
|
+ </span>
|
|
|
<el-input type="age" style="width: 100%;" v-model="assemblyForm.mblno"
|
|
|
size="small" autocomplete="off"
|
|
|
disabled
|
|
|
@@ -21,6 +27,9 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="HB/L NO" prop="hblno" >
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">HB/L NO</span>
|
|
|
+ </span>
|
|
|
<el-input type="age" style="width: 100%;" v-model="assemblyForm.hblno"
|
|
|
size="small" autocomplete="off"
|
|
|
disabled
|
|
|
@@ -29,6 +38,9 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="船名" prop="vesselCnName" >
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">船名</span>
|
|
|
+ </span>
|
|
|
<el-input type="age" style="width: 100%;" v-model="assemblyForm.vesselCnName"
|
|
|
size="small" autocomplete="off"
|
|
|
disabled
|
|
|
@@ -37,6 +49,9 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="航次" prop="voyageNo" >
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">航次</span>
|
|
|
+ </span>
|
|
|
<el-input type="age" style="width: 100%;" v-model="assemblyForm.voyageNo"
|
|
|
size="small" autocomplete="off"
|
|
|
disabled
|
|
|
@@ -52,19 +67,14 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="箱型" prop="cntrTypeCode" >
|
|
|
- <el-input type="age" style="width: 100%;" v-model="assemblyForm.cntrTypeCode"
|
|
|
+ <el-form-item label="箱型箱量" prop="quantityCntrDescr" >
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">箱型箱量</span>
|
|
|
+ </span>
|
|
|
+ <el-input type="age" style="width: 100%;" v-model="assemblyForm.quantityCntrDescr"
|
|
|
size="small" autocomplete="off"
|
|
|
disabled
|
|
|
- clearable placeholder="箱型" ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-form-item label="箱量" prop="quantity" >
|
|
|
- <el-input type="age" style="width: 100%;" v-model="assemblyForm.quantity"
|
|
|
- size="small" autocomplete="off"
|
|
|
- disabled
|
|
|
- clearable placeholder="箱量" ></el-input>
|
|
|
+ clearable placeholder="箱型箱量" ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -93,11 +103,13 @@
|
|
|
<!-- </el-select>-->
|
|
|
<!-- </div>-->
|
|
|
<!--</el-col>-->
|
|
|
- <el-col :span="8">
|
|
|
+ <el-col :span="15">
|
|
|
+ <el-button type="danger" plain size="small"
|
|
|
+ :disabled="!selectionDList.length" @click="batchDelete('D')">批量删除</el-button>
|
|
|
<el-button type="success" plain size="small">应收账单</el-button>
|
|
|
<el-button type="primary" plain size="small">应付账单</el-button>
|
|
|
<el-button type="primary" plain size="small">打印账单</el-button>
|
|
|
- <el-button type="success" plain size="small">应收模板</el-button>
|
|
|
+ <el-button type="success" plain size="small" @click="templateClick('D')">应收模板</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<div style="margin-top: 10px">
|
|
|
@@ -106,7 +118,7 @@
|
|
|
:cell-style="{padding:'0px',fontSize:'12px'}"
|
|
|
:header-cell-style="tableHeaderCellStyle"
|
|
|
:data="assemblyForm.feeCenterListD"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
+ @selection-change="handleSelectionChange($event,'D')"
|
|
|
border
|
|
|
stripe
|
|
|
style="width: 100%">
|
|
|
@@ -138,7 +150,7 @@
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
@remoteMethod="getBcorpsListfun($event,'corpCnName')"
|
|
|
@corpChange="corpChange($event,'corpCnName',row)"
|
|
|
- @corpFocus="getRateListfun($event,'corpCnName')" >
|
|
|
+ @corpFocus="getBcorpsListfun($event,'corpCnName')" >
|
|
|
</search-query>
|
|
|
<span v-else>{{row.corpCnName}}</span>
|
|
|
</template>
|
|
|
@@ -158,7 +170,7 @@
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
@remoteMethod="bfeesListfun($event,'feeCnName')"
|
|
|
@corpChange="corpChange($event,'feeCnName',row)"
|
|
|
- @corpFocus="getRateListfun($event,'feeCnName')" >
|
|
|
+ @corpFocus="bfeesListfun($event,'feeCnName')" >
|
|
|
</search-query>
|
|
|
<span v-else>{{row.feeCnName}}</span>
|
|
|
</template>
|
|
|
@@ -192,34 +204,14 @@
|
|
|
:remote="true"
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
- @remoteMethod="bfeesListfun($event,'unitNo')"
|
|
|
+ @remoteMethod="getBunitsListfun($event,'unitNo')"
|
|
|
@corpChange="corpChange($event,'unitNo',row)"
|
|
|
- @corpFocus="getRateListfun($event,'unitNo')" >
|
|
|
+ @corpFocus="getBunitsListfun($event,'unitNo')" >
|
|
|
</search-query>
|
|
|
<span v-else>{{row.unitNo}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="price"
|
|
|
- header-align="center"
|
|
|
- label="单价" width="120px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <el-input v-if="row.edit" type="number" v-model="row.price" size="small"
|
|
|
- placeholder="请输入" @blur="priceinputfun($event,row)"></el-input>
|
|
|
- <span v-else>{{row.price}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="quantity"
|
|
|
- header-align="center"
|
|
|
- label="数量" width="120px" >
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <el-input v-if="row.edit" type="number" v-model="row.quantity" size="small"
|
|
|
- placeholder="请输入" @blur="quantityinputfun(row)"></el-input>
|
|
|
- <span v-else>{{row.quantity}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
prop="curCode"
|
|
|
header-align="center"
|
|
|
label="币种" width="120px">
|
|
|
@@ -240,6 +232,26 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
+ prop="price"
|
|
|
+ header-align="center"
|
|
|
+ label="单价" width="120px">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <el-input v-if="row.edit" type="number" v-model="row.price" size="small"
|
|
|
+ placeholder="请输入" @blur="priceinputfun($event,row)"></el-input>
|
|
|
+ <span v-else>{{row.price}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="quantity"
|
|
|
+ header-align="center"
|
|
|
+ label="数量" width="120px" >
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <el-input v-if="row.edit" type="number" v-model="row.quantity" size="small"
|
|
|
+ placeholder="请输入" @blur="quantityinputfun(row)"></el-input>
|
|
|
+ <span v-else>{{row.quantity}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
prop="rmbAmount"
|
|
|
header-align="center"
|
|
|
label="CNY(含税)" width="100px">
|
|
|
@@ -282,7 +294,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="scope.row.edit" type="text" size="small" @click="savefun(scope.row,scope.$index,'D')">保存</el-button>
|
|
|
<el-button v-else type="text" size="small" @click="editDfun(scope.row,scope.$index)">编辑</el-button>
|
|
|
- <el-button type="text" size="small" @click="deleteDfun(scope.row,scope.$index)">删除</el-button>
|
|
|
+ <el-button type="text" size="small" @click="deletefun(scope.row,scope.$index,'D')">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -297,8 +309,10 @@
|
|
|
<span>应付费用</span>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <el-col :span="8">
|
|
|
- <el-button type="success" plain size="small">应付模板</el-button>
|
|
|
+ <el-col :span="15">
|
|
|
+ <el-button type="danger" plain size="small"
|
|
|
+ :disabled="!selectionCList.length" @click="batchDelete('C')">批量删除</el-button>
|
|
|
+ <el-button type="success" plain size="small" @click="templateClick('C')">应付模板</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<div style="margin-top: 10px">
|
|
|
@@ -307,7 +321,7 @@
|
|
|
:cell-style="{padding:'0px',fontSize:'12px'}"
|
|
|
:header-cell-style="tableHeaderCellStyle"
|
|
|
:data="assemblyForm.feeCenterListC"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
+ @selection-change="handleSelectionChange($event,'C')"
|
|
|
border
|
|
|
stripe
|
|
|
style="width: 100%">
|
|
|
@@ -339,7 +353,7 @@
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
@remoteMethod="getBcorpsListfun($event,'corpCnName')"
|
|
|
@corpChange="corpChange($event,'corpCnName',row)"
|
|
|
- @corpFocus="getRateListfun($event,'corpCnName')" >
|
|
|
+ @corpFocus="getBcorpsListfun($event,'corpCnName')" >
|
|
|
</search-query>
|
|
|
<span v-else>{{row.corpCnName}}</span>
|
|
|
</template>
|
|
|
@@ -359,7 +373,7 @@
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
@remoteMethod="bfeesListfun($event,'feeCnName')"
|
|
|
@corpChange="corpChange($event,'feeCnName',row)"
|
|
|
- @corpFocus="getRateListfun($event,'feeCnName')" >
|
|
|
+ @corpFocus="bfeesListfun($event,'feeCnName')" >
|
|
|
</search-query>
|
|
|
<span v-else>{{row.feeCnName}}</span>
|
|
|
</template>
|
|
|
@@ -393,14 +407,34 @@
|
|
|
:remote="true"
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
- @remoteMethod="bfeesListfun($event,'unitNo')"
|
|
|
+ @remoteMethod="getBunitsListfun($event,'unitNo')"
|
|
|
@corpChange="corpChange($event,'unitNo',row)"
|
|
|
- @corpFocus="getRateListfun($event,'unitNo')" >
|
|
|
+ @corpFocus="getBunitsListfun($event,'unitNo')" >
|
|
|
</search-query>
|
|
|
<span v-else>{{row.unitNo}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
+ prop="curCode"
|
|
|
+ label="币种" width="120px"
|
|
|
+ header-align="center">
|
|
|
+ <template slot-scope="{ row }">
|
|
|
+ <search-query v-if="row.edit"
|
|
|
+ :datalist="curCodeData"
|
|
|
+ :selectValue="row.curCode"
|
|
|
+ :filterable="true"
|
|
|
+ :clearable="true"
|
|
|
+ :remote="true"
|
|
|
+ :buttonIf="false"
|
|
|
+ :forParameter="{key:'id',label:'code',value:'code'}"
|
|
|
+ @remoteMethod="getRateListfun($event,'curCode')"
|
|
|
+ @corpChange="corpChange($event,'curCode',row)"
|
|
|
+ @corpFocus="getRateListfun($event,'curCode')">
|
|
|
+ </search-query>
|
|
|
+ <span v-else>{{row.curCode}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
prop="price"
|
|
|
label="单价" width="120px"
|
|
|
header-align="center">
|
|
|
@@ -421,26 +455,6 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- prop="curCode"
|
|
|
- label="币种" width="120px"
|
|
|
- header-align="center">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <search-query v-if="row.edit"
|
|
|
- :datalist="curCodeData"
|
|
|
- :selectValue="row.curCode"
|
|
|
- :filterable="true"
|
|
|
- :clearable="true"
|
|
|
- :remote="true"
|
|
|
- :buttonIf="false"
|
|
|
- :forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
- @remoteMethod="getRateListfun($event,'curCode')"
|
|
|
- @corpChange="corpChange($event,'curCode',row)"
|
|
|
- @corpFocus="getRateListfun($event,'curCode')">
|
|
|
- </search-query>
|
|
|
- <span v-else>{{row.curCode}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
prop="rmbAmount"
|
|
|
label="CNY(含税)" width="100px"
|
|
|
header-align="center">
|
|
|
@@ -482,7 +496,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="scope.row.edit" type="text" size="small" @click="savefun(scope.row,scope.$index,'C')">保存</el-button>
|
|
|
<el-button v-else type="text" size="small" @click="editCfun(scope.row,scope.$index)">编辑</el-button>
|
|
|
- <el-button type="text" size="small" @click="deleteDfun(scope.row,scope.$index)">删除</el-button>
|
|
|
+ <el-button type="text" size="small" @click="deletefun(scope.row,scope.$index,'C')">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -563,6 +577,31 @@
|
|
|
</el-card>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <!--模板弹窗-->
|
|
|
+ <el-dialog
|
|
|
+ title="提示"
|
|
|
+ :visible.sync="templateVisible"
|
|
|
+ append-to-body
|
|
|
+ width="60%"
|
|
|
+ :before-close="handleClose">
|
|
|
+ <div>
|
|
|
+ <avue-crud :option="templateOption"
|
|
|
+ :table-loading="templateLoading"
|
|
|
+ :data="templateData"
|
|
|
+ :page.sync="templatePage"
|
|
|
+ @size-change="sizeChange"
|
|
|
+ @current-change="currentChange" >
|
|
|
+ <template slot="radio" slot-scope="{row}">
|
|
|
+ <el-radio v-model="templateRadio" :label="row.$index"></el-radio>
|
|
|
+ </template>
|
|
|
+ </avue-crud>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="templateVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="templateExport">导 入</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
@@ -575,6 +614,7 @@
|
|
|
import {getRateList} from "@/api/iosBasicData/rateManagement";
|
|
|
import {feecenterList, feecenterRemove, feecenterSubmit} from "@/api/iosBasicData/feecenter";
|
|
|
import {getWorkDicts} from "@/api/system/dictbiz";
|
|
|
+ import {feecenterTemplateImport, losbfeestemplateGetListTemplate} from "@/api/iosBasicData/bills";
|
|
|
|
|
|
export default {
|
|
|
components: {SearchQuery},
|
|
|
@@ -613,6 +653,101 @@
|
|
|
unitNoData:[],
|
|
|
// 币别数据
|
|
|
curCodeData:[],
|
|
|
+ // 模板弹窗
|
|
|
+ templateVisible:false,
|
|
|
+ templateOption:{
|
|
|
+ height: 'auto',
|
|
|
+ calcHeight: 30,
|
|
|
+ border: true,
|
|
|
+ index: true,
|
|
|
+ addBtn:false,
|
|
|
+ editBtn:false,
|
|
|
+ delBtn:false,
|
|
|
+ viewBtn:false,
|
|
|
+ highlightCurrentRow:true,
|
|
|
+ menu:false,
|
|
|
+ column:[
|
|
|
+ {
|
|
|
+ label: '',
|
|
|
+ prop: 'radio',
|
|
|
+ width: 30,
|
|
|
+ hide: false
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "编码",
|
|
|
+ prop: "code",
|
|
|
+ width: "180",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "中文名称",
|
|
|
+ prop: "cnName",
|
|
|
+ width: "180",
|
|
|
+ searchLabelWidth: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "英文名称",
|
|
|
+ prop: "enName",
|
|
|
+ width: "180",
|
|
|
+ searchLabelWidth: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "业务类型中文名称",
|
|
|
+ prop: "businessTypeCnName",
|
|
|
+ width: 160,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "业务类型英文名称",
|
|
|
+ prop: "businessTypeEnName",
|
|
|
+ width: 160,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "收付",
|
|
|
+ prop: "dc",
|
|
|
+ type: 'select',
|
|
|
+ dicData: [{
|
|
|
+ label: '收',
|
|
|
+ value: 'D'
|
|
|
+ }, {
|
|
|
+ label: '付',
|
|
|
+ value: 'C'
|
|
|
+ }],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "是否公开共享",
|
|
|
+ prop: "isShared",
|
|
|
+ width: 100,
|
|
|
+ type: 'select',
|
|
|
+ dicData: [{
|
|
|
+ label: '否',
|
|
|
+ value: 0
|
|
|
+ }, {
|
|
|
+ label: '是',
|
|
|
+ value: 1
|
|
|
+ }],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "备注",
|
|
|
+ prop: "remarks",
|
|
|
+ span: 24,
|
|
|
+ type: 'textarea',
|
|
|
+ width: "180",
|
|
|
+ slot: true,
|
|
|
+ minRows: 3,
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ templateLoading:false,
|
|
|
+ templateData:[],
|
|
|
+ templateRadio:null,
|
|
|
+ templatePage:{
|
|
|
+ pageSize: 10,
|
|
|
+ currentPage: 1,
|
|
|
+ total: 0,
|
|
|
+ pageSizes: [10, 20, 30, 40, 50, 100, 200, 300, 400, 500]
|
|
|
+ },
|
|
|
+ selectionDList:[], // 收选择的
|
|
|
+ selectionCList:[], // 付选择的
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -623,6 +758,49 @@
|
|
|
// this.getWorkDictsfun()
|
|
|
},
|
|
|
methods:{
|
|
|
+
|
|
|
+ // 模板列表的分页
|
|
|
+ sizeChange(val){
|
|
|
+ this.page.currentPage = 1
|
|
|
+ this.page.pageSize = val
|
|
|
+ this.templateClick()
|
|
|
+ },
|
|
|
+ currentChange(val){
|
|
|
+ this.page.currentPage = val
|
|
|
+ this.templateRadio = null
|
|
|
+ this.templateClick()
|
|
|
+ },
|
|
|
+ // 模板导入
|
|
|
+ templateExport(){
|
|
|
+ if (this.templateRadio || this.templateRadio == 0) {
|
|
|
+ feecenterTemplateImport({
|
|
|
+ ...this.templateData[this.templateRadio],
|
|
|
+ billNoId:this.assemblyForm.id
|
|
|
+ }).then(res=>{
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功!"
|
|
|
+ });
|
|
|
+ this.$emit('billsDetailfun')
|
|
|
+ this.templateVisible = false
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.$message.warning('请先选择要导入的数据')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 模板
|
|
|
+ templateClick(dc){
|
|
|
+ this.templateVisible = true
|
|
|
+ this.templateLoading = true
|
|
|
+ losbfeestemplateGetListTemplate(this.templatePage.currentPage,this.templatePage.pageSize,{
|
|
|
+ dc:dc,
|
|
|
+ status:0
|
|
|
+ }).then(res=>{
|
|
|
+ this.templateData = res.data.data.records
|
|
|
+ this.templatePage.total = res.data.data.total;
|
|
|
+ this.templateLoading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
// 应收新增
|
|
|
addDfun(){
|
|
|
if (!this.pid) {
|
|
|
@@ -693,21 +871,53 @@
|
|
|
row.podEnName = this.assemblyForm.podEnName // 卸货港英文名称
|
|
|
this.feecenterSubmitfun(row)
|
|
|
},
|
|
|
+ // 多选删除
|
|
|
+ handleSelectionChange(list,dc){
|
|
|
+ if (dc == 'D') {
|
|
|
+ this.selectionDList = list
|
|
|
+ }else {
|
|
|
+ this.selectionCList = list
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 批量删除
|
|
|
+ batchDelete(dc){
|
|
|
+ let arr = []
|
|
|
+ if (dc == 'D') {
|
|
|
+ arr = this.selectionDList.map(item=>{
|
|
|
+ return item.id
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ arr = this.selectionCList.map(item=>{
|
|
|
+ return item.id
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.deletefun({id:arr.join(',')})
|
|
|
+ },
|
|
|
// 应收删除
|
|
|
- deleteDfun(row,index) {
|
|
|
+ deletefun(row,index,dc) {
|
|
|
this.$confirm("确定将选择数据删除?", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(()=>{
|
|
|
- // 删除接口
|
|
|
- feecenterRemove(row.id).then(res=>{
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- this.$emit('billsDetailfun')
|
|
|
- })
|
|
|
+ if (row.id) {
|
|
|
+ // 删除接口
|
|
|
+ feecenterRemove(row.id).then(res=>{
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功!"
|
|
|
+ });
|
|
|
+ this.$emit('billsDetailfun')
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ if(dc == 'D') {
|
|
|
+ this.assemblyForm.feeCenterListD.splice(index, 1)
|
|
|
+ }else {
|
|
|
+ this.assemblyForm.feeCenterListC.splice(index, 1)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
// 客户的回调
|
|
|
@@ -731,7 +941,7 @@
|
|
|
}
|
|
|
}else if (name == 'curCode') {
|
|
|
for(let item of this.curCodeData) {
|
|
|
- if (item.cnName == value){
|
|
|
+ if (item.code == value){
|
|
|
this.$set(row,'curCode',item.code)
|
|
|
this.$set(row,'exrate',item.exrate)
|
|
|
if (row.curCode == 'CNY') {
|
|
|
@@ -824,6 +1034,7 @@
|
|
|
// 获取币别数据
|
|
|
getRateListfun(cnName){
|
|
|
getRateList({current:1,size:10,cnName}).then(res=>{
|
|
|
+ console.log(res.data.data,1013)
|
|
|
this.curCodeData = res.data.data.records
|
|
|
})
|
|
|
},
|
|
|
@@ -882,6 +1093,6 @@
|
|
|
margin: 3px 0;
|
|
|
}
|
|
|
::v-deep.el-form-item {
|
|
|
- margin-bottom: 4px;
|
|
|
+ margin-bottom: 0px;
|
|
|
}
|
|
|
</style>
|