parent
232a3ff431
commit
6a02ca4838
File diff suppressed because one or more lines are too long
@ -0,0 +1,87 @@
|
||||
package jnpf.model.yunguan;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONField;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class BFSPaymentOccupationModel {
|
||||
/** 流水号 **/
|
||||
@JSONField(name = "serialNoErp")
|
||||
private String serialNoErp;
|
||||
/** 付款申请编号 **/
|
||||
@JSONField(name = "billNo")
|
||||
private String billNo;
|
||||
/** 申请支付日期 **/
|
||||
@JSONField(name = "applyDate")
|
||||
private String applyDate;
|
||||
/** 交易金额 **/
|
||||
@JSONField(name = "amt")
|
||||
private String amt;
|
||||
/** 币别 **/
|
||||
@JSONField(name = "cur")
|
||||
private String cur;
|
||||
/** 摘要 **/
|
||||
@JSONField(name = "abs")
|
||||
private String abs;
|
||||
/** 付款方名称 **/
|
||||
@JSONField(name = "payerAccName")
|
||||
private String payerAccName;
|
||||
/** 收款方账号 **/
|
||||
@JSONField(name = "payeeAccNo")
|
||||
private String payeeAccNo;
|
||||
/** 收款方户名 **/
|
||||
@JSONField(name = "payeeAccName")
|
||||
private String payeeAccName;
|
||||
/** 收款方开户行 **/
|
||||
@JSONField(name = "payeeBank")
|
||||
private String payeeBank;
|
||||
/** 收方联行号 **/
|
||||
@JSONField(name = "payeeCode")
|
||||
private String payeeCode;
|
||||
/** 收方账号省份 **/
|
||||
@JSONField(name = "payeeProv")
|
||||
private String payeeProv;
|
||||
/** 收方账号城市 **/
|
||||
@JSONField(name = "payeeCity")
|
||||
private String payeeCity;
|
||||
/** 计划单位代码 **/
|
||||
@JSONField(name = "corpCode")
|
||||
private String corpCode;
|
||||
/** 计划单位名称 **/
|
||||
@JSONField(name = "corpName")
|
||||
private String corpName;
|
||||
/** 资金计划用途 **/
|
||||
@JSONField(name = "purpose")
|
||||
private String purpose;
|
||||
/** 资金计划期望支付日期 **/
|
||||
@JSONField(name = "wishPayDay")
|
||||
private String wishPayDay;
|
||||
/** 资金计划科目名称 **/
|
||||
@JSONField(name = "itemName")
|
||||
private String itemName;
|
||||
/** 资金计划科目编码 **/
|
||||
@JSONField(name = "itemCode")
|
||||
private String itemCode;
|
||||
/** 资金计划明细id **/
|
||||
@JSONField(name = "budgetDetailId")
|
||||
private String budgetDetailId;
|
||||
/** 加急标志 **/
|
||||
@JSONField(name = "urgencyFlag")
|
||||
private String urgencyFlag;
|
||||
/** 交易类型 **/
|
||||
@JSONField(name = "voucherType")
|
||||
private String voucherType;
|
||||
/** 对公对私字段 **/
|
||||
@JSONField(name = "isforindividual")
|
||||
private String isforindividual;
|
||||
/** 付款说明 **/
|
||||
@JSONField(name = "rmk")
|
||||
private String rmk;
|
||||
/** 数据来源 **/
|
||||
@JSONField(name = "dataSource")
|
||||
private String dataSource;
|
||||
|
||||
}
|
@ -0,0 +1,194 @@
|
||||
<template>
|
||||
<transition name="el-zoom-in-center">
|
||||
<div class="JNPF-preview-main">
|
||||
<Detail v-if="detailVisible" ref="Detail" @close="detailVisible = false" />
|
||||
<div class="JNPF-common-page-header">
|
||||
<el-page-header @back="goBack"
|
||||
content="详情"/>
|
||||
<div class="options">
|
||||
<el-button @click="goBack">取 消</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-row :gutter="15" class=" main" :style="{margin: '0 auto',width: '100%'}">
|
||||
<el-form ref="formRef" :model="dataForm" size="small" label-width="100px" label-position="right" >
|
||||
<template v-if="!loading">
|
||||
<el-col :span="8" >
|
||||
<jnpf-form-tip-item label="收款单号"
|
||||
prop="prepaymentNo" >
|
||||
<p>{{dataForm.prepaymentNo}}</p>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8" >
|
||||
<jnpf-form-tip-item label="客户编码"
|
||||
prop="custCode" >
|
||||
<p>{{dataForm.custCode}}</p>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8" >
|
||||
<jnpf-form-tip-item label="客户名称"
|
||||
prop="custName" >
|
||||
<p>{{dataForm.custName}}</p>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8" >
|
||||
<jnpf-form-tip-item label="收款时间"
|
||||
prop="prepaymentDt" >
|
||||
<p>{{dataForm.prepaymentDt}}</p>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8" >
|
||||
<jnpf-form-tip-item label="收款金额"
|
||||
prop="prepaymentAmt" >
|
||||
<p>{{dataForm.prepaymentAmt}}</p>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8" >
|
||||
<jnpf-form-tip-item label="分配状态"
|
||||
prop="settlementState" >
|
||||
<p>{{ dataForm.settlementState }} </p>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="24" >
|
||||
<jnpf-form-tip-item label-width="0">
|
||||
<div class="JNPF-common-title">
|
||||
<h2>结算单信息</h2>
|
||||
</div>
|
||||
<el-table :data="dataForm.tableField108" size='mini' >
|
||||
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||
<el-table-column prop="settlementCode" label="结算单编号" >
|
||||
<template slot-scope="scope">
|
||||
<p>{{scope.row.settlementCode}}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="settlementSubjectName" label="结算主体名称" >
|
||||
<template slot-scope="scope">
|
||||
<p>{{scope.row.settlementSubjectName}}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="settlementSum" label="结算数量" >
|
||||
<template slot-scope="scope">
|
||||
<p>{{scope.row.settlementSum}}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="settlableAmount" label="可结金额" >
|
||||
<template slot-scope="scope">
|
||||
<p>{{scope.row.settlableAmount}}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="type" label="结算类型" >
|
||||
<template slot-scope="scope">
|
||||
<p>{{scope.row.type}}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="contractCode" label="合同号" >
|
||||
<template slot-scope="scope">
|
||||
<p>{{scope.row.contractCode}}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="applyAmount" label="已申请金额" >
|
||||
<template slot-scope="scope">
|
||||
<p>{{scope.row.applyAmount}}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="assignableAmount" label="可分配金额" >
|
||||
<template slot-scope="scope">
|
||||
<p>{{scope.row.assignableAmount}}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="distributionAmount" label="分配金额" >
|
||||
<template slot-scope="scope">
|
||||
<p>{{scope.row.distributionAmount}}</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
</template>
|
||||
</el-form>
|
||||
</el-row>
|
||||
</div>
|
||||
</transition>
|
||||
</template>
|
||||
<script>
|
||||
import request from '@/utils/request'
|
||||
|
||||
import { getConfigData } from '@/api/onlineDev/visualDev'
|
||||
import jnpf from '@/utils/jnpf'
|
||||
import Detail from '@/views/basic/dynamicModel/list/detail'
|
||||
import { thousandsFormat } from "@/components/Generator/utils/index"
|
||||
export default {
|
||||
components: { Detail},
|
||||
props: [],
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
detailVisible: false,
|
||||
loading: false,
|
||||
|
||||
dataForm: {
|
||||
id :'',
|
||||
prepaymentNo : '',
|
||||
custCode : '',
|
||||
custName : '',
|
||||
prepaymentDt : '',
|
||||
prepaymentAmt : '',
|
||||
settlementState : "1",
|
||||
distributionUserId : '',
|
||||
distributionTime : '',
|
||||
currencyCd : '',
|
||||
exchgRat : '',
|
||||
salecollectionsettlementList:[],
|
||||
},
|
||||
settlementStateOptions:[{"fullName":"未分配","id":"1"},{"fullName":"部分分配","id":"2"},{"fullName":"已分配","id":"3"}],
|
||||
settlementStateProps:{"label":"fullName","value":"id" },
|
||||
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
created() {
|
||||
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
toDetail(defaultValue, modelId) {
|
||||
if (!defaultValue) return
|
||||
getConfigData(modelId).then(res => {
|
||||
if (!res.data || !res.data.formData) return
|
||||
let formData = JSON.parse(res.data.formData)
|
||||
formData.popupType = 'general'
|
||||
this.detailVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.Detail.init(formData, modelId, defaultValue)
|
||||
})
|
||||
})
|
||||
},
|
||||
dataInfo(dataAll){
|
||||
let _dataAll =dataAll
|
||||
this.dataForm = _dataAll
|
||||
},
|
||||
|
||||
goBack() {
|
||||
this.$emit('refresh')
|
||||
},
|
||||
init(id) {
|
||||
this.dataForm.id = id || 0;
|
||||
this.visible = true;
|
||||
this.$nextTick(() => {
|
||||
if(this.dataForm.id){
|
||||
this.loading = true
|
||||
request({
|
||||
url: '/api/scm/Salecollection/detail/'+this.dataForm.id,
|
||||
method: 'get'
|
||||
}).then(res => {
|
||||
this.dataInfo(res.data)
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
</script>
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,758 @@
|
||||
<template>
|
||||
<transition name="el-zoom-in-center">
|
||||
<div class="JNPF-preview-main">
|
||||
<div class="JNPF-common-page-header">
|
||||
<el-page-header @back="goBack" :content="!dataForm.id ? '关联结算单':'关联结算单'" />
|
||||
<div class="options">
|
||||
<el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading" :disabled='continueBtnLoading'> 保
|
||||
存</el-button>
|
||||
<el-button @click="goBack"> 取 消</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<el-row :gutter="15" class=" main" :style="{margin: '0 auto',width: '100%'}">
|
||||
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px"
|
||||
label-position="right">
|
||||
<template v-if="!loading">
|
||||
<!-- 具体表单 -->
|
||||
<el-col :span="8">
|
||||
<jnpf-form-tip-item label="收款单号" prop="prepaymentNo">
|
||||
<JnpfInput v-model="dataForm.prepaymentNo" @change="changeData('prepaymentNo',-1)" placeholder="请输入"
|
||||
readonly clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<jnpf-form-tip-item label="客户编码" prop="custCode">
|
||||
<JnpfInput v-model="dataForm.custCode" @change="changeData('custCode',-1)" placeholder="请输入" readonly
|
||||
clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<jnpf-form-tip-item label="客户名称" prop="custName">
|
||||
<JnpfInput v-model="dataForm.custName" @change="changeData('custName',-1)" placeholder="请输入" readonly
|
||||
clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<jnpf-form-tip-item label="收款时间" prop="prepaymentDt">
|
||||
<JnpfDatePicker v-model="dataForm.prepaymentDt" @change="changeData('prepaymentDt',-1)"
|
||||
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" readonly
|
||||
clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd">
|
||||
</JnpfDatePicker>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<jnpf-form-tip-item label="收款金额" prop="prepaymentAmt">
|
||||
<JnpfInput v-model="dataForm.prepaymentAmt" @change="changeData('prepaymentAmt',-1)" placeholder="请输入"
|
||||
readonly clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<jnpf-form-tip-item label="分配状态" prop="settlementState">
|
||||
<JnpfSelect v-model="dataForm.settlementState" @change="changeData('settlementState',-1)"
|
||||
placeholder="请选择" disabled clearable :style='{"width":"100%"}' :options="settlementStateOptions"
|
||||
:props="settlementStateProps">
|
||||
</JnpfSelect>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24">
|
||||
<jnpf-form-tip-item label-width="0">
|
||||
<div class="JNPF-common-title">
|
||||
<h2>结算单信息</h2>
|
||||
</div>
|
||||
<el-table :data="dataForm.salecollectionsettlementList" size='mini'>
|
||||
<el-table-column type="index" width="50" label="序号" align="center" />
|
||||
<el-table-column label="结算单编号" prop="settlementCode">
|
||||
<template slot="header" v-if="false">
|
||||
<span class="required-sign">*</span>结算单编号
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.settlementCode"
|
||||
@change="changeData('salecollectionsettlement-settlementCode',scope.$index)" placeholder="请输入"
|
||||
readonly clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="结算主体名称" prop="settlementSubjectName">
|
||||
<template slot="header" v-if="false">
|
||||
<span class="required-sign">*</span>结算主体名称
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.settlementSubjectName"
|
||||
@change="changeData('salecollectionsettlement-settlementSubjectName',scope.$index)"
|
||||
placeholder="请输入" readonly clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="结算数量" prop="settlementSum">
|
||||
<template slot="header" v-if="false">
|
||||
<span class="required-sign">*</span>结算数量
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.settlementSum"
|
||||
@change="changeData('salecollectionsettlement-settlementSum',scope.$index)" placeholder="请输入"
|
||||
readonly clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="可结金额" prop="settlableAmount">
|
||||
<template slot="header" v-if="false">
|
||||
<span class="required-sign">*</span>可结金额
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.settlableAmount"
|
||||
@change="changeData('salecollectionsettlement-settlableAmount',scope.$index)" placeholder="请输入"
|
||||
readonly clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="结算类型" prop="type">
|
||||
<template slot="header" v-if="false">
|
||||
<span class="required-sign">*</span>结算类型
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.type"
|
||||
@change="changeData('salecollectionsettlement-type',scope.$index)" placeholder="请输入" readonly
|
||||
clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="合同号" prop="contractCode">
|
||||
<template slot="header" v-if="false">
|
||||
<span class="required-sign">*</span>合同号
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.contractCode"
|
||||
@change="changeData('salecollectionsettlement-contractCode',scope.$index)" placeholder="请输入"
|
||||
readonly clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="已申请金额" prop="applyAmount">
|
||||
<template slot="header" v-if="false">
|
||||
<span class="required-sign">*</span>已申请金额
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.applyAmount"
|
||||
@change="changeData('salecollectionsettlement-applyAmount',scope.$index)" placeholder="请输入"
|
||||
readonly clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="可分配金额" prop="assignableAmount">
|
||||
<template slot="header" v-if="false">
|
||||
<span class="required-sign">*</span>可分配金额
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInput v-model="scope.row.assignableAmount"
|
||||
@change="changeData('salecollectionsettlement-assignableAmount',scope.$index)" placeholder="请输入"
|
||||
readonly clearable :style='{"width":"100%"}'>
|
||||
</JnpfInput>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="分配金额" prop="distributionAmount">
|
||||
<template slot="header" v-if="false">
|
||||
<span class="required-sign">*</span>分配金额
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
<JnpfInputNumber v-model="scope.row.distributionAmount" placeholder="请输入"
|
||||
clearable :style='{"width":"100%"}' :max="Number(scope.row.assignableAmount)" :min=0 :disabled='continueBtnLoading'>
|
||||
</JnpfInputNumber>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="50">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" class="JNPF-table-delBtn"
|
||||
@click="delsalecollectionsettlementList(scope.$index)" :disabled='continueBtnLoading'>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="table-actions">
|
||||
<el-button type="text" icon="el-icon-plus" @click="addsalecollectionsettlementList()" :disabled='continueBtnLoading'>添加</el-button>
|
||||
</div>
|
||||
</jnpf-form-tip-item>
|
||||
</el-col>
|
||||
<!-- 表单结束 -->
|
||||
</template>
|
||||
</el-form>
|
||||
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm" ref="selectDialog"
|
||||
@select="addForSelect" @close="selectDialogVisible=false" />
|
||||
</el-row>
|
||||
<settlementList v-if="goodsBoxVisible" ref="goodsBox" @refreshDataList="initList" />
|
||||
</div>
|
||||
</transition>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import request from '@/utils/request'
|
||||
import {
|
||||
mapGetters
|
||||
} from "vuex";
|
||||
import {
|
||||
getDataInterfaceRes
|
||||
} from '@/api/systemData/dataInterface'
|
||||
import {
|
||||
getDictionaryDataSelector
|
||||
} from '@/api/systemData/dictionary'
|
||||
import {
|
||||
getDefaultCurrentValueUserId
|
||||
} from '@/api/permission/user'
|
||||
import {
|
||||
getDefaultCurrentValueDepartmentId
|
||||
} from '@/api/permission/organize'
|
||||
import {
|
||||
getDateDay,
|
||||
getLaterData,
|
||||
getBeforeData,
|
||||
getBeforeTime,
|
||||
getLaterTime
|
||||
} from '@/components/Generator/utils/index.js'
|
||||
import {
|
||||
thousandsFormat
|
||||
} from "@/components/Generator/utils/index"
|
||||
import settlementList from '@/views/extend/salecollection/settlementList'
|
||||
export default {
|
||||
components: {settlementList},
|
||||
props: [],
|
||||
data() {
|
||||
return {
|
||||
goodsBoxVisible: false,
|
||||
dataFormSubmitType: 0,
|
||||
continueBtnLoading: false,
|
||||
index: 0,
|
||||
prevDis: false,
|
||||
nextDis: false,
|
||||
allList: [],
|
||||
visible: false,
|
||||
loading: false,
|
||||
btnLoading: false,
|
||||
formRef: 'formRef',
|
||||
setting: {},
|
||||
eventType: '',
|
||||
userBoxVisible: false,
|
||||
selectDialogVisible: false,
|
||||
currTableConf: {},
|
||||
dataValueAll: {},
|
||||
addTableConf: {
|
||||
salecollectionsettlementList: {
|
||||
"popupType": "dialog",
|
||||
"hasPage": true,
|
||||
"popupTitle": "选择数据",
|
||||
"pageSize": 20,
|
||||
"columnOptions": [],
|
||||
"interfaceId": "",
|
||||
"interfaceName": "",
|
||||
"relationOptions": [],
|
||||
"templateJson": [],
|
||||
"popupWidth": "800px"
|
||||
},
|
||||
},
|
||||
//可选范围默认值
|
||||
ableAll: {},
|
||||
tableRows: {
|
||||
salecollectionsettlementList: {
|
||||
settlementCode: '',
|
||||
settlementCodeOptions: [],
|
||||
settlementSubjectName: '',
|
||||
settlementSubjectNameOptions: [],
|
||||
settlementSum: '',
|
||||
settlementSumOptions: [],
|
||||
settlableAmount: '',
|
||||
settlableAmountOptions: [],
|
||||
type: '',
|
||||
typeOptions: [],
|
||||
contractCode: '',
|
||||
contractCodeOptions: [],
|
||||
applyAmount: '',
|
||||
applyAmountOptions: [],
|
||||
assignableAmount: '',
|
||||
assignableAmountOptions: [],
|
||||
distributionAmount: '',
|
||||
distributionAmountOptions: [],
|
||||
enabledmark: undefined
|
||||
},
|
||||
},
|
||||
Vmodel: "",
|
||||
currVmodel: "",
|
||||
dataForm: {
|
||||
prepaymentNo: undefined,
|
||||
custCode: undefined,
|
||||
custName: undefined,
|
||||
prepaymentDt: undefined,
|
||||
prepaymentAmt: undefined,
|
||||
settlementState: "1",
|
||||
distributionUserId: undefined,
|
||||
distributionTime: undefined,
|
||||
currencyCd: undefined,
|
||||
exchgRat: undefined,
|
||||
salecollectionsettlementList: [],
|
||||
version: 0,
|
||||
orgId: undefined,
|
||||
},
|
||||
tableRequiredData: {},
|
||||
dataRule: {
|
||||
prepaymentNo: [{
|
||||
required: true,
|
||||
message: '请输入',
|
||||
trigger: 'blur'
|
||||
}, ],
|
||||
custCode: [{
|
||||
required: true,
|
||||
message: '请输入',
|
||||
trigger: 'blur'
|
||||
}, ],
|
||||
custName: [{
|
||||
required: true,
|
||||
message: '请输入',
|
||||
trigger: 'blur'
|
||||
}, ],
|
||||
prepaymentDt: [{
|
||||
required: true,
|
||||
message: '请选择',
|
||||
trigger: 'change'
|
||||
}, ],
|
||||
prepaymentAmt: [{
|
||||
required: true,
|
||||
message: '请输入',
|
||||
trigger: 'blur'
|
||||
}, ],
|
||||
},
|
||||
settlementStateOptions: [{
|
||||
"fullName": "未分配",
|
||||
"id": "1"
|
||||
}, {
|
||||
"fullName": "部分分配",
|
||||
"id": "2"
|
||||
}, {
|
||||
"fullName": "已分配",
|
||||
"id": "3"
|
||||
}],
|
||||
settlementStateProps: {
|
||||
"label": "fullName",
|
||||
"value": "id"
|
||||
},
|
||||
childIndex: -1,
|
||||
isEdit: false,
|
||||
interfaceRes: {
|
||||
prepaymentNo: [],
|
||||
custCode: [],
|
||||
custName: [],
|
||||
prepaymentDt: [],
|
||||
prepaymentAmt: [],
|
||||
settlementState: [],
|
||||
distributionUserId: [],
|
||||
distributionTime: [],
|
||||
currencyCd: [],
|
||||
exchgRat: [],
|
||||
salecollectionsettlementsettlementCode: [],
|
||||
salecollectionsettlementsettlementSubjectName: [],
|
||||
salecollectionsettlementsettlementSum: [],
|
||||
salecollectionsettlementsettlableAmount: [],
|
||||
salecollectionsettlementtype: [],
|
||||
salecollectionsettlementcontractCode: [],
|
||||
salecollectionsettlementapplyAmount: [],
|
||||
salecollectionsettlementassignableAmount: [],
|
||||
salecollectionsettlementdistributionAmount: [],
|
||||
},
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userInfo'])
|
||||
},
|
||||
watch: {},
|
||||
created() {
|
||||
this.dataAll()
|
||||
this.initDefaultData()
|
||||
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
initList(list) {
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
let e = {};
|
||||
e.saleCollectionId = this.dataForm.id;
|
||||
e.saleCollectionCode = this.dataForm.code;
|
||||
e.settlementId = list[i].id;
|
||||
e.settlementCode = list[i].code;
|
||||
e.settlementAmount = list[i].payableAmount;
|
||||
e.settlementSubjectName = list[i].settlementSubjectName;
|
||||
e.settlementSum = list[i].settlementSum;
|
||||
e.contractCode = list[i].contractCode;
|
||||
e.settlableAmount = list[i].settlableAmount;
|
||||
e.payableAmount = list[i].payableAmount;
|
||||
e.invoiceAmount = list[i].invoiceAmount;
|
||||
e.applyState = list[i].applyState;
|
||||
e.type = list[i].type == 1 ? '采购结算' : '销售结算';
|
||||
e.applyAmount = list[i].applyAmount;
|
||||
e.assignableAmount = this.jnpf.floatSub(list[i].settlableAmount, list[i].applyAmount);
|
||||
this.dataForm.salecollectionsettlementList.push(e)
|
||||
}
|
||||
},
|
||||
prev() {
|
||||
this.index--
|
||||
if (this.index === 0) {
|
||||
this.prevDis = true
|
||||
}
|
||||
this.nextDis = false
|
||||
for (let index = 0; index < this.allList.length; index++) {
|
||||
const element = this.allList[index];
|
||||
if (this.index == index) {
|
||||
this.getInfo(element.id)
|
||||
}
|
||||
}
|
||||
},
|
||||
next() {
|
||||
this.index++
|
||||
if (this.index === this.allList.length - 1) {
|
||||
this.nextDis = true
|
||||
}
|
||||
this.prevDis = false
|
||||
for (let index = 0; index < this.allList.length; index++) {
|
||||
const element = this.allList[index];
|
||||
if (this.index == index) {
|
||||
this.getInfo(element.id)
|
||||
}
|
||||
}
|
||||
},
|
||||
getInfo(id) {
|
||||
request({
|
||||
url: '/api/scm/Salecollection/' + id,
|
||||
method: 'get'
|
||||
}).then(res => {
|
||||
this.dataInfo(res.data)
|
||||
});
|
||||
},
|
||||
goBack() {
|
||||
this.visible = false
|
||||
this.$emit('refreshDataList', true)
|
||||
},
|
||||
changeData(model, index) {
|
||||
this.isEdit = false
|
||||
this.childIndex = index
|
||||
let modelAll = model.split("-");
|
||||
let faceMode = "";
|
||||
for (let i = 0; i < modelAll.length; i++) {
|
||||
faceMode += modelAll[i];
|
||||
}
|
||||
for (let key in this.interfaceRes) {
|
||||
if (key != faceMode) {
|
||||
let faceReList = this.interfaceRes[key]
|
||||
for (let i = 0; i < faceReList.length; i++) {
|
||||
if (faceReList[i].relationField == model) {
|
||||
let options = 'get' + key + 'Options';
|
||||
if (this[options]) {
|
||||
this[options]()
|
||||
}
|
||||
this.changeData(key, index)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
changeDataFormData(type, data, model, index, defaultValue) {
|
||||
if (!this.isEdit) {
|
||||
if (type == 2) {
|
||||
for (let i = 0; i < this.dataForm[data].length; i++) {
|
||||
if (index == -1) {
|
||||
this.dataForm[data][i][model] = defaultValue
|
||||
} else if (index == i) {
|
||||
this.dataForm[data][i][model] = defaultValue
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.dataForm[data] = defaultValue
|
||||
}
|
||||
}
|
||||
},
|
||||
dataAll() {},
|
||||
salecollectionsettlementExist() {
|
||||
let isOk = true;
|
||||
for (let i = 0; i < this.dataForm.salecollectionsettlementList.length; i++) {
|
||||
const e = this.dataForm.salecollectionsettlementList[i];
|
||||
if (e.distributionAmount) {
|
||||
var regPos = [{
|
||||
"pattern": "/^([1-9][\\d]*|0)(\\.[\\d]+)?$/",
|
||||
"message": "请输入正确的金额"
|
||||
}]
|
||||
for (let i = 0; i < regPos.length; i++) {
|
||||
const element = regPos[i];
|
||||
if (element.pattern && !eval(element.pattern).test(e.distributionAmount)) {
|
||||
this.$message({
|
||||
message: element.message,
|
||||
type: 'error',
|
||||
duration: 1000
|
||||
});
|
||||
isOk = false
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return isOk;
|
||||
},
|
||||
goBack() {
|
||||
this.$emit('refresh')
|
||||
},
|
||||
clearData() {
|
||||
this.dataForm = JSON.parse(JSON.stringify(this.dataValueAll))
|
||||
},
|
||||
init(id, isDetail, allList) {
|
||||
this.prevDis = false
|
||||
this.nextDis = false
|
||||
if(isDetail){
|
||||
this.continueBtnLoading = true
|
||||
}
|
||||
this.allList = allList || []
|
||||
if (allList.length) {
|
||||
this.index = this.allList.findIndex(item => item.id === id)
|
||||
if (this.index == 0) {
|
||||
this.prevDis = true
|
||||
}
|
||||
if (this.index == this.allList.length - 1) {
|
||||
this.nextDis = true
|
||||
}
|
||||
} else {
|
||||
this.prevDis = true
|
||||
this.nextDis = true
|
||||
}
|
||||
this.dataForm.id = id || 0;
|
||||
this.visible = true;
|
||||
this.$nextTick(() => {
|
||||
if (this.dataForm.id) {
|
||||
this.loading = true
|
||||
request({
|
||||
url: '/api/scm/Salecollection/' + this.dataForm.id,
|
||||
method: 'get'
|
||||
}).then(res => {
|
||||
this.dataInfo(res.data)
|
||||
this.loading = false
|
||||
});
|
||||
} else {
|
||||
this.clearData()
|
||||
this.initDefaultData()
|
||||
}
|
||||
});
|
||||
this.$store.commit('generator/UPDATE_RELATION_DATA', {})
|
||||
},
|
||||
//初始化默认数据
|
||||
initDefaultData() {
|
||||
|
||||
},
|
||||
// 表单提交
|
||||
dataFormSubmit(type) {
|
||||
if(this.dataForm.salecollectionsettlementList && this.dataForm.salecollectionsettlementList.length > 0){
|
||||
let distributionAmount = 0
|
||||
for (let i = 0; i < this.dataForm.salecollectionsettlementList.length; i++) {
|
||||
distributionAmount = this.jnpf.floatAdd(distributionAmount, this.dataForm.salecollectionsettlementList[i].distributionAmount);
|
||||
}
|
||||
if(distributionAmount == this.dataForm.prepaymentAmt){
|
||||
this.dataFormSubmitType = type ? type : 0
|
||||
this.$refs['formRef'].validate((valid) => {
|
||||
if (valid) {
|
||||
if (!this.salecollectionsettlementExist()) return
|
||||
this.request()
|
||||
}
|
||||
})
|
||||
}else{
|
||||
this.$message({
|
||||
message: '收款金额没有分配完成,请确认!',
|
||||
type: 'error',
|
||||
duration: 1000
|
||||
});
|
||||
}
|
||||
}else{
|
||||
this.$message({
|
||||
message: '至少关联一条结算单',
|
||||
type: 'error',
|
||||
duration: 1000
|
||||
});
|
||||
}
|
||||
},
|
||||
request() {
|
||||
let _data = this.dataList()
|
||||
if (this.dataFormSubmitType == 2) {
|
||||
this.continueBtnLoading = true
|
||||
} else {
|
||||
this.btnLoading = true
|
||||
}
|
||||
if (!this.dataForm.id) {
|
||||
request({
|
||||
url: '/api/scm/Salecollection',
|
||||
method: 'post',
|
||||
data: _data
|
||||
}).then((res) => {
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: 'success',
|
||||
duration: 1000,
|
||||
onClose: () => {
|
||||
if (this.dataFormSubmitType == 2) {
|
||||
this.$nextTick(() => {
|
||||
this.clearData()
|
||||
this.initDefaultData()
|
||||
})
|
||||
this.continueBtnLoading = false
|
||||
return
|
||||
}
|
||||
this.visible = false
|
||||
this.btnLoading = false
|
||||
this.$emit('refresh', true)
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
this.btnLoading = false
|
||||
this.continueBtnLoading = false
|
||||
})
|
||||
} else {
|
||||
request({
|
||||
url: '/api/scm/Salecollection/' + this.dataForm.id,
|
||||
method: 'PUT',
|
||||
data: _data
|
||||
}).then((res) => {
|
||||
this.$message({
|
||||
message: res.msg,
|
||||
type: 'success',
|
||||
duration: 1000,
|
||||
onClose: () => {
|
||||
if (this.dataFormSubmitType == 2) return this.continueBtnLoading = false
|
||||
this.visible = false
|
||||
this.btnLoading = false
|
||||
this.$emit('refresh', true)
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
this.btnLoading = false
|
||||
this.continueBtnLoading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
addsalecollectionsettlementList() {
|
||||
this.goodsBoxVisible = true
|
||||
let excludeIdList = [];
|
||||
for (let i = 0; i < this.dataForm.salecollectionsettlementList.length; i++) {
|
||||
excludeIdList.push(this.dataForm.salecollectionsettlementList[i].settlementId);
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.$refs.goodsBox.init(excludeIdList, this.dataForm.custCode, this.dataForm.orgId)
|
||||
})
|
||||
},
|
||||
delsalecollectionsettlementList(index) {
|
||||
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.dataForm.salecollectionsettlementList.splice(index, 1);
|
||||
}).catch(() => {});
|
||||
},
|
||||
getsalecollectionsettlementList(value) {
|
||||
let item = {
|
||||
...this.tableRows.salecollectionsettlementList,
|
||||
...value
|
||||
}
|
||||
this.dataForm.salecollectionsettlementList.push(item)
|
||||
this.childIndex = this.dataForm.salecollectionsettlementList.length - 1
|
||||
this.isEdit = true
|
||||
this.isEdit = false
|
||||
this.childIndex = -1
|
||||
},
|
||||
openSelectDialog(key) {
|
||||
this.currTableConf = this.addTableConf[key]
|
||||
this.currVmodel = key
|
||||
this.selectDialogVisible = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.selectDialog.init()
|
||||
})
|
||||
},
|
||||
addForSelect(data) {
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
let t = data[i]
|
||||
if (this['get' + this.currVmodel]) {
|
||||
this['get' + this.currVmodel](t)
|
||||
}
|
||||
}
|
||||
},
|
||||
dateTime(timeRule, timeType, timeTarget, timeValueData, dataValue) {
|
||||
let timeDataValue = null;
|
||||
let timeValue = Number(timeValueData)
|
||||
if (timeRule) {
|
||||
if (timeType == 1) {
|
||||
timeDataValue = timeValue
|
||||
} else if (timeType == 2) {
|
||||
timeDataValue = dataValue
|
||||
} else if (timeType == 3) {
|
||||
timeDataValue = new Date().getTime()
|
||||
} else if (timeType == 4) {
|
||||
let previousDate = '';
|
||||
if (timeTarget == 1 || timeTarget == 2) {
|
||||
previousDate = getDateDay(timeTarget, timeType, timeValue)
|
||||
timeDataValue = new Date(previousDate).getTime()
|
||||
} else if (timeTarget == 3) {
|
||||
previousDate = getBeforeData(timeValue)
|
||||
timeDataValue = new Date(previousDate).getTime()
|
||||
} else {
|
||||
timeDataValue = getBeforeTime(timeTarget, timeValue).getTime()
|
||||
}
|
||||
} else if (timeType == 5) {
|
||||
let previousDate = '';
|
||||
if (timeTarget == 1 || timeTarget == 2) {
|
||||
previousDate = getDateDay(timeTarget, timeType, timeValue)
|
||||
timeDataValue = new Date(previousDate).getTime()
|
||||
} else if (timeTarget == 3) {
|
||||
previousDate = getLaterData(timeValue)
|
||||
timeDataValue = new Date(previousDate).getTime()
|
||||
} else {
|
||||
timeDataValue = getLaterTime(timeTarget, timeValue).getTime()
|
||||
}
|
||||
}
|
||||
}
|
||||
return timeDataValue;
|
||||
},
|
||||
time(timeRule, timeType, timeTarget, timeValue, formatType, dataValue) {
|
||||
let format = formatType == 'HH:mm' ? 'HH:mm:00' : formatType
|
||||
let timeDataValue = null
|
||||
if (timeRule) {
|
||||
if (timeType == 1) {
|
||||
timeDataValue = timeValue || '00:00:00'
|
||||
if (timeDataValue.split(':').length == 3) {
|
||||
timeDataValue = timeDataValue
|
||||
} else {
|
||||
timeDataValue = timeDataValue + ':00'
|
||||
}
|
||||
} else if (timeType == 2) {
|
||||
timeDataValue = dataValue
|
||||
} else if (timeType == 3) {
|
||||
timeDataValue = this.jnpf.toDate(new Date(), format)
|
||||
} else if (timeType == 4) {
|
||||
let previousDate = '';
|
||||
previousDate = getBeforeTime(timeTarget, timeValue)
|
||||
timeDataValue = this.jnpf.toDate(previousDate, format)
|
||||
} else if (timeType == 5) {
|
||||
let previousDate = '';
|
||||
previousDate = getLaterTime(timeTarget, timeValue)
|
||||
timeDataValue = this.jnpf.toDate(previousDate, format)
|
||||
}
|
||||
}
|
||||
return timeDataValue;
|
||||
},
|
||||
dataList() {
|
||||
var _data = this.dataForm;
|
||||
return _data;
|
||||
},
|
||||
dataInfo(dataAll) {
|
||||
let _dataAll = dataAll
|
||||
this.dataForm = _dataAll
|
||||
this.isEdit = true
|
||||
this.dataAll()
|
||||
for (let i = 0; i < _dataAll.salecollectionsettlementList.length; i++) {
|
||||
this.childIndex = i
|
||||
}
|
||||
this.childIndex = -1
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
@ -0,0 +1,171 @@
|
||||
<template>
|
||||
<el-dialog title="选择结算单" :close-on-click-modal="false" :visible.sync="visible" class="JNPF-dialog JNPF-dialog_center"
|
||||
lock-scroll append-to-body width="800px">
|
||||
<el-row class="JNPF-common-search-box" :gutter="16">
|
||||
<el-form @submit.native.prevent>
|
||||
<el-col :span="10">
|
||||
<el-form-item label="关键字">
|
||||
<el-input v-model="keyword" placeholder="请输入关键字查询" clearable @keyup.enter.native="search()" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="search()">{{ $t('common.search') }}
|
||||
</el-button>
|
||||
<el-button icon="el-icon-refresh-right" @click="refresh()">{{ $t('common.reset') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-form>
|
||||
<div class="JNPF-common-search-box-right">
|
||||
<el-tooltip effect="dark" :content="$t('common.refresh')" placement="top">
|
||||
<el-link icon="icon-ym icon-ym-Refresh JNPF-common-head-icon" :underline="false" @click="search()" />
|
||||
</el-tooltip>
|
||||
</div>
|
||||
</el-row>
|
||||
<JNPF-table v-loading="listLoading" :data="list" hasC @selection-change="handleSelectionChange" :border="false">
|
||||
<el-table-column prop="code" label="单据编号" align="center" width="200">
|
||||
</el-table-column>
|
||||
<el-table-column prop="settlementSubjectName" label="结算主体名称" align="center" width="250">
|
||||
</el-table-column>
|
||||
<el-table-column prop="settlementSum" label="结算数量" align="center" width="150">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="paymentAmount" label="已付金额" align="center" width="150">
|
||||
</el-table-column>
|
||||
<el-table-column prop="prepaidDeductionAmount" label="预付抵扣" align="center" width="150">
|
||||
</el-table-column>
|
||||
<el-table-column prop="returnAmount" label="退回金额" align="center" width="150">
|
||||
</el-table-column> -->
|
||||
<el-table-column prop="settlableAmount" label="可结金额" align="center" width="150">
|
||||
</el-table-column>
|
||||
<el-table-column prop="applyAmount" label="已申请金额" align="center" width="150">
|
||||
</el-table-column>
|
||||
<el-table-column prop="applyState" label="申请状态" align="center" width="150">
|
||||
</el-table-column>
|
||||
<el-table-column prop="businessType" label="业务类型" width="150" align="center">
|
||||
<template slot-scope="scope" v-if="!scope.row.top">
|
||||
<el-tag type="warning" v-if="scope.row.businessType==1">采购订单</el-tag>
|
||||
<el-tag type="success" v-else-if="scope.row.businessType==2">采购退供</el-tag>
|
||||
<el-tag type="danger" v-else-if="scope.row.businessType==3">销售订单</el-tag>
|
||||
<el-tag type="info" v-else-if="scope.row.businessType==4">销售退供</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="realName" label="创建用户" align="center" width="150">
|
||||
</el-table-column>
|
||||
</JNPF-table>
|
||||
<pagination :total="total" :page.sync="listQuery.currentPage" :limit.sync="listQuery.pageSize" @pagination="init" />
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="visible = false">{{ $t('common.cancelButton') }}</el-button>
|
||||
<el-button type="primary" @click="select()">{{ $t('common.confirmButton') }}</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import request from '@/utils/request'
|
||||
import {
|
||||
GoodsList
|
||||
} from '@/api/extend/order'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
listLoading: true,
|
||||
keyword: '',
|
||||
list: [],
|
||||
total: 0,
|
||||
listQuery: {
|
||||
superQueryJson: '',
|
||||
currentPage: 1,
|
||||
pageSize: 20,
|
||||
sort: "desc",
|
||||
sidx: "",
|
||||
},
|
||||
excludeIdList: [],
|
||||
custCode: '',
|
||||
orgId: '',
|
||||
checked: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
init(excludeIdList, custCode, orgId) {
|
||||
this.visible = true
|
||||
this.listLoading = true
|
||||
if (excludeIdList && excludeIdList instanceof Array) {
|
||||
this.excludeIdList = excludeIdList;
|
||||
}
|
||||
if (custCode && typeof(custCode) == 'string') {
|
||||
this.custCode = custCode;
|
||||
}
|
||||
if (orgId && typeof(orgId) == 'string') {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
let query = {
|
||||
...this.listQuery,
|
||||
keyword: this.keyword,
|
||||
excludeIdList: this.excludeIdList,
|
||||
custCode: this.custCode,
|
||||
orgId: this.orgId,
|
||||
applyState: '未申请,部分申请',
|
||||
dataType: 0,
|
||||
type: 2,
|
||||
menuId: '532534180186188741',
|
||||
queryFlowTaskPass: '1'//查询审批通过的
|
||||
}
|
||||
/* GoodsList(query).then(res => {
|
||||
this.list = res.data.list
|
||||
this.listLoading = false
|
||||
}) */
|
||||
request({
|
||||
url: `/api/scm/Cwsettlement/getList`,
|
||||
method: 'post',
|
||||
data: query
|
||||
}).then(res => {
|
||||
this.list = res.data.list
|
||||
this.listLoading = false
|
||||
this.total = res.data.pagination.total
|
||||
})
|
||||
},
|
||||
refresh() {
|
||||
this.keyword = ''
|
||||
this.listQuery.currentPage = 1
|
||||
this.listQuery.pageSize = 20
|
||||
this.listQuery.sort = "desc"
|
||||
this.listQuery.sidx = ""
|
||||
this.init()
|
||||
},
|
||||
search() {
|
||||
this.listQuery.currentPage = 1
|
||||
this.listQuery.pageSize = 20
|
||||
this.listQuery.sort = "desc"
|
||||
this.listQuery.sidx = ""
|
||||
this.init()
|
||||
},
|
||||
select() {
|
||||
if (!this.checked.length) return
|
||||
this.visible = false
|
||||
this.$emit('refreshDataList', this.checked)
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.checked = val
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
>>>.el-dialog__body {
|
||||
height: 70vh;
|
||||
padding: 0 0 10px !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
.JNPF-common-search-box {
|
||||
margin-bottom: 0;
|
||||
|
||||
.JNPF-common-search-box-right {
|
||||
padding: 10px 10px 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue