Commit ebcf149a by 庄冰

policy

parent cbd0fac8
...@@ -70,7 +70,7 @@ module.exports = { ...@@ -70,7 +70,7 @@ module.exports = {
"direction_type": { "sr": "收", "zc": "支" }, "direction_type": { "sr": "收", "zc": "支" },
"push_return_type": { "0": "推送失败", "1": "推送成功" }, "push_return_type": { "0": "推送失败", "1": "推送成功" },
"push_chance_type": { "wts": "未推送", "yts": "已推送", "ygj": "已跟进", "ycd": "已成单" }, "push_chance_type": { "wts": "未推送", "yts": "已推送", "ygj": "已跟进", "ycd": "已成单" },
"policy_type":{'fzbt':'租金减免','jrdk':'金融贷款','zdfc':'扶持措施','ssjm':'税收优惠','rlzy':'人力资源'}, "policy_type":{'fzbt':'租金减免','jrdk':'金融贷款','zdfc':'行政措施','ssjm':'税收优惠','rlzy':'人力资源'},
"customer_intention":{"dgj":"待跟进","yyx":"有意向","wyx":"无意向"}, "customer_intention":{"dgj":"待跟进","yyx":"有意向","wyx":"无意向"},
}, },
} }
......
...@@ -44,7 +44,7 @@ class PolicyinfoService extends ServiceBase { ...@@ -44,7 +44,7 @@ class PolicyinfoService extends ServiceBase {
} }
async addPolicyByExcel(){ async addPolicyByExcel(){
var workbook = xl.readFile("policy.xlsx") var workbook = xl.readFile("policy2.xls")
const sheetNames = workbook.SheetNames; // 返回 ['sheet1', 'sheet2'] const sheetNames = workbook.SheetNames; // 返回 ['sheet1', 'sheet2']
const worksheet = workbook.Sheets[sheetNames[0]]; const worksheet = workbook.Sheets[sheetNames[0]];
var dataa =xl.utils.sheet_to_json(worksheet); var dataa =xl.utils.sheet_to_json(worksheet);
...@@ -68,7 +68,7 @@ class PolicyinfoService extends ServiceBase { ...@@ -68,7 +68,7 @@ class PolicyinfoService extends ServiceBase {
} }
if(pobj.policyNo){ if(pobj.policyNo){
var a = await that.dao.create(pobj,t); var a = await that.dao.create(pobj,t);
arr.push(a); arr.push(pobj);
} }
} }
}) })
......
Markdown is supported
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