diff --git a/src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/index.vue b/src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/index.vue
index 70c6abc41..01348db24 100644
--- a/src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/index.vue
+++ b/src/views/wms/basicDataManage/supplierManage/supplierAddressModelDeli/index.vue
@@ -33,8 +33,8 @@
- 白班
- 夜班
+ 白班
+ 夜班
@@ -177,12 +177,26 @@ const openForm = (type: string, row?: any) => {
if (type == 'update') {
row.shift = []
row.modelShow = row.model?.split(',')
- if (row.isDay == 1) {
+ if (row.isDay == 'TRUE') {
row.shift.push('day')
}
- if (row.isNight == 1) {
+ if (row.isNight == 'TRUE') {
row.shift.push('night')
}
+ SupplierAddressModelDeli.allSchemas.formSchema.forEach((item) => {
+ if(item.field == 'supplierCode'){
+ item.componentProps.disabled = true
+ }
+ if(item.field == 'supplierName'){
+ item.componentProps.disabled = true
+ }
+ if(item.field == 'supplierAddress'){
+ item.componentProps.disabled = true
+ }
+ if(item.field == 'modelShow'){
+ item.componentProps.disabled = true
+ }
+ })
}
console.log(row)
basicFormRef.value.open(type, row)
@@ -191,8 +205,8 @@ const openForm = (type: string, row?: any) => {
// form表单提交
const formsSuccess = async (formType, dataParams) => {
const data = {...dataParams}
- data.isDay = data.shift.some(item=>item === 'day') ? 1 :0
- data.isNight = data.shift.some(item => item === 'night') ? 1 :0
+ data.isDay = data.shift.some(item=>item === 'day') ? 'TRUE' :'FALSE'
+ data.isNight = data.shift.some(item => item === 'night') ? 'TRUE' :'FALSE'
data.model = data.modelShow.join(',')
delete data.shift
if (formType === 'create') {