(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7a946667"],{"1e21":function(t,e,a){"use strict";a.r(e);var n=a("c7eb"),i=a("1da1"),s=(a("e9c4"),a("369a")),o=a("9f53"),r=a("965c"),l=a("f7c7");o={name:"goodShare",mixins:[o.a],components:{changeBackGood:r.default,showBackGood:l.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 t=this.$route.query.id;this.queryId=t,this.initData()},methods:{initData:function(){var t=this;return Object(i.a)(Object(n.a)().mark((function e(){var a,i,o;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.next=3,s.a.detail({projectNo:t.queryId});case 3:if(o=e.sent,a=o.code,i=o.message,o=o.data,t.loading=!1,0!==a){e.next=15;break}t.sitem=JSON.parse(JSON.stringify(o)),o=t.sitem.status,t.status=o,t.getNewTime(),e.next=21;break;case 15:if(100<=a&&a<=104)return e.next=18,t.logout();e.next=20;break;case 18:e.next=21;break;case 20:t.$message.warning(i);case 21:case"end":return e.stop()}}),e)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},a("b140"),r=a("2877"),l=Object(r.a)(o,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"good-share"},[e("div",{staticClass:"left"},[e("div",{staticClass:"title"},[t._v("项目信息")]),e("ul",{directives:[{name:"show",rawName:"v-show",value:t.sitem,expression:"sitem"}],staticClass:"clear"},[e("li",[e("div",{staticClass:"label"},[t._v("总预算:")]),e("div",{staticClass:"label-main"},[t._v(t._s(t.sitem.budget_total)+"元")])]),e("li",[e("div",{staticClass:"label"},[t._v("到货日期:")]),e("div",{staticClass:"label-main"},[t._v(t._s(t.sitem.arrtime))])]),e("li",[e("div",{staticClass:"label"},[t._v("业务员:")]),e("div",{staticClass:"label-main"},[t._v(t._s(t.sitem.creater))])]),e("li",[e("div",{staticClass:"label"},[t._v("购买方:")]),e("div",{staticClass:"label-main"},[t._v(t._s(t.sitem.company))])]),e("li",[e("div",{staticClass:"label"},[t._v("项目编号:")]),e("div",{staticClass:"label-main"},[t._v(t._s(t.sitem.projectNo))])]),e("li",[e("div",{staticClass:"label"},[t._v("项目名称:")]),e("div",{staticClass:"label-main"},[t._v(t._s(t.sitem.project_name))])]),e("li",[e("div",{staticClass:"label"},[t._v("项目用途:")]),e("div",{staticClass:"label-main"},[t._v(t._s(t.sitem.use_desc))])])])]),e("div",{staticClass:"right"},[""!==t.newTime&&"2"===t.status?e("change-back-good",{attrs:{newTime:t.newTime,sitem:t.sitem},on:{refresh:function(e){return t.initData()}}}):t._e(),""===t.newTime||"3"!==t.status&&"4"!==t.status&&"5"!==t.status?t._e():e("show-back-good",{attrs:{newTime:t.newTime,sitem:t.sitem},on:{refresh:function(e){return t.initData()}}})],1)])}),[],!1,null,"e7e86fec",null);e.default=l.exports},"369a":function(t,e,a){"use strict";var n=a("1b69"),i="admin/";e.a={add:function(t,e){return Object(n.a)(i+"projectcreate",t,"post",e)},delete:function(t,e){return Object(n.a)(i+"Consultdel",t,"post",e)},list:function(t,e){return Object(n.a)(i+"projectlist",t,"post",e)},detail:function(t,e){return Object(n.a)(i+"projectinfo",t,"post",e)},update:function(t,e){return Object(n.a)(i+"update",t,"post",e)},status:function(t,e){return Object(n.a)(i+"accountstatus",t,"post",e)},catinfo:function(t,e){return Object(n.a)(i+"catinfo",t,"post",e)},rateEdit:function(t,e){return Object(n.a)(i+"projectrate",t,"post",e)},back_good_list:function(t,e){return Object(n.a)(i+"projectfeedlist",t,"post",e)},back_good_submit:function(t,e){return Object(n.a)(i+"projectfeeddheck",t,"post",e)},get_project_plan:function(t,e){return Object(n.a)(i+"projectplan",t,"post",e)},change_project_plan:function(t,e){return Object(n.a)(i+"plandheck",t,"post",e)}}},"39f1":function(t,e,a){},5110:function(t,e,a){"use strict";a("544b")},"544b":function(t,e,a){},"7a9b":function(t,e,a){},"8a79":function(t,e,a){"use strict";e.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(t,e,a){"use strict";a.r(e);var n=a("c7eb"),i=a("1da1"),s=(a("e9c4"),a("d3b7"),a("159b"),a("a434"),a("d81d"),a("b0c0"),a("a9e3"),a("369a")),o=a("9f53"),r=a("8a79");o={name:"changeBackGood",props:["showModel","sitem","id","type","newTime"],mixins:[o.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:r.a,tableData:[]}},mounted:function(){this.initForm()},methods:{initForm:function(){var t=this;return Object(i.a)(Object(n.a)().mark((function e(){return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,t.tableData=[],e.next=4,t.initListData();case 4:return t.loading=!1,e.next=8,t.searchList(t.index);case 8:case"end":return e.stop()}}),e)})))()},next:function(){var t=this;return Object(i.a)(Object(n.a)().mark((function e(){return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===t.allList[t.index].selection.length)return t.$message.warning("至少选择一个商品!"),e.abrupt("return");e.next=4;break;case 4:if(t.index+1!==t.allList.length)return t.index++,e.next=8,t.searchList(t.index);e.next=10;break;case 8:e.next=12;break;case 10:return e.next=12,t.$confirm("确定要保存么?","商品只能选择一次!",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(i.a)(Object(n.a)().mark((function e(){return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.submitForm();case 2:case"end":return e.stop()}}),e)})))).catch((function(){}));case 12:case"end":return e.stop()}}),e)})))()},deleteItem:function(t){var e=this;JSON.parse(JSON.stringify(this.allList[this.index].selection)).forEach((function(a,n){a.spuCode===e.tableData[t].spuCode&&e.allList[e.index].selection.splice(n,1)})),this.tableData.splice(t,1)},submitForm:function(){var t=this;return Object(i.a)(Object(n.a)().mark((function e(){var a,i,o;return Object(n.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.loading){e.next=20;break}return t.loading=!0,a=JSON.parse(JSON.stringify(t.tableData)),i={feedid:[]},a.forEach((function(t){i.feedid.push(t.id)})),e.next=7,s.a.back_good_submit(i);case 7:if(o=e.sent,t.loading=!1,!o||0!==o.code){e.next=14;break}t.$notify.success({title:"保存成功!",message:""}),t.$emit("refresh"),e.next=20;break;case 14:if(o&&100<=o.code&&o.code<=104)return e.next=17,t.logout();e.next=19;break;case 17:e.next=20;break;case 19:t.$message.warning(o.message);case 20:case"end":return e.stop()}}),e)})))()},selection_change:function(t){t=t.list;var e=(this.allList[this.index].selection=JSON.parse(JSON.stringify(t)),[]);this.allList.forEach((function(t,a){t=t.selection,t&&0