Commit 38b0093d by liuyang

2024-07-30 优化存货类型上级可以选择所有已建的存货类型

parent 02750e38
...@@ -278,20 +278,23 @@ ...@@ -278,20 +278,23 @@
SELECT 'root' as "parInventType",'根目录' as "parInventTypeName" SELECT 'root' as "parInventType",'根目录' as "parInventTypeName"
FROM DUAL FROM DUAL
UNION ALL UNION ALL
(SELECT DISTINCT ( SELECT DISTINCT
INVENT_TYPE as "parInventType", INVENT_TYPE as "parInventType",
INVENT_TYPE_NAME as "parInventTypeName" INVENT_TYPE_NAME as "parInventTypeName"
FROM ${hggpSchema}.HGPZ004 FROM ${hggpSchema}.HGPZ004
WHERE DELETE_FLAG = 0 WHERE DELETE_FLAG = 0 AND STATUS=1
AND STATUS=1 <!-- AND PAR_INVENT_TYPE = 'root' -->
AND PAR_INVENT_TYPE = 'root' <isNotEmpty prepend=" AND " property="accountCode">
<isNotEmpty prepend=" AND " property="accountCode"> ACCOUNT_CODE = #accountCode#
ACCOUNT_CODE = #accountCode# </isNotEmpty>
</isNotEmpty> <isNotEmpty prepend=" AND " property="inventType">
<isNotEmpty prepend=" AND " property="inventType"> INVENT_TYPE <![CDATA[ <> ]]> #inventType#
INVENT_TYPE <![CDATA[ <> ]]> #inventType# </isNotEmpty>
</isNotEmpty> <isEmpty prepend=" AND " property="inventType">
ORDER BY INVENT_TYPE) PAR_INVENT_TYPE = 'root'
</isEmpty>
ORDER BY INVENT_TYPE
)
</select> </select>
</sqlMap> </sqlMap>
...@@ -28,7 +28,7 @@ $(function() { ...@@ -28,7 +28,7 @@ $(function() {
inInfo.set("methodName", "queryParComboBox"); inInfo.set("methodName", "queryParComboBox");
inInfo.set("blockId", "par_invent_type_block_id"); inInfo.set("blockId", "par_invent_type_block_id");
inInfo.set("field", options.field); inInfo.set("field", options.field);
refreshSelect(container, inInfo); ParInventNameGlobalData = refreshSelect(container, inInfo);
} }
}, { }, {
field: "createdName", field: "createdName",
......
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