Browse Source

验证码 取消登录+杨玉福:去掉供应商发票申请采购价格审批人默认

hella_online_20240819
wangyufei 3 months ago
parent
commit
0c8be0a04b
  1. 4
      src/views/login/components/LoginForm.vue
  2. 40
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

4
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)

40
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('')

Loading…
Cancel
Save