Commit 97e6303e by largezhou

Merge branch 'test' into 'master' (merge request !5)

流程优化
公司注册流程优化 
bug修复
parents cc106001 e94c6858
......@@ -29,6 +29,10 @@ class BizOptCtl extends CtlBase {
}
delete pobj.search.dateType
}
if (pobj.search && pobj.search.sourceName) {
pobj.search.source_name=pobj.search.sourceName
delete pobj.search.sourceName
}
const rs = await this.service.findAndCountAll(pobj);
let rarr = [];
let results = rs.results.rows;
......@@ -37,19 +41,19 @@ class BizOptCtl extends CtlBase {
robj.id = element.id;//数据的id
robj.demand_code = element.demand_code;//商机编号
robj.source = element.source_name;//商机来源
// robj.source_name = element.source_name;//商机来源-jiansuo
// robj.source_name = element.source_name;//商机来源-jiansuo
robj.business_type = element.business_type;//商机类型
robj.business_info_person = element.business_info.contactsName;//联系人
robj.v_coname = element.v_coname;//联系人-shousuo
robj.business_info_phone = system.decryptStr(element.business_info.contactsPhone);//联系电话
robj.v_cophone = system.decryptStr(element.v_cophone);//联系电话-shousuo
robj.business_status = element.business_status;//商机当前状态
if (element.business_info.serviceName && element.business_info.serviceName != 'undefined'){
if (element.business_info.serviceName && element.business_info.serviceName != 'undefined') {
robj.serviceName = element.business_info.serviceName;//服务地区
}
else{
robj.serviceName = "";
}
else {
robj.serviceName = "";
}
robj.updated_at = this.timeFormat(element.updated_at);//商机当前状态日期
robj.servicerName = element.facilitator_name;
......@@ -57,8 +61,8 @@ class BizOptCtl extends CtlBase {
robj.sourceName = element.source_name;//渠道来源
robj.source_name = element.source_name;//渠道来源--前端服务
robj.salesman_name=element.salesman_name;
robj.salesman_phone=system.decryptStr(element.salesman_phone);
robj.salesman_name = element.salesman_name;
robj.salesman_phone = system.decryptStr(element.salesman_phone);
rarr.push(robj);
});
......@@ -128,18 +132,25 @@ class BizOptCtl extends CtlBase {
}
}
/*更新业务员信息*/
async updateSalesmanInfoByDemandCode(mobj, qobj, req){
/*更新业务员信息*/
async updateSalesmanInfoByDemandCode(mobj, qobj, req) {
var pobj = mobj.d;
if (pobj.businessMode && pobj.businessMode != 'undefined'){
try{
if (pobj.businessMode && pobj.businessMode != 'undefined') {
const data = await this.service.findOne({
demand_code: pobj.businessMode,
facilitator_id: mobj.company_id
});
if (!data) {
return system.getResultError("没有权限");
}
try {
var res = await this.service.findInfoByDemandCode(pobj);
if (res){
if (res) {
var sInfo = {
"flowType": "BIZ",
"flowId": res.id,
"flowCode":pobj.businessMode,
"salesmanInfo":{
"flowCode": pobj.businessMode,
"salesmanInfo": {
"oldOpcode": res.salesman_opcode,
"oldClerkName": res.salesman_name,
"oldClerkId": res.salesman_id,
......@@ -158,16 +169,16 @@ class BizOptCtl extends CtlBase {
await this.service.updateSalesmanInfoByDemandCode(pobj);//更新业务员信息
return system.getResult("操作成功!");
}
else{
else {
return system.getResultError("未找到相关数据");
}
}
catch(error){
catch (error) {
return system.getResultError(error);
}
}
else{
else {
return system.getResultError("参数错误!");
}
}
......@@ -265,9 +276,9 @@ class BizOptCtl extends CtlBase {
}
timeFormat(date) {
let localTime = moment.utc(date).toDate();
localTime = moment(localTime).format("YYYY-MM-DD");
return localTime;
// let localTime = moment.utc(date).toDate();
// localTime = moment(localTime).format("YYYY-MM-DD HH:mm:ss");
return moment(date).format("YYYY-MM-DD HH:mm:ss");
}
}
module.exports = BizOptCtl;
......
......@@ -21,7 +21,7 @@ class DeliverybillCtl extends CtlBase {
}
/*根据用户id获取商机信息,分页获取*/
async findAndCountAll (pobj, qobj, req) {
async findAndCountAll(pobj, qobj, req) {
try {
//TODO 根据业务员id获取该业务员所有交付单列表
if (pobj.search && pobj.search.dateType) {
......@@ -30,6 +30,14 @@ class DeliverybillCtl extends CtlBase {
}
delete pobj.search.dateType
}
if (pobj.search && pobj.search.businessType) {
pobj.search.product_code = pobj.search.businessType
delete pobj.search.businessType
}
if (pobj.search && pobj.search.sourceName) {
pobj.search.source_name = pobj.search.sourceName
delete pobj.search.sourceName
}
const rs = await this.service.findAndCountAll(pobj);
let rarr = [];
......@@ -40,6 +48,7 @@ class DeliverybillCtl extends CtlBase {
robj.id = element.id;//数据的id
robj.deliverNumber = element.delivery_code;//交付单编号
robj.delivery_code = element.delivery_code;//交付单编号-shousuo
robj.master_source_number = element.master_source_number;//交付单主编号-shousuo
robj.businessName = element.product_name;//产品名称
robj.businessType = element.product_code;//产品编码
robj.product_name = element.product_name;//产品名称-shousuo
......@@ -95,7 +104,6 @@ class DeliverybillCtl extends CtlBase {
robj.clerkName = element.salesman_name;//业务员名称
robj.clerkPhone = system.decryptStr(element.salesman_phone);//业务员电话
robj.deliveryName = element.delivery_man_name;//交付人员名称
robj.baseInfo.deliveryName = element.delivery_man_name;//交付人员名称
robj.createdTime = this.timeFormat(element.created_at);//交付单创建时间
robj.created_at = this.timeFormat(element.created_at);//交付单创建时间-shousuo
rarr.push(robj);
......@@ -109,7 +117,7 @@ class DeliverybillCtl extends CtlBase {
}
/*根据交付单编号获取交付单xinxi*/
async findInfoByDeliverCode (mobj, qobj, req) {
async findInfoByDeliverCode(mobj, qobj, req) {
var pobj = mobj.d;
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined') {
try {
......@@ -131,13 +139,12 @@ class DeliverybillCtl extends CtlBase {
}
/*根据交付单编号获取交付单详情和材料详情*/
async dealInfo (mobj, qobj, req) {
async dealInfo(mobj, qobj, req) {
var pobj = mobj.d;
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined') {
try {
var rs = await this.service.findInfoByDeliverCode(pobj);
var ms = await this.materialService.findInfoByDeliverNumber(pobj);
console.log("ms___________________________" + JSON.stringify(ms));
var rarr = {
"baseInfo": {},
"contactsInfo": {},
......@@ -165,7 +172,6 @@ class DeliverybillCtl extends CtlBase {
rarr.baseInfo.clerkName = rs.salesman_name;//业务员名称
rarr.baseInfo.clerkPhone = system.decryptStr(rs.salesman_phone);//业务员电话
rarr.deliveryName = rs.delivery_man_name;//交付人员名称
rarr.baseInfo.deliveryName = rs.delivery_man_name;//交付人员名称
rarr.baseInfo.sellingPrice = this.FenToYuan(rs.selling_price);//价格
rarr.baseInfo.costPrice = this.FenToYuan(rs.cost_price);//成本价
rarr.baseInfo.deliverStatus = rs.delivery_status;//状态
......@@ -212,7 +218,7 @@ class DeliverybillCtl extends CtlBase {
rarr.baseInfo.buyDuration = rs.delivery_info.buyDuration;//购买时长
}
if (rs.delivery_info.buyTime && rs.delivery_info.buyTime != 'undefined') {
rarr.baseInfo.buyTime = this.timeFormat(rs.delivery_info.buyTime);//购买时间
rarr.baseInfo.buyTime = rs.delivery_info.buyTime;//购买时间
}
if (rs.delivery_info.startTime && rs.delivery_info.startTime != 'undefined') {
rarr.baseInfo.startTime = rs.delivery_info.startTime;//开始计费时间
......@@ -263,7 +269,7 @@ class DeliverybillCtl extends CtlBase {
}
if (position_t_info.positionData && position_t_info.positionData.length > 0) {
for (var i = 0; i < position_t_info.positionData.length; i++) {
for (var i = 0; i < pobj.positionInfo.positionData.length; i++) {
if (position_t_info.positionData[i].fixedPhone && position_t_info.positionData[i].fixedPhone != 'undefined') {
position_t_info.positionData[i].fixedPhone = system.decryptStr(position_t_info.positionData[i].fixedPhone);
}
......@@ -284,17 +290,15 @@ class DeliverybillCtl extends CtlBase {
return system.getResult(rarr);
}
catch (error) {
console.log("error___________________________" + error);
return system.getResultError(error);
}
}
else {
console.log("参数错误!___________________________");
return system.getResultError("参数错误!");
}
}
async updatestartTimeByDeliverCode (mobj, qobj, red) {//根据交付单编号更新开始计费时间
async updatestartTimeByDeliverCode(mobj, qobj, red) {//根据交付单编号更新开始计费时间
var pobj = mobj.d;
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined' && pobj.baseInfo.startTime && pobj.baseInfo.startTime != 'undefined') {
try {
......@@ -367,7 +371,7 @@ class DeliverybillCtl extends CtlBase {
}
}
/*根据交付单编号更新交付单状态*/
async updateStatusByDeliverCode (mobj, qobj, req) {
async updateStatusByDeliverCode(mobj, qobj, req) {
var pobj = mobj.d;
console.log("--------------------" + JSON.stringify(pobj));
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined' && pobj.deliverStatus && pobj.deliverStatus != 'undefined') {
......@@ -443,7 +447,7 @@ class DeliverybillCtl extends CtlBase {
}
}
async UpdateofficialSealByDeliverCode (mobj, qobj, req) {//更新营业执照扫描件和公章扫描件
async UpdateofficialSealByDeliverCode(mobj, qobj, req) {//更新营业执照扫描件和公章扫描件
var pobj = mobj.d;
if ((pobj.deliverNumber && pobj.deliverNumber != 'undefined' && ((pobj.baseInfo.officialSeal && pobj.baseInfo.officialSeal != 'undefined') || (pobj.baseInfo.businessLicense && pobj.baseInfo.businessLicense != 'undefined')))) {
try {
......@@ -505,7 +509,7 @@ class DeliverybillCtl extends CtlBase {
}
}
async updateExpressInfoByDeliverCode (mobj, qobj, req) {//更新邮寄信息
async updateExpressInfoByDeliverCode(mobj, qobj, req) {//更新邮寄信息
var pobj = mobj.d;
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined' && pobj.expressInfo && pobj.expressInfo != 'undefined') {
try {
......@@ -558,11 +562,76 @@ class DeliverybillCtl extends CtlBase {
}
}
/*更新业务员/交付员信息*/
async updateUsermanInfoByDeliverCode(mobj, qobj, req) {
var pobj = mobj.d;
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined') {
try {
var res = await this.service.findInfoByDeliverCode(pobj);
if (res) {
var sInfo = {
"flowType": "DELIVERY",
"flowId": res.id,
"flowCode": pobj.deliverNumber,
"salesmanInfo": {
//"oldClerkPhone": res.salesman_phone,
"oldFacilitatorId": res.facilitator_id,
"oldFacilitatorName": res.facilitator_name,
//"newClerkPhone": pobj.salesmanPhone,
"newFacilitatorId": pobj.facilitatorId,
"newFacilitatorName": pobj.facilitatorName
}
}
if (pobj.type == "deliverman") {
sInfo.salesmanInfo = {
"oldOpcode": res.delivery_man_opcode,
"oldClerkName": res.delivery_man_name,
"oldClerkId": res.delivery_man_id,
"newOpcode": pobj.deliverymanOpcode,
"newClerkName": pobj.deliverymanName,
"newClerkId": pobj.deliverymanId,
}
}
if (pobj.type == "salesman") {
sInfo.salesmanInfo = {
"oldOpcode": res.sales_man_opcode,
"oldClerkName": res.sales_man_name,
"oldClerkId": res.sales_man_id,
"newOpcode": pobj.salesmanOpcode,
"newClerkName": pobj.salesmanName,
"newClerkId": pobj.salesmanId,
}
}
await this.shisService.insertInfo(sInfo);//之前业务员转历史
await this.service.updateSalesmanInfoByDeliverCode(pobj);//更新业务员信息
return system.getResult("操作成功!");
}
else {
return system.getResultError("未找到相关数据");
}
}
catch (error) {
return system.getResultError(error);
}
}
else {
return system.getResultError("参数错误!");
}
}
/*更新业务员信息*/
async updateSalesmanInfoByDeliverCode (mobj, qobj, req) {
async updateSalesmanInfoByDeliverCode(mobj, qobj, req) {
var pobj = mobj.d;
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined') {
try {
const data = await this.service.findOne({
delivery_code: pobj.deliverNumber,
facilitator_id: mobj.company_id
});
if (!data) {
return system.getResultError("没有权限");
}
var res = await this.service.findInfoByDeliverCode(pobj);
if (res) {
var sInfo = {
......@@ -585,7 +654,10 @@ class DeliverybillCtl extends CtlBase {
}
}
await this.shisService.insertInfo(sInfo);//之前业务员转历史
await this.service.updateSalesmanInfoByDeliverCode(pobj);//更新业务员信息
await this.service.updateSalesmanInfoByDeliverCode({
...pobj,
type: "deliverman"
});//更新业务员信息
return system.getResult("操作成功!");
}
else {
......@@ -603,7 +675,7 @@ class DeliverybillCtl extends CtlBase {
}
/*根据交付单编号更新交付单详情*/
async updateInfoByDeliverCode (mobj, qobj, req) {//
async updateInfoByDeliverCode(mobj, qobj, req) {//
var pobj = mobj.d;
console.log("根据交付单编号更新交付单详情-------------------------" + JSON.stringify(pobj));
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined') {
......@@ -718,14 +790,14 @@ class DeliverybillCtl extends CtlBase {
}
async settleApplyForTacent (p, q, req) {
async settleApplyForTacent(p, q, req) {
let ids = p.ids
let spname = p.spname
let spid = p.spid
let rtn = await this.service.settleApplyForTacent(ids, p.userid, p.username, spname, spid)
return system.getResult({})
}
async settleApply (p, q, req) {
async settleApply(p, q, req) {
let ids = p.ids
let spname = p.spname
let spid = p.spid
......@@ -733,7 +805,7 @@ class DeliverybillCtl extends CtlBase {
return system.getResult({})
}
/*根据商机编号插入交付单信息*/
async insertInfo (nobj, qobj, req) {//队列的时候用
async insertInfo(nobj, qobj, req) {//队列的时候用
var pobj = nobj.d;
console.log("根据交付单编号更新交付单详情-------------------------" + JSON.stringify(pobj));
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined') {
......@@ -914,7 +986,7 @@ class DeliverybillCtl extends CtlBase {
}
}
/*获取压缩文件的信息 */
async findZipUrlByDeliverCode (mobj, qobj, req) {//
async findZipUrlByDeliverCode(mobj, qobj, req) {//
var pobj = mobj.d;
if (pobj.deliverNumber && pobj.deliverNumber != 'undefined') {
try {
......@@ -963,14 +1035,14 @@ class DeliverybillCtl extends CtlBase {
}
}
timeFormat (date) {
let localTime = moment.utc(date).toDate();
localTime = moment(localTime).format("YYYY-MM-DD");
return localTime;
timeFormat(date) {
// let localTime = moment.utc(date).toDate();
// localTime = moment(localTime).format("YYYY-MM-DD");
return moment(date).format("YYYY-MM-DD HH:mm:ss");
}
//元转分 - 解决精度问题 yuan:要转换的钱,单位元; digit:转换倍数
YuanToFen (yuan, digit) {
YuanToFen(yuan, digit) {
var m = 0,
s1 = yuan.toString(),
s2 = digit.toString();
......@@ -979,7 +1051,7 @@ class DeliverybillCtl extends CtlBase {
return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m)
}
FenToYuan (fen) {
FenToYuan(fen) {
var num = fen;
num = fen * 0.01;
num += '';
......@@ -989,7 +1061,7 @@ class DeliverybillCtl extends CtlBase {
return num;
}
toDecimal2 (x) {
toDecimal2(x) {
var f = parseFloat(x);
if (isNaN(f)) {
return false;
......@@ -1008,7 +1080,7 @@ class DeliverybillCtl extends CtlBase {
}
//time时间n年后的的前一天
oneYearPast (time, n) {
oneYearPast(time, n) {
//var time=new Date();
try {
var year = time.getFullYear() + n;
......@@ -1017,20 +1089,20 @@ class DeliverybillCtl extends CtlBase {
var xx = time.setDate(date);
return moment(new Date(xx)).format('yyyy-MM-DD');
}
catch{
catch {
return "";
}
}
//计算俩日期相差多少天
diffDays (time1, time2) {
diffDays(time1, time2) {
try {
var m1 = moment(time1);
var m2 = moment(time2);
return m2.diff(m1, 'day');
}
catch{
catch {
return "";
}
......
......@@ -40,7 +40,7 @@ class DeliverybillDao extends Dao {
//不是来自平台前端查询
if (qobj.bizpath && qobj.bizpath.indexOf("pmx") < 0) {
qc.where.product_code = qc.where.product_code || {
[this.db.Op.notIn]: ["ICP", "EDI", "ICPANNUALREPORT", "EDIANNUALREPORT"]
[this.db.Op.notIn]: ["ICP", "EDI", "ICPANNUALREPORT", "EDIANNUALREPORT", "bookkeeping"]
}
if (qobj.bizpath && qobj.bizpath != "") {
if (qobj.bizpath.indexOf("myDeliver") > 0) {//说明是从商机列表过来的
......@@ -84,18 +84,31 @@ class DeliverybillDao extends Dao {
return await this.updateByWhere(setobj, whereobj, t);
}
/*更新交付人员信息*/
/*更新业务员/交付员信息*/
async updateSalesmanInfoByDeliverCode(qobj, t) {
var setobj = {};
if (qobj.salesmanId && qobj.salesmanId != 'undefined') {
setobj.delivery_man_id = qobj.salesmanId;
};
if (qobj.salesmanName && qobj.salesmanName != 'undefined') {
setobj.delivery_man_name = qobj.salesmanName;
};
if (qobj.salesmanOpcode && qobj.salesmanOpcode != 'undefined') {
setobj.delivery_man_opcode = qobj.salesmanOpcode;
};
if (qobj.type == "salesman") {
if (qobj.salesmanId && qobj.salesmanId != 'undefined') {
setobj.salesman_id = qobj.salesmanId;
};
if (qobj.salesmanName && qobj.salesmanName != 'undefined') {
setobj.salesman_name = qobj.salesmanName;
};
if (qobj.salesmanOpcode && qobj.salesmanOpcode != 'undefined') {
setobj.salesman_opcode = qobj.salesmanOpcode;
};
}
if (qobj.type == "deliverman") {
if (qobj.deliverymanId && qobj.deliverymanId != 'undefined') {
setobj.delivery_man_id = qobj.deliverymanId;
};
if (qobj.deliverymanName && qobj.deliverymanName != 'undefined') {
setobj.delivery_man_name = qobj.deliverymanName;
};
if (qobj.deliverymanOpcode && qobj.deliverymanOpcode != 'undefined') {
setobj.delivery_man_opcode = qobj.deliverymanOpcode;
};
}
// if (qobj.salesmanPhone && qobj.salesmanPhone != 'undefined') {
// setobj.salesman_phone = qobj.salesmanPhone;
// };
......@@ -169,7 +182,7 @@ class DeliverybillDao extends Dao {
if (qobj.clerkName && qobj.clerkName != 'undefined') {
obj.delivery_man_name = qobj.clerkName;
}
if (qobj.salesmanName && qobj.salesmanName != undefined){
if (qobj.salesmanName && qobj.salesmanName != undefined) {
obj.salesman_name = qobj.salesmanName;
}
if (qobj.salesmanPhone && qobj.salesmanPhone != 'undefined') {
......
......@@ -327,8 +327,8 @@ module.exports = {
"/qcfw/edi/":"EDI",
"/qcfw/icpannals/":"ICPANNUALREPORT",
"/qcfw/ediannals/":"EDIANNUALREPORT",
"ic/cpdljz/":"psAgentCase",
"ic/cpkzfw/":"psSealSevCase"
"/ic/cpdljz/":"psAgentCase",
"/ic/cpkzfw/":"psSealSevCase"
},
"fdyDict": {//产品反对应关系
"companyCase": "/ic/gsreg/",
......@@ -346,8 +346,8 @@ module.exports = {
"EDI":"/qcfw/edi/",
"ICPANNUALREPORT":"/qcfw/icpannals/",
"EDIANNUALREPORT":"/qcfw/ediannals/",
"psAgentCase":"ic/cpdljz/",
"psSealSevCase":"ic/cpkzfw/"
"psAgentCase":"/ic/cpdljz/",
"psSealSevCase":"/ic/cpkzfw/"
},
"ddyDict": {//和庄冰的交付单对应关系
"paid": 1,
......
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.
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.
h3[data-v-197e0440]{margin:10px .25em 2ex 1px}.cell-edit-color[data-v-197e0440]{color:#2db7f5;font-weight:700}#bottom[data-v-197e0440]{position:absolute;right:0;left:0;bottom:0;border-top:1px solid #e8e8e8;padding:14px 14px;color:#f0f8ff;background:#666;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}#turnright[data-v-197e0440]{margin-right:0}
\ No newline at end of file
h3[data-v-150bc206]{margin:10px .25em 2ex 1px}.cell-edit-color[data-v-150bc206]{color:#2db7f5;font-weight:700}#bottom[data-v-150bc206]{position:absolute;right:0;left:0;bottom:0;border-top:1px solid #e8e8e8;padding:14px 14px;color:#f0f8ff;background:#666;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}#turnright[data-v-150bc206]{margin-right:0}
\ 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-0ecc464f.e8a7e262.css rel=prefetch><link href=/css/chunk-103658d6.9a1475cf.css rel=prefetch><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-168103e5.3623703d.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-3bb01b7e.a1ef4ffa.css rel=prefetch><link href=/css/chunk-599a3504.1e75f0e2.css rel=prefetch><link href=/css/chunk-69fcc7bb.03f445a2.css rel=prefetch><link href=/css/chunk-6f711436.09462324.css rel=prefetch><link href=/css/chunk-7dc6d142.86cde795.css rel=prefetch><link href=/css/chunk-b07d3c52.5ca8040e.css rel=prefetch><link href=/css/chunk-c1a112d6.f7e9e5eb.css rel=prefetch><link href=/css/chunk-dba5f5e4.c216ed15.css rel=prefetch><link href=/js/chunk-0ecc464f.4c28cc51.js rel=prefetch><link href=/js/chunk-103658d6.b2244c62.js rel=prefetch><link href=/js/chunk-14b9857b.f43c31a1.js rel=prefetch><link href=/js/chunk-168103e5.36761154.js rel=prefetch><link href=/js/chunk-2c359864.463fa80e.js rel=prefetch><link href=/js/chunk-2d0be336.3ce23c4b.js rel=prefetch><link href=/js/chunk-3385141a.7777148b.js rel=prefetch><link href=/js/chunk-3bb01b7e.ab82026f.js rel=prefetch><link href=/js/chunk-50ac3ef2.ed105fa8.js rel=prefetch><link href=/js/chunk-581ae672.a14aa66e.js rel=prefetch><link href=/js/chunk-599a3504.f9fc6f3a.js rel=prefetch><link href=/js/chunk-69fcc7bb.232a45b2.js rel=prefetch><link href=/js/chunk-6f711436.aa5fc7cc.js rel=prefetch><link href=/js/chunk-7dc6d142.5a670f53.js rel=prefetch><link href=/js/chunk-9ebfd05c.a16455cd.js rel=prefetch><link href=/js/chunk-b07d3c52.6f962df9.js rel=prefetch><link href=/js/chunk-c1a112d6.947b33c9.js rel=prefetch><link href=/js/chunk-dba5f5e4.08683d1a.js rel=prefetch><link href=/js/chunk-f116a998.b9b2f1ed.js rel=prefetch><link href=/js/chunk-f285db4a.9c446159.js rel=prefetch><link href=/css/app.04d31a64.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.731858bd.js rel=preload as=script><link href=/js/chunk-vendors.3d21815e.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.04d31a64.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.3d21815e.js></script><script src=/js/app.731858bd.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-0ecc464f.e8a7e262.css rel=prefetch><link href=/css/chunk-103658d6.9a1475cf.css rel=prefetch><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-168103e5.3623703d.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-3bb01b7e.a1ef4ffa.css rel=prefetch><link href=/css/chunk-599a3504.1e75f0e2.css rel=prefetch><link href=/css/chunk-69fcc7bb.03f445a2.css rel=prefetch><link href=/css/chunk-6f711436.09462324.css rel=prefetch><link href=/css/chunk-b07d3c52.5ca8040e.css rel=prefetch><link href=/css/chunk-c1a112d6.f7e9e5eb.css rel=prefetch><link href=/css/chunk-dba5f5e4.c216ed15.css rel=prefetch><link href=/css/chunk-e9f5b4dc.001ee586.css rel=prefetch><link href=/js/chunk-0ecc464f.4c28cc51.js rel=prefetch><link href=/js/chunk-103658d6.b2244c62.js rel=prefetch><link href=/js/chunk-14b9857b.f43c31a1.js rel=prefetch><link href=/js/chunk-168103e5.36761154.js rel=prefetch><link href=/js/chunk-2c359864.463fa80e.js rel=prefetch><link href=/js/chunk-2d0be336.3ce23c4b.js rel=prefetch><link href=/js/chunk-3385141a.7777148b.js rel=prefetch><link href=/js/chunk-3bb01b7e.ab82026f.js rel=prefetch><link href=/js/chunk-50ac3ef2.ed105fa8.js rel=prefetch><link href=/js/chunk-581ae672.a14aa66e.js rel=prefetch><link href=/js/chunk-599a3504.f9fc6f3a.js rel=prefetch><link href=/js/chunk-69fcc7bb.232a45b2.js rel=prefetch><link href=/js/chunk-6f711436.4938051f.js rel=prefetch><link href=/js/chunk-9ebfd05c.a16455cd.js rel=prefetch><link href=/js/chunk-b07d3c52.6f962df9.js rel=prefetch><link href=/js/chunk-c1a112d6.947b33c9.js rel=prefetch><link href=/js/chunk-dba5f5e4.08683d1a.js rel=prefetch><link href=/js/chunk-e9f5b4dc.0a91bfd9.js rel=prefetch><link href=/js/chunk-f116a998.b9b2f1ed.js rel=prefetch><link href=/js/chunk-f285db4a.9c446159.js rel=prefetch><link href=/css/app.cedbaf97.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.d6c04d34.js rel=preload as=script><link href=/js/chunk-vendors.3d21815e.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.cedbaf97.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.3d21815e.js></script><script src=/js/app.d6c04d34.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-6f711436"],{"0403":function(e,s,l){},1355:function(e,s,l){"use strict";var t=l("0403"),a=l.n(t);a.a},"9dd1":function(e,s,l){"use strict";l.r(s);var t=function(){var e=this,s=e.$createElement,l=e._self._c||s;return l("div",[l("div",{staticStyle:{"background-color":"white"}},[l("div",{staticStyle:{padding:"10px 0.25em 2ex 1%"}},[l("div",[l("h3",[l("Icon",{attrs:{type:"ios-paper-outline"}}),e._v(" 当前状态\n ")],1),l("div",[l("customSteps",{key:e.stepsKey,attrs:{datasouce:e.sourceData,indirector:e.sourceDataIndex}})],1)])]),l("CaseForm",{key:e.baseInfoKey,ref:"baseInfo",attrs:{fminfo:e.baseInfo,noExpandAuth:"",turnDisabledStatus:e.turnDisabledStatus,isBtnShow:!0,payStatusBtn:e.payStatusBtn},on:{dicselectOnchange:e.dicselectOnchange,onStartTime:e.saveStartTime},scopedSlots:e._u([{key:"default",fn:function(e){}}])}),l("CaseForm",{directives:[{name:"show",rawName:"v-show",value:e.showCompanyInfo,expression:"showCompanyInfo"}],key:e.companyInfoKey,ref:"companyInfo",attrs:{fminfo:e.companyInfo,noExpandAuth:""},scopedSlots:e._u([{key:"default",fn:function(e){}}])}),l("div",{directives:[{name:"show",rawName:"v-show",value:e.hasExpressInfo,expression:"hasExpressInfo"}],staticStyle:{padding:"10px 0.25em 2ex 1%"}},[l("div",[l("h3",[l("Icon",{attrs:{type:"ios-paper-outline"}}),e._v(" 邮寄信息\n ")],1),l("Button",{staticStyle:{float:"right","margin-top":"-45px","margin-right":"20px"},attrs:{type:"primary"},on:{click:function(s){return e.creatExpressDataSuccess("newExpressData")}}},[e._v("提 交")]),l("div",[l("Form",{ref:"newExpressData",attrs:{model:e.newExpressData,"label-position":"left",rules:e.newExpressDataRules,"label-width":100}},[l("Row",[l("Col",{attrs:{span:"12"}},[l("FormItem",{attrs:{label:"运单号:",prop:"trackingNumber"}},[l("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.trackingNumber,callback:function(s){e.$set(e.newExpressData,"trackingNumber",s)},expression:"newExpressData.trackingNumber"}})],1)],1),l("Col",{attrs:{span:"12"}},[l("FormItem",{attrs:{label:"物流公司:",prop:"logisticsCompany"}},[l("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.logisticsCompany,callback:function(s){e.$set(e.newExpressData,"logisticsCompany",s)},expression:"newExpressData.logisticsCompany"}})],1)],1)],1),l("Row",[l("Col",{attrs:{span:"12"}},[l("FormItem",{attrs:{label:"收件人名称:",prop:"addresseeName"}},[l("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.addresseeName,callback:function(s){e.$set(e.newExpressData,"addresseeName",s)},expression:"newExpressData.addresseeName"}})],1)],1),l("Col",{attrs:{span:"12"}},[l("FormItem",{attrs:{label:"收件人电话:",prop:"addresseePhone"}},[l("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.addresseePhone,callback:function(s){e.$set(e.newExpressData,"addresseePhone",s)},expression:"newExpressData.addresseePhone"}})],1)],1)],1),l("Row",[l("Col",{attrs:{span:"12"}},[l("FormItem",{attrs:{label:"收件人邮箱:"}},[l("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.addresseeEmail,callback:function(s){e.$set(e.newExpressData,"addresseeEmail",s)},expression:"newExpressData.addresseeEmail"}})],1)],1),l("Col",{attrs:{span:"12"}},[l("FormItem",{attrs:{label:"收件人地址:",prop:"addresseeAddress"}},[l("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.addresseeAddress,callback:function(s){e.$set(e.newExpressData,"addresseeAddress",s)},expression:"newExpressData.addresseeAddress"}})],1)],1)],1)],1)],1)],1),l("Divider")],1)],1)])},a=[],r=(l("e10e"),l("cc57"),l("6d57"),l("0086")),p=l("db7f"),i=l("8ae1"),o=l("7e1e"),n={name:"addedsvedeliverdetails",data:function(){return{bizType:"",bizCode:"",sourceData:[],sourceDataIndex:0,bizStatus:"",payStatusBtn:"修 改",baseInfos:{openBankAccountCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},taxCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus3",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},icCheckCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus3",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},ssOpenCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},icChangeCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},taxControlCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"纳税人类型:",prop:"taxpayerType",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},sealSevCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},psSealSevCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},agentCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"购买时间:",prop:"buyTime",style:"",rules:[]},{type:"dateInput",label:"开始服务时间:",prop:"startTime",style:"width:30%",rules:[]},{type:"label",label:"购买时长:",prop:"buyDuration",style:"",rules:[]},{type:"label",label:"到期时间:",prop:"endTime",style:"",rules:[]},{type:"label",label:"还剩:",prop:"surplusDuration",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"label",label:"是否自动续费:",prop:"isRenew",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},psAgentCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"购买时间:",prop:"buyTime",style:"",rules:[]},{type:"dateInput",label:"开始服务时间:",prop:"startTime",style:"width:30%",rules:[]},{type:"label",label:"购买时长:",prop:"buyDuration",style:"",rules:[]},{type:"label",label:"到期时间:",prop:"endTime",style:"",rules:[]},{type:"label",label:"还剩:",prop:"surplusDuration",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"label",label:"是否自动续费:",prop:"isRenew",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},regAddrCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"购买时间:",prop:"buyTime",style:"",rules:[]},{type:"dateInput",label:"开始服务时间:",prop:"startTime",style:"width:30%",rules:[]},{type:"label",label:"购买时长:",prop:"buyDuration",style:"",rules:[]},{type:"label",label:"到期时间:",prop:"endTime",style:"",rules:[]},{type:"label",label:"还剩:",prop:"surplusDuration",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"label",label:"是否自动续费:",prop:"isRenew",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]}},showCompanyInfo:!0,companyInfo:{name:"业务所属主体",main:[{title:"业务所属主体",key:"companyInfo",ctls:[{type:"label",label:"公司名称:",prop:"companyName",style:"",disabled:!1,rules:[]},{type:"label",label:"统一社会信用代码:",prop:"creditCode",style:"",disabled:!1,rules:[]},{type:"label",label:"公司类型:",prop:"companyType",style:"",disabled:!1,rules:[]},{type:"label",label:"成立时间:",prop:"establishedTime",style:"",disabled:!1,rules:[]},{type:"label",label:"法定代表人:",prop:"shareholderName",style:"",disabled:!1,rules:[]},{type:"label",label:"营业期限:",prop:"businessTerm",style:"",disabled:!1,rules:[]},{type:"label",label:"注册资本:",prop:"registeredCapital",style:"",disabled:!1,rules:[]},{type:"label",label:"经营范围:",prop:"businessScope",style:"",disabled:!1,rules:[]},{type:"label",label:"住所:",prop:"residenceAddress",style:"",disabled:!1,rules:[]}]}],lists:[]},hasExpressInfo:!1,newExpressData:{trackingNumber:"",logisticsCompany:"",addresseeName:"",addresseePhone:"",addresseeEmail:"",addresseeAddress:""},newExpressDataRules:{trackingNumber:[{required:!0,message:"运单号不能为空",trigger:"blur"}],logisticsCompany:[{required:!0,message:"物流公司不能为空",trigger:"blur"}],addresseeName:[{required:!0,message:"收件人不能为空",trigger:"blur"}],addresseePhone:[{required:!0,message:"收件人电话不能为空",trigger:"blur"}],addresseeAddress:[{required:!0,message:"收件人地址不能为空",trigger:"blur"}]}}},components:{CaseForm:r["a"],customSteps:i["a"]},created:function(){this.bizType=this.$route.query.bizType,this.bizCode=this.$route.query.bizCode,console.log("bizcase--",this.bizType,this.bizCode)},mounted:function(){this.showExpressInfo(),this.getAllInfo()},computed:{baseInfo:function(){var e=this.bizType;return this.baseInfos[e]},stepsKey:function(){return"steps"+this.$route.query.bizType},baseInfoKey:function(){return"baseInfo"+this.$route.query.bizType},companyInfoKey:function(){return"companyInfo"+this.$route.query.bizType}},watch:{$route:function(){this.bizType=this.$route.query.bizType,this.bizCode=this.$route.query.bizCode}},methods:{onexec:function(e,s){},validmethod:function(e,s,l){return l()},getSourceData:function(e){var s=p["a"][e];this.sourceData=s},getSourceDataIndex:function(){var e=this,s=this.sourceData,l=0;return s.forEach((function(s,t){s.key==e.bizStatus&&(l=t)})),l},saveStartTime:function(){var e=this,s={baseInfo:{}},l=this.$refs.baseInfo.formModel;l.startTime?(s.deliverNumber=this.bizCode,s.baseInfo.startTime=l.startTime,console.log(JSON.stringify(s)),Object(o["e"])(s).then((function(s){console.log("deliverStartTimeUpdate result:"+JSON.stringify(s)),e.$Message.success("开始服务时间更新成功"),e.getAllInfo()})).catch((function(s){console.log("deliverStartTimeUpdate err:"+JSON.stringify(s)),e.$Message.error("开始服务时间更新失败")}))):this.$Message.error("没有开始服务时间字段")},getCompanyData:function(e){this.$refs.companyInfo.formModel={companyName:e.companyName,creditCode:e.creditCode,companyType:e.companyType,establishedTime:e.establishedTime,shareholderName:e.shareholderName,businessTerm:e.businessTerm,registeredCapital:e.registeredCapital,businessScope:e.businessScope,residenceAddress:e.residenceAddress}},getExpressInfo:function(e){e&&null!==e?this.newExpressData=e:(this.needCreat=!0,this.withExpressInfo=!1)},turnDisabledStatus:function(){for(var e=this.baseInfo,s=e.main[0].ctls,l=0;l<s.length;l++){var t=s[l];"payStatus"==t.prop&&(1==t.isDisabled?(this.baseInfo.main[0].ctls[l].isDisabled=!1,this.payStatusBtn="保 存"):(this.baseInfo.main[0].ctls[l].isDisabled=!0,this.payStatusBtn="修 改",this.deliverStatusUpdate(),this.$Message.success("保存成功!")))}},dicselectOnchange:function(e){"待交付"==e&&(this.bizStatus="received"),"已交付"==e&&(this.bizStatus="inservice"),"已完成"==e&&(this.bizStatus="success")},showExpressInfo:function(){this.bizType&&("agentCase"==this.bizType||"psAgentCase"==this.bizType||"regAddrCase"==this.bizType?this.getSourceData("diliverDetailsSteps2"):this.getSourceData("diliverDetailsSteps1"),"agentCase"!=this.bizType&&"psAgentCase"!=this.bizType&&"regAddrCase"!=this.bizType&&"icCheckCase"!=this.bizType&&"taxCase"!=this.bizType&&(this.hasExpressInfo=!0))},creatExpressDataSuccess:function(e){var s=this;this.$refs[e].validate((function(e){e?(s.expressStatusUpdate(),s.$Message.success("新建邮寄信息成功!")):s.$Message.error("请将必填项填写完整后提交!")}))},expressStatusUpdate:function(){var e=this.newExpressData,s={};s.deliverNumber=this.bizCode,s.expressInfo=e,Object(o["h"])(s).then((function(e){console.log("expressStatusUpdateDic result: ",e)})).catch((function(e){console.log("expressStatusUpdateDic err: ",e)})),this.bizStatus="success",this.deliverStatusUpdate()},deliverStatusUpdate:function(){var e=this,s=this.bizStatus,l={};l.deliverNumber=this.bizCode,l.deliverStatus=s,Object(o["f"])(l).then((function(s){console.log("deliverStatusUpdateDic result: ",JSON.stringify(s)),e.sourceDataIndex=e.getSourceDataIndex()})).catch((function(e){console.log("deliverStatusUpdateDic err: ",JSON.stringify(e))}))},getAllInfo:function(){var e=this,s={};s.deliverNumber=this.bizCode,Object(o["n"])(s).then((function(s){console.log("-=-=-=-=-=:",JSON.stringify(s));var l=s.data.data;l.statusInfo&&(e.bizStatus=l.statusInfo.deliverStatus,e.sourceDataIndex=e.getSourceDataIndex());var t=e.dictKey2Value(l.baseInfo);if(l.baseInfo){var a=t;e.$refs.baseInfo.formModel=a}if(l.companyInfo&&0!==Object.keys(l.companyInfo).length){var r=l.companyInfo;e.getCompanyData(r)}else e.showCompanyInfo=!1;e.getExpressInfo(l.expressInfo)})).catch((function(e){console.log("getDeliverDetails err:",JSON.stringify(e))}))},dictKey2Value:function(e){return e.serviceCode=p["a"].registeredAreaDict[e.serviceCode],"taxControlCase"!=this.bizType&&"agentCase"!=this.bizType&&"psAgentCase"!=this.bizType||(e.taxpayerType=p["a"].TaxpayerTypeDict[e.taxpayerType]),e}}},y=n,u=(l("1355"),l("9ca4")),b=Object(u["a"])(y,t,a,!1,null,null,null);s["default"]=b.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f711436"],{"0403":function(e,s,t){},1355:function(e,s,t){"use strict";var l=t("0403"),a=t.n(l);a.a},"9dd1":function(e,s,t){"use strict";t.r(s);var l=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("div",{staticStyle:{"background-color":"white"}},[t("div",{staticStyle:{padding:"10px 0.25em 2ex 1%"}},[t("div",[t("h3",[t("Icon",{attrs:{type:"ios-paper-outline"}}),e._v(" 当前状态\n ")],1),t("div",[t("customSteps",{key:e.stepsKey,attrs:{datasouce:e.sourceData,indirector:e.sourceDataIndex}})],1)])]),t("CaseForm",{key:e.baseInfoKey,ref:"baseInfo",attrs:{fminfo:e.baseInfo,noExpandAuth:"",turnDisabledStatus:e.turnDisabledStatus,isBtnShow:!0,payStatusBtn:e.payStatusBtn},on:{dicselectOnchange:e.dicselectOnchange,onStartTime:e.saveStartTime},scopedSlots:e._u([{key:"default",fn:function(e){}}])}),t("CaseForm",{directives:[{name:"show",rawName:"v-show",value:e.showCompanyInfo,expression:"showCompanyInfo"}],key:e.companyInfoKey,ref:"companyInfo",attrs:{fminfo:e.companyInfo,noExpandAuth:""},scopedSlots:e._u([{key:"default",fn:function(e){}}])}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasExpressInfo,expression:"hasExpressInfo"}],staticStyle:{padding:"10px 0.25em 2ex 1%"}},[t("div",[t("h3",[t("Icon",{attrs:{type:"ios-paper-outline"}}),e._v(" 邮寄信息\n ")],1),t("Button",{staticStyle:{float:"right","margin-top":"-45px","margin-right":"20px"},attrs:{type:"primary"},on:{click:function(s){return e.creatExpressDataSuccess("newExpressData")}}},[e._v("提 交")]),t("div",[t("Form",{ref:"newExpressData",attrs:{model:e.newExpressData,"label-position":"left",rules:e.newExpressDataRules,"label-width":100}},[t("Row",[t("Col",{attrs:{span:"12"}},[t("FormItem",{attrs:{label:"运单号:",prop:"trackingNumber"}},[t("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.trackingNumber,callback:function(s){e.$set(e.newExpressData,"trackingNumber",s)},expression:"newExpressData.trackingNumber"}})],1)],1),t("Col",{attrs:{span:"12"}},[t("FormItem",{attrs:{label:"物流公司:",prop:"logisticsCompany"}},[t("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.logisticsCompany,callback:function(s){e.$set(e.newExpressData,"logisticsCompany",s)},expression:"newExpressData.logisticsCompany"}})],1)],1)],1),t("Row",[t("Col",{attrs:{span:"12"}},[t("FormItem",{attrs:{label:"收件人名称:",prop:"addresseeName"}},[t("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.addresseeName,callback:function(s){e.$set(e.newExpressData,"addresseeName",s)},expression:"newExpressData.addresseeName"}})],1)],1),t("Col",{attrs:{span:"12"}},[t("FormItem",{attrs:{label:"收件人电话:",prop:"addresseePhone"}},[t("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.addresseePhone,callback:function(s){e.$set(e.newExpressData,"addresseePhone",s)},expression:"newExpressData.addresseePhone"}})],1)],1)],1),t("Row",[t("Col",{attrs:{span:"12"}},[t("FormItem",{attrs:{label:"收件人邮箱:"}},[t("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.addresseeEmail,callback:function(s){e.$set(e.newExpressData,"addresseeEmail",s)},expression:"newExpressData.addresseeEmail"}})],1)],1),t("Col",{attrs:{span:"12"}},[t("FormItem",{attrs:{label:"收件人地址:",prop:"addresseeAddress"}},[t("Input",{staticStyle:{width:"50%"},model:{value:e.newExpressData.addresseeAddress,callback:function(s){e.$set(e.newExpressData,"addresseeAddress",s)},expression:"newExpressData.addresseeAddress"}})],1)],1)],1)],1)],1)],1),t("Divider")],1)],1)])},a=[],r=(t("e10e"),t("cc57"),t("6d57"),t("0086")),i=t("db7f"),p=t("8ae1"),o=t("7e1e"),n={name:"addedsvedeliverdetails",data:function(){return{bizType:"",bizCode:"",sourceData:[],sourceDataIndex:0,bizStatus:"",payStatusBtn:"修 改",baseInfos:{openBankAccountCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},taxCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus3",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},icCheckCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus3",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},ssOpenCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},icChangeCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},taxControlCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"纳税人类型:",prop:"taxpayerType",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},sealSevCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"更新时间:",prop:"updateTime",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},agentCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"购买时间:",prop:"buyTime",style:"",rules:[]},{type:"dateInput",label:"开始服务时间:",prop:"startTime",style:"width:30%",rules:[]},{type:"label",label:"购买时长:",prop:"buyDuration",style:"",rules:[]},{type:"label",label:"到期时间:",prop:"endTime",style:"",rules:[]},{type:"label",label:"还剩:",prop:"surplusDuration",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"label",label:"是否自动续费:",prop:"isRenew",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]},regAddrCase:{name:"概要",main:[{title:"概要",key:"baseinfo",ctls:[{type:"label",label:"订单编号:",prop:"deliverNumber",style:"",rules:[]},{type:"label",label:"订单金额:",prop:"sellingPrice",style:"",rules:[]},{type:"label",label:"服务地区:",prop:"serviceCode",style:"",rules:[]},{type:"label",label:"购买时间:",prop:"buyTime",style:"",rules:[]},{type:"dateInput",label:"开始服务时间:",prop:"startTime",style:"width:30%",rules:[]},{type:"label",label:"购买时长:",prop:"buyDuration",style:"",rules:[]},{type:"label",label:"到期时间:",prop:"endTime",style:"",rules:[]},{type:"label",label:"还剩:",prop:"surplusDuration",style:"",rules:[]},{type:"label",label:"分配顾问:",prop:"deliveryName",style:"",rules:[]},{type:"label",label:"是否自动续费:",prop:"isRenew",style:"",rules:[]},{type:"dic-select",label:"交付状态:",dicName:"payStatus2",isMulti:!1,prop:"payStatus",isDisabled:!0,style:"width: 60%;",rules:[]},{type:"label",label:"联系人姓名:",prop:"contactsName",style:"",rules:[]},{type:"label",label:"联系人电话:",prop:"contactsPhone",style:"",rules:[]}]}],lists:[]}},showCompanyInfo:!0,companyInfo:{name:"业务所属主体",main:[{title:"业务所属主体",key:"companyInfo",ctls:[{type:"label",label:"公司名称:",prop:"companyName",style:"",disabled:!1,rules:[]},{type:"label",label:"统一社会信用代码:",prop:"creditCode",style:"",disabled:!1,rules:[]},{type:"label",label:"公司类型:",prop:"companyType",style:"",disabled:!1,rules:[]},{type:"label",label:"成立时间:",prop:"establishedTime",style:"",disabled:!1,rules:[]},{type:"label",label:"法定代表人:",prop:"shareholderName",style:"",disabled:!1,rules:[]},{type:"label",label:"营业期限:",prop:"businessTerm",style:"",disabled:!1,rules:[]},{type:"label",label:"注册资本:",prop:"registeredCapital",style:"",disabled:!1,rules:[]},{type:"label",label:"经营范围:",prop:"businessScope",style:"",disabled:!1,rules:[]},{type:"label",label:"住所:",prop:"residenceAddress",style:"",disabled:!1,rules:[]}]}],lists:[]},hasExpressInfo:!1,newExpressData:{trackingNumber:"",logisticsCompany:"",addresseeName:"",addresseePhone:"",addresseeEmail:"",addresseeAddress:""},newExpressDataRules:{trackingNumber:[{required:!0,message:"运单号不能为空",trigger:"blur"}],logisticsCompany:[{required:!0,message:"物流公司不能为空",trigger:"blur"}],addresseeName:[{required:!0,message:"收件人不能为空",trigger:"blur"}],addresseePhone:[{required:!0,message:"收件人电话不能为空",trigger:"blur"}],addresseeAddress:[{required:!0,message:"收件人地址不能为空",trigger:"blur"}]}}},components:{CaseForm:r["a"],customSteps:p["a"]},created:function(){this.bizType=this.$route.query.bizType,this.bizCode=this.$route.query.bizCode,console.log("bizcase--",this.bizType,this.bizCode)},mounted:function(){this.showExpressInfo(),this.getAllInfo()},computed:{baseInfo:function(){var e=this.bizType;return this.baseInfos[e]},stepsKey:function(){return"steps"+this.$route.query.bizType},baseInfoKey:function(){return"baseInfo"+this.$route.query.bizType},companyInfoKey:function(){return"companyInfo"+this.$route.query.bizType}},watch:{$route:function(){this.bizType=this.$route.query.bizType,this.bizCode=this.$route.query.bizCode}},methods:{onexec:function(e,s){},validmethod:function(e,s,t){return t()},getSourceData:function(e){var s=i["a"][e];this.sourceData=s},getSourceDataIndex:function(){var e=this,s=this.sourceData,t=0;return s.forEach((function(s,l){s.key==e.bizStatus&&(t=l)})),t},saveStartTime:function(){var e=this,s={baseInfo:{}},t=this.$refs.baseInfo.formModel;t.startTime?(s.deliverNumber=this.bizCode,s.baseInfo.startTime=t.startTime,console.log(JSON.stringify(s)),Object(o["e"])(s).then((function(s){console.log("deliverStartTimeUpdate result:"+JSON.stringify(s)),e.$Message.success("开始服务时间更新成功"),e.getAllInfo()})).catch((function(s){console.log("deliverStartTimeUpdate err:"+JSON.stringify(s)),e.$Message.error("开始服务时间更新失败")}))):this.$Message.error("没有开始服务时间字段")},getCompanyData:function(e){this.$refs.companyInfo.formModel={companyName:e.companyName,creditCode:e.creditCode,companyType:e.companyType,establishedTime:e.establishedTime,shareholderName:e.shareholderName,businessTerm:e.businessTerm,registeredCapital:e.registeredCapital,businessScope:e.businessScope,residenceAddress:e.residenceAddress}},getExpressInfo:function(e){e&&null!==e?this.newExpressData=e:(this.needCreat=!0,this.withExpressInfo=!1)},turnDisabledStatus:function(){for(var e=this.baseInfo,s=e.main[0].ctls,t=0;t<s.length;t++){var l=s[t];"payStatus"==l.prop&&(1==l.isDisabled?(this.baseInfo.main[0].ctls[t].isDisabled=!1,this.payStatusBtn="保 存"):(this.baseInfo.main[0].ctls[t].isDisabled=!0,this.payStatusBtn="修 改",this.deliverStatusUpdate(),this.$Message.success("保存成功!")))}},dicselectOnchange:function(e){"待交付"==e&&(this.bizStatus="received"),"已交付"==e&&(this.bizStatus="inservice"),"已完成"==e&&(this.bizStatus="success")},showExpressInfo:function(){this.bizType&&("agentCase"==this.bizType||"regAddrCase"==this.bizType?this.getSourceData("diliverDetailsSteps2"):this.getSourceData("diliverDetailsSteps1"),"agentCase"!=this.bizType&&"regAddrCase"!=this.bizType&&"icCheckCase"!=this.bizType&&"taxCase"!=this.bizType&&(this.hasExpressInfo=!0))},creatExpressDataSuccess:function(e){var s=this;this.$refs[e].validate((function(e){e?(s.expressStatusUpdate(),s.$Message.success("新建邮寄信息成功!")):s.$Message.error("请将必填项填写完整后提交!")}))},expressStatusUpdate:function(){var e=this.newExpressData,s={};s.deliverNumber=this.bizCode,s.expressInfo=e,Object(o["h"])(s).then((function(e){console.log("expressStatusUpdateDic result: ",e)})).catch((function(e){console.log("expressStatusUpdateDic err: ",e)})),this.bizStatus="success",this.deliverStatusUpdate()},deliverStatusUpdate:function(){var e=this,s=this.bizStatus,t={};t.deliverNumber=this.bizCode,t.deliverStatus=s,Object(o["f"])(t).then((function(s){console.log("deliverStatusUpdateDic result: ",JSON.stringify(s)),e.sourceDataIndex=e.getSourceDataIndex()})).catch((function(e){console.log("deliverStatusUpdateDic err: ",JSON.stringify(e))}))},getAllInfo:function(){var e=this,s={};s.deliverNumber=this.bizCode,Object(o["n"])(s).then((function(s){console.log("-=-=-=-=-=:",JSON.stringify(s));var t=s.data.data;t.statusInfo&&(e.bizStatus=t.statusInfo.deliverStatus,e.sourceDataIndex=e.getSourceDataIndex());var l=e.dictKey2Value(t.baseInfo);if(t.baseInfo){var a=l;e.$refs.baseInfo.formModel=a}if(t.companyInfo&&0!==Object.keys(t.companyInfo).length){var r=t.companyInfo;e.getCompanyData(r)}else e.showCompanyInfo=!1;e.getExpressInfo(t.expressInfo)})).catch((function(e){console.log("getDeliverDetails err:",JSON.stringify(e))}))},dictKey2Value:function(e){return e.serviceCode=i["a"].registeredAreaDict[e.serviceCode],"taxControlCase"!=this.bizType&&"agentCase"!=this.bizType||(e.taxpayerType=i["a"].TaxpayerTypeDict[e.taxpayerType]),e}}},u=n,y=(t("1355"),t("9ca4")),b=Object(y["a"])(u,l,a,!1,null,null,null);s["default"]=b.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7dc6d142"],{"93c6":function(e,t,i){"use strict";i.r(t);var r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"deliverCase"},[i("div",{staticStyle:{"background-color":"white",padding:"10px 0.25em 2ex 1%"}},[e._m(0),i("div",[i("customSteps",{attrs:{datasouce:e.sourceData,indirector:e.sourceDataIndex}})],1),i("Divider"),i("div",[e._m(1),i("div",[i("Form",{ref:"cmpDeliverInfo",staticStyle:{width:"100%"},attrs:{model:e.cmpDeliverInfo,rules:e.cmpDeliverInfoRules,"label-position":"left","label-width":110}},[i("Row",[i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"公司名称 :",prop:"companyName"}},[i("Input",{staticStyle:{width:"80%"},attrs:{type:"text",placeholder:"请输入客户公司名称"},model:{value:e.cmpDeliverInfo.companyName,callback:function(t){e.$set(e.cmpDeliverInfo,"companyName",t)},expression:"cmpDeliverInfo.companyName"}})],1)],1),i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"备选名称 :",prop:"spareName1"}},[i("div",[i("Input",{staticStyle:{width:"80%"},attrs:{type:"text",placeholder:"请输入公司备选名称"},model:{value:e.cmpDeliverInfo.spareName1,callback:function(t){e.$set(e.cmpDeliverInfo,"spareName1",t)},expression:"cmpDeliverInfo.spareName1"}}),i("Button",{on:{click:e.handleAdd}},[e._v("+")])],1),e._l(e.cmpDeliverInfo.spareNames,(function(t,r){return i("div",{key:r},[i("Input",{staticStyle:{width:"80%"},attrs:{type:"text",placeholder:"请输入公司备选名称",prop:"spareName"+r},model:{value:e.cmpDeliverInfo.spareNames[r].value,callback:function(t){e.$set(e.cmpDeliverInfo.spareNames[r],"value",t)},expression:"cmpDeliverInfo.spareNames[idx].value"}}),i("Button",{on:{click:function(t){return e.handleRemove(r)}}},[e._v("-")])],1)}))],2)],1)],1),i("Row",[i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"纳税人类型 :",prop:"taxpayerType"}},[i("span",[e._v(e._s(e.cmpDeliverInfo.taxpayerType))])])],1),i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"公司性质 :",prop:"companyProperties"}},[i("span",[e._v(e._s(e.cmpDeliverInfo.companyProperties))])])],1)],1),i("Row",[i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"地址类型 :",prop:"addressType"}},[i("span",[e._v(e._s(e.cmpDeliverInfo.addressType))])])],1),i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"注册地区 :",prop:"serviceArea"}},[i("span",[e._v(e._s(e.cmpDeliverInfo.serviceArea))])])],1)],1),i("Row",[i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"注册详细地址 :",prop:"fullAddress"}},[i("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入"},model:{value:e.cmpDeliverInfo.fullAddress,callback:function(t){e.$set(e.cmpDeliverInfo,"fullAddress",t)},expression:"cmpDeliverInfo.fullAddress"}})],1)],1),i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"经营期限 :",prop:"operatingPeriod"}},[i("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入公司经营期限"},model:{value:e.cmpDeliverInfo.operatingPeriod,callback:function(t){e.$set(e.cmpDeliverInfo,"operatingPeriod",t)},expression:"cmpDeliverInfo.operatingPeriod"}})],1)],1)],1),i("Row",[i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"注册资本 :",prop:"registeredCapital"}},[i("InputNumber",{attrs:{placeholder:"请输入公司注册资本"},model:{value:e.cmpDeliverInfo.registeredCapital,callback:function(t){e.$set(e.cmpDeliverInfo,"registeredCapital",t)},expression:"cmpDeliverInfo.registeredCapital"}}),i("span",[e._v("   万元")])],1)],1),i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"注册资本实缴日期 :",prop:"registeredDate"}},[i("Input",{staticStyle:{width:"80%"},attrs:{type:"date",placeholder:"年/月/日"},model:{value:e.cmpDeliverInfo.registeredDate,callback:function(t){e.$set(e.cmpDeliverInfo,"registeredDate",t)},expression:"cmpDeliverInfo.registeredDate"}})],1)],1)],1),i("Row",[i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"公积金缴存比例(%):",prop:"reserveProportion"}},[i("InputNumber",{attrs:{placeholder:"请输入数字"},model:{value:e.cmpDeliverInfo.reserveProportion,callback:function(t){e.$set(e.cmpDeliverInfo,"reserveProportion",t)},expression:"cmpDeliverInfo.reserveProportion"}})],1)],1),i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"所属行业 :",prop:"engagedIndustry"}},[i("span",{staticStyle:{width:"80%"}},[e._v(e._s(e.cmpDeliverInfo.engagedIndustry))])])],1)],1),i("Row",[i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"经营范围:",prop:"businessScope"}},[i("Input",{staticStyle:{width:"80%"},attrs:{type:"textarea",rows:6,placeholder:"请输入公司经营范围,以;隔开"},model:{value:e.cmpDeliverInfo.businessScope,callback:function(t){e.$set(e.cmpDeliverInfo,"businessScope",t)},expression:"cmpDeliverInfo.businessScope"}})],1)],1)],1)],1)],1),i("div",[i("Button",{staticStyle:{float:"right","margin-right":"20px","margin-bottom":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.getCmpDeliverInfo}},[e._v("暂存")])],1)]),i("Divider"),i("div",[e._m(2),i("div",[i("VTable",{staticStyle:{width:"100%"},attrs:{"is-horizontal-resize":"",columns:e.contributionInfo,"table-data":e.contributionData,"row-hover-color":"#eee","row-click-color":"#edf7ff","cell-edit-done":e.contributionCallback}})],1),i("div",[i("Button",{staticStyle:{float:"left","margin-left":"50%","margin-bottom":"20px","margin-top":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.addContributionData}},[e._v("新增股东")])],1),i("div",[i("Button",{staticStyle:{float:"right","margin-right":"20px","margin-bottom":"20px","margin-top":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.getContributionInfo}},[e._v("暂存")])],1)]),i("Divider"),i("div",[e._m(3),i("div",[i("VTable",{staticStyle:{width:"100%"},attrs:{"is-horizontal-resize":"",columns:e.positionInfo,"table-data":e.positionData,"row-hover-color":"#eee","row-click-color":"#edf7ff","cell-edit-done":e.positionCallback}})],1),i("div",[i("Button",{staticStyle:{float:"left","margin-left":"50%","margin-bottom":"20px","margin-top":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.addPositionData}},[e._v("新增任职信息")])],1),i("div",[i("Button",{staticStyle:{float:"right","margin-right":"20px","margin-bottom":"20px","margin-top":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.getPositionInfo}},[e._v("暂存")])],1)]),i("Divider"),i("div",[i("div",{staticStyle:{display:"flex"}},[e._m(4),i("div",[i("Button",{staticStyle:{"margin-left":"20px","margin-top":"2px"},attrs:{size:"large",type:"primary"},on:{click:e.addShareholder}},[e._v("新增自然人股东信息")])],1)]),i("div",[i("Row",[i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"产权证",viewUrl:e.fileViewObj["产权证"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"法人股东证件",viewUrl:e.fileViewObj["法人股东证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"执行董事证件",viewUrl:e.fileViewObj["执行董事证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"经理证件",viewUrl:e.fileViewObj["经理证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"监事证件",viewUrl:e.fileViewObj["监事证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"购票人",viewUrl:e.fileViewObj["购票人"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1)],1),i("Row",[i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"办税人",viewUrl:e.fileViewObj["办税人"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"财务负责人",viewUrl:e.fileViewObj["财务负责人"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"秘书联系人",viewUrl:e.fileViewObj["秘书联系人"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"社保缴费经办人证件",viewUrl:e.fileViewObj["社保缴费经办人证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"公积金缴费经办人",viewUrl:e.fileViewObj["公积金缴费经办人"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:"自然人股东证件",viewUrl:e.fileViewObj["自然人股东证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1)],1),i("Row",e._l(e.shareholders,(function(t,r){return i("div",{key:t.title},[i("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[i("fileUpload",{attrs:{title:t.title,viewUrl:t.viewUrl,showDelBtn:!0,idx:r},on:{onResUrl:e.onResUrl,onReupload:e.onReupload,delShareholder:e.delShareholder}})],1)],1)})),0)],1),i("div",[i("Button",{staticStyle:{float:"right","margin-right":"20px","margin-bottom":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.fileUploadCache}},[e._v("暂存")])],1)]),i("Divider"),i("div",[e._m(5),i("div",[i("Form",{ref:"cmpContactInfo",staticStyle:{width:"100%"},attrs:{model:e.cmpContactInfo,rules:e.cmpContactInfoRules,"label-position":"left","label-width":100}},[i("Row",[i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"联系人姓名 :",prop:"contactsName"}},[i("Input",{staticStyle:{width:"80%"},attrs:{type:"text"},model:{value:e.cmpContactInfo.contactsName,callback:function(t){e.$set(e.cmpContactInfo,"contactsName",t)},expression:"cmpContactInfo.contactsName"}})],1)],1),i("Col",{attrs:{span:"12"}},[i("FormItem",{attrs:{label:"联系人电话 :",prop:"contactsPhone"}},[i("Input",{staticStyle:{width:"80%"},attrs:{type:"text"},model:{value:e.cmpContactInfo.contactsPhone,callback:function(t){e.$set(e.cmpContactInfo,"contactsPhone",t)},expression:"cmpContactInfo.contactsPhone"}})],1)],1)],1)],1)],1),i("div",[i("Button",{staticStyle:{float:"right","margin-right":"20px","margin-bottom":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.getCmpContactInfo}},[e._v("暂存")])],1)]),i("Divider")],1),i("div",{attrs:{id:"bottom"}},[i("div",[i("span",[e._v("业务顾问:")]),e._v("  \n "),i("span",[e._v(e._s(e.userName))]),e._v("  \n "),i("span",[e._v(e._s(e.userMobile))]),e._v("\n   \n "),i("Button",{attrs:{size:"large",type:"primary"},on:{click:function(t){e.showTipModal=!0}}},[e._v("提交交付信息")])],1)]),i("div",[i("Modal",{attrs:{title:"提交交付信息"},on:{"on-ok":e.getAllFormInfo},model:{value:e.showTipModal,callback:function(t){e.showTipModal=t},expression:"showTipModal"}},[i("p",[e._v("提交后将无法修改,请确认填写信息后提交,是否继续提交?")])])],1)])},a=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("h3",[e._v("交付流程")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("h3",[e._v("公司注册信息")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("h3",[e._v("出资比例")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("h3",[e._v("任职信息")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("h3",[e._v("注册文件")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("h3",[e._v("订单联系人信息")])])}],o=(i("9a33"),i("6d57"),i("5748")),n=i("8ae1"),s=i("36fa"),l=i("db7f"),c=i("65f4"),p=i("7e1e"),d={name:"cmpbizdelivercase",data:function(){var e=function(e,t,i){""===t?i(new Error("联系人电话不能为空")):i()};return{bizType:"",bizCode:"",userName:"",userMobile:"",sourceData:[],sourceDataIndex:1,allInfo:{},showTipModal:!1,cmpDeliverInfo:{companyName:"",spareName:[],spareName1:"",spareNames:[],taxpayerType:"",companyProperties:"",addressType:"",serviceArea:"",fullAddress:"",engagedIndustry:"",operatingPeriod:"",registeredCapital:0,registeredDate:"",reserveProportion:0,businessScope:""},cmpDeliverInfoRules:{companyName:[{required:!0,message:"公司名称不能为空",trigger:"blur"}],spareName1:[{required:!0,message:"备选名称不能为空",trigger:"blur"}],taxpayerType:[{required:!0,message:"纳税人类型不能为空",trigger:"blur"}],companyProperties:[{required:!0,message:"公司性质不能为空",trigger:"blur"}],addressType:[{required:!0,message:"地址类型不能为空",trigger:"blur"}],serviceArea:[{required:!0,message:"注册地区不能为空",trigger:"blur"}],fullAddress:[{required:!0,message:"注册详细地址不能为空",trigger:"blur"}],engagedIndustry:[{required:!0,message:"所属行业不能为空",trigger:"blur"}],operatingPeriod:[{required:!0,message:"经营期限不能为空",trigger:"blur"}],registeredCapital:[{required:!0,type:"number",min:1,message:"注册资本不能为空",trigger:"blur"}],registeredDate:[{required:!0,message:"注册资本实缴日期不能为空",trigger:"blur"}],reserveProportion:[{required:!0,type:"number",min:1,message:"公积金缴存比例不能为空",trigger:"blur"}],businessScope:[{required:!0,message:"经营范围不能为空",trigger:"blur"}]},contributionData:[],contributionInfo:[{field:"hareholderName",title:"法人 / 自然人股东姓名",width:80,titleAlign:"center",columnAlign:"center",isEdit:!0,formatter:function(e,t,i,r){return"<span class='cell-edit-color'>".concat(e[r],"</span>")},isResize:!0},{field:"contributionAmount",title:"出资金额(万元)",width:40,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"contributionProportion",title:"出资比例(%)",width:40,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"IdentificationNumber",title:"证件号码",width:200,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"phoneNumber",title:"联系电话/手机",width:180,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"contactAddress",title:"身份证住址",width:200,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0}],positionData:[],positionInfo:[{field:"functionInfo",title:"职务信息",width:80,titleAlign:"center",columnAlign:"center",isEdit:!0,formatter:function(e,t,i,r){return"<span class='cell-edit-color'>".concat(e[r],"</span>")},isResize:!0},{field:"persionName",title:"姓名",width:40,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"mobilePhone",title:"手机",width:180,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"fixedPhone",title:"固话",width:180,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"houseAddress",title:"身份证住址",width:200,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"mailboxInfo",title:"邮箱",width:100,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0}],uploadList:[],fileViewObj:{"产权证":{viewUrl:""},"法人股东证件":{viewUrl:""},"自然人股东证件":{viewUrl:""},"执行董事证件":{viewUrl:""},"经理证件":{viewUrl:""},"监事证件":{viewUrl:""},"购票人":{viewUrl:""},"办税人":{viewUrl:""},"财务负责人":{viewUrl:""},"秘书联系人":{viewUrl:""},"社保缴费经办人证件":{viewUrl:""},"公积金缴费经办人":{viewUrl:""}},shareholders:[],cmpContactInfo:{contactsName:"",contactsPhone:""},cmpContactInfoRules:{contactsName:[{required:!0,message:"联系人姓名不能为空",trigger:"blur"}],contactsPhone:[{required:!0,validator:e,trigger:"blur"}]},cmpExpressInfo:{trackingNumber:"",logisticsCompany:"",addresseeName:"",addresseePhone:"",addresseeEmail:"",addresseeAddress:"",expressStatus:""}}},components:{customSteps:n["a"],VTable:c["VTable"],fileUpload:s["a"]},computed:{cmpInfo:function(){var e=this.bizType;return this.infos[e]},taxpayerTypes:function(){var e=l["a"].TaxpayerTypeDict,t=this.obj2arr(e);return t},companyProperties:function(){var e=l["a"].companyNatureDict,t=this.obj2arr(e);return t},addressTypes:function(){var e=l["a"].addressTypeDict,t=this.obj2arr(e);return t},serviceAreas:function(){var e=l["a"].registeredAreaDict,t=this.obj2arr(e);return t},engagedIndustrys:function(){var e=l["a"].engagedIndustryDict,t=this.obj2arr(e);return t},expressStatuss:function(){var e=l["a"].expressStatusDict,t=this.obj2arr(e);return t}},methods:{getSourceData:function(){var e=l["a"].diliverCaseSteps1;this.sourceData=e},obj2arr:function(e){var t=[];for(var i in e){var r={};r.value=i,r.label=e[i],t.push(r)}return t},handleAdd:function(){console.log(JSON.stringify(this.cmpDeliverInfo.spareNames)),this.cmpDeliverInfo.spareNames.push({value:"",status:1})},handleRemove:function(e){this.cmpDeliverInfo.spareNames.splice(e,1)},getCmpDeliverInfo:function(){var e=JSON.parse(JSON.stringify(this.cmpDeliverInfo));e=this.dictValue2Key(e);var t=e.spareNames.map((function(e){if(e){var t=e.value;return t}}));e.spareName=[e.spareName1].concat(Object(o["a"])(t)),this.allInfo.cmpDeliverInfo=e,this.cacheData()},getContributionInfo:function(){var e=JSON.parse(JSON.stringify(this.contributionData)),t=e.filter((function(e){if("--"!==e.hareholderName)return e}));this.allInfo.contributionData=t,this.cacheData()},getPositionInfo:function(){var e=JSON.parse(JSON.stringify(this.positionData)),t=e.filter((function(e){if("--"!==e.functionInfo)return e}));this.allInfo.positionData=t,this.cacheData()},contributionCallback:function(e,t,i,r,a){this.contributionData[i][a]=e,console.log("表格发生了修改:",JSON.stringify(this.contributionData))},addContributionData:function(){this.contributionData.push({hareholderName:"--",contributionAmount:0,contributionProportion:0,IdentificationNumber:"--",phoneNumber:"--",contactAddress:"--"})},positionCallback:function(e,t,i,r,a){this.positionData[i][a]=e,console.log("表格发生了修改:",JSON.stringify(this.positionData))},addPositionData:function(){this.positionData.push({functionInfo:"--",persionName:"--",mobilePhone:"--",fixedPhone:"--",houseAddress:"--",mailboxInfo:"--"})},onResUrl:function(e){var t=this.uploadList;t.push(e)},onReupload:function(e){var t=this,i=[];this.uploadList.forEach((function(r){if(r.title==e.title)return t.fileViewObj[r.title]&&(t.fileViewObj[r.title].viewUrl=""),void t.shareholders.forEach((function(e){e.title==r.title&&(e.viewUrl="")}));i.push(r)})),this.uploadList=i},addShareholder:function(){var e=this.shareholders.length,t="自然人股东证件";if(0==e)t+=e+1;else{var i=this.shareholders[e-1].title,r=parseInt(i.split(/自然人股东证件/)[1]);t+=r+1}var a={title:t,viewUrl:""};this.shareholders.push(a)},delShareholder:function(e,t){console.log("-0-1: ",JSON.stringify(this.shareholders)),this.shareholders.splice(e,1);var i=0;this.uploadList.forEach((function(e,r){e.title==t&&(i=r)})),this.uploadList.splice(i,1),console.log("-0-2: ",JSON.stringify(this.shareholders))},getViewUrl:function(){var e=this;this.uploadList.forEach((function(t){t.title in e.fileViewObj?e.fileViewObj[t.title]=t:e.shareholders.push(t)}))},fileUploadCache:function(){var e=JSON.parse(JSON.stringify(this.uploadList));this.allInfo.regInfo={uploadList:e},this.cacheData()},getCmpContactInfo:function(){var e=JSON.parse(JSON.stringify(this.cmpContactInfo));this.allInfo.cmpContactInfo=e,this.cacheData()},cacheData:function(){var e={};e.deliverNumber=this.bizCode,e.cacheInfo=this.allInfo,Object(p["b"])(e).then((function(e){console.log("cacheData result:",JSON.stringify(e))})).catch((function(e){console.log("cacheData result:",JSON.stringify(e))})),this.$Message.success("暂存成功!")},getCacheData:function(){var e=this,t={};t.deliverNumber=this.bizCode,Object(p["l"])(t).then((function(t){console.log("getCacheData result:",JSON.stringify(t));var i=t.data.data.statusInfo;if(i.createdTime){var r=JSON.stringify(e.sourceData);e.sourceData=JSON.parse(r),e.sourceData[0].content=i.createdTime}var a=t.data.data.cacheInfo;a&&(e.allInfo=JSON.parse(JSON.stringify(a)),a.cmpDeliverInfo&&(a.cmpDeliverInfo=e.dictKey2Value(a.cmpDeliverInfo),e.replaceCaseProp(e.cmpDeliverInfo,a.cmpDeliverInfo)),a.contributionData&&null!==a.contributionData[0]&&(e.contributionData=a.contributionData),a.positionData&&(e.positionData=a.positionData),a.regInfo&&(e.uploadList=a.regInfo.uploadList,e.getViewUrl()),a.cmpContactInfo&&(e.cmpContactInfo=a.cmpContactInfo))})).catch((function(e){console.log("getCacheData result:",JSON.stringify(e))}))},getAllFormInfo:function(){var e=this;this.$refs.cmpDeliverInfo.validate((function(t){if(t){var i=e.contributionInfoVerified();if(i){var r=e.positionInfoVerified();if(r){var a=e.fileViewObjVerified();a&&e.$refs.cmpContactInfo.validate((function(t){if(t){var i={};i.deliverNumber=e.bizCode;var r=JSON.parse(JSON.stringify(e.cmpDeliverInfo));r=e.dictValue2Key(r);var a=r.spareNames.map((function(e){if(e){var t=e.value;return t}}));r.spareName=[r.spareName1].concat(Object(o["a"])(a)),i.companyInfo=r,i.registeredInfo={registeredCapital:r.registeredCapital,registeredDate:r.registeredDate,reserveProportion:r.reserveProportion};var n=e.contributionData,s=n.filter((function(e){if("--"!==e.hareholderName)return e}));i.contributionInfo={contributionData:s};var l=e.positionData,c=l.filter((function(e){if("--"!==e.hareholderName)return e}));i.positionInfo={positionData:c},i.regInfo={uploadList:e.uploadList},i.contactsInfo=e.cmpContactInfo,e.allInfo={cmpDeliverInfo:r,contributionData:n,positionData:l,regInfo:{uploadList:e.uploadList},cmpContactInfo:e.cmpContactInfo},e.cacheData(),Object(p["s"])(i).then((function(e){console.log("submitAllDeliverInfo result:",JSON.stringify(e))})).catch((function(e){console.log("submitAllDeliverInfo result:",JSON.stringify(e))})),e.$Message.success("提交成功!3秒后跳转到服务单列表页"),setTimeout((function(){e.$router.push({name:"myDeliver"})}),3e3)}}))}}}}))},contributionInfoVerified:function(){for(var e=this.contributionData,t=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,i=0;i<e.length;i++){var r=e[i];if(""==r.hareholderName||"--"==r.hareholderName)return this.$Message.error("出资比例第"+(i+1)+"行,法人 / 自然人股东姓名不能为空"),!1;if(r.contributionAmount<=0)return this.$Message.error("出资比例第"+(i+1)+"行,出资金额不能为空"),!1;if(r.contributionProportion<=0)return this.$Message.error("出资比例第"+(i+1)+"行,出资比例不能为空"),!1;if(""==r.IdentificationNumber||"--"==r.IdentificationNumber)return this.$Message.error("出资比例第"+(i+1)+"行,证件号码不能为空"),!1;if(r.IdentificationNumber&&!t.test(r.IdentificationNumber))return this.$Message.error("出资比例第"+(i+1)+"行,证件号码格式错误"),!1;if(""==r.phoneNumber||"--"==r.phoneNumber)return this.$Message.error("出资比例第"+(i+1)+"行,联系电话/手机不能为空"),!1;if(""==r.contactAddress||"--"==r.contactAddress)return this.$Message.error("出资比例第"+(i+1)+"行,身份证住址不能为空"),!1}return!0},positionInfoVerified:function(){for(var e=this.positionData,t=/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/,i=0;i<e.length;i++){var r=e[i];if(""==r.functionInfo||"--"==r.functionInfo)return this.$Message.error("任职信息第"+(i+1)+"行,职务信息不能为空"),!1;if(""==r.persionName||"--"==r.persionName)return this.$Message.error("任职信息第"+(i+1)+"行,姓名不能为空"),!1;if(""==r.mobilePhone||"--"==r.mobilePhone)return this.$Message.error("任职信息第"+(i+1)+"行,手机号码不能为空"),!1;if(""==r.fixedPhone||"--"==r.fixedPhone)return this.$Message.error("任职信息第"+(i+1)+"行,固话不能为空"),!1;if(""==r.houseAddress||"--"==r.houseAddress)return this.$Message.error("任职信息第"+(i+1)+"行,身份证住址不能为空"),!1;if(""==r.mailboxInfo||"--"==r.mailboxInfo)return this.$Message.error("任职信息第"+(i+1)+"行,邮箱不能为空"),!1;if(r.mailboxInfo&&!t.test(r.mailboxInfo))return this.$Message.error("任职信息第"+(i+1)+"行,邮箱格式错误"),!1}return!0},fileViewObjVerified:function(){var e=this.uploadList,t=this.fileViewObj;for(var i in t){for(var r=!1,a=0;a<e.length;a++){var o=e[a];o.title==i&&(r=!0)}if(!r)return this.$Message.error("注册文件"+i+"不能为空"),!1}return!0},getUserInfo:function(){var e=this.$store.state.user.userobj;this.userName=e.userName,this.userMobile=e.userMobile},dictKey2Value:function(e){return e.taxpayerType&&(e.taxpayerType=l["a"].TaxpayerTypeDict[e.taxpayerType]),e.companyProperties&&(e.companyProperties=l["a"].companyNatureDict[e.companyProperties]),e.addressType&&(e.addressType=l["a"].addressTypeDict[e.addressType]),e.serviceArea&&(e.serviceArea=l["a"].registeredAreaDict[e.serviceArea]),e.engagedIndustry&&(e.engagedIndustry=l["a"].engagedIndustryDict[e.engagedIndustry]),e},dictValue2Key:function(e){if(e.taxpayerType)for(var t in l["a"].TaxpayerTypeDict)l["a"].TaxpayerTypeDict[t]===e.taxpayerType&&(e.taxpayerType=t);if(e.companyProperties)for(var i in l["a"].companyNatureDict)l["a"].companyNatureDict[i]===e.companyProperties&&(e.companyProperties=i);if(e.addressType)for(var r in l["a"].addressTypeDict)l["a"].addressTypeDict[r]===e.addressType&&(e.addressType=r);if(e.serviceArea)for(var a in l["a"].registeredAreaDict)l["a"].registeredAreaDict[a]===e.serviceArea&&(e.serviceArea=a);if(e.engagedIndustry)for(var o in l["a"].engagedIndustryDict)l["a"].engagedIndustryDict[o]===e.engagedIndustry&&(e.engagedIndustry=o);return e},replaceCaseProp:function(e,t){for(var i in e)for(var r in t)r==i&&(e[i]=t[r])}},created:function(){this.bizType=this.$route.query.bizType,this.bizCode=this.$route.query.bizCode},mounted:function(){var e=this;this.getSourceData(),this.getUserInfo(),this.addContributionData(),this.addPositionData(),this.$nextTick((function(){e.getCacheData()}))},watch:{}},u=d,f=(i("9fc3"),i("9ca4")),m=Object(f["a"])(u,r,a,!1,null,"197e0440",null);t["default"]=m.exports},"9fc3":function(e,t,i){"use strict";var r=i("d3b3"),a=i.n(r);a.a},d3b3:function(e,t,i){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e9f5b4dc"],{"93c6":function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"deliverCase"},[r("div",{staticStyle:{"background-color":"white",padding:"10px 0.25em 2ex 1%"}},[e._m(0),r("div",[r("customSteps",{attrs:{datasouce:e.sourceData,indirector:e.sourceDataIndex}})],1),r("Divider"),r("div",[e._m(1),r("div",[r("Form",{ref:"cmpDeliverInfo",staticStyle:{width:"100%"},attrs:{model:e.cmpDeliverInfo,rules:e.cmpDeliverInfoRules,"label-position":"left","label-width":110}},[r("Row",[r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"公司名称 :",prop:"companyName"}},[r("Input",{staticStyle:{width:"80%"},attrs:{type:"text",placeholder:"请输入客户公司名称"},model:{value:e.cmpDeliverInfo.companyName,callback:function(t){e.$set(e.cmpDeliverInfo,"companyName",t)},expression:"cmpDeliverInfo.companyName"}})],1)],1),r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"备选名称 :",prop:"spareName1"}},[r("div",[r("Input",{staticStyle:{width:"80%"},attrs:{type:"text",placeholder:"请输入公司备选名称"},model:{value:e.cmpDeliverInfo.spareName1,callback:function(t){e.$set(e.cmpDeliverInfo,"spareName1",t)},expression:"cmpDeliverInfo.spareName1"}}),r("Button",{on:{click:e.handleAdd}},[e._v("+")])],1),e._l(e.cmpDeliverInfo.spareNames,(function(t,i){return r("div",{key:i},[r("Input",{staticStyle:{width:"80%"},attrs:{type:"text",placeholder:"请输入公司备选名称",prop:"spareName"+i},model:{value:e.cmpDeliverInfo.spareNames[i].value,callback:function(t){e.$set(e.cmpDeliverInfo.spareNames[i],"value",t)},expression:"cmpDeliverInfo.spareNames[idx].value"}}),r("Button",{on:{click:function(t){return e.handleRemove(i)}}},[e._v("-")])],1)}))],2)],1)],1),r("Row",[r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"纳税人类型 :",prop:"taxpayerType"}},[r("span",[e._v(e._s(e.cmpDeliverInfo.taxpayerType))])])],1),r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"公司性质 :",prop:"companyProperties"}},[r("span",[e._v(e._s(e.cmpDeliverInfo.companyProperties))])])],1)],1),r("Row",[r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"地址类型 :",prop:"addressType"}},[r("span",[e._v(e._s(e.cmpDeliverInfo.addressType))])])],1),r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"注册地区 :",prop:"serviceArea"}},[r("span",[e._v(e._s(e.cmpDeliverInfo.serviceArea))])])],1)],1),r("Row",[r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"注册详细地址 :",prop:"fullAddress"}},[r("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入"},model:{value:e.cmpDeliverInfo.fullAddress,callback:function(t){e.$set(e.cmpDeliverInfo,"fullAddress",t)},expression:"cmpDeliverInfo.fullAddress"}})],1)],1),r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"经营期限 :",prop:"operatingPeriod"}},[r("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入公司经营期限"},model:{value:e.cmpDeliverInfo.operatingPeriod,callback:function(t){e.$set(e.cmpDeliverInfo,"operatingPeriod",t)},expression:"cmpDeliverInfo.operatingPeriod"}})],1)],1)],1),r("Row",[r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"注册资本 :",prop:"registeredCapital"}},[r("InputNumber",{attrs:{placeholder:"请输入公司注册资本"},model:{value:e.cmpDeliverInfo.registeredCapital,callback:function(t){e.$set(e.cmpDeliverInfo,"registeredCapital",t)},expression:"cmpDeliverInfo.registeredCapital"}}),r("span",[e._v("   万元")])],1)],1),r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"注册资本实缴日期 :",prop:"registeredDate"}},[r("Input",{staticStyle:{width:"80%"},attrs:{type:"date",placeholder:"年/月/日"},model:{value:e.cmpDeliverInfo.registeredDate,callback:function(t){e.$set(e.cmpDeliverInfo,"registeredDate",t)},expression:"cmpDeliverInfo.registeredDate"}})],1)],1)],1),r("Row",[r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"公积金缴存比例(%):",prop:"reserveProportion"}},[r("InputNumber",{attrs:{placeholder:"请输入数字"},model:{value:e.cmpDeliverInfo.reserveProportion,callback:function(t){e.$set(e.cmpDeliverInfo,"reserveProportion",t)},expression:"cmpDeliverInfo.reserveProportion"}})],1)],1),r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"所属行业 :",prop:"engagedIndustry"}},[r("span",{staticStyle:{width:"80%"}},[e._v(e._s(e.cmpDeliverInfo.engagedIndustry))])])],1)],1),r("Row",[r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"经营范围:",prop:"businessScope"}},[r("Input",{staticStyle:{width:"80%"},attrs:{type:"textarea",rows:6,placeholder:"请输入公司经营范围,以;隔开"},model:{value:e.cmpDeliverInfo.businessScope,callback:function(t){e.$set(e.cmpDeliverInfo,"businessScope",t)},expression:"cmpDeliverInfo.businessScope"}})],1)],1)],1)],1)],1),r("div",[r("Button",{staticStyle:{float:"right","margin-right":"20px","margin-bottom":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.getCmpDeliverInfo}},[e._v("暂存")])],1)]),r("Divider"),r("div",[e._m(2),r("div",[r("VTable",{staticStyle:{width:"100%"},attrs:{"is-horizontal-resize":"",columns:e.contributionInfo,"table-data":e.contributionData,"row-hover-color":"#eee","row-click-color":"#edf7ff","cell-edit-done":e.contributionCallback}})],1),r("div",[r("Button",{staticStyle:{float:"left","margin-left":"50%","margin-bottom":"20px","margin-top":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.addContributionData}},[e._v("新增股东")])],1),r("div",[r("Button",{staticStyle:{float:"right","margin-right":"20px","margin-bottom":"20px","margin-top":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.getContributionInfo}},[e._v("暂存")])],1)]),r("Divider"),r("div",[e._m(3),r("div",[r("VTable",{staticStyle:{width:"100%"},attrs:{"is-horizontal-resize":"",columns:e.positionInfo,"table-data":e.positionData,"row-hover-color":"#eee","row-click-color":"#edf7ff","cell-edit-done":e.positionCallback}})],1),r("div",[r("Button",{staticStyle:{float:"left","margin-left":"50%","margin-bottom":"20px","margin-top":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.addPositionData}},[e._v("新增任职信息")])],1),r("div",[r("Button",{staticStyle:{float:"right","margin-right":"20px","margin-bottom":"20px","margin-top":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.getPositionInfo}},[e._v("暂存")])],1)]),r("Divider"),r("div",[r("div",{staticStyle:{display:"flex"}},[e._m(4),r("div",[r("Button",{staticStyle:{"margin-left":"20px","margin-top":"2px"},attrs:{size:"large",type:"primary"},on:{click:e.addShareholder}},[e._v("新增材料信息")])],1)]),r("div",[r("Row",[r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"产权证",asd:!0,viewUrl:e.fileViewObj["产权证"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"法人股东证件",asd:!0,viewUrl:e.fileViewObj["法人股东证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"执行董事证件",asd:!0,viewUrl:e.fileViewObj["执行董事证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"经理证件",asd:!0,viewUrl:e.fileViewObj["经理证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"监事证件",asd:!0,viewUrl:e.fileViewObj["监事证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"购票人",asd:!0,viewUrl:e.fileViewObj["购票人"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1)],1),r("Row",[r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"办税人",asd:!0,viewUrl:e.fileViewObj["办税人"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"财务负责人",asd:!0,viewUrl:e.fileViewObj["财务负责人"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"秘书联系人",asd:!0,viewUrl:e.fileViewObj["秘书联系人"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"社保缴费经办人证件",asd:!0,viewUrl:e.fileViewObj["社保缴费经办人证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"公积金缴费经办人",asd:!0,viewUrl:e.fileViewObj["公积金缴费经办人"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1),r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:"自然人股东证件",asd:!0,viewUrl:e.fileViewObj["自然人股东证件"].viewUrl},on:{onResUrl:e.onResUrl,onReupload:e.onReupload}})],1)],1),r("Row",e._l(e.shareholders,(function(t,i){return r("div",{key:t.title},[r("Col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:"4"}},[r("fileUpload",{attrs:{title:t.title,viewUrl:t.viewUrl,showDelBtn:!0,idx:i,zxc:!0},on:{onResUrl:e.onResUrl,onReupload:e.onReupload,updeteShareholder:e.updeteShareholder,delShareholder:e.delShareholder}})],1)],1)})),0)],1),r("div",[r("Button",{staticStyle:{float:"right","margin-right":"20px","margin-bottom":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.fileUploadCache}},[e._v("暂存")])],1)]),r("Divider"),r("div",[e._m(5),r("div",[r("Form",{ref:"cmpContactInfo",staticStyle:{width:"100%"},attrs:{model:e.cmpContactInfo,rules:e.cmpContactInfoRules,"label-position":"left","label-width":100}},[r("Row",[r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"联系人姓名 :",prop:"contactsName"}},[r("Input",{staticStyle:{width:"80%"},attrs:{type:"text"},model:{value:e.cmpContactInfo.contactsName,callback:function(t){e.$set(e.cmpContactInfo,"contactsName",t)},expression:"cmpContactInfo.contactsName"}})],1)],1),r("Col",{attrs:{span:"12"}},[r("FormItem",{attrs:{label:"联系人电话 :",prop:"contactsPhone"}},[r("Input",{staticStyle:{width:"80%"},attrs:{type:"text"},model:{value:e.cmpContactInfo.contactsPhone,callback:function(t){e.$set(e.cmpContactInfo,"contactsPhone",t)},expression:"cmpContactInfo.contactsPhone"}})],1)],1)],1)],1)],1),r("div",[r("Button",{staticStyle:{float:"right","margin-right":"20px","margin-bottom":"20px"},attrs:{size:"large",type:"primary"},on:{click:e.getCmpContactInfo}},[e._v("暂存")])],1)]),r("Divider")],1),r("div",{attrs:{id:"bottom"}},[r("div",[r("span",[e._v("业务顾问:")]),e._v("  \n "),r("span",[e._v(e._s(e.userName))]),e._v("  \n "),r("span",[e._v(e._s(e.userMobile))]),e._v("\n   \n "),r("Button",{attrs:{size:"large",type:"primary"},on:{click:function(t){e.showTipModal=!0}}},[e._v("提交交付信息")])],1)]),r("div",[r("Modal",{attrs:{title:"提交交付信息"},on:{"on-ok":e.getAllFormInfo},model:{value:e.showTipModal,callback:function(t){e.showTipModal=t},expression:"showTipModal"}},[r("p",[e._v("提交后将无法修改,请确认填写信息后提交,是否继续提交?")])])],1)])},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h3",[e._v("交付流程")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h3",[e._v("公司注册信息")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h3",[e._v("出资比例")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h3",[e._v("任职信息")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h3",[e._v("注册文件")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("h3",[e._v("订单联系人信息")])])}],o=(r("6d57"),r("5748")),n=r("8ae1"),s=r("36fa"),l=r("db7f"),c=r("65f4"),p=r("7e1e"),d={name:"cmpbizdelivercase",data:function(){var e=function(e,t,r){""===t?r(new Error("联系人电话不能为空")):r()};return{bizType:"",bizCode:"",userName:"",userMobile:"",sourceData:[],sourceDataIndex:1,allInfo:{},showTipModal:!1,cmpDeliverInfo:{companyName:"",spareName:[],spareName1:"",spareNames:[],taxpayerType:"",companyProperties:"",addressType:"",serviceArea:"",fullAddress:"",engagedIndustry:"",operatingPeriod:"",registeredCapital:0,registeredDate:"",reserveProportion:0,businessScope:""},cmpDeliverInfoRules:{companyName:[{required:!0,message:"公司名称不能为空",trigger:"blur"}],spareName1:[{required:!0,message:"备选名称不能为空",trigger:"blur"}],taxpayerType:[{required:!0,message:"纳税人类型不能为空",trigger:"blur"}],companyProperties:[{required:!0,message:"公司性质不能为空",trigger:"blur"}],addressType:[{required:!0,message:"地址类型不能为空",trigger:"blur"}],serviceArea:[{required:!0,message:"注册地区不能为空",trigger:"blur"}],fullAddress:[{required:!0,message:"注册详细地址不能为空",trigger:"blur"}],engagedIndustry:[{required:!0,message:"所属行业不能为空",trigger:"blur"}],operatingPeriod:[{required:!0,message:"经营期限不能为空",trigger:"blur"}],registeredCapital:[{required:!0,type:"number",min:1,message:"注册资本不能为空",trigger:"blur"}],registeredDate:[{required:!0,message:"注册资本实缴日期不能为空",trigger:"blur"}],reserveProportion:[{required:!0,type:"number",min:1,message:"公积金缴存比例不能为空",trigger:"blur"}],businessScope:[{required:!0,message:"经营范围不能为空",trigger:"blur"}]},contributionData:[],contributionInfo:[{field:"hareholderName",title:"法人 / 自然人股东姓名",width:80,titleAlign:"center",columnAlign:"center",isEdit:!0,formatter:function(e,t,r,i){return"<span class='cell-edit-color'>".concat(e[i],"</span>")},isResize:!0},{field:"contributionAmount",title:"出资金额(万元)",width:40,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"contributionProportion",title:"出资比例(%)",width:40,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"IdentificationNumber",title:"证件号码",width:200,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"phoneNumber",title:"联系电话/手机",width:180,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"contactAddress",title:"身份证住址",width:200,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0}],positionData:[],positionInfo:[{field:"functionInfo",title:"职务信息",width:80,titleAlign:"center",columnAlign:"center",isEdit:!0,formatter:function(e,t,r,i){return"<span class='cell-edit-color'>".concat(e[i],"</span>")},isResize:!0},{field:"persionName",title:"姓名",width:40,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"mobilePhone",title:"手机",width:180,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"fixedPhone",title:"固话",width:180,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"houseAddress",title:"身份证住址",width:200,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0},{field:"mailboxInfo",title:"邮箱",width:100,titleAlign:"center",columnAlign:"center",isEdit:!0,isResize:!0}],uploadList:[],fileViewObj:{"产权证":{viewUrl:""},"法人股东证件":{viewUrl:""},"自然人股东证件":{viewUrl:""},"执行董事证件":{viewUrl:""},"经理证件":{viewUrl:""},"监事证件":{viewUrl:""},"购票人":{viewUrl:""},"办税人":{viewUrl:""},"财务负责人":{viewUrl:""},"秘书联系人":{viewUrl:""},"社保缴费经办人证件":{viewUrl:""},"公积金缴费经办人":{viewUrl:""}},shareholders:[],cmpContactInfo:{contactsName:"",contactsPhone:""},cmpContactInfoRules:{contactsName:[{required:!0,message:"联系人姓名不能为空",trigger:"blur"}],contactsPhone:[{required:!0,validator:e,trigger:"blur"}]},cmpExpressInfo:{trackingNumber:"",logisticsCompany:"",addresseeName:"",addresseePhone:"",addresseeEmail:"",addresseeAddress:"",expressStatus:""}}},components:{customSteps:n["a"],VTable:c["VTable"],fileUpload:s["a"]},computed:{cmpInfo:function(){var e=this.bizType;return this.infos[e]},taxpayerTypes:function(){var e=l["a"].TaxpayerTypeDict,t=this.obj2arr(e);return t},companyProperties:function(){var e=l["a"].companyNatureDict,t=this.obj2arr(e);return t},addressTypes:function(){var e=l["a"].addressTypeDict,t=this.obj2arr(e);return t},serviceAreas:function(){var e=l["a"].registeredAreaDict,t=this.obj2arr(e);return t},engagedIndustrys:function(){var e=l["a"].engagedIndustryDict,t=this.obj2arr(e);return t},expressStatuss:function(){var e=l["a"].expressStatusDict,t=this.obj2arr(e);return t}},methods:{getSourceData:function(){var e=l["a"].diliverCaseSteps1;this.sourceData=e},obj2arr:function(e){var t=[];for(var r in e){var i={};i.value=r,i.label=e[r],t.push(i)}return t},handleAdd:function(){console.log(JSON.stringify(this.cmpDeliverInfo.spareNames)),this.cmpDeliverInfo.spareNames.push({value:"",status:1})},handleRemove:function(e){this.cmpDeliverInfo.spareNames.splice(e,1)},getCmpDeliverInfo:function(){var e=JSON.parse(JSON.stringify(this.cmpDeliverInfo));e=this.dictValue2Key(e);var t=e.spareNames.map((function(e){if(e){var t=e.value;return t}}));e.spareName=[e.spareName1].concat(Object(o["a"])(t)),this.allInfo.cmpDeliverInfo=e,this.cacheData()},getContributionInfo:function(){var e=JSON.parse(JSON.stringify(this.contributionData)),t=e.filter((function(e){if("--"!==e.hareholderName)return e}));this.allInfo.contributionData=t,this.cacheData()},getPositionInfo:function(){var e=JSON.parse(JSON.stringify(this.positionData)),t=e.filter((function(e){if("--"!==e.functionInfo)return e}));this.allInfo.positionData=t,this.cacheData()},contributionCallback:function(e,t,r,i,a){this.contributionData[r][a]=e,console.log("表格发生了修改:",JSON.stringify(this.contributionData))},addContributionData:function(){this.contributionData.push({hareholderName:"--",contributionAmount:0,contributionProportion:0,IdentificationNumber:"--",phoneNumber:"--",contactAddress:"--"})},positionCallback:function(e,t,r,i,a){this.positionData[r][a]=e,console.log("表格发生了修改:",JSON.stringify(this.positionData))},addPositionData:function(){this.positionData.push({functionInfo:"--",persionName:"--",mobilePhone:"--",fixedPhone:"--",houseAddress:"--",mailboxInfo:"--"})},onResUrl:function(e){e.title in this.fileViewObj?this.uploadList.push(e):this.shareholders.forEach((function(t){t.title===e.title&&(t.viewUrl=e.viewUrl)}))},onReupload:function(e){var t=this,r=[];this.uploadList.forEach((function(i){if(i.title==e.title)return t.fileViewObj[i.title]&&(t.fileViewObj[i.title].viewUrl=""),void t.shareholders.forEach((function(e){e.title==i.title&&(e.viewUrl="")}));r.push(i)})),this.uploadList=r},addShareholder:function(){var e=this.shareholders.length,t="自然人股东证件";t+=e+1;var r={title:t,viewUrl:""};this.shareholders.push(r)},updeteShareholder:function(e,t){var r=(new Date).getTime(),i=!0;if(console.log(r),"产权证"==t||"法人股东证件"==t||"执行董事证件"==t||"经理证件"==t||"监事证件"==t||"购票人"==t||"办税人"==t||"财务负责人"==t||"秘书联系人"==t||"社保缴费经办人证件"==t||"公积金缴费经办人"==t||"自然人股东证件"==t)this.$Message.error("不允许使用相同材料名称"),i=!1,this.shareholders[e].title=t+r;else for(var a=0;a<this.shareholders.length-1;a++)a!=e&&this.shareholders[a].title==t&&(i=!1,this.$Message.error("不允许使用相同材料名称"),this.shareholders[e].title=t+r);i&&(this.shareholders[e].title=t)},delShareholder:function(e,t){console.log("-0-1: ",JSON.stringify(this.shareholders)),this.shareholders.splice(e,1),console.log("-0-2: ",JSON.stringify(this.shareholders))},getViewUrl:function(){var e=this,t=[];this.uploadList.forEach((function(r){r.title in e.fileViewObj?(e.fileViewObj[r.title]=r,t.push(r)):e.shareholders.push(r)})),this.uploadList=t},fileUploadCache:function(){var e=JSON.parse(JSON.stringify([].concat(Object(o["a"])(this.uploadList),Object(o["a"])(this.shareholders))));this.allInfo.regInfo={uploadList:e},this.cacheData()},getCmpContactInfo:function(){var e=JSON.parse(JSON.stringify(this.cmpContactInfo));this.allInfo.cmpContactInfo=e,this.cacheData()},cacheData:function(){var e={};e.deliverNumber=this.bizCode,e.cacheInfo=this.allInfo,Object(p["b"])(e).then((function(e){console.log("cacheData result:",JSON.stringify(e))})).catch((function(e){console.log("cacheData result:",JSON.stringify(e))})),this.$Message.success("暂存成功!")},getCacheData:function(){var e=this,t={};t.deliverNumber=this.bizCode,Object(p["l"])(t).then((function(t){console.log("getCacheData result:",JSON.stringify(t));var r=t.data.data.statusInfo;if(r.createdTime){var i=JSON.stringify(e.sourceData);e.sourceData=JSON.parse(i),e.sourceData[0].content=r.createdTime}var a=t.data.data.cacheInfo;a&&(e.allInfo=JSON.parse(JSON.stringify(a)),a.cmpDeliverInfo&&(a.cmpDeliverInfo=e.dictKey2Value(a.cmpDeliverInfo),e.replaceCaseProp(e.cmpDeliverInfo,a.cmpDeliverInfo)),a.contributionData&&null!==a.contributionData[0]&&(e.contributionData=a.contributionData),a.positionData&&(e.positionData=a.positionData),a.regInfo&&(e.uploadList=a.regInfo.uploadList,e.getViewUrl()),a.cmpContactInfo&&(e.cmpContactInfo=a.cmpContactInfo))})).catch((function(e){console.log("getCacheData result:",JSON.stringify(e))}))},getAllFormInfo:function(){var e=this;this.$refs.cmpDeliverInfo.validate((function(t){if(t){var r=e.contributionInfoVerified();if(r){var i=e.positionInfoVerified();if(i){var a=e.fileViewObjVerified();a&&e.$refs.cmpContactInfo.validate((function(t){if(t){var r={};r.deliverNumber=e.bizCode;var i=JSON.parse(JSON.stringify(e.cmpDeliverInfo));i=e.dictValue2Key(i);var a=i.spareNames.map((function(e){if(e){var t=e.value;return t}}));i.spareName=[i.spareName1].concat(Object(o["a"])(a)),r.companyInfo=i,r.registeredInfo={registeredCapital:i.registeredCapital,registeredDate:i.registeredDate,reserveProportion:i.reserveProportion};var n=e.contributionData,s=n.filter((function(e){if("--"!==e.hareholderName)return e}));r.contributionInfo={contributionData:s};var l=e.positionData,c=l.filter((function(e){if("--"!==e.hareholderName)return e}));r.positionInfo={positionData:c},r.regInfo={uploadList:[].concat(Object(o["a"])(e.uploadList),Object(o["a"])(e.shareholders))},r.contactsInfo=e.cmpContactInfo,e.allInfo={cmpDeliverInfo:i,contributionData:n,positionData:l,regInfo:{uploadList:[].concat(Object(o["a"])(e.uploadList),Object(o["a"])(e.shareholders))},cmpContactInfo:e.cmpContactInfo},e.cacheData(),Object(p["s"])(r).then((function(e){console.log("submitAllDeliverInfo result:",JSON.stringify(e))})).catch((function(e){console.log("submitAllDeliverInfo result:",JSON.stringify(e))})),e.$Message.success("提交成功!3秒后跳转到服务单列表页"),setTimeout((function(){e.$router.push({name:"myDeliver"})}),3e3)}}))}}}}))},contributionInfoVerified:function(){for(var e=this.contributionData,t=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,r=0;r<e.length;r++){var i=e[r];if(""==i.hareholderName||"--"==i.hareholderName)return this.$Message.error("出资比例第"+(r+1)+"行,法人 / 自然人股东姓名不能为空"),!1;if(i.contributionAmount<=0)return this.$Message.error("出资比例第"+(r+1)+"行,出资金额不能为空"),!1;if(i.contributionProportion<=0)return this.$Message.error("出资比例第"+(r+1)+"行,出资比例不能为空"),!1;if(""==i.IdentificationNumber||"--"==i.IdentificationNumber)return this.$Message.error("出资比例第"+(r+1)+"行,证件号码不能为空"),!1;if(i.IdentificationNumber&&!t.test(i.IdentificationNumber))return this.$Message.error("出资比例第"+(r+1)+"行,证件号码格式错误"),!1;if(""==i.phoneNumber||"--"==i.phoneNumber)return this.$Message.error("出资比例第"+(r+1)+"行,联系电话/手机不能为空"),!1;if(""==i.contactAddress||"--"==i.contactAddress)return this.$Message.error("出资比例第"+(r+1)+"行,身份证住址不能为空"),!1}return!0},positionInfoVerified:function(){for(var e=this.positionData,t=/^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/,r=0;r<e.length;r++){var i=e[r];if(""==i.functionInfo||"--"==i.functionInfo)return this.$Message.error("任职信息第"+(r+1)+"行,职务信息不能为空"),!1;if(""==i.persionName||"--"==i.persionName)return this.$Message.error("任职信息第"+(r+1)+"行,姓名不能为空"),!1;if(""==i.mobilePhone||"--"==i.mobilePhone)return this.$Message.error("任职信息第"+(r+1)+"行,手机号码不能为空"),!1;if(""==i.fixedPhone||"--"==i.fixedPhone)return this.$Message.error("任职信息第"+(r+1)+"行,固话不能为空"),!1;if(""==i.houseAddress||"--"==i.houseAddress)return this.$Message.error("任职信息第"+(r+1)+"行,身份证住址不能为空"),!1;if(""==i.mailboxInfo||"--"==i.mailboxInfo)return this.$Message.error("任职信息第"+(r+1)+"行,邮箱不能为空"),!1;if(i.mailboxInfo&&!t.test(i.mailboxInfo))return this.$Message.error("任职信息第"+(r+1)+"行,邮箱格式错误"),!1}return!0},fileViewObjVerified:function(){var e=[].concat(Object(o["a"])(this.uploadList),Object(o["a"])(this.shareholders)),t=this.fileViewObj;for(var r in t){for(var i=!1,a=0;a<e.length;a++){var n=e[a];n.title==r&&(i=!0)}if(!i)return this.$Message.error("注册文件"+r+"不能为空"),!1}return!0},getUserInfo:function(){var e=this.$store.state.user.userobj;this.userName=e.userName,this.userMobile=e.userMobile},dictKey2Value:function(e){return e.taxpayerType&&(e.taxpayerType=l["a"].TaxpayerTypeDict[e.taxpayerType]),e.companyProperties&&(e.companyProperties=l["a"].companyNatureDict[e.companyProperties]),e.addressType&&(e.addressType=l["a"].addressTypeDict[e.addressType]),e.serviceArea&&(e.serviceArea=l["a"].registeredAreaDict[e.serviceArea]),e.engagedIndustry&&(e.engagedIndustry=l["a"].engagedIndustryDict[e.engagedIndustry]),e},dictValue2Key:function(e){if(e.taxpayerType)for(var t in l["a"].TaxpayerTypeDict)l["a"].TaxpayerTypeDict[t]===e.taxpayerType&&(e.taxpayerType=t);if(e.companyProperties)for(var r in l["a"].companyNatureDict)l["a"].companyNatureDict[r]===e.companyProperties&&(e.companyProperties=r);if(e.addressType)for(var i in l["a"].addressTypeDict)l["a"].addressTypeDict[i]===e.addressType&&(e.addressType=i);if(e.serviceArea)for(var a in l["a"].registeredAreaDict)l["a"].registeredAreaDict[a]===e.serviceArea&&(e.serviceArea=a);if(e.engagedIndustry)for(var o in l["a"].engagedIndustryDict)l["a"].engagedIndustryDict[o]===e.engagedIndustry&&(e.engagedIndustry=o);return e},replaceCaseProp:function(e,t){for(var r in e)for(var i in t)i==r&&(e[r]=t[i])}},created:function(){this.bizType=this.$route.query.bizType,this.bizCode=this.$route.query.bizCode},mounted:function(){var e=this;this.getSourceData(),this.getUserInfo(),this.addContributionData(),this.addPositionData(),this.$nextTick((function(){e.getCacheData()}))},watch:{}},u=d,f=(r("9698"),r("9ca4")),m=Object(f["a"])(u,i,a,!1,null,"150bc206",null);t["default"]=m.exports},9698:function(e,t,r){"use strict";var i=r("a7fb"),a=r.n(i);a.a},a7fb:function(e,t,r){}}]);
\ 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.
This source diff could not be displayed because it is too large. You can view the blob instead.
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