diff --git a/src/views/login/components/LoginForm.vue b/src/views/login/components/LoginForm.vue index 7751297e1..661c0c0eb 100644 --- a/src/views/login/components/LoginForm.vue +++ b/src/views/login/components/LoginForm.vue @@ -33,7 +33,7 @@ :prefix-icon="iconLock" show-password type="password" @keyup.enter="getCode()" style="height: 42px;" /> - +
{ @@ -234,7 +234,7 @@ return } let res = null - if(needCode.value=='false'){ + if(!needCode.value){ res = await LoginApi.loginNoCode(loginData.loginForm) }else{ res = await LoginApi.login(loginData.loginForm) diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/purchasereturnJobMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/purchasereturnJobMain.data.ts index e401c8840..6eafe4f71 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/purchasereturnJobMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/purchasereturnJobMain.data.ts @@ -935,6 +935,34 @@ export const PurchasereturnJobDetail = useCrudSchemas(reactive([ disabled:false } }, + { + label: '退货原因', + field: 'reasonType', + dictType: DICT_TYPE.RETURN_REASON_TYPE, + dictClass: 'string', + // isSearch: true, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + type: 'Select', + }, + form: { + componentProps:{ + disabled:true + } + } + }, + { + label: '退货原因描述', + field: 'reason', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '计量单位', field: 'uom', diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts index 4934ee993..cc3db763a 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRecordMain/purchasereturnRecordMain.data.ts @@ -744,20 +744,7 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive( hiddenInMain: true, isSearch: false }, - { - label: '原因', - field: 'reason', - dictType: DICT_TYPE.PURCHASE_RETURN_REASON, - dictClass: 'string', - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - sortTableDefault: 1013, - hiddenInMain: true - }, - + { label: '物料代码', field: 'itemCode', @@ -887,7 +874,35 @@ export const PurchasereturnRecordDetail = useCrudSchemas(reactive( // }, // }, { - label: '原因', + label: '退货原因', + field: 'reasonType', + dictType: DICT_TYPE.RETURN_REASON_TYPE, + dictClass: 'string', + // isSearch: true, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + type: 'Select', + }, + form: { + componentProps:{ + disabled:true + } + } + }, + { + label: '退货原因描述', + field: 'reason', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '备注', field: 'remark', sort: 'custom', table: { diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMain.data.ts index ba8735894..3f63b07f0 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMain.data.ts @@ -1236,6 +1236,34 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive precision: 6 } }, + { + label: '退货原因', + field: 'reasonType', + dictType: DICT_TYPE.RETURN_REASON_TYPE, + dictClass: 'string', + // isSearch: true, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + type: 'Select', + }, + form: { + componentProps:{ + disabled:true + } + } + }, + { + label: '退货原因描述', + field: 'reason', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '库存状态', field: 'inventoryStatus', 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('')