Browse Source

0412 新看板

master
ruanqi 3 years ago
parent
commit
64a7fa03af
  1. 4
      src/api/production/generateReport.js
  2. 676
      src/views/modules/production/cancelSfdc.vue
  3. 20
      src/views/modules/production/print_seqNo_label.js
  4. 22
      src/views/modules/production/print_stock_label.js
  5. 20
      src/views/modules/production/print_transNo_label.js
  6. 7
      src/views/modules/taskmanage/taskReport.vue

4
src/api/production/generateReport.js

@ -39,3 +39,7 @@ export const transFerSearch= data => createAPI(`dailyPlan/transFerSearch`, 'post
export const getTransPrintData= data => createAPI(`dailyPlan/getTransPrintData`, 'post', data);
export const getPartCardPrintData= data => createAPI(`dailyPlan/getPartCardPrintData`, 'post', data);
export const getSfdcList= data => createAPI(`dailyPlan/getSfdcList`, 'post', data);
export const cancelSfdc= data => createAPI(`dailyPlan/cancelSfdc`, 'post', data);

676
src/views/modules/production/cancelSfdc.vue

@ -0,0 +1,676 @@
<template>
<div class="mod-config">
<el-form :inline="true" label-position="top" label-width="100px" >
<el-form-item :label="'生产订单号'">
<el-input v-model="searchData.orderNo" style="width: 130px"></el-input>
</el-form-item>
<el-form-item :label="'加工中心编码'">
<el-input v-model="searchData.workCenterNo" style="width: 130px"></el-input>
</el-form-item>
<el-form-item >
<span slot="label" style="" @click="getBaseList(5)"><a herf="#">产品编码</a></span>
<el-input v-model="searchData.partNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'工序编号'">
<el-input v-model="searchData.itemNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'加工中心编号'">
<el-input v-model="searchData.workCenterNo" style="width: 120px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;">
<el-form-item :label="'报工日期:'">
<el-date-picker
style="width: 130px"
v-model="searchData.startDate"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item :label="'至: '">
<el-date-picker
style="width: 130px"
v-model="searchData.endDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item >
<span slot="label" style="" @click="getBaseList(26)"><a herf="#">操作员姓名</a></span>
<el-input v-model="searchData.operatorName" style="width: 120px"></el-input>
</el-form-item>
<el-form-item >
<span slot="label" style="" @click="getBaseList(88)"><a herf="#">机台ID</a></span>
<el-input v-model="searchData.resourceId" style="width: 120px"></el-input>
</el-form-item>
<el-form-item :label="'班次'">
<el-select v-model="searchData.shiftNo" style="width: 120px">
<el-option label="全部" value=""></el-option>
<el-option label="白班" value="白班"></el-option>
<el-option label="晚班" value="晚班"></el-option>
</el-select>
</el-form-item>
<el-form-item :label="' '">
<el-button @click="search()" style="margin-left: 0px;margin-top:0px" type="primary">查询</el-button>
<download-excel
:fields="fields()"
type="xls"
:name="exportName"
:fetch="createExportData"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{ '导出' }}
</download-excel>
</el-form-item>
</el-form>
<el-table
:height="height"
:data="tableData"
border
style="width: 100%">
<el-table-column
prop=""
header-align="center"
fixed="left"
align="center"
width="80"
label="操作">
<template slot-scope="scope" class="foo_container">
<a type="text" size="small" v-if="scope.row.reverseflag==='N'" @click="cancelSfdc(scope.row)">取消报工</a>
</template>
</el-table-column>
<el-table-column
v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
header-align="center"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
<el-dialog title="操作员明细" :close-on-click-modal="false" v-drag :visible.sync="operatorModalFlag" width="450px">
<el-table
height="200"
:data="operatorModalList"
border
style="width: 100%">
<el-table-column
type="index"
header-align="center"
align="right"
min-width="60"
label="序号">
</el-table-column>
<el-table-column
prop="operatorID"
header-align="center"
align="left"
min-width="100"
label="操作员ID">
</el-table-column>
<el-table-column
prop="operatorName"
header-align="center"
align="left"
min-width="120"
label="操作员姓名">
</el-table-column>
</el-table>
<el-footer style="height:40px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="operatorModalFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
<el-dialog title="不良原因" :close-on-click-modal="false" v-drag :visible.sync="defectModalFlag" width="450px">
<el-table
height="200"
:data="defectModalList"
border
style="width: 100%">
<el-table-column
type="index"
header-align="center"
align="right"
min-width="60"
label="序号">
</el-table-column>
<el-table-column
prop="defectCode"
header-align="center"
align="left"
min-width="100"
label="不良代码">
</el-table-column>
<el-table-column
prop="defectDesc"
header-align="center"
align="left"
min-width="120"
label="不良原因">
</el-table-column>
<el-table-column
prop="defectQty"
header-align="center"
align="right"
min-width="120"
label="不良数量">
</el-table-column>
</el-table>
<el-footer style="height:40px;margin-top: 10px;text-align:center">
<el-button type="primary" @click="defectModalFlag = false">关闭</el-button>
</el-footer>
</el-dialog>
<!-- 动态列 -->
<column v-if="visible" ref="column" @refreshData="getTableUserColumn" v-drag></column>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
</div>
</template>
<script>
import {
getSfdcList,
cancelSfdc,
} from '@/api/production/generateReport.js'
import Chooselist from '@/views/modules/common/Chooselist'
import {
saveTableDefaultList,
getTableDefaultListLanguage,
getTableUserListLanguage,
removerDefault,
removerUser
} from "@/api/table.js"
import column from "../common/column";
// import {
// printSeqNoLabel,
// } from "@/views/modules/production/print_seqNo_label.js"
export default {
name: 'searchSOScheduleRouting',
components: {
Chooselist,column
},
data () {
return {
site: this.$store.state.user.site,
// + start
exportData: [],
userDev:this.$store.state.user.userDev,
exportName: "派工单列表"+this.getStrDate(),
columnList: [
{
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "site",
columnLabel: "工厂编号",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 60,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "assJobSeqNo",
columnLabel: "派工单号",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 80,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
},
{
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "orderNo",
columnLabel: "生产订单号",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 80,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "itemNo",
columnLabel: "工序号",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 60,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "operationDesc",
columnLabel: "工序名称",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 120,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "seqNo",
columnLabel: "次序号",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 50,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "partNo",
columnLabel: "物料编码",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 70,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "workCenterNo",
columnLabel: "加工中心编号",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 70,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "reportDate",
columnLabel: "报工时间",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 130,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "operatorId",
columnLabel: "操作员",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 70,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "operatorName",
columnLabel: "操作员姓名",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 100,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "reverseflag",
columnLabel: "是否已取消报工",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 80,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "reportQty",
columnLabel: "报告数量",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 80,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "approveQty",
columnLabel: "合格数量",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 80,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "reportedManfTime",
columnLabel: "生产时间",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 70,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'right'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "shiftNo",
columnLabel: "班次编号",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 70,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "resourceId",
columnLabel: "机台编号",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 70,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}, {
tableId: "sfdcList",
tableName: this.$route.meta.title,
columnProp: "resourceDesc",
columnLabel: "机台名称",
columnHidden: false,
columnImage: false,
columnSortable: false,
columnWidth: 100,
format: null,
functionId: this.$route.meta.menuId,
sortLv: 0,
status: true,
fixed: '',
serialNumber: null,
columnType: null,
align: 'left'
}
],
visible:false,
queryTable: {
userId: this.$store.state.user.name,
functionId: this.$route.meta.menuId,
tableId: "sfdcList",
languageCode: this.$i18n.locale
},
// end
height: 200,
tableData: [],
searchData: {
orderNo: '',
workCenterNo: '',
partNo: '',
site: this.$store.state.user.site,
itemNo:'',
startDate:new Date(),
endDate:'',
operatorName:'',
resourceId:'',
shiftNo:'',
},
operatorModalList:[],
operatorModalFlag:false,
defectModalList:[],
defectModalFlag:false,
}
},
mounted () {
this.$nextTick(() => {
this.height = window.innerHeight - 210
this.height2 = window.innerHeight -100
})
},
methods: {
// S
getBaseList (val, type) {
this.tagNo = val
this.$nextTick(() => {
let strVal = ''
if (val === 24) {
strVal = this.searchData.workCenterNo
}
if (val === 5) {
strVal = this.searchData.partNo
}
if (val === 26) {
strVal = this.searchData.operatorName
}
if (val === 88) {
strVal = this.searchData.resourceId
}
this.$refs.baseList.init(val, strVal)
})
},
/* 列表方法的回调 */
getBaseData (val) {
if (this.tagNo === 24) {
this.searchData.workCenterNo = val.WorkCenterNo
} else if (this.tagNo === 5) {
this.searchData.partNo = val.PartNo
}
if (this.tagNo === 26) {
this.searchData.operatorName = val.OperatorName
}
if (this.tagNo === 88) {
this.searchData.resourceId = val.ResourceID
}
},
search () {
getSfdcList(this.searchData).then(({data}) => {
this.tableData = data.rows
})
},
cancelSfdc(row){
this.$confirm(`确定取消此报工记录`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
cancelSfdc(row).then(({data}) => {
if (data && data.code === 0) {
this.search ();
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
}
})
}else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
})
},
// +
fields() {
let json = "{"
this.columnList.forEach((item, index) => {
if (index == this.columnList.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
}
})
json += "}"
let s = eval("(" + json + ")")
return s
},
createExportData() {
// ,,
return this.tableData;
},
getStrDate() {
let dd = new Date();
let Y = dd.getFullYear();
let M = (dd.getMonth() + 1) < 10 ? "0" + (dd.getMonth() + 1) : (dd.getMonth() + 1);//100
let D = dd.getDate() < 10 ? "0" + dd.getDate() : dd.getDate();//100
let H = dd.getHours() < 10 ? "0" + dd.getHours() : dd.getHours();
let MM = dd.getMinutes() < 10 ? "0" + dd.getMinutes() : dd.getMinutes();
let S = dd.getSeconds() < 10 ? "0" + dd.getSeconds() : dd.getSeconds();
return Y + M + D + H + MM + S;
},
userSetting() {
this.visible = true;
this.$nextTick(() => {
this.$refs.column.init(this.queryTable);
});
},
},
created () {
// this.getTableUserColumn()
}
}
</script>
<style scoped>
.input_left{
text-align: left;
}
.input_reight{
text-align: right;
}
/deep/ input::-webkit-inner-spin-button {
-webkit-appearance: none !important;
}
input[type='number'] {
-moz-appearance: textfield !important;
}
</style>

