(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0bb2547c"],{"1e21":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),i=(a("96cf"),a("e9c4"),a("369a")),r=a("9f53"),s=a("965c"),o=a("f7c7");r={name:"goodShare",mixins:[r.a],components:{changeBackGood:s.default,showBackGood:o.default},data:function(){return{currentRow:null,loading:!0,status:"",radio:"",sitem:{},queryId:"",multipleSelection:[],tableData:[],newTime:"",statusoptions:[{value:"1",label:"待商品反馈"},{value:"2",label:"待项目反馈商品选择"},{value:"3",label:"待项目方案制定"},{value:"4",label:"待方案选择"},{value:"5",label:"项目结束"}]}},mounted:function(){var e=this.$route.query.id;this.queryId=e,this.initData()},methods:{initData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,i.a.detail({projectNo:e.queryId});case 3:if(r=t.sent,a=r.code,n=r.message,r=r.data,e.loading=!1,0!==a){t.next=15;break}e.sitem=JSON.parse(JSON.stringify(r)),r=e.sitem.status,e.status=r,e.getNewTime(),t.next=21;break;case 15:if(100<=a&&a<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(n);case 21:case"end":return t.stop()}}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},a("b140"),s=a("2877"),o=Object(s.a)(r,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"good-share"},[t("div",{staticClass:"left"},[t("div",{staticClass:"title"},[e._v("项目信息")]),t("ul",{directives:[{name:"show",rawName:"v-show",value:e.sitem,expression:"sitem"}],staticClass:"clear"},[t("li",[t("div",{staticClass:"label"},[e._v("总预算:")]),t("div",{staticClass:"label-main"},[e._v(e._s(e.sitem.budget_total)+"元")])]),t("li",[t("div",{staticClass:"label"},[e._v("到货日期:")]),t("div",{staticClass:"label-main"},[e._v(e._s(e.sitem.arrtime))])]),t("li",[t("div",{staticClass:"label"},[e._v("业务员:")]),t("div",{staticClass:"label-main"},[e._v(e._s(e.sitem.creater))])]),t("li",[t("div",{staticClass:"label"},[e._v("购买方:")]),t("div",{staticClass:"label-main"},[e._v(e._s(e.sitem.company))])]),t("li",[t("div",{staticClass:"label"},[e._v("项目编号:")]),t("div",{staticClass:"label-main"},[e._v(e._s(e.sitem.projectNo))])]),t("li",[t("div",{staticClass:"label"},[e._v("项目名称:")]),t("div",{staticClass:"label-main"},[e._v(e._s(e.sitem.project_name))])]),t("li",[t("div",{staticClass:"label"},[e._v("项目用途:")]),t("div",{staticClass:"label-main"},[e._v(e._s(e.sitem.use_desc))])])])]),t("div",{staticClass:"right"},[""!==e.newTime&&"2"===e.status?t("change-back-good",{attrs:{newTime:e.newTime,sitem:e.sitem},on:{refresh:function(t){return e.initData()}}}):e._e(),""===e.newTime||"3"!==e.status&&"4"!==e.status&&"5"!==e.status?e._e():t("show-back-good",{attrs:{newTime:e.newTime,sitem:e.sitem},on:{refresh:function(t){return e.initData()}}})],1)])}),[],!1,null,"e7e86fec",null);t.default=o.exports},"369a":function(e,t,a){"use strict";var n=a("1b69"),i="admin/";t.a={add:function(e,t){return Object(n.a)(i+"projectcreate",e,"post",t)},delete:function(e,t){return Object(n.a)(i+"Consultdel",e,"post",t)},list:function(e,t){return Object(n.a)(i+"projectlist",e,"post",t)},detail:function(e,t){return Object(n.a)(i+"projectinfo",e,"post",t)},update:function(e,t){return Object(n.a)(i+"update",e,"post",t)},status:function(e,t){return Object(n.a)(i+"accountstatus",e,"post",t)},catinfo:function(e,t){return Object(n.a)(i+"catinfo",e,"post",t)},rateEdit:function(e,t){return Object(n.a)(i+"projectrate",e,"post",t)},back_good_list:function(e,t){return Object(n.a)(i+"projectfeedlist",e,"post",t)},back_good_submit:function(e,t){return Object(n.a)(i+"projectfeeddheck",e,"post",t)},get_project_plan:function(e,t){return Object(n.a)(i+"projectplan",e,"post",t)},change_project_plan:function(e,t){return Object(n.a)(i+"plandheck",e,"post",t)}}},"39f1":function(e,t,a){},"42f4":function(e,t,a){},"750e":function(e,t,a){"use strict";a("42f4")},"7a9b":function(e,t,a){},"8a79":function(e,t,a){"use strict";t.a=[{type:"selection",fixed:"left",_noset_:!0},{prop:"pgNo",label:"商品要求编码",width:"160px"},{prop:"spuCode",label:"商品编号",width:"160px"},{prop:"good_img",label:"图片",_slot_:"good_img",width:"50px"},{prop:"good_name",label:"商品名称"},{prop:"class_cat",label:"商品分类"},{prop:"unit_name",label:"单位",width:"50px"},{prop:"model",label:"规格","min-width":"110px"},{prop:"brand_name",label:"品牌",width:"80px"}]},"965c":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),i=(a("e9c4"),a("d3b7"),a("159b"),a("a434"),a("d81d"),a("b0c0"),a("a9e3"),a("96cf"),a("369a")),r=a("9f53"),s=a("8a79");r={name:"changeBackGood",props:["showModel","sitem","id","type","newTime"],mixins:[r.a],watch:{},data:function(){return{loading:!1,allList:[],index:0,projectNo:"",status:"",statusOptions:[{value:"1",label:"竞品"},{value:"2",label:"竞聘"}],sitemStatusoptions:[{value:"1",label:"待商品反馈"},{value:"2",label:"待项目反馈商品选择"},{value:"3",label:"待项目方案制定"},{value:"4",label:"待方案选择"},{value:"5",label:"项目结束"}],table:{stripe:!0,border:!0},columns:s.a,tableData:[]}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.tableData=[],t.next=4,e.initListData();case 4:return e.loading=!1,t.next=8,e.searchList(e.index);case 8:case"end":return t.stop()}}),t)})))()},next:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0===e.allList[e.index].selection.length)return e.$message.warning("至少选择一个商品!"),t.abrupt("return");t.next=4;break;case 4:if(e.index+1!==e.allList.length)return e.index++,t.next=8,e.searchList(e.index);t.next=10;break;case 8:t.next=12;break;case 10:return t.next=12,e.$confirm("确定要保存么?","商品只能选择一次!",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.submitForm();case 2:case"end":return t.stop()}}),t)})))).catch((function(){}));case 12:case"end":return t.stop()}}),t)})))()},deleteItem:function(e){var t=this;JSON.parse(JSON.stringify(this.allList[this.index].selection)).forEach((function(a,n){a.spuCode===t.tableData[e].spuCode&&t.allList[t.index].selection.splice(n,1)})),this.tableData.splice(e,1)},submitForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading){t.next=20;break}return e.loading=!0,a=JSON.parse(JSON.stringify(e.tableData)),n={feedid:[]},a.forEach((function(e){n.feedid.push(e.id)})),t.next=7,i.a.back_good_submit(n);case 7:if(r=t.sent,e.loading=!1,!r||0!==r.code){t.next=14;break}e.$notify.success({title:"保存成功!",message:""}),e.$emit("refresh"),t.next=20;break;case 14:if(r&&100<=r.code&&r.code<=104)return t.next=17,e.logout();t.next=19;break;case 17:t.next=20;break;case 19:e.$message.warning(r.message);case 20:case"end":return t.stop()}}),t)})))()},selection_change:function(e){e=e.list;var t=(this.allList[this.index].selection=JSON.parse(JSON.stringify(e)),[]);this.allList.forEach((function(e,a){e=e.selection,e&&0