Browse Source

采购标签

master
常熟吴彦祖 5 months ago
parent
commit
e886a01c44
  1. 1
      src/api/wms/wms.js
  2. 24
      src/assets/scss/global.scss
  3. 26
      src/views/modules/print/PoPartPrint.vue
  4. 592
      src/views/modules/print/rePrintPoPart.vue

1
src/api/wms/wms.js

@ -7,3 +7,4 @@ export const submitPoOrderRollNo = data => createAPI(`wmsPrint/submitPoOrderRoll
export const getPoPartLabelData = data => createAPI(`wmsPrint/getPoPartLabelData`,'POST',data)
export const deletePoPartLabelData = data => createAPI(`wmsPrint/deletePoPartLabelData`,'POST',data)
export const getKuCunLabelData = data => createAPI(`wmsPrint/getKuCunLabelData`,'POST',data)

24
src/assets/scss/global.scss

@ -462,3 +462,27 @@ a:hover{
.rred input {
color: red;
}
/* 修改 el-input 被禁用时的字体颜色 */
.el-input.is-disabled .el-input__inner {
color: #000000 !important; /* 你想设置的颜色,比如黑色 */
/* 也可以加其他样式 */
opacity: 1;
}
::v-deep .gradient-label .el-form-item__label {
/* 启用渐变色动画 */
animation: gradientColor 3s ease-in-out infinite;
font-weight: bold; /* 可选:加粗 */
}
/* 定义颜色变化动画 */
@keyframes gradientColor {
0% {
color: yellow;
}
50% {
color: #d94cf3;
}
100% {
color: green;
}
}

26
src/views/modules/print/PoPartPrint.vue

@ -185,7 +185,7 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="本次发行数量" >
<el-form-item label="本次发行数量" class="gradient-label">
<el-input v-model="addModelData.nowRollQty" disabled style="width: 100%"></el-input>
</el-form-item>
</el-col>
@ -961,6 +961,12 @@ export default {
this.$message.error('未选择标签!');
return false;
}
for (let i = 0; i <this.selectionDataList.length ; i++) {
if(this.selectionDataList[i].hardtagInFlag!=='未入库'){
this.$message.error('存在不是未入库状态的标签无法删除!');
return false;
}
}
deletePoPartLabelData(this.selectionDataList).then(({data}) => {
if (data && data.code === 0) {
this.getDetailTableList();
@ -1016,4 +1022,22 @@ export default {
color: #c0c4cc;
}
//
/deep/ .gradient-label .el-form-item__label {
background-image: linear-gradient(90deg, #e7f427, #d94cf3 , #0ffd00);
background-size: 300% 100%;
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
animation: gradient-text-flow 3s ease-in-out infinite;
}
@keyframes gradient-text-flow {
0% { background-position: 0% 50%; }
33% { background-position: 50% 50%; }
66% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
</style>

592
src/views/modules/print/rePrintPoPart.vue

@ -1,27 +1,65 @@
<template>
<div class="mod-config">
<el-form label-position="top" style="" :inline="true" :model="queryData"
@keyup.enter.native="getDataList()">
<el-form-item label="卷号">
<el-input v-model="queryData.rollno" clearable>
</el-input>
</el-form-item>
<el-form-item label="物料编码">
<el-input v-model="queryData.partno" clearable>
</el-input>
</el-form-item>
<el-form-item style="margin-top: 18px">
<el-button @click="getDataList()" type="primary">查询</el-button>
</el-form-item>
<el-form label-position="top" style="" :inline="true"
>
<el-row >
<el-form-item label="标签条码">
<el-input v-model="searchData.rollNo" clearable>
</el-input>
</el-form-item>
<el-form-item label="物料编码">
<el-input v-model="searchData.partNo" clearable>
</el-input>
</el-form-item>
<el-form-item label="物料名称">
<el-input v-model="searchData.partDescription" clearable>
</el-input>
</el-form-item>
<el-form-item label="仓库号">
<el-input v-model="searchData.warehouseId" clearable>
</el-input>
</el-form-item>
<el-form-item label="库位号">
<el-input v-model="searchData.locationId" clearable>
</el-input>
</el-form-item>
<el-form-item label="批次号">
<el-input v-model="searchData.batchNo" clearable>
</el-input>
</el-form-item>
<el-form-item label="批次号">
<el-select v-model="searchData.status" >
<el-option label="全部" value=""></el-option>
<el-option label="待检" value="待检"></el-option>
<el-option label="待入" value="待入"></el-option>
<el-option label="在库" value="在库"></el-option>
<el-option label="在途" value="在途"></el-option>
<el-option label="出库" value="出库"></el-option>
<el-option label="冻结" value="冻结"></el-option>
</el-select>
</el-form-item>
</el-row>
<el-row >
<el-form-item style="margin-top: 5px">
<el-button @click="getMainData()" type="primary">查询</el-button>
<el-button @click="getDataList()" type="primary">打印</el-button>
</el-form-item>
</el-row>
</el-form>
<el-table
:height="height"
:data="dataList"
border
v-loading="dataListLoading"
@selection-change="handleSelectionChange"
highlight-current-row
style="width: 100%;">
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable"
@ -39,16 +77,16 @@
</template>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="150"
label="操作">
<template slot-scope="scope">
<a type="text" size="small" @click="printRoll(scope.row)" herf="#">卷补打</a>
</template>
</el-table-column>
<!-- <el-table-column-->
<!-- fixed="right"-->
<!-- header-align="center"-->
<!-- align="center"-->
<!-- width="150"-->
<!-- label="操作">-->
<!-- <template slot-scope="scope">-->
<!-- <a type="text" size="small" @click="printRoll(scope.row)" herf="#">卷补打</a>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table>
@ -61,295 +99,285 @@
import {getCRollInfoList} from '@/api/crollinfo/crollinfo.js'
import {rollPrint} from '@/api/finishedProductWarehouse/rollPrint.js'
import {getInboundQcResultData, getKuCunLabelData} from '../../../api/wms/wms'
export default {
data() {
return {
height: 450,
queryData: {
day1: '',
day2: '',
rollno: '',
partno: ''
searchData: {
site:this.$store.state.user.site,
partNo:'',
partDescription:'',
warehouseId:'',
locationId:'',
rollNo:'',
status:'',
batchNo:'',
page: 1,
limit: 10,
},
pageIndex: 1,
pageSize: 50,
totalPage: 0,
columnList: [
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "rollno",
"columnLabel": "卷号",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 100,
"format": null,
"sortLv": 10,
"status": true,
"fixed": true,
"serialNumber": null,
"columnType": "string",
"align": null
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "partno",
"columnLabel": "物料编号",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 100,
"format": null,
"sortLv": 20,
"status": true,
"fixed": false,
"serialNumber": null,
"columnType": "string",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1BuNo',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "buNo",
headerAlign: "center",
align: "center",
columnLabel: "BU",
columnWidth: '70',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "partDescription",
"columnLabel": "物料描述",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 250,
"format": null,
"sortLv": 30,
"status": true,
"fixed": false,
"serialNumber": null,
"columnType": "string",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1RollNo',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "rollNo",
headerAlign: "center",
align: "center",
columnLabel: "标签条码",
columnWidth: '110',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "site",
"columnLabel": "工厂编号",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 80,
"format": null,
"sortLv": 40,
"status": true,
"fixed": false,
"serialNumber": null,
"columnType": "string",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1WarehouseId',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "warehouseId",
headerAlign: "center",
align: "left",
columnLabel: "仓库编码",
columnWidth: '100',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "rollqty",
"columnLabel": "卷数量",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 41,
"format": null,
"sortLv": 7,
"status": true,
"fixed": false,
"serialNumber": null,
"columnType": "number",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1LocationId',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "locationId",
headerAlign: "center",
align: "left",
columnLabel: "库位编码",
columnWidth: '100',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "status",
"columnLabel": "状态",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 80,
"format": null,
"sortLv": 50,
"status": true,
"fixed": false,
"serialNumber": null,
"columnType": "number",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1QtyOnHand',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "qtyOnHand",
headerAlign: "center",
align: "right",
columnLabel: "标签数量",
columnWidth: '100',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "sourcetype",
"columnLabel": "来源类型",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 80,
"format": null,
"sortLv": 60,
"status": true,
"fixed": false,
"serialNumber": null,
"columnType": "string",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1ParentRollNo',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "parentRollNo",
headerAlign: "center",
align: "left",
columnLabel: "上级标签号",
columnWidth: '100',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "warehouseid",
"columnLabel": "仓库编码",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 80,
"format": null,
"sortLv": 70,
"status": false,
"fixed": false,
"serialNumber": null,
"columnType": "string",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1PartNo',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "partNo",
headerAlign: "center",
align: "left",
columnLabel: "物料编码",
columnWidth: '120',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "supplierid",
"columnLabel": "供应商编号",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 80,
"format": null,
"sortLv": 80,
"status": false,
"fixed": false,
"serialNumber": null,
"columnType": "string",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1PartDescription',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "partDescription",
headerAlign: "center",
align: "left",
columnLabel: "物料名称",
columnWidth: '240',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "suppliername",
"columnLabel": "供应商名称",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 80,
"format": null,
"sortLv": 90,
"status": false,
"fixed": false,
"serialNumber": null,
"columnType": "string",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1PartDescEn',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "partDescEn",
headerAlign: "center",
align: "left",
columnLabel: "英文物料名称",
columnWidth: '200',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "createdby",
"columnLabel": "创建人",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 80,
"format": null,
"sortLv": 100,
"status": true,
"fixed": false,
"serialNumber": null,
"columnType": "string",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1Status',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "status",
headerAlign: "center",
align: "left",
columnLabel: "标签状态",
columnWidth: '80',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "rolldate",
"columnLabel": "卷创建时间",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 120,
"format": null,
"sortLv": 110,
"status": true,
"fixed": false,
"serialNumber": null,
"columnType": "date",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1LabelType',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "labelType",
headerAlign: "center",
align: "left",
columnLabel: "标签类型",
columnWidth: '80',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "manufacturedate",
"columnLabel": "制造日期",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 120,
"format": null,
"sortLv": 111,
"status": true,
"fixed": false,
"serialNumber": null,
"columnType": "string",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1OrderRef1',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "orderRef1",
headerAlign: "center",
align: "left",
columnLabel: "关联单号",
columnWidth: '100',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "createddate",
"columnLabel": "创建时间",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 150,
"format": null,
"sortLv": 112,
"status": true,
"fixed": false,
"serialNumber": null,
"columnType": "date",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1OrderRef2',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "orderRef2",
headerAlign: "center",
align: "right",
columnLabel: "关联单行号",
columnWidth: '80',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
"userId": this.$store.state.user.name,
"tableId": "105003002RP",
"tableName": "卷标签打印",
"columnProp": "remark",
"columnLabel": "备注",
"columnHidden": false,
"columnImage": false,
"columnSortable": false,
"columnWidth": 80,
"format": null,
"sortLv": 113,
"status": false,
"fixed": false,
"serialNumber": null,
"columnType": "string",
"align": null
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '680Table1ManufactureDate',
tableId: "680Table1",
tableName: "库存标签表",
columnProp: "manufactureDate",
headerAlign: "center",
align: "center",
columnLabel: "生产日期",
columnWidth: '120',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
],
dataList: [],
dataListLoading: false,
selectionDataList:[],
}
},
components: {
@ -378,7 +406,23 @@ export default {
}
})
},
handleSelectionChange(val){
this.selectionDataList = val
console.log(this.selectionDataList)
},
getMainData(){
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
getKuCunLabelData(this.searchData).then(({data}) => {
if (data.code === 0) {
this.dataList = data.page.list
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
}
this.dataListLoading = false
})
},
},
created() {

Loading…
Cancel
Save