chunk-42507700.d74be81f.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-42507700"],{"0a29":function(e,t,n){"use strict";n("6706")},"11b8":function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"v",(function(){return l})),n.d(t,"i",(function(){return s})),n.d(t,"h",(function(){return i})),n.d(t,"m",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"u",(function(){return c})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"t",(function(){return p})),n.d(t,"r",(function(){return f})),n.d(t,"k",(function(){return h})),n.d(t,"f",(function(){return y})),n.d(t,"l",(function(){return _})),n.d(t,"w",(function(){return v})),n.d(t,"s",(function(){return b})),n.d(t,"p",(function(){return w})),n.d(t,"a",(function(){return M})),n.d(t,"o",(function(){return k})),n.d(t,"q",(function(){return S})),n.d(t,"j",(function(){return C})),n.d(t,"e",(function(){return F}));var o=n("b775");function a(e){return Object(o["a"])({url:"/ReturnGood/GetApplyList",method:"get",params:e})}function r(e){return Object(o["a"])({url:"/ReturnGood/CheckIn",method:"post",data:e})}function l(e){return Object(o["a"])({url:"/user/getuserlist",method:"get",params:e})}function s(e){return Object(o["a"])({url:"/ReturnGood/GetInfo",method:"get",params:e})}function i(e){return Object(o["a"])({url:"/ReturnGood/GetExpressInfo",method:"get",params:e})}function u(e){return Object(o["a"])({url:"/ReturnGood/SureMoney",method:"get",params:e})}function d(e){return Object(o["a"])({url:"/ReturnGood/SureMoneyNew",method:"get",params:e})}function c(e){return Object(o["a"])({url:"/ReturnGood/UserSign",method:"post",data:e})}function g(e){return Object(o["a"])({url:"/ReturnGood/CrownMoneySign",method:"post",data:e})}function m(e){return Object(o["a"])({url:"/ReturnGood/CrownLookMoneySign",method:"post",data:e})}function p(e){return Object(o["a"])({url:"/ReturnGood/UserConfirmMoneySign",method:"post",data:e})}function f(e){return Object(o["a"])({url:"/ReturnGood/UploadImg",method:"post",data:e})}function h(e){return Object(o["a"])({url:"/ReturnGood/GetStatus",method:"get",params:e})}function y(e){return Object(o["a"])({url:"/ReturnGood/EditExpressInfo",method:"post",data:e})}function _(e){return Object(o["a"])({url:"/ReturnGood/NewGoodDetail",method:"post",data:e})}function v(e){return Object(o["a"])({url:"/ReturnGood/GoodDetail",method:"get",params:e})}function b(e){return Object(o["a"])({url:"/ReturnGood/UploadMoneyImg",method:"post",data:e})}function w(e){return Object(o["a"])({url:"/ReturnGood/UpdateReturnMoney",method:"get",params:e})}function M(e){return Object(o["a"])({url:"/ReturnGood/AddReturnMoney",method:"post",data:e})}function k(e){return Object(o["a"])({url:"/ReturnGood/UpdateApplyInfo",method:"post",data:e})}function S(e){return Object(o["a"])({url:"/ReturnGood/UploadImage",method:"post",data:e})}function C(e){return Object(o["a"])({url:"/ReturnGood/GetQrCode",method:"post",data:e})}function F(e){return Object(o["a"])({url:"/ReturnGood/DownloadTable",method:"post",data:e})}},"57b6":function(e,t,n){"use strict";n("d1da")},6706:function(e,t,n){},8254:function(e,t,n){e.exports=n.p+"static/img/yes.8b681575.png"},a03f:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"page-content",staticStyle:{"padding-bottom":"10px"}},[o("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),e._v(" "),5===e.type||6===e.type?o("div",{staticClass:"sureFlex"},[o("img",{staticStyle:{height:"70px"},attrs:{src:n("8254"),alt:""}}),e._v(" "),o("div",[e._v("\n "+e._s(5===e.type?"签名成功":"退款完成")+"!\n ")])]):e._e(),e._v(" "),5!==e.type&&6!==e.type?o("div",[1===e.type?o("div",{staticClass:"table"},[o("div",{staticClass:"table_title",staticStyle:{"font-size":"18px"}},[e._v("退货详情及信息确认")]),e._v(" "),o("div",{staticClass:"wear"},[o("div",{staticClass:"wear_name",staticStyle:{"background-color":"#f0f9eb"}},[e._v("\n 退货人:"+e._s(e.goodDetail.info&&e.goodDetail.info.user_name)+"\n "),e.goodDetail.info&&e.goodDetail.info.user_name.length>6?o("p"):e._e(),e._v("\n 手机号:"+e._s(e.goodDetail.info&&e.goodDetail.info.phone)+"\n ")]),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.goodDetail.list,stripe:"",border:""}},[o("el-table-column",{attrs:{prop:"name",label:"退货明细",align:"center"}}),e._v(" "),o("el-table-column",{attrs:{prop:"tao",label:"整套",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.tao||"")+"\n ")]}}],null,!1,3729635943)}),e._v(" "),o("el-table-column",{attrs:{prop:"san",label:"散装(条)",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.san||"")+"\n ")]}}],null,!1,1998364513)})],1)],1),e._v(" "),o("div",{staticClass:"table_name"},[e._v("缺少配件信息:"),o("span",{staticStyle:{"margin-right":"10px"}},[e._v("肥皂(块):"+e._s(e.goodDetail.lack_soap))]),e._v(" 手提袋(个):"+e._s(e.goodDetail.lack_tote))])]):e._e(),e._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:2===e.type,expression:"type === 2"}],staticClass:"tables",staticStyle:{padding:"10px"}},[o("div",{staticClass:"tables_top"},[o("div",{staticClass:"topName",staticStyle:{"border-bottom":"1px solid #DFE6EC",background:"#fdf5e6"}},[e._v("\n 退货人:"+e._s(e.goodMoney.user&&e.goodMoney.user.user_name)+"\n "),e.goodMoney.user&&e.goodMoney.user.user_name.length>6?o("p"):e._e(),e._v("\n 手机号:"+e._s(e.goodMoney.user&&e.goodMoney.user.phone)+"\n "),o("p"),e._v("\n 批发商:"+e._s(e.goodMoney.crown&&e.goodMoney.crown.nickname)+"\n "),e._v("\n 手机号:"+e._s(e.goodMoney.crown&&e.goodMoney.crown.phone)+"\n ")]),e._v(" "),o("div",{staticClass:"topName",staticStyle:{"margin-top":"15px"}},[e._v("\n 商品退货明细\n ")]),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.goodMoney.money_info,"span-method":e.arraySpanMethod,stripe:"",border:""}},[o("el-table-column",{attrs:{prop:"good_name",label:"退货款式",align:"center"}}),e._v(" "),o("el-table-column",{attrs:{prop:"num",label:"退货数量",align:"center"}}),e._v(" "),o("el-table-column",{attrs:{prop:"money",label:"进货单价",align:"center"}}),e._v(" "),o("el-table-column",{attrs:{prop:"all_money",label:"退货金额",align:"center"}}),e._v(" "),o("el-table-column",{attrs:{prop:"note",label:"备注",align:"center"}})],1),e._v(" "),o("div",{staticClass:"topName",staticStyle:{"margin-top":"15px"}},[e._v("\n 缺少配件明细\n ")]),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.goodMoney.lackList,"span-method":e.arraySpanMethod2,stripe:"",border:""}},[o("el-table-column",{attrs:{prop:"name",label:"缺少配件",align:"center"}}),e._v(" "),o("el-table-column",{attrs:{prop:"good_num",label:"缺少数量",align:"center"}}),e._v(" "),o("el-table-column",{attrs:{prop:"money",label:"单价",align:"center"}}),e._v(" "),o("el-table-column",{attrs:{prop:"all_money",label:"扣除金额",align:"center"}})],1)],1),e._v(" "),o("div",{staticClass:"tables_bottom"},[o("span",{staticStyle:{width:"74%"}},[e._v("\n 扣除其他(多发本人进货业绩提成)\n ")]),e._v(" "),o("span",{staticClass:"botend"},[e._v("\n "+e._s(e.goodMoney.otherNum?"-"+e.goodMoney.otherNum:e.goodMoney.otherNum)+"\n ")])]),e._v(" "),o("div",{staticClass:"tables_bottom"},[o("span",{staticStyle:{width:"74%"}},[e._v("\n 实际应退金额(批发商)\n ")]),e._v(" "),o("span",{staticClass:"botend",staticStyle:{color:"#F56C6C"}},[e._v("\n "+e._s(e.goodMoney.returnMoney)+"\n ")])])]),e._v(" "),3===e.type&&e.dh_money_img?o("div",{staticClass:"tuikaunImg"},[o("span",[e._v("退款截图")]),e._v(" "),o("el-image",{staticClass:"thumbUrl",attrs:{src:e.dh_money_img,fit:"contain","preview-src-list":[e.dh_money_img]}})],1):e._e(),e._v(" "),e.showViewer?o("el-image-viewer",{staticStyle:{"z-index":"9999 !important"},attrs:{"on-close":function(){e.showViewer=!1},"url-list":[e.resultImg]}}):e._e(),e._v(" "),o("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:4===e.type&&1!==e.level,expression:"type === 4 && level !== 1"}],staticClass:"el-checkbox",staticStyle:{margin:"10px"},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("货款已收到,同意取消授权")]),e._v(" "),o("div",{staticClass:"topTip"},[e._v("\n 如果"+e._s(1===e.type?"货物详情无误":2===e.type?"金额无误":"您已收到退款")+", 请在下方签你的名字并提交\n ")]),e._v(" "),o("div",{staticClass:"content"},[o("vue-esign",{ref:"esign",attrs:{width:800,height:800,"line-width":8,"line-color":"#000","bg-color":"#FFF"}})],1),e._v(" "),o("div",{staticClass:"flex",staticStyle:{"margin-bottom":"20px"}},[o("el-button",{attrs:{type:"danger"},on:{click:e.handleReset}},[e._v("重签")]),e._v(" "),o("el-button",{attrs:{type:"success"},on:{click:e.handleSure}},[e._v("确认提交")])],1)],1):e._e()])},a=[],r=(n("ac6a"),n("11b8")),l=n("ed08");document.title="签名确认";var s={components:{"el-image-viewer":function(){return Promise.all([n.e("chunk-elementUI"),n.e("chunk-3784bb01")]).then(n.bind(null,"08a9"))}},data:function(){return{level:"",checked:!1,lineWidth:8,lineColor:"#000",bgColor:"#fff",isCrop:!1,showViewer:!1,resultImg:"",type:"",allMoney:0,id:"",goodDetail:[],loadingFull:!1,dh_money_img:"",goodMoneyList:[],goodMoney:{},num:"",wear_info:[],nowear_info:[],lackList:[]}},created:function(){this.id=this.$route.query.id,this.num=this.$route.query.type,this.getstatusd(),this.parseMoneys=l["i"]},methods:{arraySpanMethod:function(e){e.row;var t=e.rowIndex,n=e.columnIndex;if(t===this.goodMoney.money_info.length-1){if(0===n)return[1,3];if(1===n||2===n)return[0,0]}},arraySpanMethod2:function(e){e.row;var t=e.rowIndex,n=e.columnIndex;if(t===this.goodMoney.lackList.length-1){if(0===n)return[1,3];if(1===n||2===n)return[0,0]}},showAll:function(e){this.goodDetail.good_info[e].showAll=!this.goodDetail.good_info[e].showAll,this.goodDetail=JSON.parse(JSON.stringify(this.goodDetail))},getTime:function(e){var t=new Date(e),n=t.getFullYear(),o=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate();return n+"-"+o+"-"+a},getstatusd:function(){var e=this;this.loadingFull=!0;var t=this.num;Object(r["k"])({id:this.id}).then((function(n){if(200===n.code){var o=n.data;e.level=o.level,4===o.status&&"1"===t?(e.type=1,Object(r["l"])({id:e.id}).then((function(t){200===t.code?e.goodDetail=t.data:e.$message.error(t.message||"获取失败")})),e.loadingFull=!1):6===o.status&&"2"===t?(e.type=2,Object(r["n"])({id:e.id}).then((function(t){if(200===t.code){var n=t.data.money_info,o={good_name:"退货金额合计(批发商)",all_money:0};if(n.forEach((function(e){o.all_money+=e.all_money})),t.data.money_info.push(o),e.goodMoney=t.data,e.goodMoney.lackList=[],t.data.lack_tote){var a=t.data.lack_tote;a.name="手提袋(个)",a.all_money=parseFloat(a.money)*parseFloat(a.good_num),e.goodMoney.lackList.push(a)}if(t.data.lack_soap){var r=t.data.lack_soap;r.name="肥皂(块)",r.all_money=parseFloat(r.money)*parseFloat(r.good_num),e.goodMoney.lackList.push(r)}var l={lackMoney:0};e.goodMoney.lackList.length>0&&(e.goodMoney.lackList.forEach((function(e){l.lackMoney+=e.all_money})),e.goodMoney.lackList.push({name:"缺少配件扣除金额合计",all_money:"-"+l.lackMoney})),e.goodMoney.otherNum=t.data.other?parseFloat(t.data.other.money):0;var s=e.goodMoney.money_info[e.goodMoney.money_info.length-1].all_money;e.goodMoney.returnMoney=s-l.lackMoney-e.goodMoney.otherNum,console.log(e.goodMoney.lackList)}else e.$message.error(t.message||"获取失败")})),e.loadingFull=!1):8===o.status&&"2"===t?(e.dh_money_img=o.dh_money_img,e.type=3,e.loadingFull=!1):9===o.status&&"1"===t?(console.log("4"),e.type=4,e.loadingFull=!1):10===o.status?(console.log("6"),e.type=6,e.loadingFull=!1):(e.type=5,e.loadingFull=!1)}else e.$message.error(n.message||"获取失败"),e.loadingFull=!1}))},handleSure:function(){var e=this;this.$refs["esign"].generate().then((function(t){if(e.loadingFull=!0,1===e.type&&Object(r["u"])({id:e.id,img:t}).then((function(t){e.loadingFull=!1,200===t.code?(e.$message.success("提交成功"),e.type=5):e.$message.error(t.message||"提交失败")})).catch((function(){e.loadingFull=!1,e.$message.error("提交失败")})),2===e.type)Object(r["d"])({id:e.id,img:t}).then((function(t){e.loadingFull=!1,200===t.code?(e.$message.success("提交成功"),e.type=5):e.$message.error(t.message||"提交失败")})).catch((function(){e.loadingFull=!1,e.$message.error("提交失败")}));else if(3===e.type)Object(r["c"])({id:e.id,img:t}).then((function(t){e.loadingFull=!1,200===t.code?(e.$message.success("提交成功"),e.type=5):e.$message.error(t.message||"提交失败")})).catch((function(){e.loadingFull=!1,e.$message.error("提交失败")}));else if(4===e.type){if(1!==e.level&&!e.checked)return e.loadingFull=!1,void e.$message.error("请先勾选上方确认按钮");Object(r["t"])({id:e.id,img:t}).then((function(t){e.loadingFull=!1,200===t.code?(e.$message.success("提交成功"),e.type=5):e.$message.error(t.message||"提交失败")})).catch((function(){e.loadingFull=!1,e.$message.error("提交失败")}))}})).catch((function(){e.$message({message:"请先签名!",type:"warning"})}))},handleReset:function(){this.$refs["esign"].reset()},handleGenerate:function(){var e=this;this.$refs["esign"].generate().then((function(t){e.resultImg=t,e.showViewer=!0})).catch((function(){e.$message({message:"请先签名!",type:"warning"})}))}}},i=s,u=(n("57b6"),n("0a29"),n("2877")),d=Object(u["a"])(i,o,a,!1,null,"e8fc7ec4",null);t["default"]=d.exports},d1da:function(e,t,n){}}]);