Browse Source

调拨出库 原因修改

master_hella_20240701
陈薪名 9 months ago
parent
commit
d50b556390
  1. 11
      src/components/Detail/src/Detail.vue
  2. 17
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue
  3. 8
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts

11
src/components/Detail/src/Detail.vue

@ -135,6 +135,7 @@
:formTypeDetail="formTypeDetail"
:countPlanAllList="countPlanAllList"
@onChange="detailBasicFormOnChange"
@onBlur="onBlur"
/>
</div>
</template>
@ -583,6 +584,7 @@ const emit = defineEmits([
'detailOpenForm',
'tableFormButton',
'openImage',
'onBlur',
'detailBasicFormOnChange'
])
/** 删除按钮操作 */
@ -642,6 +644,15 @@ const openImage=(item)=>{
const detailBasicFormOnChange = (field, cur) => {
emit('detailBasicFormOnChange', field, cur)
}
/**
* 监听失焦事件
* @param field 当前操作字段
* @param e
*/
const onBlur = (field, e) => {
emit('onBlur', field, e)
}
//
watch(
() => props.apiPage,

17
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue

@ -54,7 +54,7 @@
@handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
@tableFormSelectOnBlur="onBlur"
@tableFormSelectOnBlur="tableFormSelectOnBlur"
/>
<!-- 详情 -->
@ -71,6 +71,7 @@
:Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail"
:detailValidate="detailValidate"
@onBlur="onBlur"
/>
<!-- 导入 -->
@ -315,10 +316,20 @@ const handleHandle = async (id: number) => {
} catch {}
}
const onBlur = (field, val, row, index) => {
const onBlur = (field, e) => {
console.log('字段', field)
console.log('失焦后值', e.target.value)
if (field == 'reason') {
detailRef.value.formRef.formRef.formModel[field] = e.target.value
}
}
const tableFormSelectOnBlur = (field, val, row, index) => {
// console.log('', field)
// console.log('', val.target.value)
tableData.value[index][field] = val.target.value
if (field == 'reason') {
tableData.value[index][field] = val.target.value
}
}
/** 添加/修改操作 */

8
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/transferissueRequestMain.data.ts

@ -788,9 +788,17 @@ export const TransferissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
sort: 'custom',
dictType: DICT_TYPE.TRANSFER_REASON,
dictClass: 'string',
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return cellValue
},
table: {
width: 150
},
form: {
componentProps: {
filterable: true
}
},
tableForm: {
type: 'Select',
filterable: true

Loading…
Cancel
Save