333
schangxiang@126.com
2025-09-19 18966e02fb573c7e2bb0c6426ed792b38b910940
1
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6acf"],{DNkW:function(t,e,n){var o=n("93I4"),i=Math.floor;t.exports=function(t){return!o(t)&&isFinite(t)&&i(t)===t}},"GW1+":function(t,e,n){"use strict";var o=n("mxV5"),i=n.n(o);e.a=function(t){return new i.a(t)}},N1DF:function(t,e,n){"use strict";n.r(e);var o=n("dWSf"),i={name:"inbound-purchase-enter",components:{yrtSelector:n("vh95").a},mixins:[o.a],doAuth:function(t){var e=[{name:"入库撤销",auth:"cancelEnter"},{name:"打印入库单",auth:"print"}],n=e.map(function(t){return t.name});t.common.isSaaSAuth(n,function(n){e.forEach(function(e){var o=n.result;o&&(o=n.data.some(function(t){return t.moduleName===e.name})),t.authNodes[e.auth]=o})})},data:function(){return{selectorConfig:{title:"物料选择器",width:"1000px",visible:!1,router:"/selector/s-product-selector"},defaultValue:{statusID:1,statusText:"新建"},statusValueList:[{status:"取消入库",bgColor:"#ff00cc",color:"#fff"},{status:"确认入库",bgColor:"#5353ff",color:"#fff"},{status:"部分上架",bgColor:"#cc66ff",color:"#fff"},{status:"完全上架",bgColor:"#00ccff",color:"#fff"}]}},methods:{setStatusBgColor:function(t){var e=this.statusValueList.find(function(e){return e.status===t}),n="#fffff";return e&&(n=e.bgColor),n},setStatusColor:function(t){var e=this.statusValueList.find(function(e){return e.status===t}),n="#fffff";return e&&(n=e.color),{border:0,color:n}},buttonClick:function(t){switch(t){case"auditing":return this.multiAuditing(),!0;case"cancelEnter":return this.cancelEnter(),!0;case"getFeeItem":this.getFeeItem(this.dataListSelections)}},detailButtonClick:function(t){switch(t){case"add":return this.selectorConfig.visible=!0,!0}},onSelected:function(t){this.editor.addDetailDataRow(t),this.selectorConfig.visible=!1},cancelEnter:function(){var t=this,e=!0,n=this.dataListSelections.map(function(t,e,n){return t.statusText}),o=this.dataListSelections.map(function(t,e,n){return t.enter_Id});if(!o.length)return this.$message.error("请至少选择一行数据!"),!1;var i=["确认入库","完全上架"];if(n.forEach(function(t){if(i.indexOf(t)<0)return e=!1}),!1===e)return this.$message.error("只有【"+i.join(",")+"】的单据才可以执行取消操作!"),!1;this.$confirm("确定将选中的数据撤销入库吗?","撤销入库",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={enter_Ids:o.join(","),isFullPlate:1},n=t.dataList;t.common.ajax("/api/inbound/enter/cancelEnter",e,function(e){t.common.showMsg(e),e.result&&n.reload()},n)}).catch(function(){t.$message({type:"info",message:"已取消"})})},getFeeItem:function(){var t=this,e=this.dataListSelections.map(function(t,e,n){return t.enter_Id});e.length?this.$confirm("是否要生成一次性费用","一次性费用",{distinguishCancelAndClose:!0,confirmButtonText:"确认"}).then(function(){var n={ids:e};t.common.ajax("/api/inbound/enter/getFeeItem",n,function(e){t.common.showMsg(e),e.result&&t.dataList.reload()},!0)}):this.$message({message:"至少选中一行!",type:"warning"})}}},s=n("KHd+"),a=Object(s.a)(i,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",staticClass:"page-list-container"},[n("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 o=e.row,i=e.col;return["statusText"==i.prop?[n("el-tag",{style:t.setStatusColor(o[i.prop]),attrs:{color:t.setStatusBgColor(o[i.prop])}},[t._v("\n          "+t._s(o[i.prop])+"\n        ")])]:i.prop==t.dataOptions.linkColumn?[n("el-link",{attrs:{type:"primary"},nativeOn:{click:function(e){t.linkEditor(o[t.dataOptions.idField])}}},[t._v(t._s(o[i.prop]))])]:[t._v("\n        "+t._s(o[i.prop])+"\n      ")]]}}])}),t._v(" "),n("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,"default-value":t.defaultValue},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(" "),n("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);a.options.__file="enter.vue";e.default=a.exports},h5AQ:function(t,e,n){n("hRZT"),t.exports=n("WEpk").Number.isInteger},hRZT:function(t,e,n){var o=n("Y7ZC");o(o.S,"Number",{isInteger:n("DNkW")})},ql3t:function(t,e,n){t.exports={default:n("h5AQ"),__esModule:!0}},yaWU:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var o={bind:function(t,e,n){t.children[2].onscroll=function(e){var n=t.children[3];n&&n.classList.contains("el-table__footer-wrapper")&&(n.scrollLeft=e.target.scrollLeft)}},update:function(t,e,n){}}}}]);