1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-32263991"],{"0483":function(e,t,a){"use strict";a("28d5")},"0b05":function(e,t,a){},"0b49":function(e,t,a){},"1e21":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),r=(a("96cf"),a("e9c4"),a("d3b7"),{}),i=(window.ajaxTimeout=2e4,Object(n.a)(regeneratorRuntime.mark((function e(){var t,a,i,o,s,l,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=0<c.length&&void 0!==c[0]?c[0]:"",i=3<c.length&&void 0!==c[3]?c[3]:{},o=4<c.length&&void 0!==c[4]?c[4]:r,s=5<c.length?c[5]:void 0,a=t.method.toLowerCase(),l={method:a,baseURL:"",url:t.url,data:t.data,params:i,processData:!0,timeout:window.ajaxTimeout,headers:o,onUploadProgress:s},s&&"function"==typeof s&&(l.onUploadProgress=s),axios.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use(function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return Promise.reject(e.response.data)})),e.abrupt("return",new Promise((function(e,t){axios(l).then((function(t){e(t.data)})).catch((function(e){t(e)}))})));case 12:case"end":return e.stop()}}),e)})))),o="http://stock.test241.wanyuhengtong.com/",s="http://stock.api.wanyuhengtong.com/";function l(e){e=JSON.parse(JSON.stringify(e));var t=e.full;return delete e.full,i({url:"".concat("/good-share"===t?s:o,"admin/projectsharelist"),method:"post",data:e})}a("159b"),a("a434"),a("d81d"),a("b0c0"),a("a9e3"),a("ac1f"),a("5319"),a("b680");var c=[{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"}],u={name:"changeBackGood",props:["showModel","sitem","id","type","newTime"],mixins:[{methods:{logout: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("/login"!==e.$route.path)return t.next=3,e.$store.dispatch("user/logout");t.next=4;break;case 3:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 4:case"end":return t.stop()}}),t)})))()},routeGoto:function(e,t){return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:window.vm.$router.push({path:e,query:t});case 1:case"end":return a.stop()}}),a)})))()},routeReGoto:function(e,t){return Object(n.a)(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:window.vm.$router.replace({path:e,query:t});case 1:case"end":return a.stop()}}),a)})))()},setNum:function(e){return e?parseFloat(e+"").toFixed(2):"-"}}}],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:c,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=21;break}return e.loading=!0,a=JSON.parse(JSON.stringify(e.tableData)),n={feedid:[]},a.forEach((function(e){n.feedid.push(e.id)})),n.full=e.$route.path,t.next=8,l=n,c=void 0,c=(l=JSON.parse(JSON.stringify(l))).full,delete l.full,i({url:"".concat("/good-share"===c?s:o,"admin/projectsharecheck"),method:"post",data:l});case 8:if(r=t.sent,e.loading=!1,!r||0!==r.code){t.next=15;break}e.$notify.success({title:"保存成功!",message:""}),e.$emit("refresh"),t.next=21;break;case 15:if(r&&100<=r.code&&r.code<=104)return t.next=18,e.logout();t.next=20;break;case 18:t.next=21;break;case 20:e.$message.warning(r.message);case 21:case"end":return t.stop()}var l,c}),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,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.allList=[],r=e.sitem,a=r.projectNo,n=r.ladder,r=r.status,e.status=r,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,i,o,s;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=t.allList[e],o=i.pageInfo,i=i.pgNo,n=o.size,o=o.curr,t.allList[e].loading=!0,(o={page:o,size:n,zxNo:"",infoNo:"",bidNo:"",pgNo:i,status:"3"===t.status?"1":"",projectNo:t.projectNo}).full=t.$route.path,a.next=8,l(o);case 8:if(n=a.sent,r=n.code,i=n.data,0!==r){a.next=18;break}o=i.list,s=i.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(s),a.next=25;break;case 18:if(100<=r&&r<=104)return a.next=21,t.logout();a.next=23;break;case 21:a.next=25;break;case 23:t.allList[e].tableData=[],t.allList[e].pageInfo.total=0;case 25:t.allList[e].loading=!1;case 26:case"end":return a.stop()}}),a)})))()}}},d=(a("0483"),a("2877")),p=(u=Object(d.a)(u,(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,"618ff540",null).exports,a("99af"),{name:"changeBackGood",props:["showModel","sitem","id","type","newTime"],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(c))).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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(JSON.stringify(e.allPlanList[e.index])),r=a.planNo,"1"===a.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 a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,(a={planNos:[r],status:"1"}).full=e.$route.path,t.next=5,n=a,l=void 0,l=(n=JSON.parse(JSON.stringify(n))).full,delete n.full,i({url:"".concat("/good-share"===l?s:o,"admin/plancheck"),method:"post",data:n});case 5:(a=t.sent)&&0===a.code?(e.loading=!1,e.$notify.success({title:"方案选择成功!",message:""}),e.$emit("refresh")):(e.loading=!1,e.$message.warning(a.message));case 7:case"end":return t.stop()}var n,l}),t)})))).catch((function(){}));case 6:case"end":return t.stop()}}),t)})))()},initListData: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.allList=[],r=e.sitem,a=r.projectNo,n=r.ladder,r=r.status,e.status=r,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,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.pageInfo,a=n.size,n=n.curr,e.loading=!0,n={page:n,size:a,zxNo:"",infoNo:"",bidNo:"",pgNo:"",status:"1",projectNo:e.projectNo},t.next=5,l(n);case 5:a=t.sent,n=a.code,i=a.data,0===n?(r=i.list,i=i.count,e.tableData=r,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(i)):(e.tableData=[],e.pageInfo.total=0),e.loading=!1;case 10:case"end":return t.stop()}}),t)})))()},get_plan:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a,n,r,l;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":""}).full=e.$route.path,t.next=4,c=a,u=void 0,u=(c=JSON.parse(JSON.stringify(c))).full,delete c.full,i({url:"".concat("/good-share"===u?s:o,"admin/projectshareplan"),method:"post",data:c});case 4:if(a=t.sent,n=a.code,r=a.data,l=a.message,0!==n){t.next=23;break}if(0<r.length)return e.allPlanList=JSON.parse(JSON.stringify(r)),e.total=e.allPlanList.length,e.index=0,t.next=15,e.change_plan("1");t.next=17;break;case 15:t.next=17;break;case 17:e.allPlanList=[],e.total=0,e.index=0,e.plan_show={sale_total:"0",feedback:[]},t.next=24;break;case 23:e.$message.warning(l);case 24:case"end":return t.stop()}var c,u}),t)})))()},change_plan:function(e){var t=this;return Object(n.a)(regeneratorRuntime.mark((function a(){var n,r,i;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),r=JSON.parse(JSON.stringify(t.allPlanList[t.index])),n=r.sale_total,r=r.feedback,t.plan_show={sale_total:n,feedback:JSON.parse(JSON.stringify(r))},i=0;i<t.plan_show.feedback.length;i++)t.$set(t.plan_show.feedback[i],i,t.plan_show.feedback[i]);case 6:case"end":return a.stop()}}),a)})))()}}});a("ea2a"),u={name:"goodShare",components:{changeBackGood:u,showBackGood:Object(d.a)(p,(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,"0ea68c77",null).exports},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,l={projectNo:e.queryId,full:e.$route.path},c=void 0,c=(l=JSON.parse(JSON.stringify(l))).full,delete l.full,i({url:"".concat("/good-share"===c?s:o,"admin/projectshare"),method:"post",data:l});case 3:n=t.sent,r=n.code,a=n.message,n=n.data,e.loading=!1,0===r?(e.sitem=JSON.parse(JSON.stringify(n)),r=e.sitem.status,e.status=r,e.getNewTime()):e.$message.warning(a);case 9:case"end":return t.stop()}var l,c}),t)})))()},getNewTime:function(){this.newTime=(new Date).valueOf()}}},a("fb53"),p=Object(d.a)(u,(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,"c606a3fc",null);t.default=p.exports},"28d5":function(e,t,a){},"99af":function(e,t,a){"use strict";var n=a("23e7"),r=a("d039"),i=a("e8b5"),o=a("861d"),s=a("7b0b"),l=a("50c4"),c=a("8418"),u=a("65f0"),d=a("1dde"),p=a("b622"),f=(a=a("2d00"),p("isConcatSpreadable")),m=9007199254740991,h="Maximum allowed index exceeded";p=51<=a||!r((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),a=d("concat");n({target:"Array",proto:!0,forced:!p||!a},{concat:function(e){for(var t,a,n,r=s(this),d=u(r,0),p=0,g=-1,b=arguments.length;g<b;g++)if(function(e){if(!o(e))return!1;var t=e[f];return void 0!==t?!!t:i(e)}(n=-1===g?r:arguments[g])){if(a=l(n.length),m<p+a)throw TypeError(h);for(t=0;t<a;t++,p++)t in n&&c(d,p,n[t])}else{if(m<=p)throw TypeError(h);c(d,p++,n)}return d.length=p,d}})},b0c0:function(e,t,a){var n=a("83ab"),r=(a=a("9bf2").f,Function.prototype),i=r.toString,o=/^\s*function ([^ (]*)/;!n||"name"in r||a(r,"name",{configurable:!0,get:function(){try{return i.call(this).match(o)[1]}catch(e){return""}}})},e9c4:function(e,t,a){function n(e,t,a){var n=a.charAt(t-1);a=a.charAt(t+1);return l.test(e)&&!c.test(a)||c.test(e)&&!l.test(n)?"\\u"+e.charCodeAt(0).toString(16):e}var r=a("23e7"),i=a("d066"),o=(a=a("d039"),i("JSON","stringify")),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/;i=a((function(){return'"\\udf06\\ud834"'!==o("\udf06\ud834")||'"\\udead"'!==o("\udead")}));o&&r({target:"JSON",stat:!0,forced:i},{stringify:function(e,t,a){var r=o.apply(null,arguments);return"string"==typeof r?r.replace(s,n):r}})},ea2a:function(e,t,a){"use strict";a("0b05")},fb53:function(e,t,a){"use strict";a("0b49")}}]);
|