|
@@ -707,8 +707,15 @@ public class OrderItems extends Controller {
|
|
|
rows.getFieldList().remove("standards");
|
|
rows.getFieldList().remove("standards");
|
|
|
rows.getFieldList().remove("agentnum");
|
|
rows.getFieldList().remove("agentnum");
|
|
|
rows.getFieldList().remove("enterprisename");
|
|
rows.getFieldList().remove("enterprisename");
|
|
|
|
|
+ rows.getFieldList().remove("agentnum");
|
|
|
rows.getFieldList().remove("stockstatus");
|
|
rows.getFieldList().remove("stockstatus");
|
|
|
-
|
|
|
|
|
|
|
+ rows.getFieldList().remove("submitdate");
|
|
|
|
|
+ rows.getFieldList().remove("checkdate");
|
|
|
|
|
+ Rows rowsrolename= dbConnect.runSqlQuery("select * from sys_userrole t1 inner join sys_role t2 on t1.roleid=t2.roleid and t1.siteid=t2.siteid where t2.rolename='经销商员工' and t1.userid="+userid);
|
|
|
|
|
+ if(!rowsrolename.isEmpty()){
|
|
|
|
|
+ rows.getFieldList().remove("price");
|
|
|
|
|
+ rows.getFieldList().remove("amount");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
Rows uploadRows = uploadExcelToObs("orderdetail", "订单明细列表", rows, getTitleMapAgent());
|
|
Rows uploadRows = uploadExcelToObs("orderdetail", "订单明细列表", rows, getTitleMapAgent());
|
|
|
return getSucReturnObject().setData(uploadRows).toString();
|
|
return getSucReturnObject().setData(uploadRows).toString();
|
|
@@ -752,7 +759,7 @@ public class OrderItems extends Controller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//返回导出的标题
|
|
//返回导出的标题
|
|
|
- public HashMap<String, String> getTitleMapAgent() {
|
|
|
|
|
|
|
+ public HashMap<String, String> getTitleMapAgent() throws YosException {
|
|
|
HashMap<String, String> titleMap = new HashMap<>();
|
|
HashMap<String, String> titleMap = new HashMap<>();
|
|
|
titleMap.put("rowno", "行号");
|
|
titleMap.put("rowno", "行号");
|
|
|
titleMap.put("sonum", "订单号");
|
|
titleMap.put("sonum", "订单号");
|
|
@@ -765,10 +772,14 @@ public class OrderItems extends Controller {
|
|
|
titleMap.put("unit", "单位");
|
|
titleMap.put("unit", "单位");
|
|
|
titleMap.put("qty", "数量");
|
|
titleMap.put("qty", "数量");
|
|
|
titleMap.put("undeliqty", "未发货数量");
|
|
titleMap.put("undeliqty", "未发货数量");
|
|
|
- titleMap.put("price", "单价");
|
|
|
|
|
- titleMap.put("amount", "金额");
|
|
|
|
|
|
|
+ Rows rowsrolename= dbConnect.runSqlQuery("select * from sys_userrole t1 inner join sys_role t2 on t1.roleid=t2.roleid and t1.siteid=t2.siteid where t2.rolename='经销商员工' and t1.userid="+userid);
|
|
|
|
|
+ if(rowsrolename.isEmpty()){
|
|
|
|
|
+ titleMap.put("price", "单价");
|
|
|
|
|
+ titleMap.put("amount", "金额");
|
|
|
|
|
+ }
|
|
|
titleMap.put("remarks", "订单行备注");
|
|
titleMap.put("remarks", "订单行备注");
|
|
|
|
|
|
|
|
|
|
+
|
|
|
return titleMap;
|
|
return titleMap;
|
|
|
}
|
|
}
|
|
|
|
|
|