1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-aeeff378"],{"1e21":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),i=(a("96cf"),a("369a")),r=a("9f53"),s=a("965c"),o=a("f7c7");o={name:"goodShare",mixins:[r.a],components:{changeBackGood:s.default,showBackGood:o.default},data:function(){return{currentRow:null,loading:!0,status:"",radio:"",sitem:{},queryId:"PROa8gi220310202256",multipleSelection:[],tableData:[],newTime:"",statusoptions:[{value:"1",label:"待商品反馈"},{value:"2",label:"待项目反馈商品选择"},{value:"3",label:"待项目方案制定"},{value:"4",label:"待方案选择"},{value:"5",label:"项目结束"}]}},mounted:function(){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("99f5"),a=a("2877"),o=Object(a.a)(o,(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)+"元"+e._s(e.status))])]),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?t("show-back-good",{attrs:{newTime:e.newTime,sitem:e.sitem},on:{refresh:function(t){return e.initData()}}}):e._e()],1)])}),[],!1,null,"9d582130",null);t.default=o.exports},2341:function(e,t,a){"use strict";a("3669")},3669:function(e,t,a){},"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)}}},"759c":function(e,t,a){},"8a79":function(e,t,a){"use strict";t.a=[{prop:"spuCode",label:"商品编号",width:"170px"},{prop:"good_img",label:"图片",width:"50px"},{prop:"good_name",label:"商品名称"},{prop:"class_cat",label:"商品分类"},{prop:"unit_name",label:"单位",width:"50px"},{prop:"model",label:"规格",_slot_:"model","min-width":"110px"},{prop:"expiry_day",label:"信息有效期",width:"85px"},{prop:"work_day",label:"制作工期",width:"70px"},{prop:"delivery_day",label:"物流时间",width:"70px"},{prop:"salesman",label:"业务员",width:"60px"}]},"8eb8":function(e,t,a){"use strict";a("cab4")},"965c":function(e,t,a){"use strict";a.r(t);var n=a("1da1"),i=(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,this.allList[this.index].selection=JSON.parse(JSON.stringify(e));var t=[];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;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o=t.allList[e],n=o.pageInfo,s=o.pgNo,o=n.size,n=n.curr,t.allList[e].loading=!0,o={page:n,size:o,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(s=a.sent,r=s.code,o=s.data,0!==r){a.next=17;break}s=o.list,o=o.count,t.allList[e].tableData=s,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(o),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("2341"),a=a("2877"),r=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}})]: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,"1cb62a60",null);t.default=r.exports},"99f5":function(e,t,a){"use strict";a("759c")},cab4:function(e,t,a){},f7c7:function(e,t,a){"use strict";a.r(t);var n=a("1da1"),i=(a("d81d"),a("159b"),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,pageInfo:{size:15,curr:1,total:0},ladder:[],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:s.a}},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:e.loading=!1;case 6: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;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.pageInfo,n=r.size,r=r.curr,e.loading=!0,r={page:r,size:n,zxNo:"",infoNo:"",bidNo:"",pgNo:"",status:"1",projectNo:e.projectNo},t.next=5,i.a.back_good_list(r);case 5:if(n=t.sent,a=n.code,r=n.data,0!==a){t.next=15;break}n=r.list,r=r.count,e.tableData=n,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})),e.pageInfo.total=Number(r),t.next=22;break;case 15:if(100<=a&&a<=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)})))()}}},a("8eb8"),a=a("2877"),r=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:"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,3303362624)}),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.tableData?[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()}}})]:e._e()],2)])])])])}),[],!1,null,"39191b74",null);t.default=r.exports}}]);
|