Commit 0d859d9a by Joey

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

parent 9ae73433
...@@ -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) {
......
...@@ -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": "单据/复制单据",
......
...@@ -7,7 +7,6 @@ export default { ...@@ -7,7 +7,6 @@ export default {
context.dom.$Message.info("请配置跳转页面的参数"); context.dom.$Message.info("请配置跳转页面的参数");
return; return;
} }
if ( if (
window.osConfig.appOpenMode && window.osConfig.appOpenMode &&
window.osConfig.appOpenMode == "apploader" window.osConfig.appOpenMode == "apploader"
...@@ -33,6 +32,7 @@ export default { ...@@ -33,6 +32,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'
}) })
} }
} }
......
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