Browse Source

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

hella_online_20240819
王宇飞 8 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() { function getCode() {
if(!needCode){ if(!needCode.value){
return return
} }
getCodeImg().then(res => { getCodeImg().then(res => {
@ -234,7 +234,7 @@
return return
} }
let res = null let res = null
if(!needCode){ if(!needCode.value){
res = await LoginApi.loginNoCode(loginData.loginForm) res = await LoginApi.loginNoCode(loginData.loginForm)
}else{ }else{
res = await LoginApi.login(loginData.loginForm) 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) handleRepeal(row.id)
} }
} }
const procurementCreators = ref([]) // const procurementCreators = ref([])
SupplierinvoiceRequestMainApi.queryUserInfoByRoleCode({ // SupplierinvoiceRequestMainApi.queryUserInfoByRoleCode({
roleCode: 'purchase', // roleCode: 'purchase',
pageSize: 1000, // pageSize: 1000,
pageNo: 1, // pageNo: 1,
sort: '', // sort: '',
by: 'ASC' // by: 'ASC'
}).then((res) => { // }).then((res) => {
procurementCreators.value = res.list // procurementCreators.value = res.list
}) // })
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm = async (type: string, row?: any) => { const openForm = async (type: string, row?: any) => {
@ -787,10 +787,10 @@ const openForm = async (type: string, row?: any) => {
item.componentProps.disabled = false item.componentProps.disabled = false
} }
if (item.field == 'procurementCreator') { // if (item.field == 'procurementCreator') {
item.componentProps.options = procurementCreators.value // item.componentProps.options = procurementCreators.value
} // }
}) })
} }
if (row && (row.status == '3' || row.status == '7')) { if (row && (row.status == '3' || row.status == '7')) {
@ -813,13 +813,13 @@ const openForm = async (type: string, row?: any) => {
} }
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
if(type=='create'){ // if(type=='create'){
nextTick(() => { // nextTick(() => {
formRef.value.formRef.setValues({ // formRef.value.formRef.setValues({
procurementCreator:procurementCreators.value[0].id // procurementCreator:procurementCreators.value[0].id
}) // })
}) // })
} // }
}) })
} }
const defaultSupplierCode = ref('') const defaultSupplierCode = ref('')

Loading…
Cancel
Save