Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -145,6 +145,8 @@ def submit_order1(
|
|
145 |
prefix = 'NIU00000'
|
146 |
elif session_state['username'] == 'cevdanzheng789':
|
147 |
prefix = 'CHEN00000'
|
|
|
|
|
148 |
|
149 |
all_records = orders.get_all_records()
|
150 |
existing_records = [record for record in all_records if record['采购编号'].startswith(prefix)]
|
@@ -197,6 +199,8 @@ def submit_order2(
|
|
197 |
prefix = 'NIU00000'
|
198 |
elif session_state['username'] == 'cevdanzheng789':
|
199 |
prefix = 'CHEN00000'
|
|
|
|
|
200 |
|
201 |
|
202 |
|
|
|
145 |
prefix = 'NIU00000'
|
146 |
elif session_state['username'] == 'cevdanzheng789':
|
147 |
prefix = 'CHEN00000'
|
148 |
+
elif session_state['username'] == 'cevcaigou359':
|
149 |
+
prefix = 'ZHUANG00000'
|
150 |
|
151 |
all_records = orders.get_all_records()
|
152 |
existing_records = [record for record in all_records if record['采购编号'].startswith(prefix)]
|
|
|
199 |
prefix = 'NIU00000'
|
200 |
elif session_state['username'] == 'cevdanzheng789':
|
201 |
prefix = 'CHEN00000'
|
202 |
+
elif session_state['username'] == 'cevcaigou359':
|
203 |
+
prefix = 'ZHUANG00000'
|
204 |
|
205 |
|
206 |
|