{ "panels": [ { "index": 1, "name": 3, "paperType": "自定义", "height": 271, "width": 90, "paperList": { "type": "自定义", "width": 90, "height": 271 }, "paperHeader": 0, "paperFooter": 766.5, "paperNumberDisabled": true, "paperNumberContinue": false, "panelAngle": 0, "overPrintOptions": { "content": "", "opacity": 0.7, "type": 1 }, "watermarkOptions": { "content": "", "fillStyle": "rgba(87, 13, 248, 0.5)", "fontSize": "36px", "rotate": 25, "width": 413, "height": 310, "timestamp": true, "format": "YYYY-MM-DD HH:mm" }, "panelLayoutOptions": { "layoutType": "column", "layoutRowGap": 0, "layoutColumnGap": 0 }, "printElements": [ { "options": { "left": 0, "top": 39.5, "height": 19.5, "width": 255, "title": "中药{{HOSPITAL_NAME}}", "coordinateSync": false, "widthHeightSync": false, "fontSize": 11.25, "qrCodeLevel": 0, "textAlign": "center", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 0, "top": 54, "height": 20, "width": 255, "title": "门 诊 处 方 笺", "coordinateSync": false, "widthHeightSync": false, "fontSize": 8.25, "textAlign": "center", "qrCodeLevel": 0, "fixed": true, "textDecoration": "underline" }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 195, "top": 57, "height": 14, "width": 40, "title": "普通处方", "coordinateSync": false, "widthHeightSync": false, "fixed": true, "fontSize": 8.25, "textAlign": "center", "textContentVerticalAlign": "middle", "borderLeft": "solid", "borderTop": "solid", "borderRight": "solid", "borderBottom": "solid", "qrCodeLevel": 0 }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 195, "top": 70.5, "height": 14, "width": 40, "title": "当日有效", "coordinateSync": false, "widthHeightSync": false, "fontSize": 8.25, "textAlign": "center", "textContentVerticalAlign": "middle", "borderLeft": "solid", "borderRight": "solid", "borderBottom": "solid", "qrCodeLevel": 0, "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 15.5, "top": 88.5, "height": 13.5, "width": 100, "title": "费别", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "qrCodeLevel": 0, "field": "contractName", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 122.5, "top": 88.5, "height": 13.5, "width": 117, "title": "门诊号", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "qrCodeLevel": 0, "field": "encounterNo", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 15.5, "top": 108, "height": 13.5, "width": 100, "title": "科室", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "qrCodeLevel": 0, "field": "departmentName", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 122.5, "top": 108, "height": 13.5, "width": 117, "title": "处方号", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "qrCodeLevel": 0, "fixed": true, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[0].prescriptionNo的值\n let prescriptionNoValue = '';\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[0] && \n templateData.prescriptionList[0].prescriptionNo !== undefined) {\n \n prescriptionNoValue = templateData.prescriptionList[0].prescriptionNo;\n }\n } catch (error) {\n console.error('获取剂量值时出错:', error);\n }\n \n return `处方号:   ${prescriptionNoValue || ''}`;\n}" }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 10.5, "top": 124.5, "height": 25, "width": 30, "title": "姓名", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderTop": "solid", "borderRight": "solid", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0 }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 39, "top": 124.5, "height": 25, "width": 60, "title": "姓名", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderTop": "solid", "borderRight": "solid", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0, "field": "patientName", "hideTitle": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 99, "top": 124.5, "height": 25, "width": 30, "title": "性别", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderTop": "solid", "borderRight": "solid", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0 }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 129, "top": 124.5, "height": 25, "width": 44, "title": "性别", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderTop": "solid", "borderRight": "solid", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0, "field": "genderEnum_enumText", "hideTitle": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 172.5, "top": 124.5, "height": 25, "width": 30, "title": "年龄", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderTop": "solid", "borderRight": "solid", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0 }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 202, "top": 124.5, "height": 25, "width": 45, "title": "年龄", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderTop": "solid", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0, "field": "age", "hideTitle": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 10.5, "top": 148.5, "height": 25, "width": 30, "title": "电话", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderRight": "solid", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0 }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 40.5, "top": 148.5, "height": 25, "width": 69, "title": "联系电话", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderRight": "solid", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0, "field": "phone", "hideTitle": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 108, "top": 148.5, "height": 25, "width": 40, "title": "身份证号", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderRight": "solid", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0 }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 147, "top": 148.5, "height": 25, "width": 100, "title": "身份证号", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0, "field": "idCard", "hideTitle": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 10.5, "top": 174, "height": 25, "width": 52, "title": "诊断", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textAlign": "center", "textContentVerticalAlign": "middle", "borderRight": "solid", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0 }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 62, "top": 174, "height": 25, "width": 185, "title": "诊断", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "textContentVerticalAlign": "middle", "borderBottom": "solid", "borderWidth": "1.5", "qrCodeLevel": 0, "field": "conditionName", "hideTitle": true, "contentPaddingLeft": 15 }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 10.5, "top": 207, "height": 19.5, "width": 120, "title": "Rp :", "coordinateSync": false, "widthHeightSync": false, "fixed": true, "fontSize": 13.5, "qrCodeLevel": 0 }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 22, "top": 235.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[0]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[0]) {\n \n firstItem = templateData.prescriptionList[0];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n \n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 101.5, "top": 235.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[1]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[1]) {\n \n firstItem = templateData.prescriptionList[1];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 181.5, "top": 235.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[2]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[2]) {\n \n firstItem = templateData.prescriptionList[2];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 22, "top": 256.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[3]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[3]) {\n \n firstItem = templateData.prescriptionList[3];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 101.5, "top": 256.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[4]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[4]) {\n \n firstItem = templateData.prescriptionList[4];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 181.5, "top": 256.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[5]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[5]) {\n \n firstItem = templateData.prescriptionList[5];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 101.5, "top": 275.7432460784912, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[7]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[7]) {\n \n firstItem = templateData.prescriptionList[7];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 181.5, "top": 276.74146842956543, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[8]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[8]) {\n \n firstItem = templateData.prescriptionList[8];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 22, "top": 276.9960765838623, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[6]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[6]) {\n \n firstItem = templateData.prescriptionList[6];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 22, "top": 294.48470878601074, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[9]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[9]) {\n \n firstItem = templateData.prescriptionList[9];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 101.5, "top": 294.48470878601074, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[10]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[10]) {\n \n firstItem = templateData.prescriptionList[10];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 181.5, "top": 294.48470878601074, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[11]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[11]) {\n \n firstItem = templateData.prescriptionList[11];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 22, "top": 313.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[12]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[12]) {\n \n firstItem = templateData.prescriptionList[12];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 101.5, "top": 313.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[13]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[13]) {\n \n firstItem = templateData.prescriptionList[13];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 181.5, "top": 313.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[14]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[14]) {\n \n firstItem = templateData.prescriptionList[14];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 22, "top": 331.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[15]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[15]) {\n \n firstItem = templateData.prescriptionList[15];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 101.5, "top": 331.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[16]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[16]) {\n \n firstItem = templateData.prescriptionList[16];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 181.5, "top": 331.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[17]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[17]) {\n \n firstItem = templateData.prescriptionList[17];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 22, "top": 348, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[21]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[21]) {\n \n firstItem = templateData.prescriptionList[21];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 101.5, "top": 348, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[22]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[22]) {\n \n firstItem = templateData.prescriptionList[22];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 181.5, "top": 348, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[23]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[23]) {\n \n firstItem = templateData.prescriptionList[23];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 22, "top": 366, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[24]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[24]) {\n \n firstItem = templateData.prescriptionList[24];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 101.5, "top": 366, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[25]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[25]) {\n \n firstItem = templateData.prescriptionList[25];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 181.5, "top": 366, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[26]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[26]) {\n \n firstItem = templateData.prescriptionList[26];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 22, "top": 385, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[27]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[27]) {\n \n firstItem = templateData.prescriptionList[27];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 101.5, "top": 385, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[28]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[28]) {\n \n firstItem = templateData.prescriptionList[28];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 181.5, "top": 385, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[29]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[29]) {\n \n firstItem = templateData.prescriptionList[29];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 22, "top": 406.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[30]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[30]) {\n \n firstItem = templateData.prescriptionList[30];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 101.5, "top": 406.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[31]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[31]) {\n \n firstItem = templateData.prescriptionList[31];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 181.5, "top": 406.5, "height": 10, "width": 64.5, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[20]的值\n let firstItem = null;\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[20]) {\n \n firstItem = templateData.prescriptionList[20];\n }\n } catch (error) {\n console.error('获取项目信息时出错:', error);\n }\n \n // 拼接 itemName、quantity 和 doseUnitCode_dictText\n let displayValue = '';\n if (firstItem) {\n // displayValue = `${firstItem.itemName || ''}${firstItem.quantity || ''}${firstItem.doseUnitCode_dictText || ''}`;\n displayValue = `${firstItem.itemName || ''}`;\n }\n \n return `${displayValue}`;\n}", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 0, "top": 454.5, "height": 10, "width": 255, "title": "请输入标题", "field": "vcc", "coordinateSync": false, "widthHeightSync": false, "hideTitle": true, "qrCodeLevel": 0, "formatter": "function(title, value, options, templateData, target, paperNo) {\n // 安全获取prescriptionList[0].chineseHerbsDoseQuantity的值\n let chineseHerbsDoseQuantityValue = '';\n \n try {\n // 注意:根据截图,templateData本身就是包含prescriptionList的对象\n if (templateData && templateData.prescriptionList && \n Array.isArray(templateData.prescriptionList) && \n templateData.prescriptionList[0] && \n templateData.prescriptionList[0].chineseHerbsDoseQuantity !== undefined) {\n \n chineseHerbsDoseQuantityValue = templateData.prescriptionList[0].chineseHerbsDoseQuantity;\n }\n } catch (error) {\n console.error('获取剂量值时出错:', error);\n }\n \n return `配 ${chineseHerbsDoseQuantityValue || ''} 付`;\n}", "fixed": true, "textAlign": "center", "textContentVerticalAlign": "middle" }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 165, "top": 514.5, "height": 20, "width": 45, "title": "undefined+beforeDragIn", "field": "doctorSignature", "fit": "", "coordinateSync": false, "widthHeightSync": false, "styler": "function(value, options, target, templateData, paperNo) {\n if (templateData.doctorSignature) {\n // 如果doctorSignature存在,正常显示\n return { border: '0px' };\n } else {\n // 否则隐藏元素\n return { display: 'none' };\n }\n}" }, "printElementType": { "title": "图片", "type": "image" } }, { "options": { "left": 19.5, "top": 521, "height": 13.5, "width": 81, "title": "药费", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "qrCodeLevel": 0, "field": "medTotalAmount", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 132, "top": 521, "height": 13.5, "width": 28.5, "title": "医师:", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "qrCodeLevel": 0, "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 10.5, "top": 540, "height": 9, "width": 235, "borderWidth": "1.5", "coordinateSync": false, "widthHeightSync": false, "fixed": true }, "printElementType": { "title": "横线", "type": "hline" } }, { "options": { "left": 19.5, "top": 550.5, "height": 13.5, "width": 100, "title": "核对", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "qrCodeLevel": 0, "field": "nickNames", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 133.5, "top": 550.5, "height": 13.5, "width": 93, "title": "调配", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "qrCodeLevel": 0, "field": "nickNames", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 19.5, "top": 576, "height": 13.5, "width": 79.5, "title": "发药", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "qrCodeLevel": 0, "field": "loginUserName", "fixed": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 108, "top": 576, "height": 13.5, "width": 117, "title": "开具日期", "coordinateSync": false, "widthHeightSync": false, "fontSize": 9, "qrCodeLevel": 0, "field": "reqTime", "fixed": true, "hideTitle": true }, "printElementType": { "title": "文本", "type": "text" } }, { "options": { "left": 10.5, "top": 597, "height": 9, "width": 235, "borderWidth": "1.5", "coordinateSync": false, "widthHeightSync": false, "fixed": true }, "printElementType": { "title": "横线", "type": "hline" } }, { "options": { "left": 16.5, "top": 601.5, "height": 13.5, "width": 192, "title": "注:1.本处方当日作废\n", "coordinateSync": false, "widthHeightSync": false }, "printElementType": { "title": "长文", "type": "longText" } }, { "options": { "left": 34, "top": 619, "height": 13.5, "width": 192, "title": "2.延长处方用量时间原因", "coordinateSync": false, "widthHeightSync": false }, "printElementType": { "title": "长文", "type": "longText" } } ], "paperNumberLeft": 196, "paperNumberTop": 573 } ] }