fix:“物料标签”统一改为“打签”
This commit is contained in:
parent
a3b12bad68
commit
33844efb7c
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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");
|
||||||
|
|
|
||||||
|
|
@ -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){
|
||||||
|
|
|
||||||
|
|
@ -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){
|
||||||
|
|
|
||||||
|
|
@ -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){
|
||||||
|
|
|
||||||
|
|
@ -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){
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
|
|
@ -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){
|
||||||
|
|
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
|
|
@ -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){
|
||||||
|
|
|
||||||
|
|
@ -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){
|
||||||
|
|
|
||||||
|
|
@ -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){
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue