1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6b10ed08"],{"164c":function(e,t,s){e.exports={container:"process-edit-bar_container_3eKjx"}},1977:function(e,t,s){"use strict";var n=s("c007"),i=s.n(n);s.d(t,"default",(function(){return i.a}))},2638:function(e,t,s){},"2ab1":function(e,t,s){"use strict";var n=s("164c"),i=s.n(n);s.d(t,"default",(function(){return i.a}))},"2f8d":function(e,t,s){},5117:function(e,t,s){"use strict";var n=s("8936"),i=s.n(n);s.d(t,"default",(function(){return i.a}))},"662f":function(e,t,s){"use strict";s("2638")},7375:function(e,t,s){"use strict";s.r(t);var n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{class:e.$style.container},[s("ProcessEditBar",{attrs:{"is-edit":e.isEdit},on:{"on-back":e.goback,"on-edit":function(t){e.isEdit=!0},"on-cancel":function(t){e.isEdit=!1},"on-submit":function(t){return e.handleSubmit()}}}),e._v(" "),e.isEdit?s("ProcessTable",{attrs:{"process-flow-id":e.processFlowId},on:{"on-detail":e.handleDetail,"on-save-success":e.handleSuccess}}):s("ProcessChart",{attrs:{"process-flow-id":e.processFlowId},on:{"on-detail":e.handleDetail}}),e._v(" "),s("el-drawer",{attrs:{title:"节点详情",size:"20%","append-to-body":!0,"before-close":function(){return e.innerDrawer=!1},visible:e.innerDrawer},on:{"update:visible":function(t){e.innerDrawer=t}}},[s("ProcessNodePanel")],1)],1)},i=[],o=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"process-table"},[s("el-collapse",{staticClass:"process-table-main"},e._l(e.dataList,(function(t,n){return s("el-collapse-item",{key:n,attrs:{name:n}},[s("template",{slot:"title"},[s("div",{staticClass:"process-table-main-title"},[s("span",[e._v(e._s(e.processObj[t.workSequenceId].name))])])]),e._v(" "),e._l(t.processFlowEquipmentParams,(function(t,i){return s("el-row",{key:"item"+n+i,staticClass:"process-table-main-item",attrs:{gutter:20}},[s("el-col",{staticClass:"process-table-main-item-item",attrs:{span:4}},[s("el-button",{attrs:{disabled:""}},[e._v("\n "+e._s(t.equipmentId?e.equipmentObj[t.equipmentId]:e.$t("module.art.eqName"))+"\n ")])],1),e._v(" "),s("el-col",{staticClass:"process-table-main-item-item",attrs:{span:4}},[s("el-input",{attrs:{disabled:"",placeholder:e.$t("module.art.processList.description")},on:{change:function(t){return e.changeDescription(n,i)}},model:{value:t.description,callback:function(s){e.$set(t,"description",s)},expression:"i.description"}})],1),e._v(" "),s("el-col",{staticClass:"process-table-main-item-item",attrs:{span:4}},[s("el-input",{attrs:{disabled:"",placeholder:e.$t("module.art.remark")},on:{change:function(t){return e.changeRemark(n,i)}},model:{value:t.remark,callback:function(s){e.$set(t,"remark",s)},expression:"i.remark"}})],1)],1)}))],2)})),1)],1)},a=[],r=(s("7f7f"),s("96cf"),s("1da1")),c=s("6b47"),l=s.n(c),u=s("14b1"),d=s.n(u),p=s("e242"),m=s("7d3f"),f={name:"ProcessChart",props:{processFlowId:{type:String,default:null}},data:function(){return{dataList:[],processList:[],processObj:{},processPortObj:{},equipmentRecipeList:[],equipmentList:[],equipmentObj:{},showAddList:[],nodeTypes:[{id:1,name:"上片设备"},{id:2,name:"加工设备"},{id:3,name:"下片设备"}],nodeTypesObj:{1:"上片设备",2:"加工设备",3:"下片设备"}}},created:function(){this.init()},mounted:function(){},methods:{init:function(){var e=Object(r["a"])(l.a.mark((function e(){var t,s,n,i,o,a,r=this;return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(p["j"])({});case 2:return i=e.sent,this.processList=i.data,d()(t=i.data).call(t,(function(e){r.processObj[e.id]=e,1===e.type&&(r.processPortObj[e.id]=e.name)})),console.log(this.processList),console.log(this.processObj),e.next=9,Object(m["a"])();case 9:return o=e.sent,this.equipmentList=o.data,d()(s=o.data).call(s,(function(e){r.equipmentObj[e.id]=e.name})),console.log(this.equipmentList),e.next=15,Object(p["k"])({processFlowId:this.processFlowId});case 15:a=e.sent,console.log(a),this.dataList=d()(n=a.data).call(n,(function(e){var t;return delete e.id,
|