预览和变量
This commit is contained in:
parent
addf7adad0
commit
e1f160fe30
|
|
@ -214,7 +214,8 @@
|
||||||
<vxe-column field="price" title="单价" width="120"
|
<vxe-column field="price" title="单价" width="120"
|
||||||
:edit-render="{ name: '$input', props: { type: 'number' } }"></vxe-column>
|
:edit-render="{ name: '$input', props: { type: 'number' } }"></vxe-column>
|
||||||
|
|
||||||
<vxe-column field="amount_formula" title="金额" width="220" :edit-render="{ name: 'EditExpressions' }">
|
<vxe-column field="amount_formula" title="金额" width="220" :edit-render="{ name: 'EditExpressions' }"
|
||||||
|
:params="{ moreExpressionsList: getMoreExpressionsList }">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,8 @@
|
||||||
<vxe-column field="price" title="单价" width="120"
|
<vxe-column field="price" title="单价" width="120"
|
||||||
:edit-render="{ name: '$input', props: { type: 'number' } }"></vxe-column>
|
:edit-render="{ name: '$input', props: { type: 'number' } }"></vxe-column>
|
||||||
|
|
||||||
<vxe-column field="amount_formula" title="金额" width="220" :edit-render="{ name: 'EditExpressions' }">
|
<vxe-column field="amount_formula" title="金额" width="220" :edit-render="{ name: 'EditExpressions' }"
|
||||||
|
:params="{ moreExpressionsList: getMoreExpressionsList }">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
|
|
||||||
<div class="topbar">
|
<div class="topbar">
|
||||||
<a-button type="primary" @click="ok">保存</a-button>
|
<a-button type="primary" @click="ok({})">保存</a-button>
|
||||||
<a-button @click="selectScheme">导入方案</a-button>
|
<a-button @click="selectScheme">导入方案</a-button>
|
||||||
<a-button @click="cancel">取消</a-button>
|
<a-button @click="cancel">取消</a-button>
|
||||||
<a-button @click="previewScheme">预览方案</a-button>
|
<a-button @click="previewScheme">预览方案</a-button>
|
||||||
|
|
@ -108,7 +108,8 @@
|
||||||
<vxe-column field="price" title="单价" width="120"
|
<vxe-column field="price" title="单价" width="120"
|
||||||
:edit-render="{ name: '$input', props: { type: 'number' } }"></vxe-column>
|
:edit-render="{ name: '$input', props: { type: 'number' } }"></vxe-column>
|
||||||
|
|
||||||
<vxe-column field="amount_formula" title="金额(公式)" width="220" :edit-render="{ name: 'EditExpressions' }">
|
<vxe-column field="amount_formula" title="金额(公式)" width="220" :edit-render="{ name: 'EditExpressions' }"
|
||||||
|
:params="{ moreExpressionsList: getMoreExpressionsList }">
|
||||||
</vxe-column>
|
</vxe-column>
|
||||||
|
|
||||||
</vxe-table>
|
</vxe-table>
|
||||||
|
|
@ -1573,7 +1574,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
// 保存
|
// 保存
|
||||||
ok() {
|
ok({ callback }) {
|
||||||
|
|
||||||
let save = () => {
|
let save = () => {
|
||||||
|
|
||||||
|
|
@ -1643,10 +1644,15 @@ export default {
|
||||||
data: postdata,
|
data: postdata,
|
||||||
useBigInt: true,
|
useBigInt: true,
|
||||||
}).then(() => { // 成功回调
|
}).then(() => { // 成功回调
|
||||||
|
if (typeof (callback) == "function") {
|
||||||
|
callback();
|
||||||
|
} else {
|
||||||
this.$mk.success("保存成功");
|
this.$mk.success("保存成功");
|
||||||
if (!this.isEdit) { // 如果是新增模式,关闭当前页面
|
if (!this.isEdit) { // 如果是新增模式,关闭当前页面
|
||||||
this.back();
|
this.back();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}).catch((a) => { // 失败回调
|
}).catch((a) => { // 失败回调
|
||||||
this.$mk.error(a.data.msg); // 显示错误信息
|
this.$mk.error(a.data.msg); // 显示错误信息
|
||||||
});
|
});
|
||||||
|
|
@ -1705,8 +1711,19 @@ export default {
|
||||||
this.scheme_load();
|
this.scheme_load();
|
||||||
},
|
},
|
||||||
previewScheme() {
|
previewScheme() {
|
||||||
|
this.ok({
|
||||||
|
callback: () => {
|
||||||
|
|
||||||
let dataId = this.getDataId();
|
let dataId = this.getDataId();
|
||||||
this.$openPage("/BathroomQuotation/BathroomQuotationUpdate/d" + dataId); // 打开页面
|
let pageUrl = "/BathroomQuotation/BathroomQuotationUpdate/d" + dataId;
|
||||||
|
this.$closePage({
|
||||||
|
closeRoute: "/BathroomQuotation/BathroomQuotationUpdate"
|
||||||
|
});
|
||||||
|
|
||||||
|
this.$openPage(pageUrl); // 打开页面
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
confirmSelectScheme() {
|
confirmSelectScheme() {
|
||||||
let row = this.$refs.scheme_grid.getCurrentRecord(); // 获取当前行
|
let row = this.$refs.scheme_grid.getCurrentRecord(); // 获取当前行
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ routerMap[FunName + 'Update']= {
|
||||||
path: `/${FunName}/${FunName}Update/:id`,
|
path: `/${FunName}/${FunName}Update/:id`,
|
||||||
component: () => import(`@/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/Edit`),
|
component: () => import(`@/pages/Middle/bathroom/BathroomQuotation/BathroomQuotation/Edit`),
|
||||||
meta: {
|
meta: {
|
||||||
invisible: true,
|
invisible: true
|
||||||
},
|
},
|
||||||
authority: {
|
authority: {
|
||||||
permission: [],
|
permission: [],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue