chunk-0bb2547c.61c9e453.js 27 KB

1
  1. (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<e.length&&e.forEach((function(e){e=JSON.parse(JSON.stringify(e)),e.noIndex=a+1,t.push(e)}))})),this.tableData=JSON.parse(JSON.stringify(t))},initListData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.allList=[],i=e.sitem,a=i.projectNo,n=i.ladder,i=i.status,e.status=i,e.projectNo=a,n&&0<n.length&&n.forEach((function(t){t=JSON.parse(JSON.stringify(t)),t={ladder:[t],pageInfo:{size:15,curr:1,total:0},pgNo:t.pgNo,loading:!0,selection:[],tableData:[]},e.allList.push(t)}));case 5:case"end":return t.stop()}}),t)})))()},allSearchList: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:e.allList&&0<e.allList.length&&e.allList.forEach(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a,n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.searchList(n);case 2:case"end":return t.stop()}}),t)})));return function(e,a){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t)})))()},handlePageChange:function(e,t){var a=this;return Object(n.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a.allList[t].pageInfo.curr=e,n.next=3,a.searchList(t);case 3:case"end":return n.stop()}}),n)})))()},handleSizeChange:function(e,t){var a=this;return Object(n.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a.allList[t].pageInfo.curr=1,a.allList[t].pageInfo.size=e,n.next=4,a.searchList(t);case 4:case"end":return n.stop()}}),n)})))()},searchList:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,r,s,o,l;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=t.allList[e],o=s.pageInfo,s=s.pgNo,n=o.size,o=o.curr,t.allList[e].loading=!0,o={page:o,size:n,zxNo:"",infoNo:"",bidNo:"",pgNo:s,status:"3"===t.status?"1":"",projectNo:t.projectNo},a.next=7,i.a.back_good_list(o);case 7:if(n=a.sent,r=n.code,s=n.data,0!==r){a.next=17;break}o=s.list,l=s.count,t.allList[e].tableData=o,t.allList[e].tableData.map((function(e){return e.class_cat="",e.can&&0<e.can.length&&e.can.forEach((function(t,a){e.class_cat+=0===a?t.name:"_"+t.name})),e})),t.allList[e].pageInfo.total=Number(l),a.next=24;break;case 17:if(100<=r&&r<=104)return a.next=20,t.logout();a.next=22;break;case 20:a.next=24;break;case 22:t.allList[e].tableData=[],t.allList[e].pageInfo.total=0;case 24:t.allList[e].loading=!1;case 25:case"end":return a.stop()}}),a)})))()}}},a("750e"),a=a("2877"),a=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"choice-goods"},[a("div",{staticClass:"top"},[e.allList[e.index]?a("div",[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.allList[e.index].loading,expression:"allList[index].loading"}],staticClass:"project-backGoodShow"},[a("div",{staticClass:"project-backGoodShow-main"},[a("div",{staticClass:"project-backGoodShow-title"},[e._v(" 商品要求"+e._s(e.index+1)+" "),a("el-button-group",{staticClass:"fr",staticStyle:{margin:"8px 0 0 0"},attrs:{size:"mini"}},[0!==e.index?a("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini",icon:"el-icon-arrow-left"},on:{click:function(t){e.index--}}},[e._v("上一个")]):e._e(),e.index+1!==e.allList.length?a("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.next()}}},[e._v("下一个"),a("i",{staticClass:"el-icon-arrow-right el-icon--right",attrs:{size:"mini"}})]):e._e(),e.index+1===e.allList.length?a("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.next()}}},[e._v("提交"),a("i",{staticClass:"el-icon-upload el-icon--right"})]):e._e()],1)],1),a("div",{staticClass:"project-backGoodShow-ask-table"},[e.allList[e.index].ladder?[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.allList[e.index].ladder,size:"mini",border:"",stripe:""}},[a("el-table-column",{attrs:{prop:"good_type",label:"商品类型",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==t.row.good_type}))||{}).label||"--")}})]}}],null,!1,2144751808)}),a("el-table-column",{attrs:{prop:"budget_price",label:"预算单价",width:"110"}}),a("el-table-column",{attrs:{prop:"num",label:"购买数量",width:"110"}}),a("el-table-column",{attrs:{prop:"cat_name",label:"商品分类"}}),a("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[a("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}],null,!1,4291532340)}),a("el-table-column",{attrs:{prop:"good_name",label:"商品名称"}})],1)]:e._e()],2),a("div",{staticClass:"project-backGoodShow-title"},[e._v("商品反馈情况")]),a("div",{staticClass:"project-backGoodShow-backGood-table"},[e.allList[e.index].tableData?[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.allList[e.index].loading,expression:"allList[index].loading"}],attrs:{table:e.table,data:e.allList[e.index].tableData,columns:e.columns,page:e.allList[e.index].pageInfo,size:"mini"},on:{"page-curr-change":function(t){return e.handlePageChange(t,e.index)},"page-size-change":function(t){return e.handleSizeChange(t,e.index)},"screen-reset":function(t){e.allList[e.index].pageInfo.curr=1,e.searchList(e.index)},"screen-submit":function(t){e.allList[e.index].pageInfo.curr=1,e.searchList(e.index)},selection:e.selection_change},scopedSlots:e._u([{key:"good_img",fn:function(t){return t=t.scope,[t.row.good_img?a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[a("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}],null,!1,1177387302)})]:e._e()],2)])])]):e._e()]),a("div",{staticClass:"bottom"},[a("div",{staticClass:"table-main clear"},[a("div",{staticClass:"table-main-index",staticStyle:{"padding-top":"40px"}},[e._v(" 已选中的商品 ")]),a("div",{staticClass:"table-main-last"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",height:"168px",size:"mini"}},[a("el-table-column",{attrs:{label:"商品要求",property:"noIndex",width:"80"}}),a("el-table-column",{attrs:{property:"date",label:"商品名称",width:"145"}}),a("el-table-column",{attrs:{property:"name",label:"图片",width:"120"}}),a("el-table-column",{attrs:{prope:"class_cat",label:"分类","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prope:"work_day",label:"制作工期","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prope:"delivery_day",label:"物流时间","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{fixed:"right",label:"操作",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.powers.some((function(e){return"006"==e}))?a("el-tooltip",{attrs:{effect:"dark",content:"删除",placement:"top"}},[a("i",{staticClass:"el-icon-delete tb-icon",on:{click:function(a){return e.deleteItem(t.$index)}}})]):e._e()]}}])})],1)],1)])])])}),[],!1,null,"33b9f221",null);t.default=a.exports},b140:function(e,t,a){"use strict";a("39f1")},f440:function(e,t,a){"use strict";a("7a9b")},f7c7:function(e,t,a){"use strict";a.r(t);var n=a("1da1"),i=(a("96cf"),a("e9c4"),a("d81d"),a("d3b7"),a("159b"),a("b0c0"),a("99af"),a("a9e3"),a("369a")),r=a("9f53"),s=a("8a79");r={name:"changeBackGood",props:["showModel","sitem","id","type","newTime"],mixins:[r.a],watch:{newTime:function(e){this.initForm()}},data:function(){return{loading:!1,allPlanList:[],index:0,total:0,pageInfo:{size:15,curr:1,total:0},ladder:[],plan_table:[],tableData:[],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:[],plan_show:{sale_total:"0",feedback:[]}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.columns=[],e.loading=!0,(a=JSON.parse(JSON.stringify(s.a))).shift(),e.columns=a,e.tableData=[],t.next=8,e.initListData();case 8:return t.next=10,e.get_plan();case 10:e.loading=!1;case 11:case"end":return t.stop()}}),t)})))()},add_plan:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,r,s,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=JSON.parse(JSON.stringify(e.allPlanList[e.index])),a=r.planNo,"1"===r.status)return e.$message.warning("该方案已选中!不能再选!"),t.abrupt("return");t.next=4;break;case 4:return t.next=6,e.$confirm("方案只能选择一次,您确定选定该方案么?",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(n.a)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,n={planNos:[a],status:"1"},t.next=4,i.a.change_project_plan(n);case 4:if(!(r=t.sent)||0!==r.code){t.next=11;break}e.loading=!1,e.$notify.success({title:"方案选择成功!",message:""}),e.$emit("refresh"),t.next=18;break;case 11:if(r&&100<=r.code&&r.code<=104)return t.next=14,e.logout();t.next=16;break;case 14:t.next=18;break;case 16:e.loading=!1,e.$message.warning(r.message);case 18:case"end":return t.stop()}}),t)})))).catch((function(){}));case 6:return t.next=8,i.a.back_good_list(model);case 8:if(r=t.sent,s=r.code,l=r.data,0!==s){t.next=18;break}o=l.list,l=l.count,e.tableData=o,e.tableData.map((function(e){return e.class_cat="",e.can&&0<e.can.length&&e.can.forEach((function(t,a){e.class_cat+=0===a?t.name:"_"+t.name})),e.model="",e.specinfo&&0<e.specinfo.length&&e.specinfo.forEach((function(t,a){e.model+="".concat(0!==a?"--":"").concat(t.spec_name,"[").concat(t.spec_value_name,"]")})),e})),e.pageInfo.total=Number(l),t.next=25;break;case 18:if(100<=s&&s<=104)return t.next=21,e.logout();t.next=23;break;case 21:t.next=25;break;case 23:e.tableData=[],e.pageInfo.total=0;case 25:case"end":return t.stop()}}),t)})))()},initListData:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.allList=[],i=e.sitem,a=i.projectNo,n=i.ladder,i=i.status,e.status=i,e.projectNo=a,e.ladder=JSON.parse(JSON.stringify(n)),e.tableData=[],t.next=8,e.searchList();case 8:case"end":return t.stop()}}),t)})))()},handlePageChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.pageInfo.curr=e,a.next=3,t.searchList();case 3:case"end":return a.stop()}}),a)})))()},handleSizeChange:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return t.pageInfo.curr=1,t.pageInfo.size=e,a.next=4,t.searchList();case 4:case"end":return a.stop()}}),a)})))()},searchList:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r,s,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.pageInfo,a=r.size,r=r.curr,e.loading=!0,r={page:r,size:a,zxNo:"",infoNo:"",bidNo:"",pgNo:"",status:"1",projectNo:e.projectNo},t.next=5,i.a.back_good_list(r);case 5:if(a=t.sent,n=a.code,r=a.data,0!==n){t.next=15;break}s=r.list,o=r.count,e.tableData=s,e.tableData.map((function(e){return e.class_cat="",e.can&&0<e.can.length&&e.can.forEach((function(t,a){e.class_cat+=0===a?t.name:"_"+t.name})),e.model="",e.specinfo&&0<e.specinfo.length&&e.specinfo.forEach((function(t,a){e.model+="".concat(0!==a?"--":"").concat(t.spec_name,"[").concat(t.spec_value_name,"]")})),e})),e.pageInfo.total=Number(o),t.next=22;break;case 15:if(100<=n&&n<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=22;break;case 20:e.tableData=[],e.pageInfo.total=0;case 22:e.loading=!1;case 23:case"end":return t.stop()}}),t)})))()},get_plan:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={projectNo:e.projectNo,type:"5"===e.status||"6"===e.status?"1":""},t.next=3,i.a.get_project_plan(a);case 3:if(a=t.sent,n=a.code,r=a.data,s=a.message,0!==n){t.next=22;break}if(0<r.length)return e.allPlanList=JSON.parse(JSON.stringify(r)),e.total=e.allPlanList.length,e.index=0,t.next=14,e.change_plan("1");t.next=16;break;case 14:t.next=16;break;case 16:e.allPlanList=[],e.total=0,e.index=0,e.plan_show={sale_total:"0",feedback:[]},t.next=28;break;case 22:if(100<=n&&n<=104)return t.next=25,e.logout();t.next=27;break;case 25:t.next=28;break;case 27:e.$message.warning(s);case 28:case"end":return t.stop()}}),t)})))()},change_plan:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,i,r;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:for(t.plan_show={sale_total:"0",feedback:[]},e&&(t.index=0),i=JSON.parse(JSON.stringify(t.allPlanList[t.index])),n=i.sale_total,i=i.feedback,t.plan_show={sale_total:n,feedback:JSON.parse(JSON.stringify(i))},r=0;r<t.plan_show.feedback.length;r++)t.$set(t.plan_show.feedback[r],r,t.plan_show.feedback[r]);case 6:case"end":return a.stop()}}),a)})))()}}},a("f440"),a=a("2877"),a=Object(a.a)(r,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"showbackgood"},[a("div",{staticClass:"slist-card"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"project-backGoodShow"},[a("div",{staticClass:"project-backGoodShow-main"},[a("div",{staticClass:"project-backGoodShow-title"},[e._v("商品要求")]),a("div",{staticClass:"project-backGoodShow-ask-table"},[e.ladder?[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.ladder,size:"mini",border:"",stripe:""}},[a("el-table-column",{attrs:{prop:"pgNo",label:"商品要求编码",width:"160","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"good_type",label:"商品类型",width:"80px","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{size:"mini"},domProps:{textContent:e._s((e.statusOptions.find((function(e){return e.value==t.row.good_type}))||{}).label||"--")}})]}}],null,!1,3303362624)}),a("el-table-column",{attrs:{prop:"budget_price",label:"预算单价",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"num",label:"购买数量",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"cat_name",label:"商品分类","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.cat_info,(function(t,n){return a("span",{key:t.id+n},[e._v(" "+e._s(0===n?"":"_")+e._s(t.name)+" ")])}))}}],null,!1,1060988773)}),a("el-table-column",{attrs:{prop:"good_name",label:"商品名称","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?a("img",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover fl",staticStyle:{display:"inline-block",width:"20px",height:"20px",margin:"2px 0 0 0"},attrs:{src:t.row.good_img,alt:""}}):e._e(),a("span",{staticStyle:{"vertical-align":"top",display:"inline-block"}},[e._v(e._s(t.row.good_name))])]}}],null,!1,2592238478)})],1)]:e._e()],2),a("div",{staticClass:"project-backGoodShow-title"},[e._v("商品反馈情况")]),a("div",{staticClass:"project-backGoodShow-backGood-table"},[e.tableData&&e.columns&&0<e.columns.length?[a("ex-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{table:e.table,data:e.tableData,columns:e.columns,page:e.pageInfo,size:"mini"},on:{"page-curr-change":function(t){return e.handlePageChange(t)},"page-size-change":function(t){return e.handleSizeChange(t)},"screen-reset":function(t){e.pageInfo.curr=1,e.searchList()},"screen-submit":function(t){e.pageInfo.curr=1,e.searchList()}},scopedSlots:e._u([{key:"good_img",fn:function(t){return t=t.scope,[t.row.good_img?a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[a("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}],null,!1,1177387302)})]:e._e()],2),0!==e.total?a("div",{staticClass:"project-backGoodShow-title"},[e._v(" "+e._s("5"===e.status||"6"===e.status?"已选定方案":"选择方案")+" "),"4"===e.status?a("el-button-group",{staticClass:"fr",staticStyle:{margin:"8px 0 0 0"},attrs:{size:"mini"}},[0!==e.total?a("el-button",{staticClass:"fr",attrs:{type:"primary",size:"mini",disabled:0===e.index,icon:"el-icon-arrow-left"},on:{click:function(t){e.index--,e.change_plan()}}}):e._e(),0!==e.total?a("el-button",{staticClass:"fr",staticStyle:{height:"29px"},attrs:{type:"primary",size:"mini"}},[e._v("方案共"+e._s(e.index+1)+"/"+e._s(e.total))]):e._e(),0!==e.total?a("el-button",{staticClass:"fr",attrs:{type:"primary",disabled:e.index+1===e.total,size:"mini"},on:{click:function(t){e.index++,e.change_plan()}}},[a("i",{staticClass:"el-icon-arrow-right el-icon--right",attrs:{size:"mini"}})]):e._e(),0!==e.total?a("el-button",{staticClass:"fr",attrs:{type:"primary",icon:"el-icon-circle-plus-outline",size:"mini"},on:{click:e.add_plan}},[e._v("选定方案,并提交 ")]):e._e()],1):e._e(),e.plan_show?a("span",{staticClass:"fr"},[e._v("方案总金额:"+e._s(e.plan_show.sale_total)+"元")]):e._e()],1):e._e(),e.plan_show&&e.plan_show.feedback&&e.plan_show.feedback.length?a("div",{staticClass:"project-setPlan-backGood-table"},[a("el-table",{ref:"multipleTable"+e.index,staticStyle:{width:"100%"},attrs:{data:e.plan_show.feedback,size:"mini",border:"",stripe:""}},[a("el-table-column",{attrs:{prop:"pgNo",label:"要求编码",width:"180px","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"sale_price",label:"销售单价",width:"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.sale_price)+"元")])]}}],null,!1,2866340487)}),a("el-table-column",{attrs:{prop:"num",label:"购买数量",width:"110","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"good_img",label:"图片",width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.good_img?a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"hover",staticStyle:{width:"20px",height:"20px"}},[a("img",{staticStyle:{display:"inline-block",width:"100%",height:"100%"},attrs:{src:t.row.good_img,alt:""}})]):e._e()]}}],null,!1,4291532340)}),a("el-table-column",{attrs:{prop:"good_name",label:"商品名称","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"class_cat",label:"商品分类","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"model",label:"规格","show-overflow-tooltip":""}})],1)],1):e._e()])])])])}),[],!1,null,"3de7c295",null);t.default=a.exports}}]);