cuikaidong
2025-08-08 c495c1ae53473d54af136ea00da84bf51c50d521
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20a44e36"],{4127:function(e,t,r){"use strict";var n=r("d233"),i=r("b313"),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:i.formatters[i["default"]],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,i,o,a,c,u,p,f,m,h,y,g){var b=t;if("function"===typeof u?b=u(r,b):b instanceof Date?b=m(b):"comma"===i&&s(b)&&(b=b.join(",")),null===b){if(o)return c&&!y?c(r,d.encoder,g):r;b=""}if("string"===typeof b||"number"===typeof b||"boolean"===typeof b||n.isBuffer(b)){if(c){var v=y?r:c(r,d.encoder,g);return[h(v)+"="+h(c(b,d.encoder,g))]}return[h(r)+"="+h(String(b))]}var w,O=[];if("undefined"===typeof b)return O;if(s(u))w=u;else{var j=Object.keys(b);w=p?j.sort(p):j}for(var P=0;P<w.length;++P){var x=w[P];a&&null===b[x]||(s(b)?l(O,e(b[x],"function"===typeof i?i(r,x):r,i,o,a,c,u,p,f,m,h,y,g)):l(O,e(b[x],r+(f?"."+x:"["+x+"]"),i,o,a,c,u,p,f,m,h,y,g)))}return O},f=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i["default"];if("undefined"!==typeof e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],a=d.filter;return("function"===typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?d.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:d.encode,encoder:"function"===typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r,n,i=e,o=f(t);"function"===typeof o.filter?(n=o.filter,i=n("",i)):s(o.filter)&&(n=o.filter,r=n);var c,u=[];if("object"!==typeof i||null===i)return"";c=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=a[c];r||(r=Object.keys(i)),o.sort&&r.sort(o.sort);for(var m=0;m<r.length;++m){var h=r[m];o.skipNulls&&null===i[h]||l(u,p(i[h],h,d,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset))}var y=u.join(o.delimiter),g=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),y.length>0?g+y:""}},4328:function(e,t,r){"use strict";var n=r("4127"),i=r("9e6a"),o=r("b313");e.exports={formats:o,parse:i,stringify:n}},"9a95":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-card",{attrs:{bordered:!1}},[this.productionId?[r("div",{staticClass:"table-page-search-wrapper"},[r("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[r("a-row",{attrs:{gutter:24}},[r("a-col",{attrs:{md:6,sm:12}},[r("a-form-item",{attrs:{label:"设备编号"}},[r("a-input",{attrs:{placeholder:"请输入设备编号"},model:{value:e.queryParam.equipmentId,callback:function(t){e.$set(e.queryParam,"equipmentId",t)},expression:"queryParam.equipmentId"}})],1)],1),r("a-col",{attrs:{md:6,sm:8}},[r("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),r("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1),r("div",{staticClass:"table-operator",staticStyle:{"border-top":"5px"}},[e.selectedRowKeys.length>0?r("a-dropdown",[r("a-menu",{attrs:{slot:"overlay"},on:{click:e.handleMenuClick},slot:"overlay"},[r("a-menu-item",{key:"1"},[r("a-icon",{attrs:{type:"delete"},on:{click:e.batchDel}}),e._v("\n            批量移除\n          ")],1)],1),r("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("\n          批量操作\n          "),r("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),r("a-table",{ref:"table",attrs:{bordered:"",size:"middle",rowKey:"id",scroll:{x:500},columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,n){return r("span",{},[r("a-popconfirm",{attrs:{title:"确定移除吗?"},on:{confirm:function(){return e.handleDelete(n.id)}}},[r("a",[e._v("移除")])])],1)}}],null,!1,3254967262)})]:r("a-card",{staticStyle:{height:"200px"},attrs:{bordered:!1}},[r("a-empty",[r("span",{attrs:{slot:"description"},slot:"description"},[e._v(" 请先选择一个部门! ")])])],1)],2)},i=[],o=r("ca00"),a=(r("4ec3"),r("b65a")),s=r("0fea"),c=r("4328"),l=r.n(c),u={name:"ProductionEquipment",mixins:[a["a"]],data:function(){return{queryParam:{},columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,r){return parseInt(r)+1}},{title:"设备编号",align:"center",dataIndex:"equipmentId",width:120},{title:"设备名称",align:"center",width:150,dataIndex:"equipmentName"},{title:"设备类型",align:"center",width:120,dataIndex:"equipmentType"},{title:"驱动类型",align:"center",width:80,dataIndex:"driveType"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},align:"center",width:120}],disableMixinCreated:!0,productionId:"",title:"部门权限配置",visible:!1,loading:!1,url:{list:"/mdc/mdcEquipment/equipmentListByProduction",removeEquipmentForDepart:"/mdc/mdcEquipment/removeEquipmentForProduction",serachEquipment:"/mdc/mdcEquipment/equipmentListByProduction",removeEquipmentsForProduction:"/mdc/mdcEquipment/removeEquipmentsForProduction"}}},methods:{show:function(e){this.productionId=e,this.loadData()},close:function(){this.reset(),this.$emit("close"),this.visible=!1},searchReset:function(){this.queryParam={},this.loadData()},searchQuery:function(){var e=this;this.queryParam.equipmentId;this.loading=!0;var t=this.getQueryParams();t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,Object(s["c"])(this.url.serachEquipment,{equipmentId:this.queryParam.equipmentId,productionId:this.productionId,pageNo:t.pageNo,pageSize:t.pageSize}).then((function(t){t.success?(e.dataSource=t.result.records||t.result,t.result.total?e.ipagination.total=t.result.total:e.ipagination.total=0):e.$notification.warning({message:"消息",description:t.message})})).finally((function(){e.loading=!1}))},handleTableChange:function(e,t,r){Object.keys(r).length>0&&(this.isorter.column=r.field,this.isorter.order="ascend"==r.order?"asc":"desc"),this.ipagination=e,this.loadData()},loadData:function(){var e=this,t=this.getQueryParams();t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,this.loading=!0,Object(s["c"])(this.url.list,t).then((function(t){t.success?(e.dataSource=t.result.records||t.result,t.result.total?e.ipagination.total=t.result.total:e.ipagination.total=0):e.$notification.warning({message:"消息",description:t.message})})).finally((function(){e.loading=!1}))},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams),e["superQueryMatchType"]=this.superQueryMatchType);var t=Object.assign(e,this.queryParam,this.isorter,this.filters);return t.field=this.getQueryField(),t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,t.productionId=this.productionId,!(this.getCustomQueryParams&&(t=this.getCustomQueryParams(t),!t))&&Object(o["d"])(t)},handleDelete:function(e){var t=this;Object(s["i"])(this.url.removeEquipmentForDepart,l.a.stringify({productionId:this.productionId,equipmentId:e})).then((function(e){e.success?(t.$notification.success({message:"消息",description:e.message}),t.loadData(t.productionId)):t.$notification.warning({message:"消息",description:e.message})})).finally((function(){}))},handleMenuClick:function(e){1==e.key&&this.batchDel()},batchDel:function(){if(this.url.removeEquipmentsForProduction)if(this.selectedRowKeys.length<=0)this.$notification.warning({message:"消息",description:"请选择一条记录"});else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var r=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){var t=this;r.loading=!0,Object(s["i"])(r.url.removeEquipmentsForProduction,l.a.stringify({productionId:r.productionId,equipmentIds:e})).then((function(e){e.success?(r.reCalculatePage(r.selectedRowKeys.length),t.$notification.success({message:"消息",description:e.message}),r.loadData(r.productionId),r.onClearSelected()):t.$notification.warning({message:"消息",description:e.message})})).finally((function(){r.loading=!1}))}})}else this.$message.error("请设置url.removeEquipmentsForProduction属性!")}}},d=u,p=r("2877"),f=Object(p["a"])(d,n,i,!1,null,"d10afa96",null);t["default"]=f.exports},"9e6a":function(e,t,r){"use strict";var n=r("d233"),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",l=function(e,t){var r,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,d),f=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&(p[r]===c?m="utf-8":p[r]===s&&(m="iso-8859-1"),f=r,r=p.length);for(r=0;r<p.length;++r)if(r!==f){var h,y,g=p[r],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(h=t.decoder(g,o.decoder,m),y=t.strictNullHandling?null:""):(h=t.decoder(g.slice(0,v),o.decoder,m),y=t.decoder(g.slice(v+1),o.decoder,m)),y&&t.interpretNumericEntities&&"iso-8859-1"===m&&(y=a(y)),y&&t.comma&&y.indexOf(",")>-1&&(y=y.split(",")),i.call(l,h)?l[h]=n.combine(l[h],y):l[h]=y}return l},u=function(e,t,r){for(var n=t,i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(n);else{o=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(s,10);r.parseArrays||""!==s?!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(o=[],o[c]=n):o[s]=n:o={0:n}}n=o}return n},d=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=o.exec(n),c=s?n.slice(0,s.index):n,l=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}var d=0;while(null!==(s=a.exec(n))&&d<r.depth){if(d+=1,!r.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+n.slice(s.index)+"]"),u(l,t,r)}},p=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?o.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:o.comma,decoder:"function"===typeof e.decoder?e.decoder:o.decoder,delimiter:"string"===typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"===typeof e.depth?e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}};e.exports=function(e,t){var r=p(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var i="string"===typeof e?l(e,r):e,o=r.plainObjects?Object.create(null):{},a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],u=d(c,i[c],r);o=n.merge(o,u,r)}return n.compact(o)}},b313:function(e,t,r){"use strict";var n=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},d233:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)"undefined"!==typeof r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},c=function e(t,r,o){if(!r)return t;if("object"!==typeof r){if(i(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var a=t;return i(t)&&!i(r)&&(a=s(t,o)),i(t)&&i(r)?(r.forEach((function(r,i){if(n.call(t,i)){var a=t[i];a&&"object"===typeof a&&r&&"object"===typeof r?t[i]=e(a,r,o):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),a)},l=function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},u=function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(i){return n}},d=function(e,t,r){if(0===e.length)return e;var n="string"===typeof e?e:String(e);if("iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",a=0;a<n.length;++a){var s=n.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=n.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],o=i.obj[i.prop],s=Object.keys(o),c=0;c<s.length;++c){var l=s[c],u=o[l];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:o,prop:l}),r.push(u))}return a(t),e},f=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},h=function(e,t){return[].concat(e,t)};e.exports={arrayToObject:s,assign:l,combine:h,compact:p,decode:u,encode:d,isBuffer:m,isRegExp:f,merge:c}}}]);