Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -116,8 +116,8 @@ def login(username):
|
|
116 |
|
117 |
|
118 |
def submit_order1(
|
119 |
-
username
|
120 |
-
|
121 |
费用名称, 费用金额, 采购款收款抬头, 采购款收款账号信息,
|
122 |
在途状态, 开票类型,
|
123 |
收款状态, 退款说明, 备注
|
@@ -151,7 +151,7 @@ def submit_order1(
|
|
151 |
existing_record['采购价']) * 0.115
|
152 |
|
153 |
new_order = [
|
154 |
-
|
155 |
existing_record['销售合同价'], existing_record['采购价'],
|
156 |
费用名称, 费用金额, 采购款收款抬头, 采购款收款账号信息,
|
157 |
existing_record['业务员'], existing_record['客户名称'], existing_record['客户国家'], 在途状态, 开票类型,
|
@@ -293,7 +293,9 @@ def approve_order_interface(username, order_id):
|
|
293 |
with gr.Blocks() as app:
|
294 |
with gr.TabItem("提交费用(旧运编号)"):
|
295 |
username_submit = gr.Textbox(label="用户名")
|
|
|
296 |
运编号 = gr.Textbox(label="运编号")
|
|
|
297 |
费用名称 = gr.Dropdown(
|
298 |
choices=[
|
299 |
'采车定金', '采车定金(抵车款)', '采车定金(全额退回)', '采车定金(部分退回)',
|
@@ -324,7 +326,7 @@ with gr.Blocks() as app:
|
|
324 |
submit_button = gr.Button("提交订单")
|
325 |
submit_output = gr.HTML(label="输出")
|
326 |
submit_button.click(fn=submit_order1, inputs=[
|
327 |
-
username_submit,
|
328 |
费用名称, 费用金额, 采购款收款抬头, 采购款收款账号信息,
|
329 |
在途状态, 开票类型,
|
330 |
收款状态, 退款说明, 备注
|
|
|
116 |
|
117 |
|
118 |
def submit_order1(
|
119 |
+
username,付款抬头
|
120 |
+
运编号,车辆信息
|
121 |
费用名称, 费用金额, 采购款收款抬头, 采购款收款账号信息,
|
122 |
在途状态, 开票类型,
|
123 |
收款状态, 退款说明, 备注
|
|
|
151 |
existing_record['采购价']) * 0.115
|
152 |
|
153 |
new_order = [
|
154 |
+
付款抬头, existing_record['合同号'], 运编号, order_name, 车辆信息,
|
155 |
existing_record['销售合同价'], existing_record['采购价'],
|
156 |
费用名称, 费用金额, 采购款收款抬头, 采购款收款账号信息,
|
157 |
existing_record['业务员'], existing_record['客户名称'], existing_record['客户国家'], 在途状态, 开票类型,
|
|
|
293 |
with gr.Blocks() as app:
|
294 |
with gr.TabItem("提交费用(旧运编号)"):
|
295 |
username_submit = gr.Textbox(label="用户名")
|
296 |
+
付款抬头 = gr.Textbox(label="付款抬头")
|
297 |
运编号 = gr.Textbox(label="运编号")
|
298 |
+
车辆信息 = gr.Textbox(label="车辆信息")
|
299 |
费用名称 = gr.Dropdown(
|
300 |
choices=[
|
301 |
'采车定金', '采车定金(抵车款)', '采车定金(全额退回)', '采车定金(部分退回)',
|
|
|
326 |
submit_button = gr.Button("提交订单")
|
327 |
submit_output = gr.HTML(label="输出")
|
328 |
submit_button.click(fn=submit_order1, inputs=[
|
329 |
+
username_submit, 付款抬头,运编号,车辆信息,
|
330 |
费用名称, 费用金额, 采购款收款抬头, 采购款收款账号信息,
|
331 |
在途状态, 开票类型,
|
332 |
收款状态, 退款说明, 备注
|