tom
2023-12-06 9e968679ed2e6937aeb7b50a6c450d5d19251f42
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
terminalFields = [
    // {isshow: "T", field: "order_no", name: "序号", width: "120", type:"span", required: true},
    {isshow: "T",field: "begin_date", name: "开始时间", width: "100", type:"date", formatter: "formatter_date", required: true},
    {isshow: "T",field: "end_date", name: "结束时间", width: "100", type:"date", formatter: "formatter_date", required: true},
    {isshow: "T", field: "customer_code", name: "商业编码", width: "150", type: "select", required: true},
    {isshow: "T", field: "customer_name", name: "商业名称", width: "200", type:"span", required: true},
    // {isshow: "T", field: "customer_person_code", name: "商业操作人编码", width: "150", type:"span", required: true},
    {isshow: "T", field: "customer_person", name: "商业操作人", width: "100", type:"span", required: true},
    {isshow: "T", field: "product_code", name: "品种编码", width: "150", type:"select", required: true},
    {isshow: "T", field: "product_name", name: "品名", width: "200", type: "span", align: "left", required: true},
    {isshow: "T", field: "spec", name: "规格", width: "100", type: "span", required: true},
    {isshow: "T", field: "net_code", name: "网点编码", width: "100", type: "span",},
    {isshow: "T", field: "net_name", name: "网点名称", width: "200", type: "select", align: "left", required: true},
    {isshow: "T", field: "target_price", name: "中标价", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "origin_price", name: "商业供货价", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "gap_price", name: "补差单价", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "gap_rate", name: "补差扣率", width: "100", type: "span", required: true},
    {isshow: "T", field: "pay_type", name: "支付方式", width: "100", type: "span", required: true},
    {isshow: "T", field: "pay_time", name: "兑付周期", width: "100", align: "right", type: "select", required: true},
    {isshow: "T", field: "is_agency", name: "是否托管", width: "100", align: "right", required: true},
    {isshow: "T", field: "agree_no", name: "协议编码", width: "100", align: "right", type: "span",},
    {isshow: "T", field: "remark", name: "明细备注", type: "input", width: "150"}, 
];
distributionFields = [
    {isshow: "T", field: "code", name: "编码", width: "120", type:"span", required: true},
    {isshow: "T",field: "begin_date", name: "开始时间", width: "100", type:"date", formatter: "formatter_date", required: true},
    {isshow: "T",field: "end_date", name: "结束时间", width: "100", type:"date", formatter: "formatter_date", required: true},
    {isshow: "T", field: "customer_code", name: "商业编码", width: "150", type: "select", required: true},
    {isshow: "T", field: "customer_name", name: "商业名称", width: "200", type:"span", required: true},
    {isshow: "T", field: "dis_customer_code", name: "分销客户编码", width: "150", type: "select", required: true},
    {isshow: "T", field: "dis_customer_name", name: "分销客户名称", width: "150", type: "span", required: true},
    {isshow: "T", field: "province", name: "省份", width: "150", type: "select", required: true},
    {isshow: "T", field: "product_code", name: "产品编码", width: "150", type:"select", required: true},
    {isshow: "T", field: "product_name", name: "产品名称", width: "200", type: "span", align: "left", required: true},
    {isshow: "T", field: "unit", name: "产品单位", width: "100", type: "span", required: true},
    {isshow: "T", field: "org_name", name: "管理主体名称", width: "200", type: "select", align: "left", required: true},
    {isshow: "T", field: "com_attr", name: "商业属性", width: "200", type: "span", align: "left", required: true},
    {isshow: "T", field: "cus_type", name: "客户身份", width: "200", type: "span", align: "left", required: true},
    {isshow: "T", field: "department", name: "业务部门名称", width: "200", type: "select", align: "left", required: true},
    {isshow: "T", field: "pay_type", name: "结算类型", width: "200", type: "select", align: "left", required: true},
    {isshow: "T", field: "con_type", name: "控制类型", width: "200", type: "select", align: "left", required: false},
    {isshow: "T", field: "pay_days", name: "付款天数", width: "200", type: "input", align: "left", required: false},
    {isshow: "T", field: "delivery_days", name: "在途天数", width: "200", type: "span", align: "left", required: false},
    {isshow: "T", field: "pay_time", name: "账期", width: "100", align: "right", type: "span", required: false},
    {isshow: "T", field: "target_type", name: "中标类型", width: "100", type: "select", formatter: "formatter_money", align: "right", required: false},
    {isshow: "T", field: "price_target", name: "中标价格", width: "100", type: "input", formatter: "formatter_money", align: "right", required: false},
    {isshow: "T", field: "price2", name: "开票限价", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "price3", name: "供货价", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "price4", name: "分销价", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "price5", name: "零售价", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "price6", name: "结算价", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "delivery_rate", name: "配送费率", width: "100", type: "span", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "delivery_fee", name: "配送费", width: "100", type: "span", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "com_rate", name: "商业扣率", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "cash_time", name: "兑付时间", width: "100", type: "input", formatter: "formatter_money", align: "right", required: false},
    {isshow: "T", field: "return_type", name: "商返类型", width: "100", type: "input", formatter: "formatter_money", align: "right", required: false},
    {isshow: "T", field: "discount_amount", name: "基础折让金额", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "customer_person11", name: "基础折让金额系数", width: "150", type:"span", required: true},
    {isshow: "T", field: "product_code11", name: "商业规范操作折让金额", width: "150", type:"input", required: true},
    {isshow: "T", field: "spec11", name: "商业规范操作折让金额系数", width: "200", type: "span", required: true},
    {isshow: "T", field: "net_code11", name: "年度任务数量", width: "100", type: "input",},
    {isshow: "T", field: "net_name11", name: "年度折让金额", width: "200", type: "input", align: "left", required: true},
    {isshow: "T", field: "target_price11", name: "年度折让金额系数", width: "150", type: "span", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "origin_price11", name: "库存管理金额", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "gap_price11", name: "库存管理金额系数", width: "150", type: "span", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "gap_rate11", name: "项目折让金额", width: "100", type: "input", required: true},
    {isshow: "T", field: "pay_type11", name: "项目折让系数", width: "150", type: "span", required: true},
    {isshow: "T", field: "is_agency11", name: "折让小计", width: "100", type: "span", align: "right", required: true},
    {isshow: "T", field: "agree_no11", name: "折让比率", width: "100", type: "span", align: "right", type: "span", required: true},
    {isshow: "T", field: "remark11", name: "备注", type: "input", width: "150"}, 
];
frontFields = [
    {isshow: "T",field: "begin_date", name: "开始时间", width: "100", type:"date", formatter: "formatter_date", required: true},
    {isshow: "T",field: "end_date", name: "结束时间", width: "100", type:"date", formatter: "formatter_date", required: true},
    {isshow: "T", field: "province", name: "省份", width: "200", type: "select", align: "left", required: true},
    {isshow: "T", field: "customer_code", name: "商业编码", width: "150", type: "select", required: true},
    {isshow: "T", field: "customer_name", name: "商业名称", width: "200", type:"span", required: true},
    {isshow: "T", field: "net_code", name: "网点编码", width: "100", type: "select", required: true,},
    {isshow: "T", field: "net_name", name: "网点名称", width: "200", type: "select", align: "left", required: true},// {isshow: "T", field: "customer_person_code", name: "商业操作人编码", width: "150", type:"span", required: true},
    {isshow: "T", field: "product_code", name: "产品编码", width: "150", type:"select", required: true},
    {isshow: "T", field: "product_name", name: "产品名称", width: "200", type: "span", align: "left", required: true},
    {isshow: "T", field: "production_spec", name: "产品规格", width: "150", type: "span", required: true,},
    {isshow: "T", field: "origin_price", name: "供货价", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "target_price", name: "零售价", width: "100", type: "input", formatter: "formatter_money", align: "right", required: true},
    {isshow: "T", field: "spec", name: "推荐等级", width: "100", type: "span", required: true},
 
    {isshow: "T", field: "gap_price1", name: "单盒费用标准", width: "100", type: "input", formatter: "formatter_money", align: "right",required: true, tablegroupname: "前台政策", notvalunit: true},
    {isshow: "T", field: "pay_type1", name: "兑付方式", width: "100", type: "span",required: true, tablegroupname: "前台政策", notvalunit: true},
    
    {isshow: "T", field: "gap_price2", name: "单盒费用标准", width: "100", type: "input", formatter: "formatter_money", align: "right", tablegroupname: "月度返利", notvalunit: true},
    {isshow: "T", field: "pay_type2", name: "兑付方式", width: "100", type: "span", tablegroupname: "月度返利", notvalunit: true},
    {isshow: "T", field: "pay_require2", name: "兑付要求", width: "100", type: "span", tablegroupname: "月度返利", notvalunit: true},
    
    {isshow: "T", field: "gap_price3", name: "单盒费用标准", width: "100", type: "input", formatter: "formatter_money", align: "right",  tablegroupname: "季度返利", notvalunit: true},
    {isshow: "T", field: "pay_type3", name: "兑付方式", width: "100", type: "span", tablegroupname: "季度返利", notvalunit: true},
    {isshow: "T", field: "pay_require3", name: "兑付要求", width: "100", type: "span", tablegroupname: "季度返利", notvalunit: true},
    
    {isshow: "T", field: "gap_price4", name: "单盒费用标准", width: "100", type: "input", formatter: "formatter_money", align: "right", tablegroupname: "年度返利", notvalunit: true},
    {isshow: "T", field: "pay_type4", name: "兑付方式", width: "100", type: "span", tablegroupname: "年度返利", notvalunit: true},
    {isshow: "T", field: "pay_require4", name: "兑付要求", width: "100", type: "span", tablegroupname: "年度返利", notvalunit: true},
    
    {isshow: "T", field: "first_quarter", name: "一季度(盒)", width: "100", type: "span", tablegroupname: "协议销售任务",},
    {isshow: "T", field: "second_quarter", name: "二季度(盒)", width: "100", type: "span", tablegroupname: "协议销售任务",},
    {isshow: "T", field: "third_quarter", name: "三季度(盒)", width: "100", align: "right", type: "select", tablegroupname: "协议销售任务",},
    {isshow: "T", field: "forth_quarter", name: "四季度(盒)", width: "100", align: "right", tablegroupname: "协议销售任务",},
    {isshow: "T", field: "sum", name: "小计(盒)", width: "100", align: "right", type: "span", tablegroupname: "协议销售任务",},
    {isshow: "T", field: "protocol_task", name: "协议任务(金额)", width: "150", align: "right", type: "span", tablegroupname: "协议销售任务",},
    
    {isshow: "T", field: "first_quarter2", name: "一季度(盒)", width: "100", type: "span", tablegroupname: "协议净销任务",},
    {isshow: "T", field: "second_quarter2", name: "二季度(盒)", width: "100", type: "span", tablegroupname: "协议净销任务",},
    {isshow: "T", field: "third_quarter2", name: "三季度(盒)", width: "100", align: "right", type: "select", tablegroupname: "协议净销任务",},
    {isshow: "T", field: "forth_quarter2", name: "四季度(盒)", width: "100", align: "right", tablegroupname: "协议净销任务",},
    {isshow: "T", field: "sum2", name: "小计(盒)", width: "100", align: "right", type: "span", tablegroupname: "协议净销任务",},
    {isshow: "T", field: "remark", name: "备注", type: "input", width: "150"}, 
];
 
