222
schangxiang@126.com
2025-06-13 6a8393408d8cefcea02b7a598967de8dc1e565c2
1
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6ac7"],{DNkW:function(t,e,o){var n=o("93I4"),a=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&a(t)===t}},"GW1+":function(t,e,o){"use strict";var n=o("mxV5"),a=o.n(n);e.a=function(t){return new a.a(t)}},Ugin:function(t,e,o){"use strict";o.r(e);var n=o("gDS+"),a=o.n(n),r=o("dWSf"),i={name:"inbound-purchase-shelve",components:{yrtSelector:o("vh95").a},mixins:[r.a],doAuth:function(t){var e=[{name:"上架撤销",auth:"cancelShelve"},{name:"强制完成上架",auth:"forceShelve"},{name:"打印上架单",auth:"print"}],o=e.map(function(t){return t.name});t.common.isSaaSAuth(o,function(o){e.forEach(function(e){var n=o.result;n&&(n=o.data.some(function(t){return t.moduleName===e.name})),t.authNodes[e.auth]=n})})},data:function(){return{selectorConfig:{title:"物料选择器",width:"1000px",visible:!1,router:"/selector/s-product-selector"}}},methods:{buttonClick:function(t){switch(t){case"auditing":this.singleAuditing();break;case"cancelShelve":this.cancelShelve();break;case"forceShelve":this.forceShelve();break;case"shelveOrder":this.shelveOrder()}},detailButtonClick:function(t){switch(t){case"add":this.selectorConfig.visible=!0}},onSelected:function(t){this.editor.addDetailDataRow(t),this.selectorConfig.visible=!1},shelveOrder:function(){var t=this,e=this.dataListSelections;if(e.length)if(1===e.length){if("尺寸异常"!==JSON.parse(a()(e))[0].onShelveStatus)return this.$message({message:"只有状态为尺寸异常才可操作!",type:"warning"}),!1;this.$confirm("确定要进行入库操作吗?","入库指令",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e=t.dataListSelections;if(e.length)if(1===e.length){var o={shelve_Id:JSON.parse(a()(e))[0].shelve_Id},n=t.dataList;t.common.ajax("/api/inbound/shelve/shelveOrder",o,function(e){t.common.showMsg(e),e.result&&n.loadData()},n)}else t.$message.error("请选择一条记录进行操作");else t.$message.error("至少选择一项!")}).catch(function(){t.$message({type:"info",message:"已取消"})})}else this.$message.error("请选择一条记录进行操作");else this.$message.error("至少选择一项!")},singleAuditing:function(){var t=this,e=this.dataOptions.menu_Id;this.$confirm("确定要批量进行审核操作吗?","批量审核",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o=t.dataListSelections.map(function(t,e,o){return t.shelve_Id});if(o){var n={openNodeApi:!0,idValues:o,menu_Id:e},a=t.dataList;t.common.ajax("/api/inbound/shelve/singleConfirm",n,function(e){t.common.showMsg(e),e.result&&a.loadData()},a)}else t.$message({message:"至少选中一行!",type:"warning"})}).catch(function(){t.$message({type:"info",message:"已取消"})})},cancelShelve:function(){var t=this,e=this.dataListSelections.map(function(t,e,o){return t.shelve_Id}),o=this.dataListSelections.map(function(t,e,o){return t.onShelveStatus});return e.length?"待上架"===o?(this.$message.error("只有上架的单据才可以执行取消操作!!"),!1):void this.$confirm("确定将选中的数据撤销上架吗?","撤销上架",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o={shelve_Ids:e},n=t.dataList;t.common.ajax("/api/inbound/shelve/cancelShelve",o,function(e){t.common.showMsg(e),e.result&&n.loadData()},n)}).catch(function(){t.$message({type:"info",message:"已取消"})}):(this.$message.error("请至少选择一行上架数据!"),!1)},forceShelve:function(){var t=this,e=this.dataListSelections.map(function(t,e,o){return t.shelve_Id});if(!e.length)return this.$message.error("请至少选择一行未上架数据!"),!1;this.$confirm("确定将选中的数据强制完成上架吗?","强制完成上架",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o={shelve_Ids:e},n=t.dataList;t.common.ajax("/api/inbound/shelve/forceShelve",o,function(e){t.common.showMsg(e),e.result&&n.loadData()},n)}).catch(function(){t.$message({type:"info",message:"已取消"})})}}},s=o("KHd+"),c=Object(s.a)(i,function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"container",staticClass:"page-list-container"},[o("yrt-data-list",{ref:t.dataListRef,attrs:{"editor-ref":t.editorRef,"data-options":t.dataOptions,fields:t.dataListOptions.fields,buttons:t.dataListOptions.buttons,"button-click":t.buttonClick,"data-list-selections":t.dataListSelections,"auth-nodes":t.authNodes},on:{"update:fields":function(e){return t.$set(t.dataListOptions,"fields",e)},"update:dataListSelections":function(e){t.dataListSelections=e},"update:data-list-selections":function(e){t.dataListSelections=e}},scopedSlots:t._u([{key:"common-column-slot",fn:function(e){var n=e.row,a=e.col;return["onShelveStatus"==a.prop?[["上架中"==n[a.prop]?o("el-tag",{staticStyle:{color:"black",border:"0"},attrs:{color:"#ffcc66"}},[t._v("\n            "+t._s(n[a.prop])+"\n          ")]):"部分上架"==n[a.prop]?o("el-tag",{staticStyle:{color:"black",border:"0"},attrs:{color:"#ff6633"}},[t._v("\n            "+t._s(n[a.prop])+"\n          ")]):"上架完成"==n[a.prop]?o("el-tag",{staticStyle:{color:"black",border:"0"},attrs:{color:"#33ccff"}},[t._v("\n            "+t._s(n[a.prop])+"\n          ")]):"待上架"==n[a.prop]?o("el-tag",{staticStyle:{color:"black",border:"0"},attrs:{color:"#ffff33"}},[t._v("\n            "+t._s(n[a.prop])+"\n          ")]):o("el-tag",{staticStyle:{color:"#888"},attrs:{color:"#1626b6"}},[t._v("\n            "+t._s(n[a.prop])+"\n          ")])]]:"providerCode"==a.prop?[["1"==n[a.prop]?o("div",[t._v("\n            "+t._s("小托盘")+"\n          ")]):"2"==n[a.prop]?o("div",[t._v("\n            "+t._s("大托盘")+"\n          ")]):t._e()]]:"sortingStatus"==a.prop?[[1==n[a.prop]?o("el-tag",{staticStyle:{color:"black",border:"0"},attrs:{color:"#ffff33"}},[t._v("\n            "+t._s(t.$refs[t.dataListRef].translateText(a.prop,n[a.prop],a.dropdown_Id))+"\n          ")]):2==n[a.prop]?o("el-tag",{staticStyle:{color:"black",border:"0"},attrs:{color:"#00ff99"}},[t._v("\n            "+t._s(t.$refs[t.dataListRef].translateText(a.prop,n[a.prop],a.dropdown_Id))+"\n          ")]):3==n[a.prop]?o("el-tag",{staticStyle:{color:"#fff",border:"0"},attrs:{color:"#ff0000"}},[t._v("\n            "+t._s(t.$refs[t.dataListRef].translateText(a.prop,n[a.prop],a.dropdown_Id))+"\n          ")]):5==n[a.prop]?o("el-tag",{staticStyle:{color:"#fff",border:"0"},attrs:{color:"#6699FF"}},[t._v("\n            "+t._s(t.$refs[t.dataListRef].translateText(a.prop,n[a.prop],a.dropdown_Id))+"\n          ")]):o("span",[t._v("\n            "+t._s(n[a.prop])+"\n          ")])]]:"auditing"==a.prop?[[1==n[a.prop]?o("el-tag",{staticStyle:{color:"black",border:"0"},attrs:{color:"#ffcc66"}},[t._v("\n            审核失败\n          ")]):2==n[a.prop]?o("el-tag",{staticStyle:{color:"black",border:"0"},attrs:{color:"#33ccff"}},[t._v("\n            通过审核\n          ")]):0==n[a.prop]?o("el-tag",{staticStyle:{color:"black",border:"0"},attrs:{color:"#ffff33"}},[t._v("\n            待审核\n          ")]):t._e()]]:a.prop==t.dataOptions.linkColumn?[o("el-link",{attrs:{type:"primary"},nativeOn:{click:function(e){t.linkEditor(n[t.dataOptions.idField])}}},[t._v(t._s(n[a.prop]))])]:[["date","datetime"].indexOf(a.dataType)>=0&&a.formatter?[t._v("\n          "+t._s(t.common.formatDate(n[a.prop],a.formatter))+"\n        ")]:["byte","int32","int64","decimal","double"].indexOf(a.dataType)>=0&&a.formatter?[t._v("\n          "+t._s(t.common.formatNumber(n[a.prop],a.formatter))+"\n        ")]:[t._v("\n          "+t._s(n[a.prop])+"\n        ")]]]}}])}),t._v(" "),o("yrt-editor",t._b({ref:t.editorRef,attrs:{"data-list-ref":t.dataListRef,"data-options":t.dataOptions,action:t.editorOptions.action,top:t.editorOptions.top,visible:t.editorOptions.config.visible,"detail-button-click":t.detailButtonClick,"auth-nodes":t.authNodes},on:{"update:action":function(e){return t.$set(t.editorOptions,"action",e)},"update:top":function(e){return t.$set(t.editorOptions,"top",e)},"update:visible":function(e){return t.$set(t.editorOptions.config,"visible",e)}}},"yrt-editor",t.editorOptions,!1)),t._v(" "),o("yrt-selector",{ref:"selector-dialog",attrs:{config:t.selectorConfig,visible:t.selectorConfig.visible},on:{"update:visible":function(e){return t.$set(t.selectorConfig,"visible",e)},onSelected:t.onSelected}})],1)},[],!1,null,null,null);c.options.__file="shelve.vue";e.default=c.exports},h5AQ:function(t,e,o){o("hRZT"),t.exports=o("WEpk").Number.isInteger},hRZT:function(t,e,o){var n=o("Y7ZC");n(n.S,"Number",{isInteger:o("DNkW")})},ql3t:function(t,e,o){t.exports={default:o("h5AQ"),__esModule:!0}},yaWU:function(t,e,o){"use strict";o.d(e,"a",function(){return n});var n={bind:function(t,e,o){t.children[2].onscroll=function(e){var o=t.children[3];o&&o.classList.contains("el-table__footer-wrapper")&&(o.scrollLeft=e.target.scrollLeft)}},update:function(t,e,o){}}}}]);