Commit ccbda5fc by 王勇飞

gyq

parents b3fc1390 635bd810
......@@ -6,20 +6,21 @@ class ChannelCache extends CacheBase {
super();
this.channelDao = system.getObject("db.common.channelDao");
}
isdebug() {
return settings.env == "dev";
isdebug () {
return true;
}
desc() {
desc () {
return "缓存本地应用对象";
}
prefix() {
prefix () {
return "g_channel_cm:"
}
async buildCacheVal(cachekey, inputkey, val, ex, ...items) {
async buildCacheVal (cachekey, inputkey, val, ex, ...items) {
const configValue = await this.channelDao.model.findOne(
{where: { routehost: inputkey},
include:[{model:this.db.models.pathtomethod,as:"pts"}]
});
{
where: { routehost: inputkey },
include: [{ model: this.db.models.pathtomethod, as: "pts" }]
});
if (configValue) {
return JSON.stringify(configValue);
}
......
......@@ -650,7 +650,7 @@ class UserService extends ServiceBase {
// return false;
// }
// });
//按条件筛选
let cansels = users.filter(u => {
if (regionName && regionName != "" && u.regiontags) {
......@@ -668,7 +668,7 @@ class UserService extends ServiceBase {
}
})
console.log('------------1', JSON.stringify(cansels) );
console.log('------------1', JSON.stringify(cansels));
let lngth = cansels.length
if (lngth > 0) {
let obj = {};
......@@ -688,7 +688,7 @@ class UserService extends ServiceBase {
}
}
console.log('------------2', JSON.stringify(obj) );
console.log('------------2', JSON.stringify(obj));
let resultUserKey = Object.keys(obj)[0];
let resultUser = obj[resultUserKey].userInfo;
......@@ -701,6 +701,17 @@ class UserService extends ServiceBase {
}
})
}
/**
*根据业务员openid查找该用户信息
*@param {*} openid 业务员唯一标识
*/
async getSalesmanInfo(openid) {
let userfind = await this.dao.model.findOne({
where: { openid: openid }
});
return userfind;
}
}
module.exports = UserService;
......@@ -717,7 +728,7 @@ module.exports = UserService;
// let result = await cacheManager["LoopDistributionUserCache"].getCache("LoopDistributionUserCache");
// // let result = await cacheManager["LoopDistributionUserCache"].invalidate("LoopDistributionUserCache");
// console.log('----=-=-=-:' + JSON.stringify(result));
// } catch (error) {
// console.log("err:" + error);
// }
......
......@@ -22,7 +22,7 @@ class ChannelService extends ServiceBase {
if (!this.handlers[fileName][method]) {
throw Error(`请在${fileName}文件中定义渠道流量的处理方法${method}`)
}
let rtn = await this.handlers[fileName][method](datajson);
let rtn = await this.handlers[fileName][method](datajson, channelobj);
return rtn;
}
async create(p, q, req) {
......
......@@ -8,21 +8,25 @@ const settings = require("../settings.js")
let channelCache = {};
module.exports = function (app) {
app.post("/autologin", async function (req, res, next) {
let appkey = req.body.appkey.trim()
if (!appkey) {
res.end("没有资质宝appkey,请联系资质宝服务提供方")
return
}
let companykey = req.body.companykey.trim()
if (!companykey) {
res.end("没有公司宝的租户companykey,请联系资质宝服务提供方")
return
}
let cooktoken = req.cookies["token"]
let tv = cooktoken.split(' ')[1]
try {
console.log(req.body)
let appkey = req.body.appkey.trim()
if (!appkey) {
let rd = System.getResult(null, "没有资质宝appkey,请联系资质宝服务提供方")
res.end(JSON.stringify(rd))
return
}
let companykey = req.body.companykey.trim()
if (!companykey) {
let rd = System.getResult(null, "没有公司宝的租户companykey,请联系资质宝服务提供方")
res.end(JSON.stringify(rd))
return
}
//let cooktoken = req.cookies["accessToken"]
let cooktoken = req.body.accesskey
console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>........................................")
console.log(cooktoken)
let tv = cooktoken
let sourceUser = System.verify(tv, settings.publickey())
let openid = sourceUser.employee
let userName = openid
......@@ -38,7 +42,8 @@ module.exports = function (app) {
}
})
if (rcs.length == 0) {
res.end("当前登录人没有资质宝访问权限")
let rd = System.getResult(null, "当前登录人没有资质宝访问权限")
res.end(JSON.stringify(rd))
return
}
//先按照openid去查看是否已经存在
......@@ -47,7 +52,7 @@ module.exports = function (app) {
//按照公司companykey查询出要注册公司的所在公司,取公司id
let company = await companyS.dao.model.findOne({ where: { companykey: companykey } })
//构造注册用户对象,需要设置默认角色,默认角色需要按照rolecode查询出角色
let rolesfind = await roleS.dao.model.findAll({ where: { code: { [self.db.Op.in]: rcs }, company_id: company.id } })
let rolesfind = await roleS.dao.model.findAll({ where: { code: { [roleS.db.Op.in]: rcs }, company_id: company.id } })
//根据rolecode--,设置组织路径
let opath = ''
let isSalesman = false
......@@ -73,16 +78,18 @@ module.exports = function (app) {
uf = await userS.registerByTantent(reguser)
}
let rtnobj = await userS.loginApp(appkey, userName)
let rtn = JSON.stringify({ openurl: rtnobj.homePage + "?code=" + rtnobj.code })
let rtntmp = System.getResult({ openurl: rtnobj.homePage + "?code=" + rtnobj.code })
let rtn = JSON.stringify(rtntmp)
res.end(rtn)
} catch (e) {
res.end(e.message)
res.end(JSON.stringify(System.getResult(null, e.message)))
}
})
app.post("*", async function (req, res, next) {
try {
let channel;
let sourceHost = req.headers["x-forwarded-host"];
// let sourceHost = req.headers["x-forwarded-host"];
let sourceHost = req.hostname;
if (sourceHost in channelCache) {
channel = channelCache[sourceHost];
} else {
......
......@@ -58,7 +58,7 @@ var settings = {
if (this.env == "dev") {
return "http://192.168.1.128:4019/api/queueAction/producer/springBoard";
} else {
return "http://logs-sytxpublic-msgq-service/api/queueAction/producer/springBoard";
return "http://logs-sytxpublic-msgq-service.chaolai/api/queueAction/producer/springBoard";
}
},
pmappname: "center-app",
......@@ -100,6 +100,7 @@ var settings = {
idle: 1000000
},
debug: false,
logging: false,
timezone: '+08:00',
dialectOptions: {
requestTimeout: 999999,
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ccc.png><title></title><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-175acaff.7a825095.css rel=prefetch><link href=/css/chunk-1b756945.9e7173ae.css rel=prefetch><link href=/css/chunk-21b5182a.6e6ae301.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-34953cb0.71e3d438.css rel=prefetch><link href=/css/chunk-480215f6.84fd9662.css rel=prefetch><link href=/css/chunk-5ccefbbb.9e7173ae.css rel=prefetch><link href=/css/chunk-61b0b1e5.9e7173ae.css rel=prefetch><link href=/css/chunk-8e32057a.e8e9a917.css rel=prefetch><link href=/css/chunk-e7e51fa0.9e7173ae.css rel=prefetch><link href=/css/chunk-ff3eaeb0.9e7173ae.css rel=prefetch><link href=/js/chunk-0109d85c.0f8b4b36.js rel=prefetch><link href=/js/chunk-037694a5.7e50cc17.js rel=prefetch><link href=/js/chunk-0aa2a834.9028f9e8.js rel=prefetch><link href=/js/chunk-137dcf78.d8fcc61f.js rel=prefetch><link href=/js/chunk-14b9857b.35e42781.js rel=prefetch><link href=/js/chunk-15d6294e.f0101a17.js rel=prefetch><link href=/js/chunk-175acaff.ca3f7e65.js rel=prefetch><link href=/js/chunk-1792c498.57f47ac5.js rel=prefetch><link href=/js/chunk-1a0615f2.01639b03.js rel=prefetch><link href=/js/chunk-1b756945.f2391a13.js rel=prefetch><link href=/js/chunk-21b5182a.74708748.js rel=prefetch><link href=/js/chunk-22347577.172e21a4.js rel=prefetch><link href=/js/chunk-24a41303.88feac34.js rel=prefetch><link href=/js/chunk-25d9ab36.087a7b9f.js rel=prefetch><link href=/js/chunk-2aeda6fa.2bd11851.js rel=prefetch><link href=/js/chunk-2b3066fa.9ae15683.js rel=prefetch><link href=/js/chunk-2c359864.90a950b1.js rel=prefetch><link href=/js/chunk-2d0d61ef.cce6bf6e.js rel=prefetch><link href=/js/chunk-2d0e68e0.1a313c84.js rel=prefetch><link href=/js/chunk-2d0efc5d.662e1339.js rel=prefetch><link href=/js/chunk-3385141a.a6e1a986.js rel=prefetch><link href=/js/chunk-34953cb0.2fc03dd6.js rel=prefetch><link href=/js/chunk-3a0bcea0.192dd1cf.js rel=prefetch><link href=/js/chunk-477a8e91.eee26140.js rel=prefetch><link href=/js/chunk-480215f6.bc2748bf.js rel=prefetch><link href=/js/chunk-4b58f216.e79a0ff7.js rel=prefetch><link href=/js/chunk-5ccefbbb.0f021a99.js rel=prefetch><link href=/js/chunk-5e7b929d.f3ce9ea9.js rel=prefetch><link href=/js/chunk-61b0b1e5.e4ead4e0.js rel=prefetch><link href=/js/chunk-65e97401.3b9c7780.js rel=prefetch><link href=/js/chunk-8e32057a.5b0635fd.js rel=prefetch><link href=/js/chunk-9947983a.45869bef.js rel=prefetch><link href=/js/chunk-e7e51fa0.2dc827c3.js rel=prefetch><link href=/js/chunk-ff3eaeb0.73991da8.js rel=prefetch><link href=/css/app.4189c8e8.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.90bfad79.js rel=preload as=script><link href=/js/chunk-vendors.9ae5f635.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.4189c8e8.css rel=stylesheet></head><body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.9ae5f635.js></script><script src=/js/app.90bfad79.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ccc.png><title></title><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-175acaff.7a825095.css rel=prefetch><link href=/css/chunk-1b756945.9e7173ae.css rel=prefetch><link href=/css/chunk-21b5182a.6e6ae301.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-34953cb0.71e3d438.css rel=prefetch><link href=/css/chunk-480215f6.84fd9662.css rel=prefetch><link href=/css/chunk-5ccefbbb.9e7173ae.css rel=prefetch><link href=/css/chunk-61b0b1e5.9e7173ae.css rel=prefetch><link href=/css/chunk-8e32057a.e8e9a917.css rel=prefetch><link href=/css/chunk-e7e51fa0.9e7173ae.css rel=prefetch><link href=/css/chunk-ff3eaeb0.9e7173ae.css rel=prefetch><link href=/js/chunk-0109d85c.d8a39ef0.js rel=prefetch><link href=/js/chunk-037694a5.a74514c3.js rel=prefetch><link href=/js/chunk-0aa2a834.9028f9e8.js rel=prefetch><link href=/js/chunk-137dcf78.d8fcc61f.js rel=prefetch><link href=/js/chunk-14b9857b.35e42781.js rel=prefetch><link href=/js/chunk-15d6294e.9da201f1.js rel=prefetch><link href=/js/chunk-175acaff.ca3f7e65.js rel=prefetch><link href=/js/chunk-1792c498.4841b7fc.js rel=prefetch><link href=/js/chunk-1a0615f2.370fcaf1.js rel=prefetch><link href=/js/chunk-1b756945.d840b734.js rel=prefetch><link href=/js/chunk-21b5182a.74708748.js rel=prefetch><link href=/js/chunk-22347577.2275ebec.js rel=prefetch><link href=/js/chunk-24a41303.88feac34.js rel=prefetch><link href=/js/chunk-25d9ab36.087a7b9f.js rel=prefetch><link href=/js/chunk-2aeda6fa.2bd11851.js rel=prefetch><link href=/js/chunk-2b3066fa.372380fb.js rel=prefetch><link href=/js/chunk-2c359864.90a950b1.js rel=prefetch><link href=/js/chunk-2d0d61ef.ca1865db.js rel=prefetch><link href=/js/chunk-2d0e68e0.1a313c84.js rel=prefetch><link href=/js/chunk-2d0efc5d.662e1339.js rel=prefetch><link href=/js/chunk-2d20828f.7627562b.js rel=prefetch><link href=/js/chunk-3385141a.a6e1a986.js rel=prefetch><link href=/js/chunk-34953cb0.2fc03dd6.js rel=prefetch><link href=/js/chunk-3a0bcea0.192dd1cf.js rel=prefetch><link href=/js/chunk-477a8e91.c522ef77.js rel=prefetch><link href=/js/chunk-480215f6.6f9075b6.js rel=prefetch><link href=/js/chunk-4b58f216.e79a0ff7.js rel=prefetch><link href=/js/chunk-5ccefbbb.0f021a99.js rel=prefetch><link href=/js/chunk-5e7b929d.ba9097f4.js rel=prefetch><link href=/js/chunk-61b0b1e5.322b588f.js rel=prefetch><link href=/js/chunk-65e97401.3b9c7780.js rel=prefetch><link href=/js/chunk-8e32057a.5b0635fd.js rel=prefetch><link href=/js/chunk-9947983a.1ed85a1b.js rel=prefetch><link href=/js/chunk-e7e51fa0.c45982a9.js rel=prefetch><link href=/js/chunk-ff3eaeb0.d3d1af72.js rel=prefetch><link href=/css/app.4189c8e8.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.4791bb4d.js rel=preload as=script><link href=/js/chunk-vendors.9ae5f635.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.4189c8e8.css rel=stylesheet></head><body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.9ae5f635.js></script><script src=/js/app.4791bb4d.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-037694a5"],{"82bd":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[e.isshowlist?a("SplitPanel",[a("ArchEditor",{ref:"orgtree",attrs:{slot:"left",initData:e.initData,metainfo:e.metainfo},on:{controlctl:e.controlctl,drawaction:e.drawaction,modisave:e.orgsave,deletenode:e.orgsave,onselnode:e.onselnode},slot:"left"}),a("ArticleInfo",{ref:"articleInfo",attrs:{slot:"right",tblheight:n-60,beforesave:e.beforesave,beforedit:e.beforedit,beforeadd:e.beforeadd},on:{articleShow:e.articleShow},slot:"right"})],1):a("div",{staticStyle:{height:"100%",weight:"100%"}},[a("List",{attrs:{"item-layout":"vertical"}},[a("ListItem",[a("ListItemMeta",{attrs:{title:e.currow.title,description:e.currow.desc}}),a("div",{domProps:{innerHTML:e._s(e.currow.htmlcontent)}}),a("template",{slot:"extra"},[a("Button",{attrs:{type:"primary"},on:{click:e.rtnback}},[e._v("返回")])],1)],2)],1)],1)]}}])})},r=[],o=a("ea4c"),i=o["a"],s=a("9ca4"),l=Object(s["a"])(i,n,r,!1,null,null,null);t["default"]=l.exports},a526:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"article_info",modelName:"article",packageName:"common",tblheight:e.tblheight,isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},r=[],o=(a("163d"),a("06d3")),i=(a("7e1e"),{name:"articleinfo_page",data:function(){return{}},components:{BizTable:o["a"]},props:{tblheight:Number,beforesave:{type:Function,default:function(){return function(e,t,a){return a(t)}}},beforedit:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}},beforeadd:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}}},methods:{onexec:function(e,t){"show"==e&&this.$emit("articleShow",t)},oninitbtn:function(e,t){"enablebtn"==e.key&&(t.isEnabled?e.title="停用":e.title="启用")},searchWhere:function(e){this.$refs.bt.initWhereData=e,this.$refs.bt.fetchData()},setHeight:function(e){this.$refs.bt.setHeight(e)},onnew:function(){this.$refs.bt.setFormCtlVisable("userName",!0)},onedit:function(){this.$refs.bt.setFormCtlVisable("userName",!1)},formatCol:function(e,t,a){return"isPubed"==t?e["isPubed"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>':"created_at"==t||"updated_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}}),s=i,l=a("9ca4"),c=Object(l["a"])(s,n,r,!1,null,null,null);t["a"]=c.exports},ea4c:function(e,t,a){"use strict";(function(e){a("9a33"),a("60b7");var n=a("391e"),r=a("7e1e"),o=a("302e"),i=a("832e"),s=a("a526");a("f121");t["a"]={name:"treeinfo_page",props:{},components:{ArchEditor:o["a"],SplitPanel:i["a"],PageSpace:n["a"],ArticleInfo:s["a"]},data:function(){return{isshowlist:!0,metainfo:{name:"平台指南",main:[{title:"授权信息",key:"baseinfo",cols:2,ctls:[]}],lists:null}}},mounted:function(){},methods:{rtnback:function(){this.isshowlist=!0},articleShow:function(e){this.isshowlist=!1,this.currow=e},onselnode:function(e,t,a){this.$refs.articleInfo.searchWhere({archpath:a.code})},orgsave:function(e,t,a){var n=this;Object(r["m"])("/web/common/treearchCtl/saveSysArchJSON",{sysArchJSON:e,curdata:t,olddata:a}).then((function(e){var a=e.data;if(console.log("ddddddddddddddddd",a),0==a.status){var r=a.data.sysArchJSON;console.log("save org...............................",r),n.$refs.orgtree.treedata=r,n.$refs.orgtree.refreshTree(),n.$Message.success("当前操作成功完成"),n.$refs.articleInfo.searchWhere({archpath:t.code})}}))},beforeadd:function(e,t){return this.$refs.orgtree.currentData?t({value:!0,message:null}):t({value:!1,message:"请选择目录节点"})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return this.$refs.orgtree.currentData&&(t.archpath=this.$refs.orgtree.currentData.orgpath),a(t)},setHeight:function(){var t=e("#orgdiv"),a=t.get()[0],n=window.innerHeight-a.offsetTop;t.css("height",n+"px"),this.$refs.userinfo.setHeight(n-120)},drawaction:function(e,t){t.formModel.isPosition?(t.setCtlVisable("isMain",!0),t.setCtlVisable("orgtag",!0),t.setCtlVisable("roles",!0)):(t.setCtlVisable("isMain",!1),t.setCtlVisable("orgtag",!1),t.setCtlVisable("roles",!1))},controlctl:function(e,t,a){if("isMain"==t){var n=this.$refs.orgtree.currentNode,r=this.$refs.orgtree.findParentByNode(n),o=a.formModel;if(o.orgtag&&o.orgtag.indexOf(r.code)<0){var i=o.orgtag.split(",").push(r.code).join(",");o.orgtag=i}else o.orgtag=r.code}"isPosition"==t&&(e?(a.setCtlVisable("isMain",!0),a.setCtlVisable("orgtag",!0),a.setCtlVisable("roles",!0)):(a.setCtlVisable("isMain",!1),a.setCtlVisable("orgtag",!1),a.setCtlVisable("roles",!1)))},initData:function(e){Object(r["j"])().then((function(t){var a=t.data;if(0!=a.status)throw new Error("获取组织数据出错");var n=a.data.sysArchJSON;e(n)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-037694a5"],{"82bd":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[e.isshowlist?n("SplitPanel",[n("ArchEditor",{ref:"orgtree",attrs:{slot:"left",initData:e.initData,metainfo:e.metainfo},on:{controlctl:e.controlctl,drawaction:e.drawaction,modisave:e.orgsave,deletenode:e.orgsave,onselnode:e.onselnode},slot:"left"}),n("ArticleInfo",{ref:"articleInfo",attrs:{slot:"right",tblheight:a-60,beforesave:e.beforesave,beforedit:e.beforedit,beforeadd:e.beforeadd},on:{articleShow:e.articleShow},slot:"right"})],1):n("div",{staticStyle:{height:"100%",weight:"100%"}},[n("List",{attrs:{"item-layout":"vertical"}},[n("ListItem",[n("ListItemMeta",{attrs:{title:e.currow.title,description:e.currow.desc}}),n("div",{domProps:{innerHTML:e._s(e.currow.htmlcontent)}}),n("template",{slot:"extra"},[n("Button",{attrs:{type:"primary"},on:{click:e.rtnback}},[e._v("返回")])],1)],2)],1)],1)]}}])})},r=[],o=n("ea4c"),i=o["a"],s=n("9ca4"),l=Object(s["a"])(i,a,r,!1,null,null,null);t["default"]=l.exports},a526:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"article_info",modelName:"article",packageName:"common",tblheight:e.tblheight,isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},r=[],o=(n("163d"),n("06d3")),i=(n("7e1e"),{name:"articleinfo_page",data:function(){return{}},components:{BizTable:o["a"]},props:{tblheight:Number,beforesave:{type:Function,default:function(){return function(e,t,n){return n(t)}}},beforedit:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}},beforeadd:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}}},methods:{onexec:function(e,t){"show"==e&&this.$emit("articleShow",t)},oninitbtn:function(e,t){"enablebtn"==e.key&&(t.isEnabled?e.title="停用":e.title="启用")},searchWhere:function(e){this.$refs.bt.initWhereData=e,this.$refs.bt.fetchData()},setHeight:function(e){this.$refs.bt.setHeight(e)},onnew:function(){this.$refs.bt.setFormCtlVisable("userName",!0)},onedit:function(){this.$refs.bt.setFormCtlVisable("userName",!1)},formatCol:function(e,t,n){return"isPubed"==t?e["isPubed"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>':"created_at"==t||"updated_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}}),s=i,l=n("9ca4"),c=Object(l["a"])(s,a,r,!1,null,null,null);t["a"]=c.exports},ea4c:function(e,t,n){"use strict";(function(e){n("9a33"),n("60b7");var a=n("391e"),r=n("7e1e"),o=n("302e"),i=n("832e"),s=n("a526");n("f121");t["a"]={name:"treeinfo_page",props:{},components:{ArchEditor:o["a"],SplitPanel:i["a"],PageSpace:a["a"],ArticleInfo:s["a"]},data:function(){return{isshowlist:!0,metainfo:{name:"平台指南",main:[{title:"授权信息",key:"baseinfo",cols:2,ctls:[]}],lists:null}}},mounted:function(){},methods:{rtnback:function(){this.isshowlist=!0},articleShow:function(e){this.isshowlist=!1,this.currow=e},onselnode:function(e,t,n){this.$refs.articleInfo.searchWhere({archpath:n.code})},orgsave:function(e,t,n){var a=this;Object(r["n"])("/web/common/treearchCtl/saveSysArchJSON",{sysArchJSON:e,curdata:t,olddata:n}).then((function(e){var n=e.data;if(console.log("ddddddddddddddddd",n),0==n.status){var r=n.data.sysArchJSON;console.log("save org...............................",r),a.$refs.orgtree.treedata=r,a.$refs.orgtree.refreshTree(),a.$Message.success("当前操作成功完成"),a.$refs.articleInfo.searchWhere({archpath:t.code})}}))},beforeadd:function(e,t){return this.$refs.orgtree.currentData?t({value:!0,message:null}):t({value:!1,message:"请选择目录节点"})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return this.$refs.orgtree.currentData&&(t.archpath=this.$refs.orgtree.currentData.orgpath),n(t)},setHeight:function(){var t=e("#orgdiv"),n=t.get()[0],a=window.innerHeight-n.offsetTop;t.css("height",a+"px"),this.$refs.userinfo.setHeight(a-120)},drawaction:function(e,t){t.formModel.isPosition?(t.setCtlVisable("isMain",!0),t.setCtlVisable("orgtag",!0),t.setCtlVisable("roles",!0)):(t.setCtlVisable("isMain",!1),t.setCtlVisable("orgtag",!1),t.setCtlVisable("roles",!1))},controlctl:function(e,t,n){if("isMain"==t){var a=this.$refs.orgtree.currentNode,r=this.$refs.orgtree.findParentByNode(a),o=n.formModel;if(o.orgtag&&o.orgtag.indexOf(r.code)<0){var i=o.orgtag.split(",").push(r.code).join(",");o.orgtag=i}else o.orgtag=r.code}"isPosition"==t&&(e?(n.setCtlVisable("isMain",!0),n.setCtlVisable("orgtag",!0),n.setCtlVisable("roles",!0)):(n.setCtlVisable("isMain",!1),n.setCtlVisable("orgtag",!1),n.setCtlVisable("roles",!1)))},initData:function(e){Object(r["k"])().then((function(t){var n=t.data;if(0!=n.status)throw new Error("获取组织数据出错");var a=n.data.sysArchJSON;e(a)}))}}}}).call(this,n("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15d6294e"],{"14fe":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var r=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"deliverybill",metaName:"alldeliver_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:r-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,morebefore:e.beforemore,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}}),a("RefTable",{ref:"reftbl",attrs:{metaName:"simple_user_info",modelName:"user",packageName:"auth",isMulti:!1},on:{onrefselect:e.onrefselect}}),a("RefTable",{ref:"reftbl_salesman",attrs:{metaName:"simple_user_info",modelName:"user",packageName:"auth",isMulti:!1},on:{onrefselect:e.onrefselect}}),a("RefTable",{ref:"reftblSuper",attrs:{modelName:"company",metaName:"simple_companyinfo",packageName:"common",isMulti:!1},on:{onrefselect:e.onrefselect}})]}}])})},s=[],i=(a("cc57"),a("b449"),a("9666")),n=(a("163d"),a("6d57"),a("3c70")),o=a("06d3"),u=a("391e"),l=a("db7f"),f=a("f121"),c=a("7e1e"),d=f["a"].deliverUrl.pro,h={name:"alldeliver_page",data:function(){return{baseUrl:d,smf:[{field:"cost_price",label:"服务费合计(元)"}],deliverNumber:"",userType:""}},components:{PageSpace:u["a"],BizTable:o["a"],RefTable:n["a"]},watch:{$route:function(e){if(e.query.spname){if(e.query.bizStatus){var t="waittosettle,settling,settled";t.indexOf(e.query.bizStatus)>=0?this.$refs.bt.initWhereData={facilitator_name:e.query.spname,settle_status:e.query.bizStatus,dateType:e.query.dateType}:this.$refs.bt.initWhereData={facilitator_name:e.query.spname,delivery_status:e.query.bizStatus,dateType:e.query.dateType}}else this.$refs.bt.initWhereData={facilitator_name:e.query.spname,dateType:e.query.dateType};this.$refs.bt.fetchData()}else{if(e.query.bizStatus){var a="waittosettle,settling,settled";a.indexOf(e.query.bizStatus)>=0?this.$refs.bt.initWhereData={settle_status:e.query.bizStatus,dateType:e.query.dateType}:this.$refs.bt.initWhereData={delivery_status:e.query.bizStatus,dateType:e.query.dateType}}this.$refs.bt.fetchData()}}},mounted:function(){if(this.$route.query.spname){if(this.$route.query.bizStatus){var e="waittosettle,settling,settled";e.indexOf(this.$route.query.bizStatus)>=0?this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,settle_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}:this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,delivery_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}}else this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,dateType:this.$route.query.dateType};this.$refs.bt.fetchData()}else{if(this.$route.query.bizStatus){var t="waittosettle,settling,settled";t.indexOf(this.$route.query.bizStatus)>=0?this.$refs.bt.initWhereData={settle_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}:this.$refs.bt.initWhereData={delivery_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}}this.$refs.bt.fetchData()}},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforemore:function(e,t){return e.settlebill_memo=e.settlebill?e.settlebill.memo:"",t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("bizdetails"===e&&alert("wait"),"settlewriteoff"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要进行结算核销的交付单,改变页码可以增加结算核销的明细. "});var r=[],s=this.$refs.bt.currentSels[0].facilitator_name,i=this.$refs.bt.currentSels[0].facilitator_id,n=!1;if(this.$refs.bt.currentSels.forEach((function(e){"waittosettle"==e.settle_status?r.push(e.id):n=!0})),n)return void this.$Modal.error({title:"提示",content:"请选择未结算的交付进行结算核销."});Object(c["n"])("/web/bizchance/deliverybillCtl/settleApplyForTacent",{ids:r,spname:s,spid:Number(i)},d).then((function(e){var t=e.data;0==t.status?(a.$Message.success("当前选择的结算核销已经完成,请到结算管理进行查看."),a.$refs.bt.fetchData()):a.$Message.error("当前选择的结算核销失败,请联系管理员或稍后重试.")}))}"allocation"===e&&(this.deliverNumber=t.deliverNumber,this.userType="deliverman",1==this.$store.state.user.userobj.company.id?this.$refs.reftblSuper.showrefwindow([]):(this.$refs.reftbl.showrefwindow([]),this.$refs.reftbl.setInitWhereData({isAllocated:1,isDelivery:1}))),"allocation_salesman"===e&&(this.userType="salesman",this.deliverNumber=t.deliverNumber,1==this.$store.state.user.userobj.company.id?this.$refs.reftblSuper.showrefwindow([]):(this.$refs.reftbl_salesman.showrefwindow([]),this.$refs.reftbl_salesman.setInitWhereData({isAllocated:1,isSalesman:1})))},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var r=e[t];if("businessType"===t){var s=l["a"].businessType[r];return s}if("delivery_status"===t){var i=l["a"].deliver_status[r];return i}if("sourceName"===t){var n=l["a"].source[r];return n}if("settle_status"==t){var o=l["a"].settle_status[r];return o}},onrefselect:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this.deliverNumber&&t.length>0&&t[0])){e.next=22;break}if(e.prev=1,1!=this.$store.state.user.userobj.company.id){e.next=7;break}return e.next=5,Object(c["f"])({deliverNumber:this.deliverNumber,facilitatorId:t[0].id,facilitatorName:t[0].name});case 5:e.next=13;break;case 7:if("deliverman"!==this.userType){e.next=10;break}return e.next=10,Object(c["f"])({deliverNumber:this.deliverNumber,deliverymanId:t[0].id,deliverymanName:t[0].userName,deliverymanOpcode:t[0].opath,deliverymanPhone:t[0].mobile,type:this.userType});case 10:if("salesman"!==this.userType){e.next=13;break}return e.next=13,Object(c["f"])({deliverNumber:this.deliverNumber,salesmanId:t[0].id,salesmanName:t[0].userName,salesmanOpcode:t[0].opath,salesmanPhone:t[0].mobile,type:this.userType});case 13:this.$refs.bt.fetchData(),this.$Message.success("分配成功"),e.next=20;break;case 17:e.prev=17,e.t0=e["catch"](1),this.$Message.error(e.t0.message);case 20:e.next=23;break;case 22:this.$Message.error("请勾人员");case 23:case"end":return e.stop()}}),e,this,[[1,17]])})));function t(t){return e.apply(this,arguments)}return t}()}},m=h,b=a("9ca4"),p=Object(b["a"])(m,r,s,!1,null,null,null);t["default"]=p.exports},"391e":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],i=a("9ee1"),n=i["a"],o=a("9ca4"),u=Object(o["a"])(n,r,s,!1,null,null,null);t["a"]=u.exports},"3c70":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Modal",{attrs:{width:850,title:"参照选择","ok-text":"确定","cancel-text":"取消"},on:{"on-ok":e.okselects},model:{value:e.isshowref,callback:function(t){e.isshowref=t},expression:"isshowref"}},[a("BizTable",{ref:"bt2",attrs:{formatCol:e.formatCol,metaName:e.metaName,modelName:e.modelName,packageName:e.packageName,tblheight:500,isMulti:e.isMulti,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit}})],1)],1)},s=[],i=a("06d3"),n={name:"reftable_window",data:function(){return{isshowref:!1}},props:["metaName","packageName","modelName","isMulti"],components:{BizTable:i["a"]},mounted:function(){},methods:{setInitWhereData:function(e){this.$refs.bt2.initWhereData=e},showrefwindow:function(e){this.isshowref=!0,this.$refs.bt2.setCheckState(e)},okselects:function(){this.$emit("onrefselect",this.$refs.bt2.currentSels)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t,a){},onnew:function(){},onedit:function(){},formatCol:function(e,t,a){return e[t]}}},o=n,u=a("9ca4"),l=Object(u["a"])(o,r,s,!1,null,null,null);t["a"]=l.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),r=a.get()[0],s=window.innerHeight-r.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15d6294e"],{"14fe":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var r=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"deliverybill",metaName:"alldeliver_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:r-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,morebefore:e.beforemore,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}}),a("RefTable",{ref:"reftbl",attrs:{metaName:"simple_user_info",modelName:"user",packageName:"auth",isMulti:!1},on:{onrefselect:e.onrefselect}}),a("RefTable",{ref:"reftblSuper",attrs:{modelName:"company",metaName:"simple_companyinfo",packageName:"common",isMulti:!1},on:{onrefselect:e.onrefselect}})]}}])})},s=[],i=(a("cc57"),a("b449"),a("9666")),n=(a("163d"),a("6d57"),a("3c70")),o=a("06d3"),u=a("391e"),l=a("db7f"),f=a("f121"),c=a("7e1e"),d=f["a"].deliverUrl.pro,h={name:"alldeliver_page",data:function(){return{baseUrl:d,smf:[{field:"cost_price",label:"服务费合计(元)"}],deliverNumber:""}},components:{PageSpace:u["a"],BizTable:o["a"],RefTable:n["a"]},watch:{$route:function(e){if(e.query.spname){if(e.query.bizStatus){var t="waittosettle,settling,settled";t.indexOf(e.query.bizStatus)>=0?this.$refs.bt.initWhereData={facilitator_name:e.query.spname,settle_status:e.query.bizStatus,dateType:e.query.dateType}:this.$refs.bt.initWhereData={facilitator_name:e.query.spname,delivery_status:e.query.bizStatus,dateType:e.query.dateType}}else this.$refs.bt.initWhereData={facilitator_name:e.query.spname,dateType:e.query.dateType};this.$refs.bt.fetchData()}else{if(e.query.bizStatus){var a="waittosettle,settling,settled";a.indexOf(e.query.bizStatus)>=0?this.$refs.bt.initWhereData={settle_status:e.query.bizStatus,dateType:e.query.dateType}:this.$refs.bt.initWhereData={delivery_status:e.query.bizStatus,dateType:e.query.dateType}}this.$refs.bt.fetchData()}}},mounted:function(){if(this.$route.query.spname){if(this.$route.query.bizStatus){var e="waittosettle,settling,settled";e.indexOf(this.$route.query.bizStatus)>=0?this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,settle_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}:this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,delivery_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}}else this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,dateType:this.$route.query.dateType};this.$refs.bt.fetchData()}else{if(this.$route.query.bizStatus){var t="waittosettle,settling,settled";t.indexOf(this.$route.query.bizStatus)>=0?this.$refs.bt.initWhereData={settle_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}:this.$refs.bt.initWhereData={delivery_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}}this.$refs.bt.fetchData()}},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforemore:function(e,t){return e.settlebill_memo=e.settlebill?e.settlebill.memo:"",t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("bizdetails"===e&&alert("wait"),"settlewriteoff"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要进行结算核销的交付单,改变页码可以增加结算核销的明细. "});var r=[],s=this.$refs.bt.currentSels[0].facilitator_name,i=this.$refs.bt.currentSels[0].facilitator_id,n=!1;if(this.$refs.bt.currentSels.forEach((function(e){"waittosettle"==e.settle_status?r.push(e.id):n=!0})),n)return void this.$Modal.error({title:"提示",content:"请选择未结算的交付进行结算核销."});Object(c["m"])("/web/bizchance/deliverybillCtl/settleApplyForTacent",{ids:r,spname:s,spid:Number(i)},d).then((function(e){var t=e.data;0==t.status?(a.$Message.success("当前选择的结算核销已经完成,请到结算管理进行查看."),a.$refs.bt.fetchData()):a.$Message.error("当前选择的结算核销失败,请联系管理员或稍后重试.")}))}"allocation"===e&&(this.deliverNumber=t.deliverNumber,1==this.$store.state.user.userobj.company.id?this.$refs.reftblSuper.showrefwindow([]):(this.$refs.reftbl.showrefwindow([]),this.$refs.reftbl.setInitWhereData({isAllocated:1,isDelivery:1})))},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var r=e[t];if("businessType"===t){var s=l["a"].businessType[r];return s}if("delivery_status"===t){var i=l["a"].deliver_status[r];return i}if("sourceName"===t){var n=l["a"].source[r];return n}if("settle_status"==t){var o=l["a"].settle_status[r];return o}},onrefselect:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this.deliverNumber&&t.length>0&&t[0])){e.next=18;break}if(e.prev=1,1!=this.$store.state.user.userobj.company.id){e.next=7;break}return e.next=5,Object(c["e"])({deliverNumber:this.deliverNumber,facilitatorId:t[0].id,facilitatorName:t[0].name});case 5:e.next=9;break;case 7:return e.next=9,Object(c["e"])({deliverNumber:this.deliverNumber,salesmanId:t[0].id,salesmanName:t[0].userName,salesmanOpcode:t[0].opath,salesmanPhone:t[0].mobile});case 9:this.$refs.bt.fetchData(),this.$Message.success("分配成功"),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](1),this.$Message.error(e.t0.message);case 16:e.next=19;break;case 18:this.$Message.error("请勾人员");case 19:case"end":return e.stop()}}),e,this,[[1,13]])})));function t(t){return e.apply(this,arguments)}return t}()}},b=h,m=a("9ca4"),p=Object(m["a"])(b,r,s,!1,null,null,null);t["default"]=p.exports},"391e":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],i=a("9ee1"),n=i["a"],o=a("9ca4"),u=Object(o["a"])(n,r,s,!1,null,null,null);t["a"]=u.exports},"3c70":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Modal",{attrs:{width:850,title:"参照选择","ok-text":"确定","cancel-text":"取消"},on:{"on-ok":e.okselects},model:{value:e.isshowref,callback:function(t){e.isshowref=t},expression:"isshowref"}},[a("BizTable",{ref:"bt2",attrs:{formatCol:e.formatCol,metaName:e.metaName,modelName:e.modelName,packageName:e.packageName,tblheight:500,isMulti:e.isMulti,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit}})],1)],1)},s=[],i=a("06d3"),n={name:"reftable_window",data:function(){return{isshowref:!1}},props:["metaName","packageName","modelName","isMulti"],components:{BizTable:i["a"]},mounted:function(){},methods:{setInitWhereData:function(e){this.$refs.bt2.initWhereData=e},showrefwindow:function(e){this.isshowref=!0,this.$refs.bt2.setCheckState(e)},okselects:function(){this.$emit("onrefselect",this.$refs.bt2.currentSels)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t,a){},onnew:function(){},onedit:function(){},formatCol:function(e,t,a){return e[t]}}},o=n,u=a("9ca4"),l=Object(u["a"])(o,r,s,!1,null,null,null);t["a"]=l.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),r=a.get()[0],s=window.innerHeight-r.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1792c498"],{"391e":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},i=[],s=a("9ee1"),n=s["a"],o=a("9ca4"),l=Object(o["a"])(n,r,i,!1,null,null,null);t["a"]=l.exports},"5f98":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var r=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"deliverybill",metaName:"settleapply_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:r-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},i=[],s=(a("163d"),a("6d57"),a("06d3")),n=a("391e"),o=a("db7f"),l=a("f121"),c=a("7e1e"),u=l["a"].deliverUrl.pro,f={name:"alldeliver_page",data:function(){return{baseUrl:u,smf:[{field:"cost_price",label:"服务费合计(元)"}]}},components:{PageSpace:n["a"],BizTable:s["a"]},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("settleapply"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要给交付商结算的交付单,改变页码可以增加结算的明细!"});var r=[],i=this.$refs.bt.currentSels[0].facilitator_name,s=this.$refs.bt.currentSels[0].facilitator_id,n=!1;if(this.$refs.bt.currentSels.forEach((function(e){e.facilitator_name==i?r.push(e.id):n=!0})),n)return void this.$Modal.error({title:"提示",content:"请选择过滤相同的交付商申请结算."});Object(c["m"])("/web/bizchance/deliverybillCtl/settleApply",{ids:r,spname:i,spid:Number(s)},u).then((function(e){var t=e.data;0==t.status?(a.$Message.success("当前的结算申请已经发送给财务审核."),a.$refs.bt.fetchData()):a.$Message.error("当前的结算申请生成失败,请联系管理员或稍后重试.")}))}if("settlewriteoff"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要进行结算核销的交付单,改变页码可以增加结算核销的明细. "});var o=[],l=this.$refs.bt.currentSels[0].facilitator_name,f=this.$refs.bt.currentSels[0].facilitator_id,d=!1;if(this.$refs.bt.currentSels.forEach((function(e){"waittosettle"==e.settle_status?o.push(e.id):d=!0})),d)return void this.$Modal.error({title:"提示",content:"请选择未结算的交付进行结算核销."});Object(c["m"])("/web/bizchance/deliverybillCtl/settleApplyForTacent",{ids:o,spname:l,spid:Number(f)},u).then((function(e){var t=e.data;0==t.status?(a.$Message.success("当前选择的结算核销已经完成,请到结算管理进行查看."),a.$refs.bt.fetchData()):a.$Message.error("当前选择的结算核销失败,请联系管理员或稍后重试.")}))}},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var r=e[t];if("businessType"===t){var i=o["a"].businessType[r];return i}if("settle_status"===t){var s=o["a"].settle_status[r];return s}if("sourceName"===t){var n=o["a"].source[r];return n}}}},d=f,h=a("9ca4"),b=Object(h["a"])(d,r,i,!1,null,null,null);t["default"]=b.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),r=a.get()[0],i=window.innerHeight-r.offsetTop-t.advalue;t.frameHeight=i,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1792c498"],{"391e":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},i=[],n=a("9ee1"),s=n["a"],o=a("9ca4"),l=Object(o["a"])(s,r,i,!1,null,null,null);t["a"]=l.exports},"5f98":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var r=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"deliverybill",metaName:"settleapply_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:r-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},i=[],n=(a("163d"),a("6d57"),a("06d3")),s=a("391e"),o=a("db7f"),l=a("f121"),c=a("7e1e"),u=l["a"].deliverUrl.pro,f={name:"alldeliver_page",data:function(){return{baseUrl:u,smf:[{field:"cost_price",label:"服务费合计(元)"}]}},components:{PageSpace:s["a"],BizTable:n["a"]},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("settleapply"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要给交付商结算的交付单,改变页码可以增加结算的明细!"});var r=[],i=this.$refs.bt.currentSels[0].facilitator_name,n=this.$refs.bt.currentSels[0].facilitator_id,s=!1;if(this.$refs.bt.currentSels.forEach((function(e){e.facilitator_name==i?r.push(e.id):s=!0})),s)return void this.$Modal.error({title:"提示",content:"请选择过滤相同的交付商申请结算."});Object(c["n"])("/web/bizchance/deliverybillCtl/settleApply",{ids:r,spname:i,spid:Number(n)},u).then((function(e){var t=e.data;0==t.status?(a.$Message.success("当前的结算申请已经发送给财务审核."),a.$refs.bt.fetchData()):a.$Message.error("当前的结算申请生成失败,请联系管理员或稍后重试.")}))}if("settlewriteoff"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要进行结算核销的交付单,改变页码可以增加结算核销的明细. "});var o=[],l=this.$refs.bt.currentSels[0].facilitator_name,f=this.$refs.bt.currentSels[0].facilitator_id,d=!1;if(this.$refs.bt.currentSels.forEach((function(e){"waittosettle"==e.settle_status?o.push(e.id):d=!0})),d)return void this.$Modal.error({title:"提示",content:"请选择未结算的交付进行结算核销."});Object(c["n"])("/web/bizchance/deliverybillCtl/settleApplyForTacent",{ids:o,spname:l,spid:Number(f)},u).then((function(e){var t=e.data;0==t.status?(a.$Message.success("当前选择的结算核销已经完成,请到结算管理进行查看."),a.$refs.bt.fetchData()):a.$Message.error("当前选择的结算核销失败,请联系管理员或稍后重试.")}))}},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var r=e[t];if("businessType"===t){var i=o["a"].businessType[r];return i}if("settle_status"===t){var n=o["a"].settle_status[r];return n}if("sourceName"===t){var s=o["a"].source[r];return s}}}},d=f,h=a("9ca4"),b=Object(h["a"])(d,r,i,!1,null,null,null);t["default"]=b.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),r=a.get()[0],i=window.innerHeight-r.offsetTop-t.advalue;t.frameHeight=i,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b756945"],{"1ded":function(e,t,n){},"232d":function(e,t,n){"use strict";(function(e){n("60b7");var i=n("391e"),a=n("7e1e"),r=n("302e"),o=n("832e"),s=n("a526");n("f121");t["a"]={name:"treeinfo_page",props:{},components:{ArchEditor:r["a"],SplitPanel:o["a"],PageSpace:i["a"],ArticleInfo:s["a"]},data:function(){return{treedata:[],isshowlist:!0,currow:{}}},mounted:function(){this.initData()},methods:{rtnback:function(){this.isshowlist=!0},articleShow:function(e){this.isshowlist=!1,this.currow=e},renderContent:function(e,t){var n=this,i=t.root,a=t.node,r=t.data;return e("span",{style:{display:"inline-block",width:"100%"}},[e("span",{on:{dblclick:function(e){n.setSelCss(e),n.onselnode(a,r)},click:function(e){n.setSelCss(e),n.currentData=r,n.currentNode=a,n.rootNode=i,n.selclick(i,a,r)}}},[e("Icon",{props:{type:r.children&&r.children.length>0?"ios-folder-outline":"ios-paper-outline"},style:{marginRight:"8px"}}),e("span",r.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[])])},setSelCss:function(t){e("span",".ptree").removeClass("spansel"),e(t.target).parent().parent().addClass("spansel")},selclick:function(e,t,n){this.$refs.articleInfo.searchWhere({archpath:n.code})},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},setHeight:function(){var t=e("#orgdiv"),n=t.get()[0],i=window.innerHeight-n.offsetTop;t.css("height",i+"px"),this.$refs.userinfo.setHeight(i-120)},initData:function(){var e=this;Object(a["j"])().then((function(t){var n=t.data;if(0!=n.status)throw new Error("获取数据出错");e.treedata=n.data.sysArchJSON}))}}}}).call(this,n("a336"))},"25cd":function(e,t,n){"use strict";var i=n("1ded"),a=n.n(i);a.a},a526:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"article_info",modelName:"article",packageName:"common",tblheight:e.tblheight,isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},a=[],r=(n("163d"),n("06d3")),o=(n("7e1e"),{name:"articleinfo_page",data:function(){return{}},components:{BizTable:r["a"]},props:{tblheight:Number,beforesave:{type:Function,default:function(){return function(e,t,n){return n(t)}}},beforedit:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}},beforeadd:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}}},methods:{onexec:function(e,t){"show"==e&&this.$emit("articleShow",t)},oninitbtn:function(e,t){"enablebtn"==e.key&&(t.isEnabled?e.title="停用":e.title="启用")},searchWhere:function(e){this.$refs.bt.initWhereData=e,this.$refs.bt.fetchData()},setHeight:function(e){this.$refs.bt.setHeight(e)},onnew:function(){this.$refs.bt.setFormCtlVisable("userName",!0)},onedit:function(){this.$refs.bt.setFormCtlVisable("userName",!1)},formatCol:function(e,t,n){return"isPubed"==t?e["isPubed"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>':"created_at"==t||"updated_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}}),s=o,c=n("9ca4"),l=Object(c["a"])(s,i,a,!1,null,null,null);t["a"]=l.exports},a9ab:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[e.isshowlist?n("SplitPanel",[n("Tree",{staticClass:"ptree",attrs:{slot:"left",data:e.treedata,render:e.renderContent},slot:"left"}),n("ArticleInfo",{ref:"articleInfo",attrs:{slot:"right",tblheight:i-60,beforesave:e.beforesave,beforedit:e.beforedit,beforeadd:e.beforeadd},on:{articleShow:e.articleShow},slot:"right"})],1):n("div",{staticStyle:{height:"100%",weight:"100%"}},[n("h1",[n("Button",{attrs:{icon:"md-arrow-round-back",type:"primary"},on:{click:e.rtnback}},[e._v("返回")]),e._v(" 主题:"+e._s(e.currow.title))],1),n("div",{staticStyle:{"margin-top":"5px"}},[e._v("最后更新时间:"+e._s(new Date(e.currow.updated_at).toLocaleString()))]),n("div",{staticStyle:{width:"100%","margin-top":"10px"},domProps:{innerHTML:e._s(e.currow.htmlcontent)}})])]}}])})},a=[],r=n("232d"),o=r["a"],s=(n("25cd"),n("9ca4")),c=Object(s["a"])(o,i,a,!1,null,null,null);t["default"]=c.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b756945"],{"1ded":function(e,t,n){},"232d":function(e,t,n){"use strict";(function(e){n("60b7");var i=n("391e"),a=n("7e1e"),r=n("302e"),o=n("832e"),s=n("a526");n("f121");t["a"]={name:"treeinfo_page",props:{},components:{ArchEditor:r["a"],SplitPanel:o["a"],PageSpace:i["a"],ArticleInfo:s["a"]},data:function(){return{treedata:[],isshowlist:!0,currow:{}}},mounted:function(){this.initData()},methods:{rtnback:function(){this.isshowlist=!0},articleShow:function(e){this.isshowlist=!1,this.currow=e},renderContent:function(e,t){var n=this,i=t.root,a=t.node,r=t.data;return e("span",{style:{display:"inline-block",width:"100%"}},[e("span",{on:{dblclick:function(e){n.setSelCss(e),n.onselnode(a,r)},click:function(e){n.setSelCss(e),n.currentData=r,n.currentNode=a,n.rootNode=i,n.selclick(i,a,r)}}},[e("Icon",{props:{type:r.children&&r.children.length>0?"ios-folder-outline":"ios-paper-outline"},style:{marginRight:"8px"}}),e("span",r.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[])])},setSelCss:function(t){e("span",".ptree").removeClass("spansel"),e(t.target).parent().parent().addClass("spansel")},selclick:function(e,t,n){this.$refs.articleInfo.searchWhere({archpath:n.code})},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},setHeight:function(){var t=e("#orgdiv"),n=t.get()[0],i=window.innerHeight-n.offsetTop;t.css("height",i+"px"),this.$refs.userinfo.setHeight(i-120)},initData:function(){var e=this;Object(a["k"])().then((function(t){var n=t.data;if(0!=n.status)throw new Error("获取数据出错");e.treedata=n.data.sysArchJSON}))}}}}).call(this,n("a336"))},"25cd":function(e,t,n){"use strict";var i=n("1ded"),a=n.n(i);a.a},a526:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"article_info",modelName:"article",packageName:"common",tblheight:e.tblheight,isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},a=[],r=(n("163d"),n("06d3")),o=(n("7e1e"),{name:"articleinfo_page",data:function(){return{}},components:{BizTable:r["a"]},props:{tblheight:Number,beforesave:{type:Function,default:function(){return function(e,t,n){return n(t)}}},beforedit:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}},beforeadd:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}}},methods:{onexec:function(e,t){"show"==e&&this.$emit("articleShow",t)},oninitbtn:function(e,t){"enablebtn"==e.key&&(t.isEnabled?e.title="停用":e.title="启用")},searchWhere:function(e){this.$refs.bt.initWhereData=e,this.$refs.bt.fetchData()},setHeight:function(e){this.$refs.bt.setHeight(e)},onnew:function(){this.$refs.bt.setFormCtlVisable("userName",!0)},onedit:function(){this.$refs.bt.setFormCtlVisable("userName",!1)},formatCol:function(e,t,n){return"isPubed"==t?e["isPubed"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>':"created_at"==t||"updated_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}}),s=o,c=n("9ca4"),l=Object(c["a"])(s,i,a,!1,null,null,null);t["a"]=l.exports},a9ab:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[e.isshowlist?n("SplitPanel",[n("Tree",{staticClass:"ptree",attrs:{slot:"left",data:e.treedata,render:e.renderContent},slot:"left"}),n("ArticleInfo",{ref:"articleInfo",attrs:{slot:"right",tblheight:i-60,beforesave:e.beforesave,beforedit:e.beforedit,beforeadd:e.beforeadd},on:{articleShow:e.articleShow},slot:"right"})],1):n("div",{staticStyle:{height:"100%",weight:"100%"}},[n("h1",[n("Button",{attrs:{icon:"md-arrow-round-back",type:"primary"},on:{click:e.rtnback}},[e._v("返回")]),e._v(" 主题:"+e._s(e.currow.title))],1),n("div",{staticStyle:{"margin-top":"5px"}},[e._v("最后更新时间:"+e._s(new Date(e.currow.updated_at).toLocaleString()))]),n("div",{staticStyle:{width:"100%","margin-top":"10px"},domProps:{innerHTML:e._s(e.currow.htmlcontent)}})])]}}])})},a=[],r=n("232d"),o=r["a"],s=(n("25cd"),n("9ca4")),c=Object(s["a"])(o,i,a,!1,null,null,null);t["default"]=c.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22347577"],{"03c1":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,tblheight:n-120,metaName:"pricecatinfo_info",modelName:"pricecat",packageName:"product",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec}})]}}])})},o=[],r=a("7e1e"),i=a("06d3"),s=a("923a"),c=a("391e"),u=a("a59a"),l={name:"productcat_page",data:function(){return{currentRow:null,tags:""}},components:{BizTable:i["a"],PageSpace:c["a"]},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e){var t=this;if("makestragetys"==e){var a=this.$refs.bt.currentSels;0==a.length?this.$Modal.warning({title:"提示",content:"请选择要参与生成定价策略的定价类型."}):Object(r["m"])("/web/product/pricecatCtl/buildPriceStrategy",{pricetypes:a}).then((function(e){var a=e.data;0==a.status?t.$Message.success("定价策略生成成功."):t.$Message.error("定价策略生成失败.")}))}},formatCol:function(e,t,a){if(console.log(t,".........................."),"options"==t){this.currentRow=e,this.tags=e["options"];var n='<Tags :currow=\'currentRow\' v-model="tags" :ishideadd="true" @change="ch"></Tags>',o=Object.assign({},this.$data),r=u["default"].extend({components:{Tags:s["a"]},template:"<div>".concat(n,"</div>"),data:function(){return o},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),i=(new r).$mount().$el;return i}return e[t]}}},f=l,d=a("9ca4"),h=Object(d["a"])(f,n,o,!1,null,null,null);t["default"]=h.exports},"391e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},o=[],r=a("9ee1"),i=r["a"],s=a("9ca4"),c=Object(s["a"])(i,n,o,!1,null,null,null);t["a"]=c.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),n=a.get()[0],o=window.innerHeight-n.offsetTop-t.advalue;t.frameHeight=o,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22347577"],{"03c1":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,tblheight:n-120,metaName:"pricecatinfo_info",modelName:"pricecat",packageName:"product",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec}})]}}])})},o=[],r=a("7e1e"),i=a("06d3"),s=a("923a"),c=a("391e"),u=a("a59a"),l={name:"productcat_page",data:function(){return{currentRow:null,tags:""}},components:{BizTable:i["a"],PageSpace:c["a"]},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e){var t=this;if("makestragetys"==e){var a=this.$refs.bt.currentSels;0==a.length?this.$Modal.warning({title:"提示",content:"请选择要参与生成定价策略的定价类型."}):Object(r["n"])("/web/product/pricecatCtl/buildPriceStrategy",{pricetypes:a}).then((function(e){var a=e.data;0==a.status?t.$Message.success("定价策略生成成功."):t.$Message.error("定价策略生成失败.")}))}},formatCol:function(e,t,a){if(console.log(t,".........................."),"options"==t){this.currentRow=e,this.tags=e["options"];var n='<Tags :currow=\'currentRow\' v-model="tags" :ishideadd="true" @change="ch"></Tags>',o=Object.assign({},this.$data),r=u["default"].extend({components:{Tags:s["a"]},template:"<div>".concat(n,"</div>"),data:function(){return o},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),i=(new r).$mount().$el;return i}return e[t]}}},f=l,d=a("9ca4"),h=Object(d["a"])(f,n,o,!1,null,null,null);t["default"]=h.exports},"391e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},o=[],r=a("9ee1"),i=r["a"],s=a("9ca4"),c=Object(s["a"])(i,n,o,!1,null,null,null);t["a"]=c.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),n=a.get()[0],o=window.innerHeight-n.offsetTop-t.advalue;t.frameHeight=o,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d61ef"],{"70cc":function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"user_info",packageName:"auth",tblheight:e.tblheight,isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},o=[],r=(t("cc57"),t("163d"),t("06d3")),s=t("7e1e"),i={name:"userinfo_page",data:function(){return{}},components:{BizTable:r["a"]},props:{tblheight:Number,beforesave:{type:Function,default:function(){return function(e,n,t){return t(n)}}},beforedit:{type:Function,default:function(){return function(e,n){return n({value:!0,message:null})}}},beforeadd:{type:Function,default:function(){return function(e,n){return n({value:!0,message:null})}}}},methods:{onexec:function(e,n){var t=this;"enablebtn"==e&&Object(s["m"])("/web/auth/userCtl/allowOrNotToOne",{curid:n.id,isEnabled:n.isEnabled}).then((function(e){var n=e.data;0==n.status?(t.$refs.bt.fetchData(),t.$Message.success("当前操作已经成功完成.")):t.$Message.error("当前操作未完成.")}))},oninitbtn:function(e,n){"enablebtn"==e.key&&(n.isEnabled?e.title="停用":e.title="启用")},searchWhere:function(e){this.$refs.bt.initWhereData=e,this.$refs.bt.fetchData()},setHeight:function(e){this.$refs.bt.setHeight(e)},onnew:function(){this.$refs.bt.setFormCtlVisable("userName",!0)},onedit:function(){this.$refs.bt.setFormCtlVisable("userName",!1)},formatCol:function(e,n,t){if("isEnabled"==n)return e["isEnabled"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("isAllocated"==n)return e["isAllocated"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("roleName"==n){var a=e.Roles.map((function(e){return e.name})).join(",");return e.roles=e.Roles.map((function(e){return e.id})),"<span>".concat(a,"</span>")}return"isAdmin"==n||"isSuper"==n?"<span>".concat(e[n]?"是":"否","</span>"):"created_at"==n?"<span>".concat(new Date(e[n]).toLocaleString(),"</span>"):e[n]}}},u=i,c=t("9ca4"),l=Object(c["a"])(u,a,o,!1,null,null,null);n["default"]=l.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d61ef"],{"70cc":function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"user_info",packageName:"auth",tblheight:e.tblheight,isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},o=[],r=(t("cc57"),t("163d"),t("06d3")),s=t("7e1e"),i={name:"userinfo_page",data:function(){return{}},components:{BizTable:r["a"]},props:{tblheight:Number,beforesave:{type:Function,default:function(){return function(e,n,t){return t(n)}}},beforedit:{type:Function,default:function(){return function(e,n){return n({value:!0,message:null})}}},beforeadd:{type:Function,default:function(){return function(e,n){return n({value:!0,message:null})}}}},methods:{onexec:function(e,n){var t=this;"enablebtn"==e&&Object(s["n"])("/web/auth/userCtl/allowOrNotToOne",{curid:n.id,isEnabled:n.isEnabled}).then((function(e){var n=e.data;0==n.status?(t.$refs.bt.fetchData(),t.$Message.success("当前操作已经成功完成.")):t.$Message.error("当前操作未完成.")}))},oninitbtn:function(e,n){"enablebtn"==e.key&&(n.isEnabled?e.title="停用":e.title="启用")},searchWhere:function(e){this.$refs.bt.initWhereData=e,this.$refs.bt.fetchData()},setHeight:function(e){this.$refs.bt.setHeight(e)},onnew:function(){this.$refs.bt.setFormCtlVisable("userName",!0)},onedit:function(){this.$refs.bt.setFormCtlVisable("userName",!1)},formatCol:function(e,n,t){if("isEnabled"==n)return e["isEnabled"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("isAllocated"==n)return e["isAllocated"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("roleName"==n){var a=e.Roles.map((function(e){return e.name})).join(",");return e.roles=e.Roles.map((function(e){return e.id})),"<span>".concat(a,"</span>")}return"isAdmin"==n||"isSuper"==n?"<span>".concat(e[n]?"是":"否","</span>"):"created_at"==n?"<span>".concat(new Date(e[n]).toLocaleString(),"</span>"):e[n]}}},u=i,c=t("9ca4"),l=Object(c["a"])(u,a,o,!1,null,null,null);n["default"]=l.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20828f"],{a439:function(n,t,e){"use strict";e.r(t);var a=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",[n._v("\n autologin\n")])},o=[],u=e("7e1e"),c={name:"autologin_page",data:function(){return{}},mounted:function(){Object(u["b"])().then((function(n){var t=n.data;if(0==t.status){var e=t.data.openurl;location.href=e}else alert(t.msg)}))},methods:{}},l=c,r=e("9ca4"),i=Object(r["a"])(l,a,o,!1,null,null,null);t["default"]=i.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-477a8e91"],{"1b06":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"settlebill",metaName:"settlebill_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:i-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},s=[],n=a("06d3"),r=a("391e"),o=(a("db7f"),a("f121")),l=a("7e1e"),b=o["a"].deliverUrl.pro,u={name:"alldeliver_page",data:function(){return{baseUrl:b,smf:[{field:"settle_amount",label:"结算合计(元)"}]}},components:{PageSpace:r["a"],BizTable:n["a"]},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){"audit"==e.key&&(1==t.auditedStatus?e.ishide=!0:e.ishide=!1),"pay"==e.key&&(t.isPayedStatus?e.ishide=!0:t.auditedStatus?e.ishide=!1:e.ishide=!0),"delete"==e.key&&(t.isPayedStatus?e.ishide=!0:e.ishide=!1)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("audit"==e&&this.$refs.bt.doexec("edit",t),"disagree"==e){var i=t.memo?t.memo.trim():"";if(""==i)return void this.$Modal.error({title:"提示",content:"请添加结算建议."});Object(l["m"])("/web/bizchance/settlebillCtl/advice",{advice:{settleId:t.id,memo:i}},b).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")}))}"agree"==e&&Object(l["m"])("/web/bizchance/settlebillCtl/auditPass",{pass:{settleId:t.id}},b).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")})),"pay"==e&&Object(l["m"])("/web/bizchance/settlebillCtl/pay",{pay:{settleId:t.id}},b).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")}))},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var i=e[t];if("auditedStatus"===t){var s=e[t]?"已审核":"待审核";return s}if("isPayedStatus"==t){var n=e[t]?"已付款":"未付款";return n}if("created_at"==t){console.log(i,"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");var r=new Date(i).toLocaleString();return r}}}},d=u,c=a("9ca4"),f=Object(c["a"])(d,i,s,!1,null,null,null);t["default"]=f.exports},"391e":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],n=a("9ee1"),r=n["a"],o=a("9ca4"),l=Object(o["a"])(r,i,s,!1,null,null,null);t["a"]=l.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),i=a.get()[0],s=window.innerHeight-i.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-477a8e91"],{"1b06":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"settlebill",metaName:"settlebill_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:i-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},s=[],n=a("06d3"),r=a("391e"),o=(a("db7f"),a("f121")),l=a("7e1e"),b=o["a"].deliverUrl.pro,u={name:"alldeliver_page",data:function(){return{baseUrl:b,smf:[{field:"settle_amount",label:"结算合计(元)"}]}},components:{PageSpace:r["a"],BizTable:n["a"]},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){"audit"==e.key&&(1==t.auditedStatus?e.ishide=!0:e.ishide=!1),"pay"==e.key&&(t.isPayedStatus?e.ishide=!0:t.auditedStatus?e.ishide=!1:e.ishide=!0),"delete"==e.key&&(t.isPayedStatus?e.ishide=!0:e.ishide=!1)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("audit"==e&&this.$refs.bt.doexec("edit",t),"disagree"==e){var i=t.memo?t.memo.trim():"";if(""==i)return void this.$Modal.error({title:"提示",content:"请添加结算建议."});Object(l["n"])("/web/bizchance/settlebillCtl/advice",{advice:{settleId:t.id,memo:i}},b).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")}))}"agree"==e&&Object(l["n"])("/web/bizchance/settlebillCtl/auditPass",{pass:{settleId:t.id}},b).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")})),"pay"==e&&Object(l["n"])("/web/bizchance/settlebillCtl/pay",{pay:{settleId:t.id}},b).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")}))},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var i=e[t];if("auditedStatus"===t){var s=e[t]?"已审核":"待审核";return s}if("isPayedStatus"==t){var n=e[t]?"已付款":"未付款";return n}if("created_at"==t){console.log(i,"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");var r=new Date(i).toLocaleString();return r}}}},d=u,c=a("9ca4"),f=Object(c["a"])(d,i,s,!1,null,null,null);t["default"]=f.exports},"391e":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],n=a("9ee1"),r=n["a"],o=a("9ca4"),l=Object(o["a"])(r,i,s,!1,null,null,null);t["a"]=l.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),i=a.get()[0],s=window.innerHeight-i.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e7b929d"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},r=[],o=n("9ee1"),i=o["a"],c=n("9ca4"),s=Object(c["a"])(i,a,r,!1,null,null,null);t["a"]=s.exports},"9ee1":function(e,t,n){"use strict";(function(e){n("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],r=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=r,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))},eb8f:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"productprice_info",modelName:"productprice",packageName:"product",tblheight:a-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},r=[],o=(n("163d"),n("06d3")),i=n("391e"),c=n("7e1e"),s=n("db7f"),u=n("923a"),l=n("a59a"),f={name:"appinfo_page",data:function(){return{productpricetmp:null,smf:[{field:"lowpriceref",label:"最低参考合计"}],currentRow:null,sptags:"",channeltags:""}},components:{PageSpace:i["a"],BizTable:o["a"]},methods:{oninitbtn:function(e,t){if(e&&"upline"==e.key){var n=t["isEnabled"]?"下架":"上架";e.title=n}},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t,n){return this.productpricetmp=e,t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){var n=this;"upline"==e&&Object(c["m"])("/web/product/productpriceCtl/updownProduct",{curid:t.id}).then((function(e){var t=e.data;0==t.status?(n.$refs.bt.fetchData(),n.$Message.success("当前操作已经成功完成.")):n.$Message.error("当前操作未完成.")}))},validmethod:function(e,t,n,a){if(console.log(t,"mmmmmmmmmmmmmmmmmmmmm",a),"costamount"==e.field){var r=this.productpricetmp.lowpriceref,o=(t/r).toFixed(2);a.costratio=Number(o)}return n()},formatCol:function(e,t,n){if("isEnabled"==t){var a=e["isEnabled"]?"已上架":"待上架";return e["isEnabled"]?'<span style="color:green">'.concat(a,"</span>"):'<span style="color:orange">'.concat(a,"</span>")}if("lowpriceref"==t)return e["lowpriceref"]=Number(e["lowpriceref"]),"".concat(e["lowpriceref"]);if("hignpriceref"==t)return e["hignpriceref"]=Number(e["hignpriceref"]),"".concat(e["hignpriceref"]);if("deliverfile"==t){var r=e["deliverfile"];return"<img src='".concat(r,"' style='height:40px'>")}if("extrafile"==t){var o=e["extrafile"];return"<img src='".concat(o,"' style='height:40px'>")}if("pcostratio"==t){e["costratio"]=Number(e["costratio"]);var i="%"+100*e["costratio"];return"".concat(i)}if("costamount"==t){e["costamount"]=Number(e["costamount"]);var c=e["costamount"];return"".concat(c)}if("expensetype"==t){e["costamount"]=Number(e["costamount"]);var f=e["expensetype"],d=s["a"]["expense_type"][f];return"".concat(d)}if("sptags"==t){this.currentRow=e,this.sptags=e["sptags"];var m='<Tags :currow=\'currentRow\' v-model="sptags" :ishideadd="true" @change="ch"></Tags>',p=Object.assign({},this.$data),h=l["default"].extend({components:{Tags:u["a"]},template:"<div>".concat(m,"</div>"),data:function(){return p},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),g=(new h).$mount().$el;return g}if("channeltags"==t){this.currentRow=e,this.channeltags=e["channeltags"];var v='<Tags :currow=\'currentRow\' v-model="channeltags" :ishideadd="true" @change="ch"></Tags>',b=Object.assign({},this.$data),w=l["default"].extend({components:{Tags:u["a"]},template:"<div>".concat(v,"</div>"),data:function(){return b},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),x=(new w).$mount().$el;return x}}}},d=f,m=n("9ca4"),p=Object(m["a"])(d,a,r,!1,null,null,null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e7b929d"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},r=[],o=n("9ee1"),i=o["a"],c=n("9ca4"),s=Object(c["a"])(i,a,r,!1,null,null,null);t["a"]=s.exports},"9ee1":function(e,t,n){"use strict";(function(e){n("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],r=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=r,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))},eb8f:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"productprice_info",modelName:"productprice",packageName:"product",tblheight:a-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},r=[],o=(n("163d"),n("06d3")),i=n("391e"),c=n("7e1e"),s=n("db7f"),u=n("923a"),l=n("a59a"),f={name:"appinfo_page",data:function(){return{productpricetmp:null,smf:[{field:"lowpriceref",label:"最低参考合计"}],currentRow:null,sptags:"",channeltags:""}},components:{PageSpace:i["a"],BizTable:o["a"]},methods:{oninitbtn:function(e,t){if(e&&"upline"==e.key){var n=t["isEnabled"]?"下架":"上架";e.title=n}},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t,n){return this.productpricetmp=e,t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){var n=this;"upline"==e&&Object(c["n"])("/web/product/productpriceCtl/updownProduct",{curid:t.id}).then((function(e){var t=e.data;0==t.status?(n.$refs.bt.fetchData(),n.$Message.success("当前操作已经成功完成.")):n.$Message.error("当前操作未完成.")}))},validmethod:function(e,t,n,a){if(console.log(t,"mmmmmmmmmmmmmmmmmmmmm",a),"costamount"==e.field){var r=this.productpricetmp.lowpriceref,o=(t/r).toFixed(2);a.costratio=Number(o)}return n()},formatCol:function(e,t,n){if("isEnabled"==t){var a=e["isEnabled"]?"已上架":"待上架";return e["isEnabled"]?'<span style="color:green">'.concat(a,"</span>"):'<span style="color:orange">'.concat(a,"</span>")}if("lowpriceref"==t)return e["lowpriceref"]=Number(e["lowpriceref"]),"".concat(e["lowpriceref"]);if("hignpriceref"==t)return e["hignpriceref"]=Number(e["hignpriceref"]),"".concat(e["hignpriceref"]);if("deliverfile"==t){var r=e["deliverfile"];return"<img src='".concat(r,"' style='height:40px'>")}if("extrafile"==t){var o=e["extrafile"];return"<img src='".concat(o,"' style='height:40px'>")}if("pcostratio"==t){e["costratio"]=Number(e["costratio"]);var i="%"+100*e["costratio"];return"".concat(i)}if("costamount"==t){e["costamount"]=Number(e["costamount"]);var c=e["costamount"];return"".concat(c)}if("expensetype"==t){e["costamount"]=Number(e["costamount"]);var f=e["expensetype"],d=s["a"]["expense_type"][f];return"".concat(d)}if("sptags"==t){this.currentRow=e,this.sptags=e["sptags"];var m='<Tags :currow=\'currentRow\' v-model="sptags" :ishideadd="true" @change="ch"></Tags>',p=Object.assign({},this.$data),h=l["default"].extend({components:{Tags:u["a"]},template:"<div>".concat(m,"</div>"),data:function(){return p},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),g=(new h).$mount().$el;return g}if("channeltags"==t){this.currentRow=e,this.channeltags=e["channeltags"];var v='<Tags :currow=\'currentRow\' v-model="channeltags" :ishideadd="true" @change="ch"></Tags>',b=Object.assign({},this.$data),w=l["default"].extend({components:{Tags:u["a"]},template:"<div>".concat(v,"</div>"),data:function(){return b},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),x=(new w).$mount().$el;return x}}}},d=f,m=n("9ca4"),p=Object(m["a"])(d,a,r,!1,null,null,null);t["default"]=p.exports}}]);
\ No newline at end of file
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