Commit 0d859d9a by Joey

feat(@gms/gms-plugin-billexpand): 驳回单据可以保存和重复提交

parent 9ae73433
......@@ -3,29 +3,29 @@ import { getUUID } from "../query-actions/util/lib";
export default {
execute: function (bill, param) {
if (bill) {
const masterData = bill.getMasterData()
// 驳回状态
// 此时保存创建一张新单据
if (masterData.getValue('billState') == 91) {
;[
'billCode',
'billState',
'flowFinishTime',
'flowProcessId',
'flowState',
'flowSubmitTime',
'orgCode',
'createTime',
'modifyTime',
].forEach((key) => {
if (masterData.getValue(key))
masterData.setValue(key, '')
bill.billdata.masterFiled[key] = ''
})
masterData.setValue('orgId', '00000000-0000-0000-000000000000')
masterData.setValue('recver', 0)
masterData.setValue('id', getUUID())
}
// const masterData = bill.getMasterData()
// // 驳回状态
// // 此时保存创建一张新单据
// if (masterData.getValue('billState') == 91) {
// ;[
// 'billCode',
// 'billState',
// 'flowFinishTime',
// 'flowProcessId',
// 'flowState',
// 'flowSubmitTime',
// 'orgCode',
// 'createTime',
// 'modifyTime',
// ].forEach((key) => {
// if (masterData.getValue(key))
// masterData.setValue(key, '')
// bill.billdata.masterFiled[key] = ''
// })
// masterData.setValue('orgId', '00000000-0000-0000-000000000000')
// masterData.setValue('recver', 0)
// masterData.setValue('id', getUUID())
// }
bill.runFormulaCheckData(param, function (msg) {
if (msg.length == 0) {
......
......@@ -1156,7 +1156,8 @@ export default {
"description": "",
"title": "财务_查询草稿[CW_draftSearchAction]",
"value": "draftSearchAction",
"btnDisable": "false"
"btnDisable": "false",
"btnDisable": "billReadOnly;90;91;92"
}, {
"discard": false,
"path": "单据/复制单据",
......
......@@ -7,7 +7,6 @@ export default {
context.dom.$Message.info("请配置跳转页面的参数");
return;
}
if (
window.osConfig.appOpenMode &&
window.osConfig.appOpenMode == "apploader"
......@@ -33,6 +32,7 @@ export default {
c.init = true;
c.modal_visible = true;
c.isReadOnly = true
c.state = 'readOnly'
})
}
}
......
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