fix:“物料标签”统一改为“打签”

This commit is contained in:
shijing 2025-12-29 13:38:35 +08:00
parent a3b12bad68
commit 33844efb7c
15 changed files with 31 additions and 31 deletions

View File

@ -187,7 +187,7 @@ export default {
resetQuery() { resetQuery() {
this.query = {}; this.query = {};
}, },
// //
printMaterial(row){ printMaterial(row){
let that = this; let that = this;
that.wmId = row.id; that.wmId = row.id;

View File

@ -61,11 +61,11 @@
</el-table-column> </el-table-column>
<el-table-column label="更新时间" prop="update_time"> <el-table-column label="更新时间" prop="update_time">
</el-table-column> </el-table-column>
<el-table-column width="140"> <el-table-column width="80">
<template #default="scope"> <template #default="scope">
<!-- <el-button type="primary" link v-if="project_code == 'gx'" @click="mbCheck(scope.row)">检验</el-button> <!-- <el-button type="primary" link v-if="project_code == 'gx'" @click="mbCheck(scope.row)">检验</el-button>
<el-button type="success" link v-if="project_code == 'gx'" @click="mbCheckList(scope.row)">检验记录</el-button> --> <el-button type="success" link v-if="project_code == 'gx'" @click="mbCheckList(scope.row)">检验记录</el-button> -->
<el-button type="text" @click="printMaterial(scope.row,'mb')">物料标</el-button> <el-button type="text" @click="printMaterial(scope.row,'mb')"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -100,7 +100,7 @@
width="120" width="120"
> >
<template #default="scope"> <template #default="scope">
<el-link :underline="false" @click="printMaterial(scope.row,'wpr')" type="primary">印标</el-link> <el-link :underline="false" @click="printMaterial(scope.row,'wpr')" type="primary"></el-link>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -441,7 +441,7 @@ export default {
that.getCheckList(); that.getCheckList();
}) })
}, },
// //
printMaterial(row,type){ printMaterial(row,type){
let that = this; let that = this;
let printer_name=localStorage.getItem("printer_name"); let printer_name=localStorage.getItem("printer_name");

View File

@ -203,7 +203,7 @@
type="primary" type="primary"
v-if="mioObj.type == 'do_out'" v-if="mioObj.type == 'do_out'"
@click="printMaterial(scope.row,'mioitem')" @click="printMaterial(scope.row,'mioitem')"
>物料标</el-link> ></el-link>
<el-link <el-link
type="primary" type="primary"
v-if="mioObj.state == 20&&mioObj.type == 'sale_out'" v-if="mioObj.state == 20&&mioObj.type == 'sale_out'"
@ -275,7 +275,7 @@
width="120" width="120"
> >
<template #default="scope"> <template #default="scope">
<el-link :underline="false" v-if="mioObj.type == 'do_out'" @click="printMaterial(scope.row,'wpr')" type="primary">印标</el-link> <el-link :underline="false" v-if="mioObj.type == 'do_out'" @click="printMaterial(scope.row,'wpr')" type="primary"></el-link>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -601,9 +601,9 @@ export default {
this.$message.error("导入失败,请重新尝试"); this.$message.error("导入失败,请重新尝试");
}); });
}, },
// //
printMaterial(row,type){ printMaterial(row,type){
console.log('打印物料标签',row); console.log('打签',row);
let that = this; let that = this;
let is_mainso = this.url_code.includes('mainso'); let is_mainso = this.url_code.includes('mainso');
if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){

View File

@ -362,7 +362,7 @@ export default {
var that = this; var that = this;
that.params.material = that.selectObj.id; that.params.material = that.selectObj.id;
}, },
// //
printMaterial(row,type){ printMaterial(row,type){
let that = this; let that = this;
if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){

View File

@ -140,7 +140,7 @@
width="120" width="120"
> >
<template #default="scope"> <template #default="scope">
<el-link :underline="false" @click="printMaterial(scope.row,'wm')" type="primary">物料标</el-link> <el-link :underline="false" @click="printMaterial(scope.row,'wm')" type="primary"></el-link>
<el-link :underline="false" v-if="scope.row.material_&&scope.row.material_.tracking==10&&scope.row.state!==20" @click="tableCheckList(scope.row)" type="primary">检验记录</el-link> <el-link :underline="false" v-if="scope.row.material_&&scope.row.material_.tracking==10&&scope.row.state!==20" @click="tableCheckList(scope.row)" type="primary">检验记录</el-link>
<el-link <el-link
v-if="scope.row.material_&&scope.row.material_.tracking==10&&scope.row.state!==20" v-if="scope.row.material_&&scope.row.material_.tracking==10&&scope.row.state!==20"
@ -219,7 +219,7 @@
width="120" width="120"
> >
<template #default="scope"> <template #default="scope">
<el-link :underline="false" @click="printMaterial(scope.row,'wpr')" type="primary">物料标</el-link> <el-link :underline="false" @click="printMaterial(scope.row,'wpr')" type="primary"></el-link>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -550,7 +550,7 @@ export default {
this.$refs.handoverDialog.open("add",row,20); this.$refs.handoverDialog.open("add",row,20);
}); });
}, },
// //
printMaterial(row,type){ printMaterial(row,type){
let that = this; let that = this;
if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){

View File

@ -155,7 +155,7 @@
width="120" width="120"
> >
<template #default="scope"> <template #default="scope">
<el-link :underline="false" @click="printMaterial(scope.row,'wm')" type="primary">物料标</el-link> <el-link :underline="false" @click="printMaterial(scope.row,'wm')" type="primary"></el-link>
<el-link :underline="false" v-if="scope.row.material_&&scope.row.material_.tracking==10&&scope.row.state!==20" @click="tableCheckList(scope.row)" type="primary">检验记录</el-link> <el-link :underline="false" v-if="scope.row.material_&&scope.row.material_.tracking==10&&scope.row.state!==20" @click="tableCheckList(scope.row)" type="primary">检验记录</el-link>
<el-link <el-link
v-if="scope.row.material_&&scope.row.material_.tracking==10&&scope.row.state!==20" v-if="scope.row.material_&&scope.row.material_.tracking==10&&scope.row.state!==20"
@ -230,7 +230,7 @@
width="120" width="120"
> >
<template #default="scope"> <template #default="scope">
<el-link :underline="false" @click="printMaterial(scope.row,'wpr')" type="primary">物料标</el-link> <el-link :underline="false" @click="printMaterial(scope.row,'wpr')" type="primary"></el-link>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -574,7 +574,7 @@ export default {
this.dialog.save = false; this.dialog.save = false;
this.$refs.table.refresh(); this.$refs.table.refresh();
}, },
// //
printMaterial(row,type){ printMaterial(row,type){
let that = this; let that = this;
if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){

View File

@ -271,7 +271,7 @@
</el-table-column> </el-table-column>
<el-table-column width="90"> <el-table-column width="90">
<template #default="scope"> <template #default="scope">
<el-button @click="printMaterial(scope.row)" type="text">物料标</el-button> <el-button @click="printMaterial(scope.row)" type="text"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -499,7 +499,7 @@ export default {
handlePrint(){ handlePrint(){
this.printVisible = true; this.printVisible = true;
}, },
// //
printMaterial(row){ printMaterial(row){
let that = this; let that = this;
that.wmId = row.id; that.wmId = row.id;

View File

@ -987,7 +987,7 @@ export default {
let that = this; let that = this;
that.printVisible = true; that.printVisible = true;
}, },
// //
printMaterial(row){ printMaterial(row){
let that = this; let that = this;
that.apiObjPrint.req({tid:row.id}).then((res) => { that.apiObjPrint.req({tid:row.id}).then((res) => {

View File

@ -54,7 +54,7 @@
> >
<template #default="scope"> <template #default="scope">
<el-button v-if="mode=='ins'&&mgroupName=='毛坯检测后打码'" @click="QRCode(scope.row)" type="success">二维码</el-button> <el-button v-if="mode=='ins'&&mgroupName=='毛坯检测后打码'" @click="QRCode(scope.row)" type="success">二维码</el-button>
<el-button @click="printMaterial(scope.row)" type="primary">印标</el-button> <el-button @click="printMaterial(scope.row)" type="primary"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -252,7 +252,7 @@ export default {
} }
}) })
}, },
// //
printMaterial(row){ printMaterial(row){
let that = this; let that = this;
if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){

View File

@ -343,7 +343,7 @@ export default {
that.printVisible = true; that.printVisible = true;
}) })
}, },
// //
printMaterial(row){ printMaterial(row){
let that = this; let that = this;
that.$API.cm.labelmat.fromWm.req({tid:row.id}).then((res) => { that.$API.cm.labelmat.fromWm.req({tid:row.id}).then((res) => {

View File

@ -86,7 +86,7 @@
width="100" width="100"
> >
<template #default="scope"> <template #default="scope">
<el-button @click="printMaterial(scope.row)" type="text">物料标</el-button> <el-button @click="printMaterial(scope.row)" type="text"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -145,7 +145,7 @@ export default {
handleQuery() { handleQuery() {
this.$refs.table.queryData(this.query); this.$refs.table.queryData(this.query);
}, },
// //
printMaterial(row){ printMaterial(row){
let that = this; let that = this;
if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){

View File

@ -124,7 +124,7 @@
v-if="scope.row.defect_name == null" v-if="scope.row.defect_name == null"
>检验记录 >检验记录
</el-button> --> </el-button> -->
<el-button @click="printMaterial(scope.row)" type="text">物料标</el-button> <el-button @click="printMaterial(scope.row)" type="text"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -444,7 +444,7 @@ export default {
this.dialog.save = false; this.dialog.save = false;
this.$refs.table.refresh(); this.$refs.table.refresh();
}, },
// //
printMaterial(row){ printMaterial(row){
let that = this; let that = this;
if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){

View File

@ -121,7 +121,7 @@
@click="tableCheckList(scope.row)" @click="tableCheckList(scope.row)"
v-if="scope.row.state == 10||scope.row.state == 34" v-if="scope.row.state == 10||scope.row.state == 34"
>检验记录</el-button> >检验记录</el-button>
<el-button @click="printMaterial(scope.row)" type="text">物料标</el-button> <el-button @click="printMaterial(scope.row)" type="text"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -441,7 +441,7 @@ export default {
this.dialog.save = false; this.dialog.save = false;
this.$refs.table.refresh(); this.$refs.table.refresh();
}, },
// //
printMaterial(row){ printMaterial(row){
let that = this; let that = this;
if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){ if(that.printer_name!==''&&that.printer_name!==null&&that.printer_name!==undefined){

View File

@ -278,7 +278,7 @@
</el-table-column> </el-table-column>
<el-table-column width="90" v-if="cate=='do_in'|| cate=='do_out'"> <el-table-column width="90" v-if="cate=='do_in'|| cate=='do_out'">
<template #default="scope"> <template #default="scope">
<el-button @click="printMaterial(scope.row)" type="text">物料标</el-button> <el-button @click="printMaterial(scope.row)" type="text"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -554,7 +554,7 @@ export default {
handlePrint(){ handlePrint(){
this.printVisible = true; this.printVisible = true;
}, },
// //
printMaterial(row){ printMaterial(row){
let that = this; let that = this;
that.wmId = row.id; that.wmId = row.id;

View File

@ -691,7 +691,7 @@ export default {
let that = this; let that = this;
that.printVisible = true; that.printVisible = true;
}, },
// //
printMaterial(row){ printMaterial(row){
let that = this; let that = this;
that.wmId = row.id; that.wmId = row.id;