feat(钢卷管理): 添加钢卷号前缀生成功能并优化样式
添加钢卷号前缀生成工具函数及测试用例 在合并、拆分、分条和录入页面使用自动生成的钢卷号前缀 调整EmployeeSelector组件默认触发器的样式 移除typing.vue中未使用的变更历史代码块 添加钢卷号长度校验规则
This commit is contained in:
@@ -225,6 +225,7 @@ import ActualWarehouseSelect from "@/components/KLPService/ActualWarehouseSelect
|
||||
import RawMaterialSelect from "@/components/KLPService/RawMaterialSelect";
|
||||
import ProductSelect from "@/components/KLPService/ProductSelect";
|
||||
import WarehouseSelect from "@/components/KLPService/WarehouseSelect";
|
||||
import { generateCoilNoPrefix } from "@/utils/coil/coilNo";
|
||||
|
||||
export default {
|
||||
name: 'SplitCoil',
|
||||
@@ -236,7 +237,9 @@ export default {
|
||||
},
|
||||
dicts: ['coil_quality_status'],
|
||||
data() {
|
||||
const currentCoilNoPrefix = generateCoilNoPrefix()
|
||||
return {
|
||||
currentCoilNoPrefix,
|
||||
// 母卷信息
|
||||
motherCoil: {
|
||||
coilId: null,
|
||||
@@ -259,7 +262,7 @@ export default {
|
||||
// 子卷列表
|
||||
splitList: [
|
||||
{
|
||||
currentCoilNo: '',
|
||||
currentCoilNo: currentCoilNoPrefix,
|
||||
team: '',
|
||||
materialType: null,
|
||||
itemType: null,
|
||||
@@ -439,7 +442,7 @@ export default {
|
||||
// 添加子卷
|
||||
addSplitItem() {
|
||||
this.splitList.push({
|
||||
currentCoilNo: '',
|
||||
currentCoilNo: this.currentCoilNoPrefix,
|
||||
team: '',
|
||||
materialType: null,
|
||||
itemType: null,
|
||||
|
||||
Reference in New Issue
Block a user