Commit f1fe4497 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

脚本优化

parent 40f5ba04
...@@ -621,7 +621,7 @@ class delData(object): ...@@ -621,7 +621,7 @@ class delData(object):
#删除院区产品表和部门产品表多余的数据 #删除院区产品表和部门产品表多余的数据
sql1 = "delete from mcms_branch_goods_info where hos_goods_id not in(select id from mcms_goods_info);" sql1 = "delete from mcms_branch_goods_info where hos_goods_id not in(select id from mcms_goods_info);"
sql2 = "delete from mcms_branch_goods_info where branch_id not in(%s);" % branch_id sql2 = "delete from mcms_branch_goods_info where branch_id not in(%s);" % branch_id
sql3 = "delete mcms_dept_goods_info where hos_goods_id not in(select id from mcms_goods_info);" sql3 = "delete from mcms_dept_goods_info where hos_goods_id not in(select id from mcms_goods_info);"
sql4 = "delete from mcms_dept_goods_info where branch_id not in(%s);"%branch_id sql4 = "delete from mcms_dept_goods_info where branch_id not in(%s);"%branch_id
cursor.execute(sql1) cursor.execute(sql1)
cursor.execute(sql2) cursor.execute(sql2)
...@@ -801,3 +801,4 @@ class delData(object): ...@@ -801,3 +801,4 @@ class delData(object):
# delData().Delete_business_Data_All() # delData().Delete_business_Data_All()
# delData().Delete_business_Data_All2() # delData().Delete_business_Data_All2()
# delData().check_goods_info() # delData().check_goods_info()
delData().Delete_business_Data_All()
\ No newline at end of file
采购计划单号高值: 采购计划单号高值:
orderNo1: PLAN2024070230930 orderNo1: PLAN2024070230933
orderNo2: PLAN2024070230930 orderNo2: PLAN2024070230933
条码信息: 条码信息:
list_a: list_a:
- &id001 - &id001
- id: UT240702000204 id: UT240702000703
lastModified: snCode: UT240702000703
version: ssccCode: '010839000186667724'
createTime: '2024-07-02 11:05:19' pkgCodeSee: 0137120000043540104444112407021725010821UT240702000703
createUser: hosGoodsId: h034700004354
lastModifiedUser: hosGoodsCode: '00004354'
snCode: UT240702000204 goodsCode: '00004354'
hosId: h0347 goodsName: 新型冠状病毒检测试剂j(r&Q
branchId: goodsSpec: G-31891
stockId: fe0b489d59cd48d08960e5096a714487 goodsMfrsName: 德国歌德公司 Geuder AG
areaCode: areah03472553 unit:
areaName: 自动化测试 purMode: 60
shelfCode: areah03472553-2-01-01 batchCode: '4444'
codeType: 16 productDate: '2024-07-02'
tagType: 0 expdtDate: '2025-01-08'
hosGoodsId: h034700004353 pkgDefName: '100'
mdmGoodsCode: '11661306' pkgDefQty: 100.0
goodsCode: '00004353' stockId: fe0b489d59cd48d08960e5096a714487
goodsDi: '37120000043530' stockName: 东土城路院区$!ZNd中心库房
barName: 100支/100 areaName: 自动化测试
batchCode: '333' areaCode: areah03472553
expdtDate: '2025-01-08' lockStatus: 0
productDate: '2024-07-02' unitName: 100支/100
mfrCode: shelfCode: areah03472553-2-01-01
mfrCodeSee: shelfNo: 自动化测试-2-01-01
pkgCode: "013712000004353010333\x1D112407021725010821UT240702000204" pkgDefId: 96c4ca2199a14150a1cdabff56136aaf
pkgCodeSee: 013712000004353010333112407021725010821UT240702000204 extInfo: '{"pkgDefId": "96c4ca2199a14150a1cdabff56136aaf", "pkgDefQty": 100, "purBillId":
ssccCode: '010839000186587824' "CG2024070220277", "pkgDefName": "100", "distrBillId": "PSh0347202407020017",
extInfo: "inStockTime": "2024-07-02 11:13:19", "distrDetailId": "03839054", "certificateCode":
outId: ""}'
tbStatus: 20 bottleId:
goodsCodeDi: pkgType: '66'
barcodeId: miDjmc: ''
ext: miCode: ''
pkgDefId: ee7fb81570664e758bd2642f4dab3ed3 transferRatio: 1.0
pkgDefQty: 100 qty: 1
purBillId: CG2024070220251 shelfKind: 0
pkgDefName: '100' shelfKindName: 普通货位
distrBillId: PSh0347202407020009 provName: 国药集团公司kGTpV
inStockTime: '2024-07-02 11:13:44' provId: p1e2e8
distrDetailId: '03839046' inStockDate:
certificateCode: '' mfrCode:
sourceDetailId: made: 德国
purMode: 10 price:
purModes: barName: 100支/100
price: purModeText: 检验试剂
pid: codeType: 66
goodsMfrsName: 德国歌德公司 Geuder AG
mfrsName:
goodsSpec: G-31891
unit:
goodsName: 一次性注射器_低值NaZMe
pkgDefId: ee7fb81570664e758bd2642f4dab3ed3
pkgDefQty: 100
defaultPkgDefQty:
defaultQty:
defaultSurplusQty:
defaultPkgDefId:
purDetailId:
pkgDefName: '100'
printNum: 0
deptId:
deptName:
billId:
taskId:
made: 德国
provId: p1e2e8
provName: 国药集团公司kGTpV
subProvId: p1e2e8
subProvName: 国药集团公司kGTpV
provHosGoodsId:
sourceType:
taskDate:
sourceOrderNo:
taskType:
detailId:
branchGoodsPkgDefList:
unitName:
areaCodeList:
diType:
mdmGoodsSpecCode:
hosGoodsCode: '00004353'
supplyId:
inSettlement:
spdGoodsCode:
codeKind:
brand:
miCode:
transferRatio: 1.0
miDjmc:
tbStatusList:
purModeText:
stockName:
tbStatusText:
pkgType:
bottleId:
pkgStatus:
qty:
packUnit:
minSaleQty:
rfidFlag:
mfrCodeFlag:
scanStatus:
scanId:
multiChargeFlag:
useFrequency:
chargeUnit:
lockStatus:
remark:
hosBatchId:
settleFlag:
inStockTime:
subSendFlag: 10
list_b: list_b:
- *id001 - *id001
list_c: list_c:
......
二级库请领产品信息: 二级库请领产品信息:
list_a: list_a:
- &id001 - &id001
- hosGoodsId: h034700004353 - hosGoodsId: h034700004354
purMode: 10 purMode: 60
grantRule: grantRule:
id: id:
goodsName: 一次性注射器_低值NaZMe goodsName: 新型冠状病毒检测试剂j(r&Q
goodsSpec: G-31891 goodsSpec: G-31891
mdmGoodsCode: '11661306' mdmGoodsCode: '11661307'
goodsCode: '00004353' goodsCode: '00004354'
unit: unit:
goodsMfrsName: 德国歌德公司 Geuder AG goodsMfrsName: 德国歌德公司 Geuder AG
miDjmc: '' miDjmc: ''
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
pkgDefName: '100' pkgDefName: '100'
pkgDefQty: 100.0 pkgDefQty: 100.0
pkgQty: pkgQty:
qty: 0 qty: 100.0
goodsImg: [] goodsImg: []
pkgDefId: ee7fb81570664e758bd2642f4dab3ed3 pkgDefId: 96c4ca2199a14150a1cdabff56136aaf
buyPkgQty: buyPkgQty:
unitName: 100支/100 unitName: 100支/100
price: 99.9999 price: 99.9999
...@@ -34,14 +34,14 @@ ...@@ -34,14 +34,14 @@
targetStockName: 东土城路院区$!ZNd中心库房 targetStockName: 东土城路院区$!ZNd中心库房
purchaseFlag: 1 purchaseFlag: 1
tempFlag: 0 tempFlag: 0
grantWay: 1 grantWay: 3
deptGoodsStatus: deptGoodsStatus:
codingType: 0 codingType: 0
purModeText: 低值耗材 purModeText: 检验试剂
goodsGeneralName: 一次性注射器 goodsGeneralName: 检测试剂
provName: 国药集团公司kGTpV provName: 国药集团公司kGTpV
noRecPkgQty: 7.0 noRecPkgQty: 8.0
noRecQty: 700.0 noRecQty: 800.0
autoUnpack: 0 autoUnpack: 0
consumeQty: consumeQty:
consumePkgQty: consumePkgQty:
......
...@@ -75,9 +75,9 @@ setInterval(updateTime, 1000); // 每秒更新一次时间 ...@@ -75,9 +75,9 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
</tr> </tr>
<tr width="600"> <tr width="600">
<td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>9</td>
<td class='details-col-elapsed'>0</td> <td class='details-col-elapsed'>0</td>
<td class='details-col-elapsed'>3分34</td> <td class='details-col-elapsed'>14分10</td>
<td class="details-col-elapsed">0.0%</td> <td class="details-col-elapsed">0.0%</td>
</tr> </tr>
</table> </table>
...@@ -93,9 +93,65 @@ setInterval(updateTime, 1000); // 每秒更新一次时间 ...@@ -93,9 +93,65 @@ setInterval(updateTime, 1000); // 每秒更新一次时间
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b2流程请领业务流_二级库向中心库/log.html' target='_blank'>a_b2流程请领业务流_二级库向中心库</a></td> <td class="details-col-elapsed"><a href='../log/a_b3流程请领业务流_二级库向边仓/log.html' target='_blank'>a_b3流程请领业务流_二级库向边仓</a></td>
<td class="fail">失败</td> <td class="fail">失败</td>
<td class="details-col-elapsed">213.982</td> <td class="details-col-elapsed">66.478</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b4流程十一请领业务流_二级库向直送/log.html' target='_blank'>a_b4流程十一请领业务流_二级库向直送</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">781.789</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b5流程十二请领业务流_二级库向二级库/log.html' target='_blank'>a_b5流程十二请领业务流_二级库向二级库</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">1.043</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b6流程十三请领业务流_三级库向二级库/log.html' target='_blank'>a_b6流程十三请领业务流_三级库向二级库</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.181</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b7流程十四退库业务_消耗退库/log.html' target='_blank'>a_b7流程十四退库业务_消耗退库</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.137</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b8流程十五退库业务_三级库向二级库退库/log.html' target='_blank'>a_b8流程十五退库业务_三级库向二级库退库</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.149</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_b9流程十六退库业务_二级库向一级库退库/log.html' target='_blank'>a_b9流程十六退库业务_二级库向一级库退库</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.586</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_c0流程十七退货业务 中心库退供应商/log.html' target='_blank'>a_c0流程十七退货业务 中心库退供应商</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.148</td>
<td class="details-col-elapsed">xiaohesheng</td>
</tr>
<tr width="600">
<td class="details-col-elapsed"><a href='../log/a_c1流程十八中心库业务_拆包功能/log.html' target='_blank'>a_c1流程十八中心库业务_拆包功能</a></td>
<td class="fail">失败</td>
<td class="details-col-elapsed">0.153</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
......
Supports Markdown
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