From a90e40daf67e6728e2b542c61e4923034ddf7294 Mon Sep 17 00:00:00 2001
From: "YEJIAXING-PC\\lenovo" <591141169@qq.com>
Date: Fri, 7 Mar 2025 13:09:07 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=81=E8=B4=A7=E6=97=A5=E5=8E=86=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../supplierAddressModelDeli/index.vue | 26 ++++++++++++++-----
1 file changed, 20 insertions(+), 6 deletions(-)
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') {