flowFields = [
    {isshow: "T", field: "end_date", name: "结束时间", width: "100", type:"date", formatter: "formatter_date"},
    {isshow: "T", field: "delivery_name", name: "发货主体", width: "200", type:"span",},
    {isshow: "T", field: "customer_code", name: "商业编码", width: "150", type: "select",},
    {isshow: "T", field: "customer_name", name: "商业名称", width: "200", type:"span",},
    {isshow: "T", field: "product_code", name: "品种编码", width: "150", type:"select",},
    {isshow: "T", field: "spec", name: "规格", width: "100", type: "span",},
    {isshow: "T", field: "qty", name: "赠药数量", width: "100", type: "span",},
    {isshow: "T", field: "price", name: "供货价", width: "100", type: "input", formatter: "formatter_money", align: "right"},
    {isshow: "T", field: "discount", name: "折扣金额", width: "100", type: "input", formatter: "formatter_money", align: "right"},
    {isshow: "T", field: "unit", name: "赠药单位", width: "100", type: "span",},
    {isshow: "T", field: "second_price", name: "二级商业供货价", width: "150", type: "input", formatter: "formatter_money", align: "right"},
    {isshow: "T", field: "store", name: "赠药药店", width: "100", type: "span",},
    {isshow: "T", field: "store_price", name: "药店供货价", width: "100", type: "input", formatter: "formatter_money", align: "right"},
    {isshow: "T", field: "hospital_code", name: "医院编码", width: "150", type: "select",},
    {isshow: "T", field: "hospital_name", name: "医院名称", width: "200", type:"span",},
    {isshow: "T", field: "pay_type", name: "支付方式", width: "100", type: "span"},
    {isshow: "T", field: "policy", name: "赠药政策", width: "100", type: "span"},
    {isshow: "T", field: "remark", name: "明细备注", type: "input", width: "150"}, 
];
payFields = [
    {isshow: "T", field: "order_no", name: "序号", width: "120", type:"span",},
    {isshow: "T", field: "apply_date", name: "申请日期", type:"span", formatter: "formatter_date"},
    {isshow: "T", field: "employee_code", name: "申请人编号", width: "150",},
    {isshow: "T", field: "apply_name", name: "申请人", type:"span", },
    {isshow: "T", field: "department", name: "申请部门", type:"span", },
    {isshow: "T", field: "apply_province", name: "申请省份", type:"select", },
    {isshow: "T", field: "end_date", name: "结束时间", width: "100", type:"date", formatter: "formatter_date"},
    {isshow: "T", field: "delivery_name", name: "发货主体", width: "200", type:"span",},
    {isshow: "T", field: "customer_code", name: "商业编码", width: "150", type: "select",},
    {isshow: "T", field: "customer_name", name: "商业名称", width: "200", type:"span",},
    {isshow: "T", field: "product_code", name: "品种编码", width: "150", type:"select",},
    {isshow: "T", field: "spec", name: "规格", width: "100", type: "span",},
    {isshow: "T", field: "qty", name: "赠药数量", width: "100", type: "span",},
    {isshow: "T", field: "price", name: "供货价", width: "100", type: "input", formatter: "formatter_money", align: "right"},
    {isshow: "T", field: "discount", name: "折扣金额", width: "100", type: "input", formatter: "formatter_money", align: "right"},
    {isshow: "T", field: "unit", name: "赠药单位", width: "100", type: "span",},
    {isshow: "T", field: "second_price", name: "二级商业供货价", width: "150", type: "input", formatter: "formatter_money", align: "right"},
    {isshow: "T", field: "store", name: "赠药药店", width: "100", type: "span",},
    {isshow: "T", field: "store_price", name: "药店供货价", width: "100", type: "input", formatter: "formatter_money", align: "right"},
    {isshow: "T", field: "hospital_code", name: "医院编码", width: "150", type: "select",},
    {isshow: "T", field: "hospital_name", name: "医院名称", width: "200", type:"span",},
    {isshow: "T", field: "pay_type", name: "支付方式", width: "100", type: "span"},
    // {isshow: "T", field: "policy", name: "赠药政策", width: "100", type: "span"},
    {isshow: "T", field: "remark", name: "明细备注", type: "input", width: "150"}, 
];
returnFields = [
    {isshow: "T", field: "delivery_no", name: "工厂发货单号", width: "200", type:"span",},
    {isshow: "T", field: "predelivery_date", name: "原发货日期", type:"date", width: "200", formatter: "formatter_date"},
    {isshow: "T", field: "medicine_name", name: "药品名称", width: "200",},
    {isshow: "T", field: "medicine_no", name: "药品编号", width: "200", type: "span",},
    {isshow: "T", field: "medicine_spec", name: "药品规格", width:"200",type:"span", },
    {isshow: "T", field: "receive_num", name: "已收货数量", width:"100", type:"span", },
    {isshow: "T", field: "return_num", name: "已退货数量", width: "100", type:"span"},
    {isshow: "T", field: "delivery_name", name: "此次退货数量", width: "100", type:"span",},
    {isshow: "T", field: "unitprice", name: "单价", width: "100", type: "span", formatter: "formatter_money"},
    {isshow: "T", field: "return_amount", name: "退货金额", width: "150", type:"input", formatter: "formatter_money"},
    {isshow: "T", field: "return_charge", name: "退货责任人", width: "100", type:"span",},
    {isshow: "T", field: "batch_number", name: "批号", width: "100", type: "span",},
    {isshow: "T", field: "return_reason", name: "退货原因", width: "100", type: "input",}, 
];
writeoffFields = [
    {isshow: "T", field: "order_no", name: "序号", width: "120", type:"span",},
    {isshow: "T", field: "writeoff_no", name: "销账单单号", width: "150", type:"span",},
    {isshow: "T", field: "writeoff_date", name: "销账单日期", width: "150", formatter: "formatter_date"},
    {isshow: "T", field: "accountset_no", name: "账套号", type:"span", },
    {isshow: "T", field: "accountset_name", name: "账套名称", width: "150", type:"span", },
    {isshow: "T", field: "refund_no", name: "回款单号", width: "200", type:"select", },
    {isshow: "T", field: "customer_code", name: "客户编码", width: "200", type: "select",},
    {isshow: "T", field: "customer_name", name: "客户名称", width: "200", type: "span",},
    {isshow: "T", field: "dept_no", name: "部门编号", width: "300", type: "span",},
    {isshow: "T", field: "dept_name", name: "部门名称", width: "200", type: "span",},
    {isshow: "T", field: "check_status", name: "审核状态", width: "100", type: "select",},
    {isshow: "T", field: "create_date", name: "创建时间", width: "150", type:"date", formatter: "formatter_date"},
    {isshow: "T", field: "modify_date", name: "修改时间", width: "150", type:"date", formatter: "formatter_date"},
    {isshow: "T", field: "stock_code", name: "存货编码", width: "200", type:"select",},
    {isshow: "T", field: "stock_name", name: "存货名称", width: "200", type:"span",},
    {isshow: "T", field: "spec", name: "规格", width: "200", type: "span",},
    {isshow: "T", field: "settle_type", name: "结算方式", width: "100", type:"span",},
    {isshow: "T", field: "deliveryU8_no", name: "发货单号(U8)", width: "150", type: "span",},
    {isshow: "T", field: "deliverysale_no", name: "发货单号(销管)", width: "150", type: "span",},
    {isshow: "T", field: "writeoff_num", name: "本次核销数量", width: "100", type:"input"},
    {isshow: "T", field: "writeoff_amount", name: "本次核销金额", width: "100", type: "input", formatter: "formatter_money", align: "right"},
];
 