20
src/views/modules/production/print_seqNo_label.js

@ -13,22 +13,22 @@ export function printSeqNoLabel(printList) {
LODOP.NewPage();
LODOP.SET_PRINT_PAGESIZE(0,1000,700,"");
LODOP.ADD_PRINT_BARCODE(43,244,208,140,"QRCode",printData.seqNo);
LODOP.ADD_PRINT_TEXT(90,8,108,25,"Part:");
LODOP.ADD_PRINT_TEXT(88,8,108,25,"Part:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(90,65,175,25,printData.partDesc);
LODOP.ADD_PRINT_TEXT(88,50,200,50,printData.partDesc);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(143,8,128,24,"Operator:");
LODOP.ADD_PRINT_TEXT(153,8,128,24,"Operator:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(143,110,140,20,printData.operatorName);
LODOP.ADD_PRINT_TEXT(153,110,140,20,printData.operatorName);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(116,8,113,25,"Shift:");
LODOP.ADD_PRINT_TEXT(132,8,113,25,"Shift:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(116,110,139,25,printData.sShiftNo);
LODOP.ADD_PRINT_TEXT(132,110,139,25,printData.sShiftNo);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(41,8,98,25,"Job No:");
@ -37,16 +37,16 @@ export function printSeqNoLabel(printList) {
LODOP.ADD_PRINT_TEXT(41,110,136,25,printData.seqNo);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(168,8,94,25,"Order No:");
LODOP.ADD_PRINT_TEXT(173,8,94,25,"Order No:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(168,110,141,25,printData.orderNo);
LODOP.ADD_PRINT_TEXT(173,110,141,25,printData.orderNo);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(66,8,96,25,"Q.T.Y:");
LODOP.ADD_PRINT_TEXT(64,8,96,25,"Q.T.Y:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(66,110,138,24,printData.qtyRequired+printData.umid+' | '+printData.weight+'公斤');
LODOP.ADD_PRINT_TEXT(64,110,138,24,printData.qtyRequired+printData.umid+' | '+printData.weight+'公斤');
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(194,8,128,25,"MFG Date:");

22
src/views/modules/production/print_stock_label.js

@ -13,40 +13,40 @@ export function printMaterialLabel(printList) {
LODOP.NewPage();
LODOP.SET_PRINT_PAGESIZE(0,1000,700,"");
LODOP.ADD_PRINT_BARCODE(43,244,208,140,"QRCode",printData.seqNo);
LODOP.ADD_PRINT_TEXT(90,8,133,25,"WareHouse ID:");
LODOP.ADD_PRINT_TEXT(112,8,133,25,"WareHouse ID:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(90,110,140,25,printData.wareHouseDesc);
LODOP.ADD_PRINT_TEXT(112,110,140,25,printData.wareHouseDesc);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(143,8,103,24,"Batch No:");
LODOP.ADD_PRINT_TEXT(154,8,103,24,"Batch No:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(143,110,140,20,printData.batchNo);
LODOP.ADD_PRINT_TEXT(154,110,140,20,printData.batchNo);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(116,8,124,25,"Location ID:");
LODOP.ADD_PRINT_TEXT(133,8,124,25,"Location ID:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(116,110,139,25,printData.locationId);
LODOP.ADD_PRINT_TEXT(133,110,139,25,printData.locationId);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(41,8,132,25,"Part:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(41,61,185,25,printData.partDesc);
LODOP.ADD_PRINT_TEXT(41,56,195,55,printData.partDesc);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(168,8,82,25,"Order No:");
LODOP.ADD_PRINT_TEXT(175,8,82,25,"Order No:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(168,110,141,25,printData.orderNo);
LODOP.ADD_PRINT_TEXT(175,110,141,25,printData.orderNo);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(66,8,81,25,"Q.T.Y:");
LODOP.ADD_PRINT_TEXT(91,8,81,25,"Q.T.Y:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(66,110,138,24,printData.qty+printData.umid);
LODOP.ADD_PRINT_TEXT(91,110,138,24,printData.qty+printData.umid);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(194,8,113,25,"Trans Date:");

20
src/views/modules/production/print_transNo_label.js

@ -13,22 +13,22 @@ export function printTransNoLabel(printList) {
LODOP.NewPage();
LODOP.SET_PRINT_PAGESIZE(0,1000,700,"");
LODOP.ADD_PRINT_BARCODE(43,244,208,140,"QRCode",printData.transNo);
LODOP.ADD_PRINT_TEXT(90,8,108,25,"Part:");
LODOP.ADD_PRINT_TEXT(82,8,108,25,"Part:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(90,65,175,25,printData.partDesc);
LODOP.ADD_PRINT_TEXT(82,55,195,56,printData.partDesc);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(143,8,77,24,"Job No:");
LODOP.ADD_PRINT_TEXT(155,8,77,24,"Job No:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(143,110,140,20,printData.seqNo);
LODOP.ADD_PRINT_TEXT(155,110,140,20,printData.seqNo);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(116,8,113,25,"Equip No:");
LODOP.ADD_PRINT_TEXT(134,8,113,22,"Equip No:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(116,110,139,25,printData.workCenterNo);
LODOP.ADD_PRINT_TEXT(134,110,139,25,printData.workCenterNo);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(41,8,98,25,"Trans No:");
@ -37,16 +37,16 @@ export function printTransNoLabel(printList) {
LODOP.ADD_PRINT_TEXT(41,110,136,25,printData.transNo);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(168,8,94,25,"Order No:");
LODOP.ADD_PRINT_TEXT(175,8,94,25,"Order No:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(168,110,141,25,printData.orderNo);
LODOP.ADD_PRINT_TEXT(175,110,141,25,printData.orderNo);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(66,8,121,25,"Trans Q.T.Y:");
LODOP.ADD_PRINT_TEXT(61,8,121,25,"Trans Q.T.Y:");
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(66,110,138,24,printData.transQty+printData.umid);
LODOP.ADD_PRINT_TEXT(61,110,138,24,printData.transQty+printData.umid);
LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
LODOP.SET_PRINT_STYLEA(0,"Bold",1);
LODOP.ADD_PRINT_TEXT(194,8,97,25,"Trans Date:");

7
src/views/modules/taskmanage/taskReport.vue

@ -231,6 +231,9 @@ export default {
})
},
tableRowClassName({row, rowIndex}) {
if (row.chatLastType == '有新消息') {
return 'newChat'
}
if (row.status == '未受理' && this.dayjs(this.dayjs()).diff(row.createdDate, 'minutes') / 60 >= 12) {
return 'finish'
}
@ -293,7 +296,9 @@ export default {
.mod-config .not-processing {
background-color: #ffff00;
}
.mod-config .newChat {
background-color: #00d9ff;
}
.mod-config .processing {
/ / background-color: #5f0e3f;
}

Loading…
Cancel
Save