schangxiang@126.com
2025-09-19 0821aa23eabe557c0d9ef5dbe6989c68be35d1fe
1
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-76e0"],{"1qaf":function(t,e,a){"use strict";a.r(e);var i=a("gDS+"),o=a.n(i),n=a("dWSf"),s=a("P2sY"),r=a.n(s),l={name:"order-barcode",components:{},props:{visible:{type:Boolean,default:!1,required:!0}},data:function(){return{id:"",tableData:[],formLabelWidth:"80px",dataOptions:{type:Object,default:function(){return{}}}}},computed:{currentVisible:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}}},methods:{showData:function(t,e){localStorage.setItem("keyValues",o()(e)),this.tableData=t},printBarcode:function(){var t=this;if(this.tableData[0].quantity>this.tableData[0].productStorage)this.$message({message:"打印数量不可大于库存量",type:"warning"});else if(this.tableData.length){var e=r()({},this.$parent.dataOptions),a=this.tableData[0].quantity,i=this.tableData[0].totalWeight;e.quantity=a,e.totalWeight=i;var n=this.findRef(this.$parent.editorRef);e.detailList=n.detailFields.map(function(t){var e={tableName:t.subTableView,pageIndex:t.options.pageIndex,pageSize:t.options.pageSize,idField:t.options.idField,orderBy:t.options.orderBy,quantity:t.quantity};return t.options.showSumField&&(e.sumColumnNames=t.options.sumColumnNames),e});var s=this.common.getGUID();sessionStorage[s]=o()(e);var l=o()(this.tableData.map(function(e){return{poCode:t.tableData[0].poCode,productCode:t.tableData[0].productCode,number:t.tableData[0].quantity,saleCode:t.tableData[0].saleCode,trackting:t.tableData[0].extendField04}})),u={productPosition_Id:this.tableData[0].productPosition_Id,quantity:this.tableData[0].quantity,totalWeight:this.tableData[0].totalWeight,detailList:l};this.common.ajax("/api/storage/check/updateData",u,function(e){t.common.showMsg(e),e.result&&t.tableData.forEach(function(t){window.open("/#/print/base-template-id/20001/1611/"+t.productPosition_Id+"?key="+s)}),e.msg,t.currentVisible=!1},!0)}else this.$message.error("执行选择一项")},quantityJudge:function(){this.tableData[0].quantity>this.tableData[0].productStorage&&this.$message({message:"打印数量不可大于库存量",type:"warning"})}}},u=(a("M2+4"),a("KHd+")),d=Object(u.a)(l,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{visible:t.currentVisible,title:"打印物料标签","append-to-body":"",width:"1000px"},on:{"update:visible":function(e){t.currentVisible=e}}},[a("el-alert",{attrs:{title:"提示:下面可改变打印标签的数量",type:"success"}}),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,stripe:""}},[a("el-table-column",{attrs:{prop:"productCode",label:"物料编号",width:"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"productName",label:"物料名称",width:"160"}}),t._v(" "),a("el-table-column",{attrs:{prop:"productStorage",label:"未打印数量",width:"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"quantity",label:"打印数量",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){e.$idnex;var i=e.row;return[a("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right"},on:{change:t.quantityJudge},model:{value:i.quantity,callback:function(e){t.$set(i,"quantity",t._n(e))},expression:"row.quantity"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"quantity",label:"打印重量",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){e.$idnex;var i=e.row;return[a("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right"},model:{value:i.totalWeight,callback:function(e){t.$set(i,"totalWeight",t._n(e))},expression:"row.totalWeight"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"poCode",label:"采购单号",width:"135"}}),t._v(" "),a("el-table-column",{attrs:{prop:"itemNumber",label:"采购项号",width:"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"saleCode",label:"销售单号",width:"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"extendField08",label:"销售项号",width:"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"extendField04",label:"跟踪号",width:"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"limitDate",label:"限用日期",width:"160"}})],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.currentVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.printBarcode}},[t._v("确 定")])],1)],1)},[],!1,null,"1dfd91d2",null);d.options.__file="order-barcode.vue";var c={name:"storage-base-product-position-print",components:{orderBarcode:d.exports},mixins:[n.a],data:function(){return{showAll:!1,fixedWhere:{productStorage:{operator:">",value:0}},barcodeVisible:!1}},methods:{buttonClick:function(t){switch(t){case"exportProductPosition":this.exportProductPosition();break;case"productPrint":return this.printBarcode(),!1}},printBarcode:function(){var t=this.dataListSelections;if(t.length)if(1===t.length){var e=JSON.parse(o()(t));e.forEach(function(t){t.quantity=t.productStorage}),this.barcodeVisible=!0,this.$refs["barcode-dialog"].showData(e,[])}else this.$message.error("请选择一条库存进行操作");else this.$message.error("至少选择一项!")},onShowAll:function(){var t=this;this.showAll?this.fixedWhere={}:this.fixedWhere={productStorage:{operator:">",value:0}},this.$nextTick(function(){t.dataList.loadData()})},exportProductPosition:function(){var t=this,e=this.dataListSelections.map(function(t,e,a){return t.productPosition_Id}).join(",");if(!e.length)return this.$message.error("请至少选择一行数据!"),!1;var a={ids:e};this.common.ajax("/api/storage/productPosition/export",a,function(e){if(t.common.showMsg(e),e.result){var a=t.common.domain+"/api/common/download?url="+e.data.url;window.open(a)}},!0)}}},p=Object(u.a)(c,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"container",staticClass:"page-list-container"},[a("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}}}),t._v(" "),a("yrt-editor",t._b({ref:t.editorRef,attrs:{"data-list-ref":t.dataListRef,"data-options":t.dataOptions,action:t.editorOptions.action,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:visible":function(e){return t.$set(t.editorOptions.config,"visible",e)}}},"yrt-editor",t.editorOptions,!1)),t._v(" "),a("order-barcode",{ref:"barcode-dialog",attrs:{visible:t.barcodeVisible},on:{"update:visible":function(e){t.barcodeVisible=e}}})],1)},[],!1,null,null,null);p.options.__file="product-position-print.vue";e.default=p.exports},DNkW:function(t,e,a){var i=a("93I4"),o=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&o(t)===t}},"GW1+":function(t,e,a){"use strict";var i=a("mxV5"),o=a.n(i);e.a=function(t){return new o.a(t)}},"M2+4":function(t,e,a){"use strict";var i=a("gMwG");a.n(i).a},gMwG:function(t,e,a){},h5AQ:function(t,e,a){a("hRZT"),t.exports=a("WEpk").Number.isInteger},hRZT:function(t,e,a){var i=a("Y7ZC");i(i.S,"Number",{isInteger:a("DNkW")})},ql3t:function(t,e,a){t.exports={default:a("h5AQ"),__esModule:!0}},yaWU:function(t,e,a){"use strict";a.d(e,"a",function(){return i});var i={bind:function(t,e,a){t.children[2].onscroll=function(e){var a=t.children[3];a&&a.classList.contains("el-table__footer-wrapper")&&(a.scrollLeft=e.target.scrollLeft)}},update:function(t,e,a){}}}}]);