// 预留字段
reserveFields = [
    {isshow: "T", field: "field_r001", name: "预留字段001", width: "120", fieldtype:"yl"},
    {isshow: "T", field: "field_r002", name: "预留字段002", width: "150", fieldtype:"yl"},
    {isshow: "T", field: "field_r003", name: "预留字段003", width: "150", fieldtype:"yl"},
    {isshow: "T", field: "field_r004", name: "预留字段004", width: "150", fieldtype:"yl"},
    {isshow: "T", field: "field_r005", name: "预留字段005", width: "150", fieldtype:"yl"},
    {isshow: "T", field: "field_r018", name: "预留字段018", width: "150", fieldtype:"yl"},
    {isshow: "T", field: "field_r006", name: "预留字段006", width: "200", fieldtype:"yl"},
    {isshow: "T", field: "field_r007", name: "预留字段007", width: "200", fieldtype:"yl"},
    {isshow: "T", field: "field_r008", name: "预留字段008", width: "200", fieldtype:"yl"},
    {isshow: "T", field: "field_r009", name: "预留字段009", width: "300", fieldtype:"yl"},
    {isshow: "T", field: "field_r010", name: "预留字段010", width: "200", fieldtype:"yl"},
    {isshow: "T", field: "field_r011", name: "预留字段011", width: "100", fieldtype:"yl"},
    {isshow: "T", field: "field_r012", name: "预留字段012", width: "150", fieldtype:"yl"},
    {isshow: "T", field: "field_r013", name: "预留字段013", width: "150", fieldtype:"yl"},
    {isshow: "T", field: "field_r014", name: "预留字段014", width: "200", fieldtype:"yl"},
    {isshow: "T", field: "field_r015", name: "预留字段015", width: "200", fieldtype:"yl"},
    {isshow: "T", field: "field_r016", name: "预留字段016", width: "200", fieldtype:"yl"},
    {isshow: "T", field: "field_r017", name: "预留字段017", width: "100", fieldtype:"yl"},
    {isshow: "T", field: "field_r019", name: "预留字段019", width: "150", fieldtype:"yl"},
    {isshow: "T", field: "field_r020", name: "预留字段020", width: "100", fieldtype:"yl"},
    {isshow: "T", field: "field_r021", name: "预留字段021", width: "100", fieldtype:"yl"},
];