cuikaidong
2025-08-08 c495c1ae53473d54af136ea00da84bf51c50d521
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ee0a5d0c","chunk-d00a152a"],{"388b":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("div",{staticClass:"shift_system"},[r("div",{staticClass:"table-operator"},[r("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")])],1),r("div",{staticStyle:{flex:"1",overflow:"auto"}},[r("a-table",{ref:"table",attrs:{bordered:"",size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:!1,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange,type:"radio"}},scopedSlots:e._u([{key:"shiftStatus",fn:function(t,n){return r("span",{},[0==t?r("span",{staticStyle:{color:"red"}},[e._v("停用")]):e._e(),1==t?r("span",{staticStyle:{color:"green"}},[e._v("启用")]):e._e()])}},{key:"defaultShift",fn:function(t,n){return r("span",{},["true"==t?r("span",[e._v("是")]):"false"==t||null==t?r("span",[e._v("否")]):e._e()])}},{key:"action",fn:function(t,n){return r("span",{},[r("a-dropdown",[r("a",{staticClass:"ant-dropdown-link"},[r("a-icon",{attrs:{type:"down"}})],1),r("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[1==n.shiftStatus?r("a-menu-item",[r("a",{key:"0",on:{click:function(t){return e.handleDefault(n)}}},[e._v("设置为默认")])]):e._e(),1==n.shiftStatus?r("a-menu-item",[r("a",{key:"1",on:{click:function(t){return e.handleEdit(n)}}},[e._v("编辑")])]):e._e(),0==n.shiftStatus?r("a-menu-item",[r("a",{key:"2",on:{click:function(t){return e.handleStatus(n.id,1)}}},[e._v("启用")])]):e._e(),1==n.shiftStatus?r("a-menu-item",[r("a",{key:"3",on:{click:function(t){return e.handleStatus(n.id,0)}}},[e._v("停用")])]):e._e(),r("a-menu-item",[r("a",{key:"4",on:{click:function(t){return e.handleDelete(n.id)}}},[e._v("删除")])])],1)],1)],1)}}])})],1),r("shift-system-model",{ref:"modalForm",on:{ok:e.modalFormOk}})],1)},i=[],o=r("4328"),a=r.n(o),s=r("0fea"),c=r("b65a"),l=r("65ef"),f={name:"ShiftSystem",mixins:[c["a"]],components:{ShiftSystemModel:l["default"]},data:function(){return{statusName:"",disabled:!0,disableMixinCreated:!1,url:{list:"/mdc/mdcMdcShift/queryPageList",changeStatus:"/mdc/mdcMdcShift/changeStatus",deleteBatch:"/mdc/mdcMdcShift/deleteShift",changeDefaultShift:"/mdc/mdcMdcShift/changeDefaultShift"},columns:[{title:"班制",align:"center",dataIndex:"shiftName"},{title:"状态",align:"center",dataIndex:"shiftStatus",scopedSlots:{customRender:"shiftStatus"}},{title:"默认班制",align:"center",dataIndex:"defaultShift",scopedSlots:{customRender:"defaultShift"}},{title:"操作",align:"center",dataIndex:"action",scopedSlots:{customRender:"action"}}]}},methods:{handleStatus:function(e,t){var r=this;Object(s["j"])(this.url.changeStatus,{id:e,status:t}).then((function(e){e.success?(r.$notification.success({message:"消息",description:e.message}),r.loadData()):r.$notification.warning({message:"消息",description:e.message})}))},handleAdd:function(){this.$refs.modalForm.add(),this.$refs.modalForm.title="班制配置",this.$refs.modalForm.disableSubmit=!1},handleDefault:function(e){var t=this;Object(s["i"])(this.url.changeDefaultShift,a.a.stringify({id:e.id})).then((function(e){e.success?(t.$notification.success({message:"消息",description:e.message}),t.loadData()):t.$notification.warning({message:"消息",description:e.message})}))},handleDelete:function(e){if(this.url.deleteBatch){var t=this;Object(s["a"])(t.url.deleteBatch,{id:e}).then((function(e){e.success?(t.$notification.success({message:"消息",description:e.message}),t.loadData()):t.$notification.warning({message:"消息",description:e.message})}))}else this.$message.error("请设置url.delete属性!")},handleEdit:function(e){this.$refs.modalForm.edit(e),this.$refs.modalForm.title="班制配置",this.$refs.modalForm.disableSubmit=!0},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t,this.$emit("selectionShiftRow",this.selectionRows[0])}},created:function(){}},d=f,u=(r("64f8"),r("2877")),p=Object(u["a"])(d,n,i,!1,null,"7db2b7ae",null);t["default"]=p.exports},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])},f=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 f.call(e)},skipNulls:!1,strictNullHandling:!1},u=function e(t,r,i,o,a,c,f,u,p,m,h,y,b){var g=t;if("function"===typeof f?g=f(r,g):g instanceof Date?g=m(g):"comma"===i&&s(g)&&(g=g.join(",")),null===g){if(o)return c&&!y?c(r,d.encoder,b):r;g=""}if("string"===typeof g||"number"===typeof g||"boolean"===typeof g||n.isBuffer(g)){if(c){var v=y?r:c(r,d.encoder,b);return[h(v)+"="+h(c(g,d.encoder,b))]}return[h(r)+"="+h(String(g))]}var S,w=[];if("undefined"===typeof g)return w;if(s(f))S=f;else{var O=Object.keys(g);S=u?O.sort(u):O}for(var j=0;j<S.length;++j){var k=S[j];a&&null===g[k]||(s(g)?l(w,e(g[k],"function"===typeof i?i(r,k):r,i,o,a,c,f,u,p,m,h,y,b)):l(w,e(g[k],r+(p?"."+k:"["+k+"]"),i,o,a,c,f,u,p,m,h,y,b)))}return w},p=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=p(t);"function"===typeof o.filter?(n=o.filter,i=n("",i)):s(o.filter)&&(n=o.filter,r=n);var c,f=[];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(f,u(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=f.join(o.delimiter),b=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+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}},"64f8":function(e,t,r){"use strict";var n=r("fd80"),i=r.n(n);i.a},"65ef":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-modal",{attrs:{title:e.title,width:500,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[r("a-spin",{attrs:{spinning:e.confirmLoading}},[r("a-form",{attrs:{form:e.form}},[r("a-row",{attrs:{gutter:24}},[r("a-col",{attrs:{span:24}},[r("a-form-item",{attrs:{label:"班制名称",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[r("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["shiftName",e.validatorRules.shiftName],expression:"['shiftName',validatorRules.shiftName]"}],attrs:{"allow-clear":"",placeholder:"请输入班制名称"}})],1)],1)],1)],1)],1)],1)},i=[],o=r("88bc"),a=r.n(o),s=r("0fea"),c=r("4ec3"),l={name:"ShiftSystemModel",components:{},props:{},data:function(){return{title:"",visible:!1,show:!1,defaultShift:!1,model:{},checked:!1,labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:20}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/mdc/mdcMdcShift/addShift",edit:"/mdc/mdcMdcShift/editShift"},disableSubmit:!0}},created:function(){},methods:{add:function(e){this.visible=!0,this.form.resetFields(),this.model={}},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(a()(t.model,"shiftName"))}))},close:function(){this.$emit("close"),this.visible=!1,this.show=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(r,n){if(!r){t.confirmLoading=!0;var i,o=Object.assign(e.model,n);i=e.model.id?Object(s["k"])(e.url.edit,o,{id:e.model.id}):Object(s["i"])(e.url.add,o),i.then((function(e){e.success?(t.$notification.success({message:"消息",description:e.message}),t.$emit("ok",e.result)):t.$notification.warning({message:"消息",description:e.message})})).finally((function(){t.confirmLoading=!1,t.defaultShift=!1,t.close()}))}}))},handleCancel:function(){this.close()},loadCascade:function(){var e=this;Object(s["c"])(this.url.loadCascadeData).then((function(t){t.success&&(e.partCategoryCascade=t.result)}))},validateNum:function(e,t,r){var n={tableName:"lxmes_base_part",fieldName:"num",fieldVal:t,dataId:this.model.id,delFlag:"true"};Object(c["o"])(n).then((function(e){e.success?r():r("存货编码已存在!")}))},checkboxChange:function(e){this.checked=e.target.checked}}},f=l,d=(r("bb7c"),r("2877")),u=Object(d["a"])(f,n,i,!1,null,"5d62af77",null);t["default"]=u.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={},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,u=f.split(t.delimiter,d),p=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<u.length;++r)0===u[r].indexOf("utf8=")&&(u[r]===c?m="utf-8":u[r]===s&&(m="iso-8859-1"),p=r,r=u.length);for(r=0;r<u.length;++r)if(r!==p){var h,y,b=u[r],g=b.indexOf("]="),v=-1===g?b.indexOf("="):g+1;-1===v?(h=t.decoder(b,o.decoder,m),y=t.strictNullHandling?null:""):(h=t.decoder(b.slice(0,v),o.decoder,m),y=t.decoder(b.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},f=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)+"]"),f(l,t,r)}},u=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=u(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],f=d(c,i[c],r);o=n.merge(o,f,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"}},bb7c:function(e,t,r){"use strict";var n=r("dd3a"),i=r.n(n);i.a},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)},f=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},u=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],f=o[l];"object"===typeof f&&null!==f&&-1===r.indexOf(f)&&(t.push({obj:o,prop:l}),r.push(f))}return a(t),e},p=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:u,decode:f,encode:d,isBuffer:m,isRegExp:p,merge:c}},dd3a:function(e,t,r){},fd80:function(e,t,r){}}]);