diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue index 084b29a4e..661c0c0eb 100644 --- a/src/views/login/components/LoginForm.vue +++ b/src/views/login/components/LoginForm.vue @@ -174,7 +174,7 @@ // } // } function getCode() { - if(!needCode){ + if(!needCode.value){ return } getCodeImg().then(res => { @@ -234,7 +234,7 @@ return } let res = null - if(!needCode){ + if(!needCode.value){ res = await LoginApi.loginNoCode(loginData.loginForm) }else{ res = await LoginApi.login(loginData.loginForm) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index bca5b0524..8c363166d 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -702,16 +702,16 @@ const buttonTableClick = async (val, row) => { handleRepeal(row.id) } } -const procurementCreators = ref([]) -SupplierinvoiceRequestMainApi.queryUserInfoByRoleCode({ - roleCode: 'purchase', - pageSize: 1000, - pageNo: 1, - sort: '', - by: 'ASC' -}).then((res) => { -procurementCreators.value = res.list -}) +// const procurementCreators = ref([]) +// SupplierinvoiceRequestMainApi.queryUserInfoByRoleCode({ +// roleCode: 'purchase', +// pageSize: 1000, +// pageNo: 1, +// sort: '', +// by: 'ASC' +// }).then((res) => { +// procurementCreators.value = res.list +// }) /** 添加/修改操作 */ const formRef = ref() const openForm = async (type: string, row?: any) => { @@ -787,10 +787,10 @@ const openForm = async (type: string, row?: any) => { item.componentProps.disabled = false } - if (item.field == 'procurementCreator') { - item.componentProps.options = procurementCreators.value + // if (item.field == 'procurementCreator') { + // item.componentProps.options = procurementCreators.value - } + // } }) } if (row && (row.status == '3' || row.status == '7')) { @@ -813,13 +813,13 @@ const openForm = async (type: string, row?: any) => { } tableData.value = [] // 重置明细数据 formRef.value.open(type, row) - if(type=='create'){ - nextTick(() => { - formRef.value.formRef.setValues({ - procurementCreator:procurementCreators.value[0].id - }) - }) - } + // if(type=='create'){ + // nextTick(() => { + // formRef.value.formRef.setValues({ + // procurementCreator:procurementCreators.value[0].id + // }) + // }) + // } }) } const defaultSupplierCode = ref('')