|
@@ -136,6 +136,11 @@ $(function () {
|
|
|
let prescriptionQuantity = parseInt(drug.quantity) || 0; // 处方数量
|
|
|
let tracCodgCount = 0; // 追溯码数量
|
|
|
|
|
|
+ // 中药免校验:drug_kind 为 '09' 或 '10' 时,跳过追溯码数量检查
|
|
|
+ if (drug.drugKind === '09' || drug.drugKind === '10') {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
// 计算该药品的追溯码数量
|
|
|
if (!isEmpty(drug.drugTracCodg)) {
|
|
|
// 按<br>分割追溯码,过滤空值
|
|
@@ -3819,6 +3824,11 @@ function callYbSaleGoodsItem(realNo, orderNo, receiptNo, times, patientId, name,
|
|
|
// 为每个药品调用一次医保接口
|
|
|
for (let i = 0; i < tableData.length; i++) {
|
|
|
let item = tableData[i];
|
|
|
+ // 中药不调用医保销售接口(drug_kind 为 '09' 或 '10')
|
|
|
+ if (item.drugKind === '09' || item.drugKind === '10') {
|
|
|
+ console.log('中药免医保销售调用,跳过:', item.drugname, 'drugKind=', item.drugKind);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
|
|
|
// 构建关联字段组合(用于关联发药记录)
|
|
|
let currentPatientId = item.patientId || patientId;
|
|
@@ -4193,6 +4203,11 @@ function validateTracCodgQuantity(realNo, orderNo, receiptNo, times, patientId,
|
|
|
let prescriptionQuantity = parseInt(drug.quantity) || 0; // 处方数量
|
|
|
let tracCodgCount = 0; // 追溯码数量
|
|
|
|
|
|
+ // 中药免校验:drug_kind 为 '09' 或 '10' 时,跳过追溯码数量检查
|
|
|
+ if (drug.drugKind === '09' || drug.drugKind === '10') {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
// 计算该药品的追溯码数量
|
|
|
if (!isEmpty(drug.drugTracCodg)) {
|
|
|
// 按<br>分割追溯码,过滤空值
|