diff --git a/src/api/eam/repairExperience/index.ts b/src/api/eam/repairExperience/index.ts
index 5433a47c8..b0fe57f6b 100644
--- a/src/api/eam/repairExperience/index.ts
+++ b/src/api/eam/repairExperience/index.ts
@@ -4,7 +4,7 @@ export interface RepairExperienceVO {
id: number
name: string
content: string
- repairNumber: string
+ repairRecordNumber: string
}
// 查询维修经验记录列表
diff --git a/src/components/TableForm/src/TableForm.vue b/src/components/TableForm/src/TableForm.vue
index c72d90387..778cdba15 100644
--- a/src/components/TableForm/src/TableForm.vue
+++ b/src/components/TableForm/src/TableForm.vue
@@ -66,7 +66,7 @@
clearable
:type="headerItem?.tableForm?.inputType"
:placeholder="t(`ts.${headerItem?.tableForm?.placeholder || '请输入' + headerItem.label}`).replace('ts.','')"
- :disabled="disabledInput(headerItem)"
+ :disabled="disabledInput(headerItem,row)"
style="flex:1"
@blur="inputStringBlur(headerItem, row[headerItem.field], row,index)"
/>
@@ -576,7 +576,7 @@ const batchAdd = ()=>{
console.log(field)
emit('batchAdd',keyWord.value)
}
-const disabledInput=(headerItem)=>{
+const disabledInput=(headerItem,row)=>{
if(headerItem.tableForm?.isInpuFocusShow){
if(headerItem.tableForm?.enterSearch){
return false
@@ -584,9 +584,10 @@ const disabledInput=(headerItem)=>{
return true
}
}else{
- return headerItem?.tableForm?.disabled || true
+ return headerItem?.tableForm?.disabled || Boolean(row.disabled) || Boolean(row['disabled_' + headerItem.field]) ||false
}
}
+
// setup 语法糖 抛出方法
defineExpose({
TableBaseComponents_Ref,
diff --git a/src/views/eam/equipmentMaintenanceRecordMain/index.vue b/src/views/eam/equipmentMaintenanceRecordMain/index.vue
index 228b3f7e9..1495f5c68 100644
--- a/src/views/eam/equipmentMaintenanceRecordMain/index.vue
+++ b/src/views/eam/equipmentMaintenanceRecordMain/index.vue
@@ -32,8 +32,8 @@
{{ row.recordNo }}
-
-
+
+
@@ -154,13 +154,24 @@ const buttonBaseClick = (val, item) => {
}
}
-// 列表-操作按钮
-const butttondata = [
- //defaultButtons.mainListEditBtn({hasPermi:'eam:equipmentMaintenanceRecordMain:update'}), // 编辑
- //defaultButtons.mainListDeleteBtn({hasPermi:'eam:equipmentMaintenanceRecordMain:delete'}), // 删除
- defaultButtons.maintainExperienceBtn({ hasPermi: 'eam:equipmentMaintenanceRecordMain:maintainExperience' }) // 生成保养经验
-]
-
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>-1&&findIndex<$index){
+ return []
+ }
+ return [
+ defaultButtons.repairExperienceBtn({ hide:isShowMainButton(row,['0']),hasPermi: 'eam:equipmentMaintenanceRecordMain:maintainExperience' }) // 生成维修经验
+ ]
+}
+// 根据状态返回该按钮是否显示
+const isShowMainButton = (row,val) => {
+ console.log(row.isExperience)
+ if (val.indexOf(row.isExperience) > -1) {
+ return false
+ } else {
+ return true
+ }
+}
// 列表-操作按钮事件
const buttonTableClick = async (val, row) => {
if (val == 'edit') { // 编辑
diff --git a/src/views/eam/equipmentRepairRecordMain/index.vue b/src/views/eam/equipmentRepairRecordMain/index.vue
index 61a18bc9b..811f65fea 100644
--- a/src/views/eam/equipmentRepairRecordMain/index.vue
+++ b/src/views/eam/equipmentRepairRecordMain/index.vue
@@ -36,8 +36,8 @@
{{ row.number }}
-
-
+
+
@@ -176,12 +176,26 @@ const buttonBaseClick = (val, item) => {
}
// 列表-操作按钮
-const butttondata = [
- // defaultButtons.mainListEditBtn({hasPermi:'eam:equipmentRepairRecordMain:update'}), // 编辑
- // defaultButtons.mainListDeleteBtn({hasPermi:'eam:equipmentRepairRecordMain:delete'}), // 删除
- defaultButtons.repairExperienceBtn({ hasPermi: 'eam:equipmentRepairRecordMain:repairExperience' }) // 生成维修经验
-]
+const butttondata = (row,$index) => {
+ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
+ if(findIndex>-1&&findIndex<$index){
+ return []
+ }
+ return [
+ defaultButtons.repairExperienceBtn({ hide:isShowMainButton(row,['0']),hasPermi: 'eam:equipmentRepairRecordMain:repairExperience' }) // 生成维修经验
+ ]
+}
+
+// 根据状态返回该按钮是否显示
+const isShowMainButton = (row,val) => {
+ console.log(row.isExperience)
+ if (val.indexOf(row.isExperience) > -1) {
+ return false
+ } else {
+ return true
+ }
+}
// 列表-操作按钮事件
const buttonTableClick = async (val, row) => {
if (val == 'edit') {
diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
index 5bd2fd65c..753350d31 100644
--- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
+++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
@@ -100,6 +100,7 @@ export const DeliverPlanMain = useCrudSchemas(reactive([
},
isTableForm: false,
isForm: true,
+ isSearch: true,
// tableForm:{
// isInpuFocusShow: true, // 开启查询弹窗
// searchListPlaceholder: '请选择客户月台代码',
@@ -537,51 +538,51 @@ export const DeliverPlanDetail = useCrudSchemas(reactive([
}
}
},
- {
- label: '客户月台',
- field: 'customerDockCode',
- sort: 'custom',
- table: {
- width: 150
- },
- hiddenInMain: true,
- isTableForm: false,
- tableForm:{
- isInpuFocusShow: true, // 开启查询弹窗
- searchListPlaceholder: '请选择客户月台代码',
- searchField: 'code',
- searchTitle: '客户月台基础信息',
- searchAllSchemas: Customerdock.allSchemas,
- searchPage: CustomerDockApi.pageCustomerCodeToCustomerDock,
- searchCondition: [{
- key: 'available',
- value: 'TRUE',
- },{
- key: 'customerCode',
- value: 'customerCode',
- isMainValue: true
- }]
- },
- form: {
- componentProps: {
- isSearchList: true,
- searchListPlaceholder: '请选择客户月台代码',
- searchField: 'code',
- searchTitle: '客户月台基础信息',
- searchAllSchemas: Customerdock.allSchemas,
- searchPage: CustomerDockApi.pageCustomerCodeToCustomerDock,
- searchCondition: [{
- key: 'available',
- value: 'TRUE',
- isMainValue: false
- },{
- key: 'customerCode',
- value: 'customerCode',
- isMainValue: true
- }]
- }
- },
- },
+ // {
+ // label: '客户月台',
+ // field: 'customerDockCode',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // hiddenInMain: true,
+ // isTableForm: false,
+ // tableForm:{
+ // isInpuFocusShow: true, // 开启查询弹窗
+ // searchListPlaceholder: '请选择客户月台代码',
+ // searchField: 'code',
+ // searchTitle: '客户月台基础信息',
+ // searchAllSchemas: Customerdock.allSchemas,
+ // searchPage: CustomerDockApi.pageCustomerCodeToCustomerDock,
+ // searchCondition: [{
+ // key: 'available',
+ // value: 'TRUE',
+ // },{
+ // key: 'customerCode',
+ // value: 'customerCode',
+ // isMainValue: true
+ // }]
+ // },
+ // form: {
+ // componentProps: {
+ // isSearchList: true,
+ // searchListPlaceholder: '请选择客户月台代码',
+ // searchField: 'code',
+ // searchTitle: '客户月台基础信息',
+ // searchAllSchemas: Customerdock.allSchemas,
+ // searchPage: CustomerDockApi.pageCustomerCodeToCustomerDock,
+ // searchCondition: [{
+ // key: 'available',
+ // value: 'TRUE',
+ // isMainValue: false
+ // },{
+ // key: 'customerCode',
+ // value: 'customerCode',
+ // isMainValue: true
+ // }]
+ // }
+ // },
+ // },
{
label: '物料代码',
field: 'itemCode',
diff --git a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts
index e62e7f75e..7cd4f747d 100644
--- a/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts
+++ b/src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts
@@ -611,7 +611,7 @@ export const StockupDetailRequest = useCrudSchemas(reactive([
searchField: 'code',
searchTitle: '物料基础信息',
searchAllSchemas: Itembasic.allSchemas,
- searchPage: ItemBasicApi.getItembasicPage,
+ searchPage: ItemBasicApi.selectItembasicPageToFgAndSemibasicPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
@@ -625,7 +625,7 @@ export const StockupDetailRequest = useCrudSchemas(reactive([
searchField: 'itemCode',
searchTitle: '物料基础信息',
searchAllSchemas: Itembasic.allSchemas,
- searchPage: ItemBasicApi.getItembasicPage,
+ searchPage: ItemBasicApi.selectItembasicPageToFgAndSemibasicPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
diff --git a/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts b/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
index abb9a9833..1994190d0 100644
--- a/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
+++ b/src/views/wms/productionManage/productionplan/productionMain/productionMain.data.ts
@@ -118,15 +118,7 @@ export const ProductionMain = useCrudSchemas(reactive([
}
}
},
- {
- label: '机台',
- field: 'abc',
- sort: 'custom',
- table: {
- width: 150
- },
- isForm: true
- },
+
{
label: '生产线',
field: 'productionLine',
@@ -308,15 +300,15 @@ export const ProductionMain = useCrudSchemas(reactive([
isForm: false,
},
- {
- label: '备注',
- field: 'remark',
- sort: 'custom',
- table: {
- width: 150
- },
- isTable: false,
- },
+ // {
+ // label: '备注',
+ // field: 'remark',
+ // sort: 'custom',
+ // table: {
+ // width: 150
+ // },
+ // isTable: false,
+ // },
{
label: '是否可用',
field: 'available',
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
index c1de69762..905708139 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
@@ -201,6 +201,7 @@ const getSearchTableData = async (number,formField,searchField)=>{
newRow['itemCode'] = row['itemCode']
newRow['poNumber'] = row['number']
newRow['poLine'] = row['lineNumber']
+ newRow['planQty'] = 0 // 默认值
if (formField == 'poLine') {
newRow['itemCode'] = row['itemCode']
newRow['uom'] = row['uom']
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
index 33d42c12c..b4938d19e 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
@@ -596,13 +596,11 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([
},
tableForm: {
type: 'InputNumber',
- min: 1,
precision: 6
},
form: {
component: 'InputNumber',
componentProps: {
- min: 1,
precision: 6
}
}
@@ -716,7 +714,15 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([
isTableForm: false,
}
]))
-
+const validatePlanQty = (rule, value, callback) => {
+ console.log('validatePlanQty',value)
+ const numReg = /^[\d]+$/
+ if (numReg.test(value)&&value>0) {
+ callback()
+ } else {
+ callback(new Error('计划数量不能为0'))
+ }
+}
//表单校验
export const PurchasePlanDetailRules = reactive({
// available: [
@@ -729,7 +735,8 @@ export const PurchasePlanDetailRules = reactive({
{ required: true, message: '请选择计量单位', trigger: 'change' }
],
planQty: [
- { required: true, message: '请输入计划数量', trigger: 'blur' }
+ { required: true, message: '请输入计划数量', trigger: 'blur' },
+ { validator:validatePlanQty, message: '计划数量不能为0', trigger: 'blur'}
],
remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }