|
@@ -1190,8 +1190,9 @@ func (c *HisApiController) GetPrivateExpensesOrder() {
|
1190
|
1190
|
}
|
1191
|
1191
|
}
|
1192
|
1192
|
}
|
1193
|
|
-
|
1194
|
|
- order.PsnCashPay = order.MedfeeSumamt
|
|
1193
|
+ if order.IsMedicineInsurance != 1 {
|
|
1194
|
+ order.PsnCashPay = order.MedfeeSumamt
|
|
1195
|
+ }
|
1195
|
1196
|
|
1196
|
1197
|
for _, item := range orderInfos {
|
1197
|
1198
|
if item.MedChrgitmType == "01" { //床位费
|
|
@@ -3552,13 +3553,14 @@ func (c *HisApiController) CreateHisPrescription() {
|
3552
|
3553
|
// }
|
3553
|
3554
|
//
|
3554
|
3555
|
//}
|
|
3556
|
+
|
|
3557
|
+ service.CreateNewHisProjectTwo(&p, tx)
|
3555
|
3558
|
var randNum int
|
3556
|
3559
|
randNum = rand.Intn(10000) + 1000
|
3557
|
3560
|
timestamp := time.Now().Unix()
|
3558
|
3561
|
tempTime := time.Unix(timestamp, 0)
|
3559
|
3562
|
timeFormat := tempTime.Format("20060102150405")
|
3560
|
3563
|
p.FeedetlSn = timeFormat + strconv.FormatInt(int64(randNum), 10) + "-" + "2" + "-" + strconv.FormatInt(p.ID, 10)
|
3561
|
|
-
|
3562
|
3564
|
service.CreateNewHisProjectTwo(&p, tx)
|
3563
|
3565
|
|
3564
|
3566
|
//查询保存耗材出库开关是否打开
|
|
@@ -10467,7 +10469,7 @@ func (c *HisApiController) GetFaPiaoData() {
|
10467
|
10469
|
|
10468
|
10470
|
break
|
10469
|
10471
|
case 3:
|
10470
|
|
- item.MedChrgitmType = "03"
|
|
10472
|
+ item.MedChrgitmType = "04"
|
10471
|
10473
|
|
10472
|
10474
|
break
|
10473
|
10475
|
case 4:
|