Commit 8fb72fbb authored by 李苏's avatar 李苏 💬

changeExcelParams自定义调整excel的参数

parent e0ae09ba
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class=" higher flex-column"> <div class=" higher flex-column">
<!-- 分层--> <!-- 分层-->
<div class="top"> <div class="top">
<Top @getRow='topGetRow' ref="top"></Top> <Top :app='this' @getRow='topGetRow' ref="top"></Top>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="full" > <div class="full" >
......
<template> <template>
<BasePage @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> <BasePage :changeExcelParams='changeExcelParams' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
...@@ -191,7 +191,27 @@ ...@@ -191,7 +191,27 @@
}, },
methods: { methods: {
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams(params) {
let fields = JSON.parse(params.fields)
let expandTitle = this.$attrs.app.$refs.mx.$refs.basePage.tableTitle
let newExpandTitle = []
expandTitle.forEach((item, index) => {
let newObj = {
caption: item.label,
name: item.prop,
width: item.width
}
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
params.fields = JSON.stringify(fields)
},
qr(ctx) { qr(ctx) {
if (ctx.singleItem && ctx.singleItem.id) { if (ctx.singleItem && ctx.singleItem.id) {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class=" higher flex-column"> <div class=" higher flex-column">
<!-- 分层--> <!-- 分层-->
<div class="top"> <div class="top">
<Top @getRow='topGetRow' ref="top"></Top> <Top :app='this' @getRow='topGetRow' ref="top"></Top>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="full" > <div class="full" >
......
<template> <template>
<BasePage ref="basePage" @beforeEdit='beforeEdit' @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> <BasePage :changeExcelParams='changeExcelParams' ref="basePage" @beforeEdit='beforeEdit' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Tbwl :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步领料单'" /> <Tbwl :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='同步领料单'" />
...@@ -201,6 +201,27 @@ ...@@ -201,6 +201,27 @@
}, },
methods: { methods: {
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams(params) {
let fields = JSON.parse(params.fields)
let expandTitle = this.$attrs.app.$refs.mx.$refs.basePage.tableTitle
let newExpandTitle = []
expandTitle.forEach((item, index) => {
let newObj = {
caption: item.label,
name: item.prop,
width: item.width
}
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
params.fields = JSON.stringify(fields)
},
beforeEdit(val) { beforeEdit(val) {
let { let {
row, row,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class=" higher flex-column"> <div class=" higher flex-column">
<!-- 分层--> <!-- 分层-->
<div class="top"> <div class="top">
<Top @getRow='topGetRow' ref="top"></Top> <Top :app='this' @getRow='topGetRow' ref="top"></Top>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="full" > <div class="full" >
......
<template> <template>
<BasePage ref="basePage" @beforeEdit='beforeEdit' :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> <BasePage :changeExcelParams='changeExcelParams' ref="basePage" @beforeEdit='beforeEdit' :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Akck :type="'add'" v-if="ctx.basePage.showAdd&&showName=='akck'" :app='ctx.basePage' :buttonApp='ctx.basePage' /> <Akck :type="'add'" v-if="ctx.basePage.showAdd&&showName=='akck'" :app='ctx.basePage' :buttonApp='ctx.basePage' />
...@@ -190,6 +190,27 @@ ...@@ -190,6 +190,27 @@
}, },
methods: { methods: {
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams(params) {
let fields = JSON.parse(params.fields)
let expandTitle = this.$attrs.app.$refs.ckdmx.$refs.basePage.tableTitle
let newExpandTitle = []
expandTitle.forEach((item, index) => {
let newObj = {
caption: item.label,
name: item.prop,
width: item.width
}
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
params.fields = JSON.stringify(fields)
},
beforeEdit(val) { beforeEdit(val) {
let { let {
row, row,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class=" higher flex-column"> <div class=" higher flex-column">
<!-- 分层--> <!-- 分层-->
<div class="top"> <div class="top">
<Top @getRow='topGetRow' ref="top"></Top> <Top :app='this' @getRow='topGetRow' ref="top"></Top>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="full" > <div class="full" >
......
<template> <template>
<BasePage class="min_full" @getRow='getRow' ref="basePage" style="height: 100%;" :config="config"> <BasePage :changeExcelParams='changeExcelParams' class="min_full" @getRow='getRow' ref="basePage" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Xzgw @saveGw='saveGw' :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='选择工位'" /> <Xzgw @saveGw='saveGw' :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='选择工位'" />
...@@ -141,6 +141,27 @@ ...@@ -141,6 +141,27 @@
}, },
methods: { methods: {
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams(params) {
let fields = JSON.parse(params.fields)
let expandTitle = this.$attrs.app.$refs.mx.$refs.basePage.tableTitle
let newExpandTitle = []
expandTitle.forEach((item, index) => {
let newObj = {
caption: item.label,
name: item.prop,
width: item.width
}
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
params.fields = JSON.stringify(fields)
},
saveGw(form) { saveGw(form) {
let ctx = this.$refs.basePage let ctx = this.$refs.basePage
this.$post('lxyl/kcgl/kcpd/lkxj', { this.$post('lxyl/kcgl/kcpd/lkxj', {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class=" higher flex-column"> <div class=" higher flex-column">
<!-- 分层--> <!-- 分层-->
<div class="top"> <div class="top">
<Top @getRow='topGetRow' ref="top"></Top> <Top :app='this' @getRow='topGetRow' ref="top"></Top>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="full" > <div class="full" >
......
<template> <template>
<BasePage :toolButtonConfig="{ <BasePage :changeExcelParams='changeExcelParams' :toolButtonConfig="{
showExcel:false, showExcel:true,
showPrint:false, showPrint:false,
showField:true showField:true
}" addRename='装包' :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config"> }" addRename='装包' :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
...@@ -159,6 +159,27 @@ ...@@ -159,6 +159,27 @@
}, },
methods: { methods: {
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams(params) {
let fields = JSON.parse(params.fields)
let expandTitle = this.$attrs.app.$refs.mx.$refs.basePage.tableTitle
let newExpandTitle = []
expandTitle.forEach((item, index) => {
let newObj = {
caption: item.label,
name: item.prop,
width: item.width
}
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
params.fields = JSON.stringify(fields)
},
qxwc(ctx) { qxwc(ctx) {
if (ctx.singleItem && ctx.singleItem.id) { if (ctx.singleItem && ctx.singleItem.id) {
this.$post('lxyl/rkgl/bzzy/cancelComplete', { this.$post('lxyl/rkgl/bzzy/cancelComplete', {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class=" higher flex-column"> <div class=" higher flex-column">
<!-- 分层--> <!-- 分层-->
<div class="top"> <div class="top">
<Top @getRow='topGetRow' ref="top"></Top> <Top :app='this' @getRow='topGetRow' ref="top"></Top>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="full" > <div class="full" >
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
}, },
rkdmxGetRow(row){ rkdmxGetRow(row){
let mid = row.id let mid = row.id
} }
} }
......
<template> <template>
<BasePage @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config"> <BasePage :changeExcelParams='changeExcelParams' @getRow='getRow' :power='power' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template> </template>
...@@ -202,6 +202,27 @@ ...@@ -202,6 +202,27 @@
}, },
methods: { methods: {
/**
* @description: 调整excel传递的参数
* @param {Object} params
* @return {*}
* @author: lisu
*/
changeExcelParams(params) {
let fields = JSON.parse(params.fields)
let expandTitle = this.$attrs.app.$refs.rkdmx.$refs.basePage.tableTitle
let newExpandTitle = []
expandTitle.forEach((item, index) => {
let newObj = {
caption: item.label,
name: item.prop,
width: item.width
}
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
params.fields = JSON.stringify(fields)
},
/* 示例*/ /* 示例*/
getRow(val){ getRow(val){
this.$emit('getRow',val) this.$emit('getRow',val)
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div class="outer"> <div class="outer">
<div class=" higher flex-column"> <div class=" higher flex-column">
<!-- 分层--> <!-- 分层-->
<div class="top"> <div class="top">
<Top @getRow='topGetRow' ref="top"></Top> <Top :app='this' @getRow='topGetRow' ref="top"></Top>
</div> </div>
<div class="bottom flex"> <div class="bottom flex">
<div class="full" > <div class="full" >
......
<template> <template>
<BasePage <BasePage :changeExcelParams='changeExcelParams' @getRow="getRow" class="min_full" style="height: 100%"
@getRow="getRow" :config="config">
class="min_full"
style="height: 100%"
:config="config"
>
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Shd <Shd v-if="
v-if="
ctx.basePage.showDialog && ctx.basePage.DialogTitle == '同步送货单' ctx.basePage.showDialog && ctx.basePage.DialogTitle == '同步送货单'
" " :app="ctx.basePage" />
:app="ctx.basePage" <Dbrktb v-if="
/>
<Dbrktb
v-if="
ctx.basePage.showDialog && ctx.basePage.showDialog &&
ctx.basePage.DialogTitle == '同步生产入库单' ctx.basePage.DialogTitle == '同步生产入库单'
" " :app="ctx.basePage" />
:app="ctx.basePage" <Tbcgd v-if="
/>
<Tbcgd
v-if="
ctx.basePage.showDialog && ctx.basePage.DialogTitle == '同步采购单' ctx.basePage.showDialog && ctx.basePage.DialogTitle == '同步采购单'
" " :app="ctx.basePage" />
:app="ctx.basePage" <Tbxsth v-if="
/>
<Tbxsth
v-if="
ctx.basePage.showDialog && ctx.basePage.DialogTitle == '同步销售退货' ctx.basePage.showDialog && ctx.basePage.DialogTitle == '同步销售退货'
" " :app="ctx.basePage" />
:app="ctx.basePage"
/>
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<ImportButton <ImportButton v-if="ctx.basePage.powerObj['01']" @success="
v-if="ctx.basePage.powerObj['01']"
@success="
() => { () => {
ctx.basePage.refresh(); ctx.basePage.refresh();
} }
" " :url="'/lxyl/rkgl/rktz/import'" />
:url="'/lxyl/rkgl/rktz/import'" <el-button v-if="ctx.basePage.powerObj['21']" style="margin-left: 10px" @click="qr(ctx.basePage)" size="mini"
/> type="primary">确认</el-button>
<el-button <el-button v-if="ctx.basePage.powerObj['21']" @click="qxqr(ctx.basePage)" size="mini"
v-if="ctx.basePage.powerObj['21']" type="primary">取消确认</el-button>
style="margin-left: 10px" <el-button v-if="ctx.basePage.powerObj['23']" @click="tbshd(ctx.basePage)" size="mini"
@click="qr(ctx.basePage)" type="primary">同步送货单</el-button>
size="mini" <el-button v-if="ctx.basePage.powerObj['24']" @click="dbrktb(ctx.basePage)" size="mini"
type="primary" type="primary">同步生产入库单</el-button>
>确认</el-button <el-button v-if="ctx.basePage.powerObj['25']" @click="tbcgd(ctx.basePage)" size="mini"
> type="primary">同步采购单</el-button>
<el-button <el-button v-if="ctx.basePage.powerObj['26']" @click="tbxsth(ctx.basePage)" size="mini"
v-if="ctx.basePage.powerObj['21']" type="primary">同步销售退货</el-button>
@click="qxqr(ctx.basePage)"
size="mini"
type="primary"
>取消确认</el-button
>
<el-button
v-if="ctx.basePage.powerObj['23']"
@click="tbshd(ctx.basePage)"
size="mini"
type="primary"
>同步送货单</el-button
>
<el-button
v-if="ctx.basePage.powerObj['24']"
@click="dbrktb(ctx.basePage)"
size="mini"
type="primary"
>同步生产入库单</el-button
>
<el-button
v-if="ctx.basePage.powerObj['25']"
@click="tbcgd(ctx.basePage)"
size="mini"
type="primary"
>同步采购单</el-button
>
<el-button
v-if="ctx.basePage.powerObj['26']"
@click="tbxsth(ctx.basePage)"
size="mini"
type="primary"
>同步销售退货</el-button
>
</template> </template>
</BasePage> </BasePage>
</template> </template>
<script> <script>
import Edit from "./edit.vue"; import Edit from "./edit.vue";
import Shd from "./shd.vue"; import Shd from "./shd.vue";
import Dbrktb from "./dbrktb.vue"; import Dbrktb from "./dbrktb.vue";
import Tbcgd from "./tbcgd.vue"; import Tbcgd from "./tbcgd.vue";
import Tbxsth from "./tbxsth.vue"; import Tbxsth from "./tbxsth.vue";
export default { export default {
data() { data() {
return { return {
config: { config: {
queryDetail: true, queryDetail: true,
/* 基本配置*/ /* 基本配置*/
url: "lxyl/rkgl/rktz", url: "lxyl/rkgl/rktz",
tableTitle: [ tableTitle: [{
{ title: "状态",
title: "状态", field: "zt",
field: "zt", fieldType: "ftString",
fieldType: "ftString", align: "center",
align: "center", width: 80,
width: 80, transform: {
transform: { url: "lxyl/rkgl/rktz/init/zt",
url: "lxyl/rkgl/rktz/init/zt", label: "name",
label: "name", value: "id",
value: "id", },
}, },
}, {
{ title: "入库单号",
title: "入库单号", field: "djid",
field: "djid", width: 140,
width: 140,
},
{
title: "业务日期",
field: "ywrq",
fieldType: "ftDate",
},
{
title: "工厂",
field: "hzName",
width: 140,
},
{
title: "仓库",
field: "ckName",
width: 140,
},
{
title: "事务类型",
field: "swlxName",
width: 100,
},
{
title: "仓库",
field: "ckid",
width: 140,
hidden: true,
},
{
title: "单据来源",
field: "djly",
width: 100,
transform: {
url: "lxyl/rkgl/rktz/init/djly",
label: "name",
value: "id",
}, },
},
{
title: "来源单号",
field: "lydjDjid",
width: 120
},
{
title: "备注",
field: "bz",
width: 240,
},
{
title: "维护人",
field: "whr",
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime",
},
{
title: "创建人",
field: "cjr",
},
{
title: "创建时间",
field: "cjsj",
fieldType: "ftDateTime",
}
],
queryParams: [
[
{ {
label: "日期", title: "业务日期",
startProp: "start", field: "ywrq",
endProp: "end", fieldType: "ftDate",
span: 8,
type: "RelDaterangeV2",
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
}, },
{ {
label: "仓库", title: "工厂",
prop: "ckid", field: "hzName",
span: 6, width: 140,
type: "RelSelect",
value: "",
typeConfig: {
src: "lxyl/common/ck/queryCkid",
match: {
value: "id",
label: "name",
},
},
}, },
{ {
label: "单据编号", title: "仓库",
prop: "djid", field: "ckName",
span: 6, width: 140,
type: "input",
value: "",
}, },
{ {
label: "状态", title: "事务类型",
prop: "zt", field: "swlxName",
span: 4, width: 100,
type: "RelSelect", },
typeConfig: {
src: "lxyl/rkgl/rktz/init/zt",
},
}
],
[
{ {
label: "物料信息", title: "仓库",
prop: "wlxxInfo", field: "ckid",
span: 8, width: 140,
type: "input", hidden: true,
value: "",
}, },
{ {
label: "事务类型", title: "单据来源",
prop: "swlxid", field: "djly",
span: 6, width: 100,
type: "RelSelect", transform: {
typeConfig: { url: "lxyl/rkgl/rktz/init/djly",
src: "lxyl/rkgl/rktz/init/swlx", label: "name",
value: "id",
}, },
}, },
{ {
label: "来源单号", title: "来源单号",
prop: "lydjDjid", field: "lydjDjid",
span: 6, width: 120
type: "input", },
value: "", {
title: "备注",
field: "bz",
width: 240,
}, },
{
title: "维护人",
field: "whr",
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime",
},
{
title: "创建人",
field: "cjr",
},
{
title: "创建时间",
field: "cjsj",
fieldType: "ftDateTime",
}
], ],
], queryParams: [
/* 默认启停用 */ [{
}, label: "日期",
}; startProp: "start",
}, endProp: "end",
methods: { span: 8,
tbxsth(ctx) { type: "RelDaterangeV2",
ctx.DialogWidth = "35vw"; startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
ctx.DialogTitle = "同步销售退货"; endValue: new Date().getTime(),
ctx.showDialog = true; },
}, {
tbcgd(ctx) { label: "仓库",
ctx.DialogWidth = "35vw"; prop: "ckid",
ctx.DialogTitle = "同步采购单"; span: 6,
ctx.showDialog = true; type: "RelSelect",
}, value: "",
tbshd(ctx) { typeConfig: {
ctx.DialogWidth = "35vw"; src: "lxyl/common/ck/queryCkid",
ctx.DialogTitle = "同步送货单"; match: {
ctx.showDialog = true; value: "id",
}, label: "name",
dbrktb(ctx) { },
ctx.DialogWidth = "35vw"; },
ctx.DialogTitle = "同步生产入库单"; },
ctx.showDialog = true; {
}, label: "单据编号",
getRow(val) { prop: "djid",
this.$emit("getRow", val); span: 6,
type: "input",
value: "",
},
{
label: "状态",
prop: "zt",
span: 4,
type: "RelSelect",
typeConfig: {
src: "lxyl/rkgl/rktz/init/zt",
},
}
],
[{
label: "物料信息",
prop: "wlxxInfo",
span: 8,
type: "input",
value: "",
},
{
label: "事务类型",
prop: "swlxid",
span: 6,
type: "RelSelect",
typeConfig: {
src: "lxyl/rkgl/rktz/init/swlx",
},
},
{
label: "来源单号",
prop: "lydjDjid",
span: 6,
type: "input",
value: "",
},
],
],
/* 默认启停用 */
},
};
}, },
qr(ctx) { methods: {
if (ctx.singleItem && ctx.singleItem.id) { /**
this.$confirm("是否继续?", "提示", { * @description: 调整excel传递的参数
confirmButtonText: "确定", * @param {Object} params
cancelButtonText: "取消", * @return {*}
type: "warning", * @author: lisu
}).then((res) => { */
this.$post("lxyl/rkgl/rktz/confirm", { changeExcelParams(params) {
id: ctx.singleItem.id, let fields = JSON.parse(params.fields)
let expandTitle = this.$attrs.app.$refs.mx.$refs.basePage.tableTitle
let newExpandTitle = []
expandTitle.forEach((item, index) => {
let newObj = {
caption: item.label,
name: item.prop,
width: item.width
}
newExpandTitle[index] = newObj
})
fields = [...fields, ...newExpandTitle]
params.fields = JSON.stringify(fields)
},
tbxsth(ctx) {
ctx.DialogWidth = "35vw";
ctx.DialogTitle = "同步销售退货";
ctx.showDialog = true;
},
tbcgd(ctx) {
ctx.DialogWidth = "35vw";
ctx.DialogTitle = "同步采购单";
ctx.showDialog = true;
},
tbshd(ctx) {
ctx.DialogWidth = "35vw";
ctx.DialogTitle = "同步送货单";
ctx.showDialog = true;
},
dbrktb(ctx) {
ctx.DialogWidth = "35vw";
ctx.DialogTitle = "同步生产入库单";
ctx.showDialog = true;
},
getRow(val) {
this.$emit("getRow", val);
},
qr(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm("是否继续?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then((res) => { }).then((res) => {
if (res.success) { this.$post("lxyl/rkgl/rktz/confirm", {
this.$success("操作成功"); id: ctx.singleItem.id,
ctx.refresh(); }).then((res) => {
} if (res.success) {
this.$success("操作成功");
ctx.refresh();
}
});
}); });
}); } else {
} else { this.$warning("请选中一条数据进行操作");
this.$warning("请选中一条数据进行操作"); }
} },
}, qxqr(ctx) {
qxqr(ctx) { if (ctx.singleItem && ctx.singleItem.id) {
if (ctx.singleItem && ctx.singleItem.id) { this.$confirm("是否继续?", "提示", {
this.$confirm("是否继续?", "提示", { confirmButtonText: "确定",
confirmButtonText: "确定", cancelButtonText: "取消",
cancelButtonText: "取消", type: "warning",
type: "warning",
}).then((res) => {
this.$post("lxyl/rkgl/rktz/unconfirm", {
id: ctx.singleItem.id,
}).then((res) => { }).then((res) => {
if (res.success) { this.$post("lxyl/rkgl/rktz/unconfirm", {
this.$success("操作成功"); id: ctx.singleItem.id,
ctx.refresh(); }).then((res) => {
} if (res.success) {
this.$success("操作成功");
ctx.refresh();
}
});
}); });
}); } else {
} else { this.$warning("请选中一条数据进行操作");
this.$warning("请选中一条数据进行操作"); }
} },
},
components: {
Edit,
Shd,
Dbrktb,
Tbcgd,
Tbxsth,
}, },
}, };
components: {
Edit,
Shd,
Dbrktb,
Tbcgd,
Tbxsth,
},
};
</script> </script>
<style> <style>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment