Browse Source

Merge branch 'hella_online_20240911' into master_hella

hella_online_20240913
陈薪名 2 months ago
parent
commit
f8d21c41ee
  1. 2
      src/views/qms/inspectionJob/addForm.vue
  2. 2
      src/views/qms/inspectionRecord/addForm.vue
  3. 2
      src/views/qms/inspectionRecord/detail.vue
  4. 2
      src/views/qms/inspectionRecordFirst/addForm.vue
  5. 2
      src/views/qms/inspectionRecordFirst/detail.vue
  6. 3
      src/views/wms/agvManage/backflushDetailbQad/backflushDetailbQad.data.ts
  7. 28
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue
  8. 28
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue
  9. 14
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
  10. 28
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue
  11. 8
      src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue
  12. 30
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue
  13. 8
      src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue
  14. 28
      src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue
  15. 26
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue
  16. 30
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue
  17. 28
      src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue
  18. 28
      src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue
  19. 10
      src/views/wms/inventoryjobManage/scrap/scrapJobMain/scrapJobMain.data.ts
  20. 10
      src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts
  21. 5
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  22. 7
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts
  23. 2
      src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/index.vue

2
src/views/qms/inspectionJob/addForm.vue

@ -120,7 +120,7 @@
<el-col :span="12">
<el-form-item label="编码">
<el-input
v-model="item.inspectionJobCharacteristicsUpdateReqVO.number"
v-model="item.inspectionFeatureCode"
placeholder="根据系统生成"
:disabled="true"
/>

2
src/views/qms/inspectionRecord/addForm.vue

@ -119,7 +119,7 @@
<el-col :span="12">
<el-form-item label="编码">
<el-input
v-model="item.inspectionJobCharacteristicsUpdateReqVO.number"
v-model="item.inspectionFeaturesCode"
placeholder="根据系统生成"
:disabled="true"
/>

2
src/views/qms/inspectionRecord/detail.vue

@ -39,7 +39,7 @@
<el-col :span="12">
<el-form-item label="编码">
<el-input
v-model="item.inspectionRecordCharacteristicsRespVO.number"
v-model="item.inspectionFeaturesCode"
placeholder="根据系统生成"
:disabled="true"
/>

2
src/views/qms/inspectionRecordFirst/addForm.vue

@ -187,7 +187,7 @@
<el-col :span="12">
<el-form-item label="编码">
<el-input
v-model="item.inspectionJobCharacteristicsUpdateReqVO.number"
v-model="item.inspectionFeaturesCode"
placeholder="根据系统生成"
:disabled="true"
/>

2
src/views/qms/inspectionRecordFirst/detail.vue

@ -39,7 +39,7 @@
<el-col :span="12">
<el-form-item label="编码">
<el-input
v-model="item.inspectionRecordCharacteristicsRespVO.number"
v-model="item.inspectionFeaturesCode"
placeholder="根据系统生成"
:disabled="true"
/>

3
src/views/wms/agvManage/backflushDetailbQad/backflushDetailbQad.data.ts

