fix:玻纤大箱发货标签放到详情里

This commit is contained in:
shijing 2025-08-21 09:49:07 +08:00
parent 9f35d79424
commit 353871c2d8
4 changed files with 32 additions and 8 deletions

View File

@ -9,7 +9,8 @@
<div style="padding: 8px">
<div>
<el-card style="width: 100%" header="基本信息" shadow="hover">
<el-button type="primary" @click="handlePrint" style="position: absolute;right: 40px;">打印</el-button>
<el-button type="primary" v-if="project_code=='bxerp'" @click="printSaleOut(mioObj,'out')" style="position: absolute;right: 40px;">发货标签</el-button>
<el-button type="primary" v-else @click="handlePrint" style="position: absolute;right: 40px;">打印</el-button>
<el-descriptions>
<el-descriptions-item label="编号">{{
mioObj.number
@ -70,6 +71,7 @@
v-if="mioObj.state == 10&&mode!=='show'&&type=='sale_out'&&project_code=='bxerp'"
>装箱</el-button>
<scFileImport
v-if="mioObj.state == 10&&mode!=='show'"
:templateUrl="mioitemT"
:name = "'导入明细'"
accept=".xlsx"

View File

@ -513,7 +513,7 @@ export default {
that.wprList = [];
that.mioitems = [];
if(items){
if(that.form.type == 'do_out'&&that.project_code=='bxerp'){
if(that.form.type == 'sale_out'&&that.project_code=='bxerp'){
let count = 0;
if(that.tableDatas.length>0){
that.tableDatas.forEach((item0) => {

View File

@ -105,7 +105,7 @@ export default {
emits: ["success", "closed"],
props: {
type: { type: String, default: "" },
mioitemObj: { type: Object },
mioObj: { type: Object },
},
data() {
return {
@ -135,7 +135,29 @@ export default {
printer_name:localStorage.getItem("printer_name"),
};
},
mounted() {},
mounted() {
let that = this;
console.log(that.type);
console.log(that.mioObj);
that.$nextTick(() => {
if(that.type=="in"){//
that.form.name = that.mioObj.material_?that.mioObj.material_.name:'';
that.form.model = that.mioObj.material_?that.mioObj.material_.model:'';
that.form.batch = that.mioObj.batch;
that.form.count = that.mioObj.count;
}else{//
let date = new Date();
that.form.date = that.$TOOL.dateFormat2(date);
console.log(that.form.date);
let items = that.mioObj.items;
that.form.date = that.mioObj.date;
that.form.packNum = items.length;
that.form.pack = items.map(item=>item.count).reduce((a,b)=>a+b);
that.form.name = items[0].material_.name;
that.form.model = items[0].material_.model;
}
})
},
methods: {
//
open() {
@ -159,9 +181,9 @@ export default {
"WINTEXT 80,750,36,90,0,0,Simhei,名称",
"WINTEXT 80,600,36,90,0,0,Simhei," + this.form.name,
"WINTEXT 130,750,36,90,0,0,Simhei,批号",
"WINTEXT 130,600,36,90,0,0,Simhei," + this.form.model,
"WINTEXT 130,600,36,90,0,0,Simhei," + this.form.batch,
"WINTEXT 180,750,36,90,0,0,Simhei,型号" ,
"WINTEXT 180,600,36,90,0,0,Simhei," + this.form.batch,
"WINTEXT 180,600,36,90,0,0,Simhei," + this.form.model,
"WINTEXT 230,750,36,90,0,0,Simhei,数量" ,
"WINTEXT 230,600,36,90,0,0,Simhei," + this.form.count,
"PRINT 1",

View File

@ -95,11 +95,11 @@
>
提交
</el-button>
<el-link
<!-- <el-link
type="primary"
v-if="scope.row.state == 20"
@click="printSaleOut(scope.row,'out')"
>发货标签</el-link>
>发货标签</el-link> -->
<el-button
link
type="warning"