Commit d6eed906 by yangchen

单据复制按钮修改

parent 6b32eb71
...@@ -1086,13 +1086,20 @@ export default { ...@@ -1086,13 +1086,20 @@ export default {
"isRequired": true, "isRequired": true,
"ref": "columnField", "ref": "columnField",
"type": "field", "type": "field",
"title": "页面名称", "title": "跳转页面",
"key": "viewName" "key": "viewName"
}, },
{ {
"isRequired": true, "isRequired": true,
"ref": "columnField", "ref": "columnField",
"type": "field", "type": "field",
"title": "页面定义",
"key": "billDefine"
},
{
"isRequired": true,
"ref": "columnField",
"type": "field",
"title": "单据id", "title": "单据id",
"key": "billId" "key": "billId"
}, },
......
...@@ -8,7 +8,7 @@ import { ...@@ -8,7 +8,7 @@ import {
export default { export default {
execute(context, param) { execute(context, param) {
const uuid = getUUID(); const uuid = getUUID();
if (!param.billId || !param.viewName) { if (!param.billId || !param.viewName || !param.billDefine) {
context.dom.$Message.info({ context.dom.$Message.info({
content: "请配置跳转页面的参数", content: "请配置跳转页面的参数",
duration: 5 duration: 5
...@@ -22,10 +22,7 @@ export default { ...@@ -22,10 +22,7 @@ export default {
} }
GMS.vbus.$emit('onCloseDrawer'); //关闭右侧划出面板 GMS.vbus.$emit('onCloseDrawer'); //关闭右侧划出面板
let billId = context.selects[0][param.billId]; let billId = context.selects[0][param.billId];
let billDefine = param.viewName let billDefine = context.selects[0][param.billDefine];
.replace(/_E/gi, "")
.replace(/_R/gi, "")
.replace(/_A/gi, "");
const params = { const params = {
billId, billId,
billName: billDefine billName: billDefine
......
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