disabled hasFile checkbox for dms edit forms
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
c51c4383ce
commit
f56423bac9
|
@ -29,10 +29,6 @@ module.exports = Self => {
|
|||
}, {
|
||||
arg: 'description',
|
||||
type: 'String'
|
||||
}, {
|
||||
arg: 'hasFile',
|
||||
type: 'Boolean',
|
||||
description: 'True if has original file'
|
||||
}, {
|
||||
arg: 'hasFileAttached',
|
||||
type: 'Boolean',
|
||||
|
@ -49,7 +45,7 @@ module.exports = Self => {
|
|||
});
|
||||
|
||||
Self.updateFile = async(ctx, id, warehouseId, companyId,
|
||||
dmsTypeId, reference, description, hasFile, hasFileAttached, options) => {
|
||||
dmsTypeId, reference, description, hasFileAttached, options) => {
|
||||
const models = Self.app.models;
|
||||
|
||||
let tx;
|
||||
|
@ -74,8 +70,7 @@ module.exports = Self => {
|
|||
companyFk: companyId,
|
||||
warehouseFk: warehouseId,
|
||||
reference: reference,
|
||||
description: description,
|
||||
hasFile: hasFile
|
||||
description: description
|
||||
}, myOptions);
|
||||
|
||||
if (hasFileAttached)
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
</vn-input-file>
|
||||
</vn-horizontal>
|
||||
<vn-vertical>
|
||||
<vn-check
|
||||
<vn-check disabled="true"
|
||||
label="Generate identifier for original file"
|
||||
field="$ctrl.dms.hasFile">
|
||||
</vn-check>
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
</vn-input-file>
|
||||
</vn-horizontal>
|
||||
<vn-vertical>
|
||||
<vn-check
|
||||
<vn-check disabled="true"
|
||||
label="Generate identifier for original file"
|
||||
field="$ctrl.dms.hasFile">
|
||||
</vn-check>
|
||||
|
|
Loading…
Reference in New Issue