@ -60,6 +60,9 @@ export const BackflushDetailbQad = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Select',
componentProps: {
options: [{
value: '',
label: '全部'
},{
value: 0,
label: '未执行'
},

28
src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/AddForm.vue

@ -25,12 +25,12 @@
</el-col>
<el-col :span="24">
<el-form-item label="名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入名称" clearable />
<el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="描述" prop="description">
<el-input v-model="formData.description" placeholder="请输入描述" clearable />
<el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -40,7 +40,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="状态" prop="status">
<el-switch v-model="formData.status" />
<el-switch v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
</el-row>
@ -288,17 +288,17 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) {
Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) //
]
} else {
// if (formData.value.priority == 0) {
// Butttondata.value = [
// defaultButtons.formSaveBtn({disabled:true}), //
// defaultButtons.formCloseBtn(null) //
// ]
// } else {
Butttondata.value = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
// }
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {
@ -332,10 +332,10 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
if(formData.value.priority == 0){
message.error('优先级不可以为0')
return
}
// if(formData.value.priority == 0){
// message.error('0')
// return
// }
let list = Object.values(formData.value.configuration)
let onlyOne = list.filter((item) => {
return item == 'TRUE'

28
src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue

@ -25,12 +25,12 @@
</el-col>
<el-col :span="24">
<el-form-item label="名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入名称" clearable />
<el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="描述" prop="description">
<el-input v-model="formData.description" placeholder="请输入描述" clearable />
<el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -40,7 +40,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="状态" prop="status">
<el-switch v-model="formData.status" />
<el-switch v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
</el-row>
@ -419,17 +419,17 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) {
Butttondata.value = [
defaultButtons.formSaveBtn({ disabled: true }), //
defaultButtons.formCloseBtn(null) //
]
} else {
// if (formData.value.priority == 0) {
// Butttondata.value = [
// defaultButtons.formSaveBtn({ disabled: true }), //
// defaultButtons.formCloseBtn(null) //
// ]
// } else {
Butttondata.value = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
// }
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {
@ -471,10 +471,10 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
if (formData.value.priority == 0) {
message.error('优先级不可以为0')
return
}
// if (formData.value.priority == 0) {
// message.error('0')
// return
// }
if (hasSameData( formData.value.configuration.ManagementPrecision)) {
message.error('规则配置数据重复,请重新填写')
return;

14
src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue

@ -26,12 +26,12 @@
</el-col>
<el-col :span="24">
<el-form-item label="名称" prop="name">
<el-input key="name" v-model="formData.name" placeholder="请输入名称" clearable />
<el-input key="name" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="描述" prop="description">
<el-input key="description" v-model="formData.description" placeholder="请输入描述" clearable />
<el-input key="description" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -41,7 +41,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="状态" prop="status">
<el-switch key="status" v-model="formData.status" />
<el-switch key="status" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
</el-row>
@ -1227,10 +1227,10 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
if (formData.value.priority == 0) {
message.error('优先级不可以为0')
return
}
// if (formData.value.priority == 0) {
// message.error('0')
// return
// }
//
formLoading.value = true
try {

28
src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/AddForm.vue

@ -26,12 +26,12 @@
</el-col>
<el-col :span="24">
<el-form-item label="名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入名称" clearable />
<el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="描述" prop="description">
<el-input v-model="formData.description" placeholder="请输入描述" clearable />
<el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -41,7 +41,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="状态" prop="status">
<el-switch v-model="formData.status" />
<el-switch v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
</el-row>
@ -427,17 +427,17 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) {
Butttondata.value = [
defaultButtons.formSaveBtn({ disabled: true }), //
defaultButtons.formCloseBtn(null) //
]
} else {
// if (formData.value.priority == 0) {
// Butttondata.value = [
// defaultButtons.formSaveBtn({ disabled: true }), //
// defaultButtons.formCloseBtn(null) //
// ]
// } else {
Butttondata.value = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
// }
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
}
@ -477,10 +477,10 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
if (formData.value.priority == 0) {
message.error('优先级不可以为0')
return
}
// if (formData.value.priority == 0) {
// message.error('0')
// return
// }
if (hasSameData(formData.value.configuration.AqlList)) {
message.error('抽检规则数据范围重叠,请重新填写')
return

8
src/views/wms/basicDataManage/strategySetting/strategy/manageAccuracyStrategy/AddForm.vue

@ -566,10 +566,10 @@ const submitForm = async () => {
const valid = await formRef.value.validate()
if (!valid) return
if (formData.value.priority == 0) {
message.error('优先级不可以为0')
return
}
// if (formData.value.priority == 0) {
// message.error('0')
// return
// }
//
formLoading.value = true
try {

30
src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue

@ -26,12 +26,12 @@
</el-col>
<el-col :span="24">
<el-form-item label="名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入名称" clearable />
<el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="描述" prop="description">
<el-input v-model="formData.description" placeholder="请输入描述" clearable />
<el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -41,7 +41,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="状态" prop="status">
<el-switch v-model="formData.status" />
<el-switch v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
</el-row>
@ -323,18 +323,18 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) {
Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) //
]
console.log(Butttondata)
} else {
// if (formData.value.priority == 0) {
// Butttondata.value = [
// defaultButtons.formSaveBtn({disabled:true}), //
// defaultButtons.formCloseBtn(null) //
// ]
// console.log(Butttondata)
// } else {
Butttondata.value = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
// }
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {
@ -368,10 +368,10 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
if(formData.value.priority == 0){
message.error('优先级不可以为0')
return
}
// if(formData.value.priority == 0){
// message.error('0')
// return
// }
let list = Object.values(formData.value.configuration)
let onlyOne = list.filter((item) => {
return item == 'TRUE'

8
src/views/wms/basicDataManage/strategySetting/strategy/repairMaterialStrategy/AddForm.vue

@ -508,10 +508,10 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
if (formData.value.priority == 0) {
message.error('优先级不可以为0')
return
}
// if (formData.value.priority == 0) {
// message.error('0')
// return
// }
//
formLoading.value = true
try {

28
src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/AddForm.vue

@ -25,12 +25,12 @@
</el-col>
<el-col :span="24">
<el-form-item label="名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入名称" clearable />
<el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="描述" prop="description">
<el-input v-model="formData.description" placeholder="请输入描述" clearable />
<el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -40,7 +40,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="状态" prop="status">
<el-switch v-model="formData.status" />
<el-switch v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
</el-row>
@ -465,17 +465,17 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) {
Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) //
]
} else {
// if (formData.value.priority == 0) {
// Butttondata.value = [
// defaultButtons.formSaveBtn({disabled:true}), //
// defaultButtons.formCloseBtn(null) //
// ]
// } else {
Butttondata.value = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
// }
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {
@ -517,10 +517,10 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
if(formData.value.priority == 0){
message.error('优先级不可以为0')
return
}
// if(formData.value.priority == 0){
// message.error('0')
// return
// }
//
formLoading.value = true
try {

26
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/AddForm.vue

@ -26,12 +26,12 @@
</el-col>
<el-col :span="24">
<el-form-item :label="t('ts.名称').replace('ts.','')" prop="name">
<el-input key="name" v-model="formData.name" :placeholder="t('ts.请输入名称').replace('ts.','')" clearable />
<el-input key="name" v-model="formData.name" :placeholder="t('ts.请输入名称').replace('ts.','')" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item :label="t('ts.描述').replace('ts.','')" prop="description">
<el-input key="description" v-model="formData.description" :placeholder="t('ts.请输入描述').replace('ts.','')" clearable />
<el-input key="description" v-model="formData.description" :placeholder="t('ts.请输入描述').replace('ts.','')" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -459,17 +459,17 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) {
Butttondata.value = [
defaultButtons.formSaveBtn({ disabled: true }), //
defaultButtons.formCloseBtn(null) //
]
} else {
// if (formData.value.priority == 0) {
// Butttondata.value = [
// defaultButtons.formSaveBtn({ disabled: true }), //
// defaultButtons.formCloseBtn(null) //
// ]
// } else {
Butttondata.value = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
// }
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {
@ -504,10 +504,10 @@ const submitForm = async () => {
const valid = await formRef.value.validate()
if (!valid) return
if (formData.value.priority == 0) {
message.error('优先级不可以为0')
return
}
// if (formData.value.priority == 0) {
// message.error('0')
// return
// }
//
formLoading.value = true
try {

30
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

@ -25,12 +25,12 @@
</el-col>
<el-col :span="24">
<el-form-item label="名称" prop="name">
<el-input key="name" v-model="formData.name" placeholder="请输入名称" clearable />
<el-input key="name" v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="描述" prop="description">
<el-input key="description" v-model="formData.description" placeholder="请输入描述" clearable />
<el-input key="description" v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -40,7 +40,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="状态" prop="status">
<el-switch key="status" v-model="formData.status" />
<el-switch key="status" v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
</el-row>
@ -1093,18 +1093,18 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) {
Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) //
]
console.log(Butttondata)
} else {
// if (formData.value.priority == 0) {
// Butttondata.value = [
// defaultButtons.formSaveBtn({disabled:true}), //
// defaultButtons.formCloseBtn(null) //
// ]
// console.log(Butttondata)
// } else {
Butttondata.value = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
// }
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {
@ -1195,10 +1195,10 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
if(formData.value.priority == 0){
message.error('优先级不可以为0')
return
}
// if(formData.value.priority == 0){
// message.error('0')
// return
// }
//
formLoading.value = true
try {

28
src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/AddForm.vue

@ -25,12 +25,12 @@
</el-col>
<el-col :span="24">
<el-form-item label="名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入名称" clearable />
<el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="描述" prop="description">
<el-input v-model="formData.description" placeholder="请输入描述" clearable />
<el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -40,7 +40,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="状态" prop="status">
<el-switch v-model="formData.status" />
<el-switch v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
</el-row>
@ -329,17 +329,17 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) {
Butttondata.value = [
defaultButtons.formSaveBtn({ disabled: true }), //
defaultButtons.formCloseBtn(null) //
]
} else {
// if (formData.value.priority == 0) {
// Butttondata.value = [
// defaultButtons.formSaveBtn({ disabled: true }), //
// defaultButtons.formCloseBtn(null) //
// ]
// } else {
Butttondata.value = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
// }
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {
@ -370,10 +370,10 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
if (formData.value.priority == 0) {
message.error('优先级不可以为0')
return
}
// if (formData.value.priority == 0) {
// message.error('0')
// return
// }
//
formLoading.value = true
try {

28
src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/AddForm.vue

@ -25,12 +25,12 @@
</el-col>
<el-col :span="24">
<el-form-item label="名称" prop="name">
<el-input v-model="formData.name" placeholder="请输入名称" clearable />
<el-input v-model="formData.name" placeholder="请输入名称" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="描述" prop="description">
<el-input v-model="formData.description" placeholder="请输入描述" clearable />
<el-input v-model="formData.description" placeholder="请输入描述" clearable :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
<el-col :span="12">
@ -40,7 +40,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="状态" prop="status">
<el-switch v-model="formData.status" />
<el-switch v-model="formData.status" :disabled="formData.name=='默认规则'&&formType=='update'"/>
</el-form-item>
</el-col>
</el-row>
@ -418,17 +418,17 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) {
Butttondata.value = [
defaultButtons.formSaveBtn({disabled:true}), //
defaultButtons.formCloseBtn(null) //
]
} else {
// if (formData.value.priority == 0) {
// Butttondata.value = [
// defaultButtons.formSaveBtn({disabled:true}), //
// defaultButtons.formCloseBtn(null) //
// ]
// } else {
Butttondata.value = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
// }
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {
@ -470,10 +470,10 @@ const submitForm = async () => {
if (!formRef) return
const valid = await formRef.value.validate()
if (!valid) return
if(formData.value.priority == 0){
message.error('优先级不可以为0')
return
}
// if(formData.value.priority == 0){
// message.error('0')
// return
// }
//
formLoading.value = true
try {

10
src/views/wms/inventoryjobManage/scrap/scrapJobMain/scrapJobMain.data.ts

@ -78,6 +78,9 @@ export const ScrapJobMain = useCrudSchemas(
disabled: true
}
},
isForm:false,
isTable:false,
isTableForm:false,
},
{
label: '领用原因代码',
@ -331,11 +334,14 @@ export const ScrapJobMain = useCrudSchemas(
field: 'fromAreaTypes',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
}
},
isTable: false,
isSearch: false,
isForm: false,
isTableForm: false,
},
{
label: '到库区类型范围',

10
src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts

@ -87,6 +87,9 @@ export const ScrapRecordMain = useCrudSchemas(
disabled: true
}
},
isForm:false,
isTable:false,
isTableForm:false,
},
{
label: '领用原因代码',
@ -334,11 +337,14 @@ export const ScrapRecordMain = useCrudSchemas(
field: 'fromAreaTypes',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
}
},
isTable: false,
isSearch: false,
isForm: false,
isTableForm: false,
},
{
label: '从库区代码范围',

5
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -653,6 +653,11 @@ const submitForm = async (formType, submitData) => {
data.id = data.masterId
}
data.subList = tableData.value //
data.subList.forEach(item=>{
item.qty = Number(item.qty).toFixed(2)
item.singlePrice = Number(item.singlePrice).toFixed(2)
item.amount = Number(item.amount).toFixed(2)
})
try {
if (formType === 'create') {
console.log('【报废出库子列表】', data.subList)

7
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

@ -155,6 +155,7 @@ export const ScrapRequestMain = useCrudSchemas(
},
isForm:false,
isTable:false,
isTableForm:false,
form: {
componentProps: {
disabled: true
@ -586,11 +587,11 @@ export const ScrapRequestMain = useCrudSchemas(
field: 'fromAreaTypes',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
isTable: false,
isSearch: false,
isForm: false,
isTableForm: false,
@ -1079,14 +1080,14 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: {
disabled: true,
min: 0,
precision: 6
precision: 2,
},
},
tableForm: {
disabled: true,
type: 'InputNumber',
min: 0,
precision: 6
precision: 2,
}
},
{

2
src/views/wms/productionManage/productreceiptAssemble/rawMaterialConsumptionInfo/index.vue

@ -77,7 +77,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //

Loading…
Cancel
Save