1 line
4.6 KiB
JavaScript
1 line
4.6 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a78d1b0e"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("2b0b"),a=n.n(r);Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){a()(t,1e3/60)}}();function i(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(t,e,n){var r=s(),a=t-r,u=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=u;var s=Math.easeInOutQuad(l,r,a,e);i(s),l<e?o(t):n&&"function"===typeof n&&n()};c()}},"3d6f":function(t,e,n){"use strict";n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"e",(function(){return s})),n.d(e,"a",(function(){return u}));var r=n("b775");function a(t){return Object(r["a"])({url:"/api/process/work-sequence/page",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/api/process/work-sequence/get",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/api/process/work-sequence/delete",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/api/process/work-sequence/update",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/api/process/work-sequence/add",method:"post",data:t})}},9782:function(t,e,n){"use strict";n("b0e1")},b0e1:function(t,e,n){},d0f6:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-form",{ref:"formData",attrs:{rules:t.rules,model:t.listQuery,inline:!0,size:"medium"}},[n("el-form-item",{attrs:{label:t.$t("module.art.processList.processName"),prop:"key"}},[n("el-select",{style:{width:"100%"},attrs:{placeholder:t.$i18nForm(["placeholder.input",t.$t("module.art.processList.processName")]),clearable:"",filterable:""},model:{value:t.listQuery.key,callback:function(e){t.$set(t.listQuery,"key",e)},expression:"listQuery.key"}},t._l(t.processArr,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.name}})})),1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.getList()}}},[t._v(" "+t._s(t._f("i18nFilter")("btn.search"))+" ")])],1)],1),t._v(" "),n("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-config":t.tableProps,"table-data":t.list,"is-loading":t.listLoading}},[n("method-btn",{attrs:{slot:"handleBtn",width:t.trueWidth,"method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"})],1),t._v(" "),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.listQuery.current,limit:t.listQuery.size},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:function(e){return t.getList()}}})],1)},a=[],o=n("3393"),i=n.n(o),s=n("3d6f"),u=n("c0ee"),l=n("333d"),c=n("ebe9"),d=n("9923"),p=n("8975"),f=[{type:"see",btnName:d["a"].t("module.basicData.Warehouse.processStorageLink")}],m=[{prop:"code",label:d["a"].t("module.art.processList.processCode"),align:"center"},{prop:"name",label:d["a"].t("module.art.processList.processName"),align:"center"},{prop:"createTime",label:d["a"].t("module.art.eqName"),filter:p["timeFormatter"],align:"center"}],b={name:"ExecutionInfo",components:{Pagination:l["a"],BaseTable:u["a"],MethodBtn:c["a"]},filters:{statusFilter:function(t){var e={published:"success",draft:"info",deleted:"danger"};return e[t]}},data:function(){return{tableBtn:f,trueWidth:200,tableProps:m,list:[],processArr:[],total:0,listLoading:!0,rules:{},listQuery:{current:1,size:10,key:""}}},created:function(){this.getList(),this.init()},methods:{handleClick:function(t){this.addNew(t.data.id)},init:function(){var t=this,e={current:1,size:999};Object(s["d"])(e).then((function(e){var n;e.data.records?t.processArr=e.data.records:i()(n=t.processArr).call(n,0,t.list.length);t.total=e.data.total}))},getList:function(){var t=this;this.listLoading=!0,Object(s["d"])(this.listQuery).then((function(e){var n;e.data.records?t.list=e.data.records:i()(n=t.list).call(n,0,t.list.length);t.total=e.data.total,t.listLoading=!1}))},addNew:function(t){this.$router.push({name:"ProcessStorageManagementInfo",query:{id:t}})}}},h=b,y=(n("9782"),n("2877")),g=Object(y["a"])(h,r,a,!1,null,"44977cf9",null);e["default"]=g.exports}}]); |