+
+
+
+
- - 入库信息单编号
- - 入库日期
- - 执行部门-工段
- - 交送人
- - 仓库接收人
- - 仓库
- - 采购订单
- - 供应商名称
+ - 入库信息单编号
+ - 入库日期
+ - 执行部门-工段
+ - 交送人
+ - 仓库接收人
+ - 仓库
+ - 采购订单
+ - 供应商名称
- {{baseData.number}}
- - {{baseData.submit_time.slice(0,16)}}
+ - {{baseData.inout_date}}
+
- {{baseData.belong_dept_name}}
- {{baseData.do_user_name}}
- {{baseData.mio_user_name}}
@@ -35,17 +37,17 @@
- 物料清单
- - 物料名称
- - 型号
- - 所在工序
- - 批次号
- - 数量
+ - 物料名称
+
+ - 所在工序
+ - 批次号
+ - 数量
- - {{ item.material_name }}
- - {{ item.material_.model }}
+ - {{ item.material_name }}
+
- {{ item.material_.process_name }}
- - {{ item.batch }}
+ - {{ item.batch }}
- {{ item.count }}
@@ -119,8 +121,8 @@
{{ item.count }}
-
-
+
+
@@ -160,6 +162,7 @@
+
- 厚度
- 气泡
@@ -184,6 +187,99 @@
- {{baseData.count_n_cpyd}}
- {{baseData.count_n_cptxd}}
+
+
+
+
+
+ - 批次号
+ - 总数
+ - 检验数
+ - 检验人
+ - 检验日期
+ - 班次
+
+
+ - {{ baseData.material_mame }}
+ - {{ baseData.count_real }}
+ - {{ baseData.count_use }}
+ - {{ baseData.handle_user_name }}
+ - {{ baseData.count_ok }}
+ - {{ baseData.test_time }}
+
+
+
+ - {{ baseData.count_ok }}
+ - {{baseData.count_notok}}
+
+
+
+
+
+
+
+ - 黑圈内径
+ - 黑圈内径圆度
+ - 黑圈外径
+ - 黑圈外径圆度
+ - 产品外径
+ - 产品圆度
+ - 产品同心度
+ - 厚度
+ - 准合格
+ - 圆准
+
+
+
+ - 脏
+ - 气泡
+ - 水纹
+ - 崩边
+ - 棕边
+ - 棕圈
+ - 划伤
+ - 麻点
+ - 黑圈变形
+ - 倒角
+ - 破损
+ - 蓝圈
+
+
+ - {{baseData.count_n_hd}}
+ - {{baseData.count_n_qp}}
+ - {{baseData.count_n_swen}}
+ - {{baseData.count_n_bb}}
+ - {{baseData.count_n_hs}}
+ - {{baseData.count_n_md}}
+ - {{baseData.count_n_xh}}
+ - {{baseData.count_n_cpwj}}
+ - {{baseData.count_n_cpyd}}
+ - {{baseData.count_n_cptxd}}
+
+
+ - {{baseData.count_n_hd}}
+ - {{baseData.count_n_qp}}
+ - {{baseData.count_n_swen}}
+ - {{baseData.count_n_bb}}
+ - {{baseData.count_n_hs}}
+ - {{baseData.count_n_md}}
+ - {{baseData.count_n_xh}}
+ - {{baseData.count_n_cpwj}}
+ - {{baseData.count_n_cpyd}}
+ - {{baseData.count_n_cptxd}}
+ - {{baseData.count_n_cptxd}}
+ - {{baseData.count_n_cptxd}}
+
@@ -192,101 +288,155 @@
- 任务编号
- - 工艺路线
+ - 所在工段
- 产品名称
- 任务总数量
- - 11111111111
- - CNC
- - CNC玻璃
- - 100000
+ - {{ baseData.number }}
+ - {{ baseData.mgroup_name }}
+ - {{ baseData.material_out_name }}
+ - {{ baseData.count }}
-
- - 11111111101
- - 张三
- - 5000
+
+ - {{ item.handle_user_name }}
+ - {{ item.count }}
-
+
- 任务编号
- 工艺路线
- - 产品名称
- - 任务总数
+ - 备注
+
- - 11111111111
- - CNC
- - CNC玻璃
- - 100000
+ - {{baseData.mtask_number}}
+ - {{baseData.routepack_name}}
+ - {{baseData.note}}
+
-
-
1
+
+
{{ index+1 }}
- 设备编号
- 操作人
- 班次
- 开始时间
- - 温度
- - 保温时间
- - 冷却时间
- - 预估结束时间
- - 备注层数
- - TH11101
- - 张三
- - 白班
- - 19:00
- - 温度
- - 600
- - 120
- - 05:00
- - 1到10层
+ - {{ item.equipment_name }}
+ - {{ item.handle_user_name }}
+ - {{ item.shift_name }}
+ - {{ item.work_start_time }}
- - 输入物料批次号
+ - 输入物料批次号
- 领料数量
- 加工数量
- 加工前不良数量
- - 输出物料批次号
+ - 输出物料批次号
- 合格数量
- 不合格数量
- - 不合格原因
+
+
- - 20241011
- - 5000
- - 4000
- - 10
- - 20241011-TH01
- - 3950
- - 40
- - 崩边
-
+ - {{item.mlogb_full[0].batch}}
+ - {{item.mlogb_full[0].count_use}}
+ - {{item.count_real}}
+ - {{ item.count_pn_jgqbl }}
+ - {{item.mlogb_full[1].batch}}
+ - {{item.count_ok}}
+ - {{item.count_notok}}
+
+
+
+
+
+
+
+
+
+ - 工艺路线
+ - 工段
+ - 输入物料
+ - 输出物料
+ - 生产设备
+ - 处理人
+ - 开始时间
+
+
+
+ - {{baseData.routepack_name}}
+ - {{baseData.mgroup_name}}
+ - {{baseData.material_in_name}}
+ - {{baseData.material_out_name}}
+ - {{baseData.equipment_name}}
+ - {{baseData.handle_user_name}}
+ - {{baseData.work_start_time}}
+
+
+
+ - 温度
+ - 保温时间
+ - 冷却时间
+ - 预估结束时间
+ - 备注层数
+
+
+ - 温度
+ - 600
+ - 120
+ - 05:00
+ - 1到10层
+
+
+
+
+
{{ index+1 }}
+
+
+ - 输入物料批次号
+ - 领料数量
+ - 加工数量
+ - 加工前不良数
+ - 输出物料批次号
+ - 合格数量
+ - 不合格数量
+
+
+ - {{item.batch}}
+ - {{item.count_use}}
+ - {{item.count_real}}
+ - {{ item.count_pn_jgqbl }}
+ - {{tableData2[index].batch}}
+ - {{tableData2[index].count_ok}}
+ - {{tableData2[index].count_notok}}
-
@@ -303,27 +453,27 @@
备注
- - 1111
- - 2222
- - 3333
- - 4444
- - 5555
- - 6666
- - 7777
+ - {{ baseData.send_mgroup_name }}
+ - {{ baseData.send_user_name }}
+ - {{ baseData.recive_mgroup_name }}
+ - {{ baseData.recive_user_name }}
+ - {{ baseData.send_date }}
+ - {{ baseData.recive_date }}
+ - {{ baseData.note }}
-
- - 11111111111
- - 22222222222
- - 33333333333
+
+
+ - {{ item.batch }}
+ - {{ item.count }}
@@ -391,6 +541,8 @@
+
导出
+
打印
@@ -419,6 +571,12 @@
return [];
},
},
+ tableData2: {
+ type: Array,
+ default: () => {
+ return [];
+ },
+ },
mgroupId: {
type: String,
default: "",
@@ -431,37 +589,36 @@
data() {
return {
mainLoading: false,
- issave: false, //控制基本信息提交
- search: {
- keyword: null,
- },
- oplcateCode: 'fire',
- operationId: "",
- oplId: "",
- ticketId:'',
+ codeVisible:false,
+ value:''
};
},
mounted() {
- let that = this;
- this.$nextTick(()=>{})
-
-
- // 'BARCODE 0,130,"128",108,0,0,2,4,"'
+ let that = this;
+ that.printId = that.baseData.id;
+ that.value = that.type + ":" + that.printId+",url:'/wpm_gx/qiepian'";
+ that.codeVisible = true;
+ // var canvas = document.getElementById("barcode");
+ // var context = canvas.getContext("2d");
+ // context.clearRect(0, 0, context.width, context.height);
+ // JsBarcode("#barcode", that.printId, {
+ // format: "CODE128",
+ // displayValue: true,
+ // fontSize: 20,
+ // lineColor: "#000000",
+ // });
+
},
methods: {
handlePrint(){
this.$PRINT("#exportDiv");
+ this.$emit('closePrint')
},
handleExport() {
let exportDiv = document.getElementById('exportDiv') // 需要导出部分页面的id名
this.pdfDownLoader = new PdfLoader(exportDiv, '作业许可证', 'exportDiv') // fileName -->导出文件名, question-table -->防止被截断的class名
this.pdfDownLoader.outPutPdfFn('test');
- },
- //作业人员列表
- getworkerList() {
- this.$API.opm.worker.list.req({opl: this.oplId, page: 0}).then((res) => {
- this.workerData = res;
- });
+ this.$emit('closePrint');
},
},
}
@@ -496,5 +653,17 @@
}
.export_ulli_title{
text-align: center;
+ /* color: #ffffff; */
+ background-color: #e3e3e3;
+}
+.export_ulli_h{
+ background-color: #e3e3e3;
+}
+.flex2{
+ flex:2
+}
+#barcode {
+ width: 200px;
+ height: 60px;
}
diff --git a/src/views/template/scan.vue b/src/views/template/scan.vue
new file mode 100644
index 00000000..46e4d518
--- /dev/null
+++ b/src/views/template/scan.vue
@@ -0,0 +1,40 @@
+
+
+ 扫码添加
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/wpm_gx/fmlog_detail.vue b/src/views/wpm_gx/fmlog_detail.vue
index 6252bce0..4469d483 100644
--- a/src/views/wpm_gx/fmlog_detail.vue
+++ b/src/views/wpm_gx/fmlog_detail.vue
@@ -6,9 +6,10 @@
destroy-on-close
@closed="$emit('closed')"
>
-
-
+
+
+ 打印
{{
fmlogItem.routepack_name
@@ -21,13 +22,9 @@
}}
-
-
-
-
+
{{props.row.count_n_ps}}
+
+ {{props.row.count_n_wj}}
+
+
+ {{props.row.count_n_xh}}
+
+
+ {{props.row.count_n_yd}}
+
+
+ {{props.row.count_n_ps}}
+
@@ -126,7 +135,31 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 物料标签
+
+
+
+
-
+
+
+
+
diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue
index 99f86c3c..cc59cead 100644
--- a/src/views/wpm_gx/handover.vue
+++ b/src/views/wpm_gx/handover.vue
@@ -226,9 +226,13 @@
保存
+
+
+
diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue
index 14368946..0f002568 100644
--- a/src/views/wpm_gx/inm.vue
+++ b/src/views/wpm_gx/inm.vue
@@ -93,7 +93,7 @@
fixed="right"
align="center"
width="120"
- v-if="mgroupName!=='size'&&mgroupName!=='facade'"
+
>
检验
检验记录
+ 物料标签
@@ -208,6 +209,7 @@ export default {
process:'',
materialType: "wm",
visibleDrawer: false,
+ printer_name:localStorage.getItem("printer_name")
};
},
mounted() {
@@ -312,6 +314,32 @@ export default {
this.dialog.save = false;
this.$refs.table.refresh();
},
+ //打印物料标签
+ printMaterial(row){
+ let that = this;
+ that.$API.cm.labelmat.fromWm.req({tid:row.id}).then((res) => {
+ console.log(res)
+ let code = res.code_label;
+ let str = [
+ "SIZE 40 mm,70 mm",
+ "GAP 7 mm,7 mm",
+ "CLS",
+ "REFERENCE 0,0",
+ 'QRCODE 30,400,H,5,A,0,"' +code +'"',
+ "WINTEXT 200,550,28,90,0,0,Simhei," + res.material_name,
+ "WINTEXT 240,550,28,90,0,0,Simhei," + res.batch,
+ ];
+ if(res.notok_sign!==null){
+ str.push("WINTEXT 280,550,28,90,0,0,Simhei," +res.notok_sign_name,)
+ }
+ str.push("PRINT 1",)
+ let obj = {};
+ obj.printer_commands = str;
+ obj.printer_name = that.printer_name;
+ this.$API.wpm.prints.req(obj).then((response) => {});
+ })
+
+ },
},
};
diff --git a/src/views/wpm_gx/inm_record.vue b/src/views/wpm_gx/inm_record.vue
index ab7520f8..43164ae6 100644
--- a/src/views/wpm_gx/inm_record.vue
+++ b/src/views/wpm_gx/inm_record.vue
@@ -264,6 +264,11 @@
show-overflow-tooltip
>
+
+
+ 物料标签
+
+
-
+
@@ -336,6 +341,7 @@ export default {
userOptions: [],//部门执行人
deptOptions: [],
mgroupOptions: [],
+ printer_name:localStorage.getItem("printer_name")
};
},
mounted() {
@@ -465,9 +471,34 @@ export default {
});
},
submitOut() {},
+ //打印
handlePrint(){
this.printVisible = true;
- },//打印
+ },
+ //打印物料标签
+ printMaterial(row){
+ let that = this;
+ that.$API.cm.labelmat.fromMioitem.req({tid:row.id}).then((res) => {
+ let code = res.code_label;
+ let str = [
+ "SIZE 40 mm,70 mm",
+ "GAP 7 mm,7 mm",
+ "CLS",
+ "REFERENCE 0,0",
+ 'QRCODE 30,400,H,5,A,0,"' +code +'"',
+ "WINTEXT 200,550,28,90,0,0,Simhei," + res.material_name,
+ "WINTEXT 240,550,28,90,0,0,Simhei," + res.batch,
+ ];
+ if(res.notok_sign!==null){
+ str.push("WINTEXT 280,550,28,90,0,0,Simhei," +res.notok_sign_name,)
+ }
+ str.push("PRINT 1",)
+ let obj = {};
+ obj.printer_commands = str;
+ obj.printer_name = that.printer_name;
+ this.$API.wpm.prints.req(obj).then((response) => {});
+ })
+ },
//本地更新数据
handleSaveSuccess() {
this.$refs.tables.refresh();
diff --git a/src/views/wpm_gx/mlog_detail.vue b/src/views/wpm_gx/mlog_detail.vue
index 2b9ea28e..8ede54f4 100644
--- a/src/views/wpm_gx/mlog_detail.vue
+++ b/src/views/wpm_gx/mlog_detail.vue
@@ -8,6 +8,7 @@
>
+ 打印
{{
mlogItem.routepack_name
@@ -275,6 +276,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 物料标签
+
+
+
+
+
+
+
@@ -392,6 +420,7 @@
import editDialog from "./mlog_form.vue";
import saveDialog from "./mlogb_form.vue";
import checkDialog from "./mlogb_check.vue";
+import print from "./../setting/print/A4.vue";
export default {
props: {
mlogId: {
@@ -403,6 +432,7 @@ export default {
editDialog,
saveDialog,
checkDialog,
+ print
},
emits: ["success", "closed"],
data() {
@@ -416,6 +446,12 @@ export default {
check: false,
},
apiObj: null,
+ apiObjWm:null,
+ paramsWm: {
+ page: 0,
+ search:'',
+ mgroup:''
+ },
paramsIn: {
page: 0,
mlog: "",
@@ -449,13 +485,17 @@ export default {
5: "已关闭",
},
fileList:[],
+ tableDataWm:[],
test_file:'',
deptId: "",
visible: false,
isSaveing: false,
options: [],
+ tableData:[],
+ tableData2:[],
saveInDialog: false,
ticketDialog:false,
+ printVisible:false,
setFiltersVisible: false,
rules: {
count_use: [
@@ -466,20 +506,25 @@ export default {
},
],
},
+ batchContains:''
};
},
mounted() {
- this.getMlogItem();
+ let that = this;
this.paramsIn.mlog = this.mlogId;
this.paramsOut.mlog = this.mlogId;
this.apiObj = this.$API.wpm.mlogb.list;
this.getInit();
+ that.$API.wpm.mlogb.list.req(that.paramsIn).then((res) => {
+ that.tableData = res;
+ })
+ that.getMlogItem();
+
},
methods: {
open() {
this.visible = true;
},
-
getMlogItem() {
let that = this;
that.$API.wpm.mlog.item.req(that.mlogId).then((res) => {
@@ -489,10 +534,22 @@ export default {
that.form.test_file = res.test_file;
}
that.mgroup = res.mgroup;
+ that.paramsWm.mgroup = res.mgroup;
that.materialIn = res.material_in;
that.deptId = res.belong_dept;
+ that.$API.wpm.mlogb.list.req(that.paramsOut).then((res) => {
+ that.tableData2 = res;
+ if(res.length>0){
+ res.forEach((item) => {
+ that.batchContains+= item.batch + " ";
+ })
+ that.paramsWm.search = that.batchContains;
+ that.apiObjWm = that.$API.wpm.wmaterial.list;
+ }
+ })
});
},
+
//表单注入数据
setData(data) {
Object.assign(this.form, data);
@@ -638,6 +695,35 @@ export default {
this.selectionFilters = filters;
this.setFiltersVisible = true;
},
+ handlePrint(){
+ let that = this;
+ that.printVisible = true;
+ },
+ //打印物料标签
+ printMaterial(row){
+ let that = this;
+ that.$API.cm.labelmat.fromWm.req({tid:row.id}).then((res) => {
+ let code = res.code_label;
+ let str = [
+ "SIZE 40 mm,70 mm",
+ "GAP 7 mm,7 mm",
+ "CLS",
+ "REFERENCE 0,0",
+ 'QRCODE 30,400,H,5,A,0,"' +code +'"',
+ "WINTEXT 200,550,28,90,0,0,Simhei," + res.material_name,
+ "WINTEXT 240,550,28,90,0,0,Simhei," + res.batch,
+ ];
+ if(res.notok_sign!==null){
+ str.push("WINTEXT 280,550,28,90,0,0,Simhei," +res.notok_sign_name,)
+ }
+ str.push("PRINT 1",)
+ let obj = {};
+ obj.printer_commands = str;
+ obj.printer_name = that.printer_name;
+ this.$API.wpm.prints.req(obj).then((response) => {});
+ })
+
+ },
},
};
diff --git a/src/views/wpm_gx/mtask_deliver.vue b/src/views/wpm_gx/mtask_deliver.vue
index ea4332fd..2a814cda 100644
--- a/src/views/wpm_gx/mtask_deliver.vue
+++ b/src/views/wpm_gx/mtask_deliver.vue
@@ -7,6 +7,7 @@
@closed="$emit('closed')"
>
+ 打印
{{
@@ -67,10 +68,15 @@
提交
+