You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
606 lines
23 KiB
606 lines
23 KiB
<template>
|
|
<div class="app-container">
|
|
<!--列表页面-->
|
|
<div v-show="viewState == 1">
|
|
<button-bar view-title="融资平仓付款管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
|
|
<!--Start查询列表部分-->
|
|
<div class="main-content">
|
|
<div class="searchcon">
|
|
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
|
|
<div v-show="isSearchShow" class="search">
|
|
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
|
|
<el-form-item label="付款单位">
|
|
<el-input v-model="listQuery.params.payCompany" placeholder="" clearable/>
|
|
</el-form-item>
|
|
<el-form-item label="款项名称">
|
|
<el-input v-model="listQuery.params.costTitleValue" placeholder="" clearable/>
|
|
</el-form-item>
|
|
<el-form-item label="收款单位">
|
|
<el-input v-model="listQuery.params.receiveCompany" placeholder="" clearable/>
|
|
</el-form-item>
|
|
<el-form-item label="期数">
|
|
<el-input v-model="listQuery.params.period" placeholder="" clearable/>
|
|
</el-form-item>
|
|
<el-form-item label="开通日期">
|
|
<el-date-picker v-model="listQuery.params.openStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
|
|
<span style="padding: 0 8px">至</span>
|
|
<el-date-picker v-model="listQuery.params.openEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
|
|
</el-form-item>
|
|
<el-form-item label="付款日期">
|
|
<el-date-picker v-model="listQuery.params.exePayStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
|
|
<span style="padding: 0 8px">至</span>
|
|
<el-date-picker v-model="listQuery.params.exePayEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
|
|
</el-form-item>
|
|
</el-form>
|
|
<div class="btn" style="text-align: center;">
|
|
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
|
|
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--End查询列表部分-->
|
|
<div class="listtop">
|
|
<div class="tit">融资平仓款列表</div>
|
|
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
|
|
</div>
|
|
<!--Start 主页面主要部分 -->
|
|
<div class="">
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange">
|
|
<el-table-column fixed type="selection" align="center" width="50" />
|
|
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center" />
|
|
<el-table-column fixed label="操作" width="180" align="center">
|
|
<template slot-scope="scope">
|
|
<el-button type="primary" size="mini" @click="toEdit(scope.row)">编辑</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column prop="costTitleValue" label="款项名称" align="center" width="140" />
|
|
<el-table-column prop="openDate" label="融资付款开通日期" align="center" width="160" />
|
|
<el-table-column prop="period" label="期数" align="center" width="100" />
|
|
<el-table-column prop="payCompany" label="付款单位" align="center" width="140" />
|
|
<el-table-column prop="receiveCompany" label="收款单位名称" align="center" width="140" />
|
|
<el-table-column prop="bank" label="开户行" align="center" width="140" />
|
|
<el-table-column prop="receivingAccount" label="银行账号" align="center" width="140" />
|
|
<el-table-column prop="exePayDate" label="平仓付款日期" align="center" width="140" />
|
|
<el-table-column prop="exePayPrice" label="平仓付款金额" align="center" width="140" />
|
|
<el-table-column prop="remarks" label="备注" align="center" min-width="200" />
|
|
</el-table>
|
|
</div>
|
|
<!--End 主页面主要部分-->
|
|
<div class="pages">
|
|
<div class="tit"/>
|
|
<!-- 翻页 -->
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
|
|
</div>
|
|
<!--End查询列表部分-->
|
|
</div>
|
|
</div>
|
|
<!-- 新增、编辑融资平仓付款信息 -->
|
|
<el-dialog center :visible.sync="dialogVisible" width="70%" :show-close="false">
|
|
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
|
|
<el-row style="border-top: 1px solid #E0E3EB">
|
|
<el-col :span="12">
|
|
<div class="span-sty">款项名称</div>
|
|
<el-select class="addinputInfo" v-model="formobj.costTitleValue" placeholder="请选择" @change="changeCostTitle" filterable clearable>
|
|
<el-option v-for="item in costTitle_list" :key="item.detailSid" :label="item.closFundName" :value="item.closFundName"/>
|
|
</el-select>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<div class="span-sty">期数</div>
|
|
<el-form-item><el-input class="addinputInfo addinputw" @keyup.native="formobj.period = getNumber(formobj.period, 0)" v-model="formobj.period" clearable placeholder="" /></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<div class="span-sty">平仓付款日期</div>
|
|
<el-form-item><el-date-picker class="addinputInfo" v-model="formobj.exePayDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期" /></el-form-item>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<div class="span-sty">平仓付款金额</div>
|
|
<el-form-item><el-input class="addinputInfo addinputw" @keyup.native="formobj.exePayPrice = getNumber(formobj.exePayPrice, 2)" v-model="formobj.exePayPrice" clearable placeholder="" /></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<div class="span-sty">付款单位</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.payCompany }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<div class="span-sty">收款单位</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.receiveCompany }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<div class="span-sty">开户行</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.bank }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<div class="span-sty">收款银行账号</div>
|
|
<el-form-item>
|
|
<el-select class="addinputInfo" v-model="formobj.receivingAccount" placeholder="请选择" clearable filterable>
|
|
<el-option v-for="item in receivingAccount_list" :key="item.sid" :label="item.receivingAccount" :value="item.receivingAccount"></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty">备注</div>
|
|
<el-form-item><el-input class="addinputInfo addinputw" v-model="formobj.remarks" clearable placeholder="" /></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer" style="text-align: center">
|
|
<el-button type="primary" size="small" @click="handleConfirm">确定</el-button>
|
|
<el-button size="small" @click="handleClose">取消</el-button>
|
|
</div>
|
|
</el-dialog>
|
|
<!-- 修改融资付款开通日期 -->
|
|
<el-dialog :visible.sync="dialogVisibleByDate" width="50%" :show-close="false">
|
|
<el-form ref="temp_obj" :model="tempobj" :rules="rules" class="formaddcopy02">
|
|
<el-row style="border-top: 1px solid #E0E3EB">
|
|
<el-col :span="24">
|
|
<div class="span-sty">付款开通日期</div>
|
|
<el-date-picker class="addinputInfo" v-model="tempobj.openDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
|
|
</el-col>
|
|
</el-row>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer" style="text-align: center">
|
|
<el-button type="primary" size="small" @click="handleDateConfirm">确定</el-button>
|
|
<el-button size="small" @click="handleDateClose">取消</el-button>
|
|
</div>
|
|
</el-dialog>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Pagination from '@/components/pagination'
|
|
import pageye from '@/components/pagination/pageye'
|
|
import ButtonBar from '@/components/ButtonBar'
|
|
import req from '@/api/anruifinmanagement/financingClosingPayment'
|
|
import payment from '@/api/anruifinmanagement/payment'
|
|
import { getOrgSidByPath, fetchBySid } from '@/api/jichuxinxi/dictcommons'
|
|
|
|
export default {
|
|
name: 'FinancingClosingPayment',
|
|
components: {
|
|
Pagination,
|
|
pageye,
|
|
ButtonBar
|
|
},
|
|
data() {
|
|
return {
|
|
dialogVisible: false,
|
|
dialogVisibleByDate: false,
|
|
tempobj: {
|
|
openDate: '',
|
|
detailSid: ''
|
|
},
|
|
costTitle_list: [],
|
|
payCompany_list: [],
|
|
receiveCompany_list: [],
|
|
receivingAccount_list: [],
|
|
formobj: {
|
|
sid: '', // sid
|
|
remarks: '',
|
|
costTitleValue: '', // 款项名称
|
|
costTypeKey: '',
|
|
costTypeValue: '',
|
|
detailSid: '', // 付款申请明细的明细sid
|
|
period: '', // 期数
|
|
payCompanySid: '', // 付款单位sid
|
|
payCompany: '', // 付款单位名称
|
|
receiveCompany: '', // 收款单位名称
|
|
receiveCompanySid: '', // 收款单位sid
|
|
receivingAccount: '', // 收款银行账号
|
|
bank: '', // 开户行
|
|
exePayDate: '',
|
|
exePayPrice: '',
|
|
deptSid: '', // 申请部门sid
|
|
deptName: '', // 申请部门名称
|
|
createOrgSid: '', // 创建组织
|
|
createOrgName: '',
|
|
useOrgSid: '', // 使用组织
|
|
useOrgName: '',
|
|
createBySid: '', // 创建人
|
|
createByName: ''
|
|
},
|
|
rules: {},
|
|
btndisabled: false,
|
|
btnList: [
|
|
{
|
|
type: 'primary',
|
|
size: 'small',
|
|
icon: 'plus',
|
|
btnKey: 'toAdd',
|
|
btnLabel: '新增'
|
|
},
|
|
{
|
|
type: 'primary',
|
|
size: 'small',
|
|
icon: '',
|
|
btnKey: 'toEditByDate',
|
|
btnLabel: '编辑融资付款开通日期'
|
|
},
|
|
{
|
|
type: 'danger',
|
|
size: 'small',
|
|
icon: 'del',
|
|
btnKey: 'doDel',
|
|
btnLabel: '删除'
|
|
},
|
|
{
|
|
type: 'info',
|
|
size: 'small',
|
|
icon: 'cross',
|
|
btnKey: 'doClose',
|
|
btnLabel: '关闭'
|
|
}
|
|
],
|
|
isSearchShow: false,
|
|
searchxianshitit: '显示查询条件',
|
|
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看
|
|
tableKey: 0,
|
|
list: [],
|
|
sids: [], // 用于导出的时候保存已选择的SIDs
|
|
multipleSelection: [],
|
|
listLoading: false,
|
|
// 翻页
|
|
listQuery: {
|
|
current: 1,
|
|
size: 5,
|
|
total: 0,
|
|
params: {
|
|
payCompany: '',
|
|
openStartDate: '',
|
|
openEndDate: '',
|
|
costTitleValue: '',
|
|
receiveCompany: '',
|
|
exePayStartDate: '',
|
|
exePayEndDate: '',
|
|
period: '',
|
|
remarks: '',
|
|
state: '',
|
|
orgPath: '',
|
|
userSid: '',
|
|
menuUrl: ''
|
|
}
|
|
}
|
|
}
|
|
},
|
|
created() {
|
|
// 初始化变量
|
|
this.getList()
|
|
},
|
|
mounted() {
|
|
this.$refs['btnbar'].setButtonList(this.btnList)
|
|
},
|
|
methods: {
|
|
getNumber(val, limit) {
|
|
val = val.replace(/[^0-9.]/g, '') // 保留数字
|
|
val = val.replace(/^00/, '0.') // 开头不能有两个0
|
|
val = val.replace(/^\./g, '0.') // 开头为小数点转换为0.
|
|
val = val.replace(/\.{2,}/g, '.') // 两个以上的小数点转换成一个
|
|
val = val.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.'); // 只保留一个小数点
|
|
/^0\d+/.test(val) ? val = val.slice(1) : '' // 两位以上数字开头不能为0
|
|
const str = '^(\\d+)\\.(\\d{' + limit + '}).*$'
|
|
const reg = new RegExp(str)
|
|
if (limit === 0) {
|
|
// 不需要小数点
|
|
val = val.replace(reg, '$1')
|
|
} else {
|
|
// 通过正则保留小数点后指定的位数
|
|
val = val.replace(reg, '$1.$2')
|
|
}
|
|
return val
|
|
},
|
|
// 搜索条件效果
|
|
clicksearchShow() {
|
|
this.isSearchShow = !this.isSearchShow
|
|
if (this.isSearchShow) {
|
|
this.searchxianshitit = '隐藏查询条件'
|
|
} else {
|
|
this.searchxianshitit = '显示查询条件'
|
|
}
|
|
},
|
|
btnHandle(btnKey) {
|
|
console.log('XXXXXXXXXXXXXXX ' + btnKey)
|
|
switch (btnKey) {
|
|
case 'toAdd':
|
|
this.toAdd()
|
|
break
|
|
case 'toEditByDate':
|
|
this.toEditByDate()
|
|
break
|
|
case 'doDel':
|
|
this.doDel()
|
|
break
|
|
case 'doClose':
|
|
this.doClose()
|
|
break
|
|
default:
|
|
break
|
|
}
|
|
},
|
|
// 信息条数 获取点击时当前的sid
|
|
handleSelectionChange(row) {
|
|
this.multipleSelection = row
|
|
const aa = []
|
|
row.forEach(element => {
|
|
aa.push(element.sid)
|
|
})
|
|
this.sids = aa
|
|
},
|
|
// 表中序号
|
|
indexMethod(index) {
|
|
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
|
|
var pageindex = index + 1 + pagestart
|
|
return pageindex
|
|
},
|
|
// 查询列表信息
|
|
getList() {
|
|
this.listLoading = true
|
|
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
|
|
this.listQuery.params.menuUrl = this.$route.path
|
|
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
|
|
req.listPage(this.listQuery).then(response => {
|
|
this.listLoading = false
|
|
if (response.success) {
|
|
this.list = response.data.records
|
|
this.listQuery.total = response.data.total
|
|
} else {
|
|
this.list = []
|
|
this.listQuery.total = 0
|
|
}
|
|
})
|
|
},
|
|
// 查询按钮
|
|
handleFilter() {
|
|
this.listQuery.current = 1
|
|
this.getList()
|
|
},
|
|
// 点击重置
|
|
handleReset() {
|
|
this.listQuery = {
|
|
current: 1,
|
|
size: 5,
|
|
total: 0,
|
|
params: {
|
|
payCompany: '',
|
|
openStartDate: '',
|
|
openEndDate: '',
|
|
costTitleValue: '',
|
|
receiveCompany: '',
|
|
exePayStartDate: '',
|
|
exePayEndDate: '',
|
|
period: '',
|
|
remarks: '',
|
|
state: '',
|
|
orgPath: '',
|
|
userSid: '',
|
|
menuUrl: ''
|
|
}
|
|
}
|
|
this.getList()
|
|
},
|
|
toAdd() {
|
|
this.dialogVisible = true
|
|
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => {
|
|
if (resp.success) {
|
|
this.formobj.createOrgSid = resp.data
|
|
this.formobj.useOrgSid = resp.data
|
|
fetchBySid(resp.data).then((respsone) => {
|
|
if (respsone.success) {
|
|
this.formobj.createOrgName = respsone.data.name
|
|
this.formobj.useOrgName = respsone.data.name
|
|
}
|
|
})
|
|
payment.selClosFundName({ useOrgSid: resp.data }).then((res) => {
|
|
if (res.success) {
|
|
this.costTitle_list = res.data
|
|
}
|
|
})
|
|
payment.selectByUseOrgSid({ useOrgSid: resp.data }).then((res) => {
|
|
if (res.success) {
|
|
this.receiveCompany_list = res.data
|
|
}
|
|
})
|
|
}
|
|
})
|
|
this.$nextTick(() => {
|
|
this.$refs['form_obj'].clearValidate()
|
|
})
|
|
},
|
|
toEdit(row) {
|
|
this.dialogVisible = true
|
|
this.$nextTick(() => {
|
|
this.$refs['form_obj'].clearValidate()
|
|
})
|
|
req.fetchBySid(row.sid).then((res) => {
|
|
if (res.success) {
|
|
this.formobj = res.data
|
|
payment.selClosFundName({ useOrgSid: this.formobj.useOrgSid }).then((res) => {
|
|
if (res.success) {
|
|
this.costTitle_list = res.data
|
|
}
|
|
})
|
|
payment.selectByUseOrgSid({ useOrgSid: this.formobj.useOrgSid }).then((res) => {
|
|
if (res.success) {
|
|
this.receiveCompany_list = res.data
|
|
this.receivingAccount_list = []
|
|
this.receiveCompany_list.forEach((e) => {
|
|
if (e.companyName === this.formobj.receiveCompany && e.bank === this.formobj.bank) {
|
|
this.receivingAccount_list.push({
|
|
receivingAccount: e.receivingAccount,
|
|
sid: e.detailSid
|
|
})
|
|
}
|
|
})
|
|
}
|
|
})
|
|
}
|
|
})
|
|
},
|
|
changeCostTitle(value) {
|
|
const choose = this.costTitle_list.filter((item) => item.closFundName === value)
|
|
if (choose.length > 0 && choose !== null) {
|
|
this.formobj.detailSid = choose[0].detailSid
|
|
this.formobj.payCompany = choose[0].payCompany
|
|
this.formobj.payCompanySid = choose[0].payCompanySid
|
|
this.formobj.receiveCompanySid = choose[0].receiveCompanySid
|
|
this.formobj.receiveCompany = choose[0].receiveCompany
|
|
this.formobj.bank = choose[0].bank
|
|
this.formobj.receivingAccount = choose[0].receivingAccount
|
|
this.receivingAccount_list = []
|
|
this.receiveCompany_list.forEach((e) => {
|
|
if (e.companyName === this.formobj.receiveCompany && e.bank === this.formobj.bank) {
|
|
this.receivingAccount_list.push({
|
|
receivingAccount: e.receivingAccount,
|
|
sid: e.detailSid
|
|
})
|
|
}
|
|
})
|
|
} else {
|
|
this.formobj.detailSid = ''
|
|
this.formobj.payCompany = ''
|
|
this.formobj.payCompanySid = ''
|
|
this.formobj.receiveCompanySid = ''
|
|
this.formobj.receiveCompany = ''
|
|
this.formobj.bank = ''
|
|
this.formobj.receivingAccount = ''
|
|
this.receivingAccount_list = []
|
|
}
|
|
},
|
|
handleConfirm() {
|
|
this.formobj.createBySid = window.sessionStorage.getItem('userSid')
|
|
this.formobj.name = window.sessionStorage.getItem('name')
|
|
this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1)
|
|
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1)
|
|
this.$refs['form_obj'].validate((valid) => {
|
|
if (valid) {
|
|
req.saveOrUpdate(this.formobj).then((resp) => {
|
|
if (resp.success) {
|
|
this.$message({ showClose: true, type: 'success', message: '保存成功' })
|
|
this.getList()
|
|
this.handleClose()
|
|
}
|
|
})
|
|
}
|
|
})
|
|
},
|
|
handleClose() {
|
|
this.dialogVisible = false
|
|
this.$refs['form_obj'].resetFields()
|
|
this.formobj = {
|
|
sid: '', // sid
|
|
remarks: '',
|
|
costTitleValue: '', // 款项名称
|
|
costTypeKey: '',
|
|
costTypeValue: '',
|
|
detailSid: '', // 付款申请明细的明细sid
|
|
period: '', // 期数
|
|
payCompanySid: '', // 付款单位sid
|
|
payCompany: '', // 付款单位名称
|
|
receiveCompany: '', // 收款单位名称
|
|
receiveCompanySid: '', // 收款单位sid
|
|
receivingAccount: '', // 收款银行账号
|
|
bank: '', // 开户行
|
|
exePayDate: '',
|
|
exePayPrice: '',
|
|
deptSid: '', // 申请部门sid
|
|
deptName: '', // 申请部门名称
|
|
createOrgSid: '', // 创建组织
|
|
createOrgName: '',
|
|
useOrgSid: '', // 使用组织
|
|
useOrgName: '',
|
|
createBySid: '', // 创建人
|
|
createByName: ''
|
|
}
|
|
},
|
|
toEditByDate() {
|
|
if (this.multipleSelection.length === 1) {
|
|
this.dialogVisibleByDate = true
|
|
this.$nextTick(() => {
|
|
this.$refs['temp_obj'].clearValidate()
|
|
})
|
|
this.tempobj.openDate = this.multipleSelection[0].openDate
|
|
} else {
|
|
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
|
|
}
|
|
},
|
|
handleDateConfirm() {
|
|
this.tempobj.detailSid = this.multipleSelection[0].detailSid
|
|
this.$refs['temp_obj'].validate((valid) => {
|
|
if (valid) {
|
|
req.updateOpenDate({ sid: this.tempobj.detailSid, openDate: this.tempobj.openDate }).then((res) => {
|
|
if (res.success) {
|
|
this.$message({ showClose: true, type: 'success', message: '操作成功' })
|
|
this.handleDateClose()
|
|
this.getList()
|
|
}
|
|
})
|
|
}
|
|
})
|
|
},
|
|
handleDateClose() {
|
|
this.dialogVisibleByDate = false
|
|
this.$refs['temp_obj'].resetFields()
|
|
this.tempobj = {
|
|
openDate: '',
|
|
detailSid: ''
|
|
}
|
|
},
|
|
// 删除
|
|
doDel() {
|
|
if (this.sids.length === 0) {
|
|
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
|
|
return
|
|
}
|
|
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
|
|
this.$confirm(tip, '提示', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
}).then(() => {
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
text: 'Loading',
|
|
spinner: 'el-icon-loading',
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
})
|
|
req.delBySids(this.sids).then(resp => {
|
|
if (resp.success) {
|
|
this.$message({ type: 'success', message: resp.msg, showClose: true })
|
|
}
|
|
this.getList()
|
|
loading.close()
|
|
}).catch(e => {
|
|
loading.close()
|
|
})
|
|
}).catch(() => {
|
|
})
|
|
},
|
|
doClose() {
|
|
this.$store.dispatch('tagsView/delView', this.$route)
|
|
this.$router.go(-1)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped>
|
|
.span-sty {
|
|
width: 140px !important;
|
|
}
|
|
.addinputInfo {
|
|
margin-left: 135px !important;
|
|
}
|
|
/deep/ .el-form-item__error {
|
|
margin-left: 135px !important;
|
|
}
|
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
|
|
margin-left: 135px !important;
|
|
width: calc(100% - 130px);
|
|
}
|
|
</style>
|
|
|