Commit 861bfd6e by 乔延琦

Merge branch 'develop-zhouyi' into 'develop'

Develop zhouyi

See merge request GFP/RBC/rbc-frontend!19
parents 2e62cb12 afc78fde
import { getUUID } from "../query-actions/util/lib"; import { getUUID } from "../query-actions/util/lib";
import Bridge from '../components-control/util/bridge'
import SelectApprovers from '../components-control/select-approvers.vue' import SelectApprovers from '../components-control/select-approvers.vue'
export default { export default {
execute: function (bill, param) { execute: function (bill, param) {
...@@ -91,27 +92,12 @@ export default { ...@@ -91,27 +92,12 @@ export default {
window.osConfig.appOpenMode && window.osConfig.appOpenMode &&
window.osConfig.appOpenMode == "apploader" window.osConfig.appOpenMode == "apploader"
) { ) {
GMS.$hideContainer.$portalAPI.emit('nros-tag-close') GMS.$hideContainer.$portalAPI.emit('entry-tag-close')
GMS.$hideContainer.$portalAPI.emit(
"open-new-page", //打开一个新的页签
getUUID(),
"runner-bill-form",
{
templateName: param.param.viewName,
id: billId,
state:'readOnly'
},
{
openWay: "FUNCTAB",
title: "单据详情",
} }
); else if (Bridge.vm) {
} Bridge.vm.modal_visible = false
else {
GMS.$hideContainer.$router.push({
path: "/showInnerBillForm/" + param.param.viewName + "/" + billId
})
} }
window.GMS.vbus.$emit('refresh-workflow-job-view')
} }
}.bind(this) }.bind(this)
) )
......
import { getUUID } from "../query-actions/util/lib"; import { getUUID } from "../query-actions/util/lib";
import Bridge from '../components-control/util/bridge'
export default { export default {
execute: function (bill, param) { execute: function (bill, param) {
if(bill){ if(bill){
...@@ -42,27 +43,12 @@ export default { ...@@ -42,27 +43,12 @@ export default {
window.osConfig.appOpenMode && window.osConfig.appOpenMode &&
window.osConfig.appOpenMode == "apploader" window.osConfig.appOpenMode == "apploader"
) { ) {
GMS.$hideContainer.$portalAPI.emit('nros-tag-close') GMS.$hideContainer.$portalAPI.emit('entry-tag-close')
GMS.$hideContainer.$portalAPI.emit(
"open-new-page", //打开一个新的页签
getUUID(),
"runner-bill-form",
{
templateName: param.param.viewName,
id: billId,
state:'readOnly'
},
{
openWay: "FUNCTAB",
title: "单据详情",
}
);
} }
else { else if (Bridge.vm) {
GMS.$hideContainer.$router.push({ Bridge.vm.modal_visible = false
path: "/showInnerBillForm/" + param.param.viewName + "/" + billId
})
} }
window.GMS.vbus.$emit('refresh-workflow-job-view')
} }
}.bind(this) }.bind(this)
) )
......
...@@ -3,29 +3,29 @@ import { getUUID } from "../query-actions/util/lib"; ...@@ -3,29 +3,29 @@ import { getUUID } from "../query-actions/util/lib";
export default { export default {
execute: function (bill, param) { execute: function (bill, param) {
if (bill) { if (bill) {
const masterData = bill.getMasterData() // const masterData = bill.getMasterData()
// 驳回状态 // // 驳回状态
// 此时保存创建一张新单据 // // 此时保存创建一张新单据
if (masterData.getValue('billState') == 91) { // if (masterData.getValue('billState') == 91) {
;[ // ;[
'billCode', // 'billCode',
'billState', // 'billState',
'flowFinishTime', // 'flowFinishTime',
'flowProcessId', // 'flowProcessId',
'flowState', // 'flowState',
'flowSubmitTime', // 'flowSubmitTime',
'orgCode', // 'orgCode',
'createTime', // 'createTime',
'modifyTime', // 'modifyTime',
].forEach((key) => { // ].forEach((key) => {
if (masterData.getValue(key)) // if (masterData.getValue(key))
masterData.setValue(key, '') // masterData.setValue(key, '')
bill.billdata.masterFiled[key] = '' // bill.billdata.masterFiled[key] = ''
}) // })
masterData.setValue('orgId', '00000000-0000-0000-000000000000') // masterData.setValue('orgId', '00000000-0000-0000-000000000000')
masterData.setValue('recver', 0) // masterData.setValue('recver', 0)
masterData.setValue('id', getUUID()) // masterData.setValue('id', getUUID())
} // }
bill.runFormulaCheckData(param, function (msg) { bill.runFormulaCheckData(param, function (msg) {
if (msg.length == 0) { if (msg.length == 0) {
......
...@@ -165,7 +165,17 @@ export default { ...@@ -165,7 +165,17 @@ export default {
bizObjId: this.context.bill.getMasterData().getValue('id'), bizObjId: this.context.bill.getMasterData().getValue('id'),
}, },
}).then((res) => { }).then((res) => {
this.data = res && res[0] res = res || []
let count = 0
for (let o of res) {
if (o.procState == 1) {
this.data = o
;++count
}
}
if (count > 1) {
this.$Message.error('工作流数据异常')
}
if (!this.data) return if (!this.data) return
this.data.steps.push({ this.data.steps.push({
title: "提交申请", title: "提交申请",
......
...@@ -1156,7 +1156,8 @@ export default { ...@@ -1156,7 +1156,8 @@ export default {
"description": "", "description": "",
"title": "财务_查询草稿[CW_draftSearchAction]", "title": "财务_查询草稿[CW_draftSearchAction]",
"value": "draftSearchAction", "value": "draftSearchAction",
"btnDisable": "false" "btnDisable": "false",
"btnDisable": "billReadOnly;90;91;92"
}, { }, {
"discard": false, "discard": false,
"path": "单据/复制单据", "path": "单据/复制单据",
......
...@@ -36,6 +36,15 @@ export default { ...@@ -36,6 +36,15 @@ export default {
} }
); );
} else { } else {
let href = window.location.href
if (href.indexOf('taskId') > -1) {
href = href.substring(0, href.indexOf('taskId'))
href += 'taskId=' + context.selects[0][param.taskId]
}
else {
href += '?taskId=' + context.selects[0][param.taskId]
}
window.location.href = href
GMS.$hideContainer.addComponent(typesBill, {}, function(c) { GMS.$hideContainer.addComponent(typesBill, {}, function(c) {
c.templateName = templateName; c.templateName = templateName;
c.billId = billId; c.billId = billId;
......
...@@ -7,7 +7,12 @@ export default { ...@@ -7,7 +7,12 @@ export default {
context.dom.$Message.info("请配置跳转页面的参数"); context.dom.$Message.info("请配置跳转页面的参数");
return; return;
} }
GMS.queryObject = {//上张下张用
currentDataQueryConditionSet: context.currentDataQueryConditionSet,
index: context.selects[0]._index,
templateName: context.selects[0][param.viewName],
isReadOnly: true,
}
if ( if (
window.osConfig.appOpenMode && window.osConfig.appOpenMode &&
window.osConfig.appOpenMode == "apploader" window.osConfig.appOpenMode == "apploader"
...@@ -33,6 +38,7 @@ export default { ...@@ -33,6 +38,7 @@ export default {
c.init = true; c.init = true;
c.modal_visible = true; c.modal_visible = true;
c.isReadOnly = true c.isReadOnly = true
c.state = 'readOnly'
}) })
} }
} }
......
...@@ -104,6 +104,9 @@ export default { ...@@ -104,6 +104,9 @@ export default {
this.templateName = this.templateOptionList[0]?.templateName; this.templateName = this.templateOptionList[0]?.templateName;
this.handleSearch(); this.handleSearch();
}); });
window.GMS.vbus.$on('refresh-workflow-job-view', () => {
this.handleSearch()
})
}, },
methods: { methods: {
......
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