Browse Source

YT-2717:纳入受领书导入添加loading

intex_online20250528
songguoqiang 5 days ago
parent
commit
a1b10ad97b
  1. 11
      src/components/ImportForm/src/ImportFormStep.vue
  2. 52
      src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts

11
src/components/ImportForm/src/ImportFormStep.vue

@ -56,7 +56,7 @@
<div class="warning-message" v-if="active == 1 && !error"> <div class="warning-message" v-if="active == 1 && !error">
</div> </div>
<div class="table-container"> <div class="table-container" v-loading="isShowLoading">
<Table v-clientTable <Table v-clientTable
:columns="Array.isArray(currentColumns) ? currentColumns : []" :columns="Array.isArray(currentColumns) ? currentColumns : []"
:data="tableObject.tableList" :data="tableObject.tableList"
@ -88,8 +88,8 @@
{{ t('ts.下载差异数据') }} {{ t('ts.下载差异数据') }}
</el-button> </el-button>
</div> </div>
<el-button :disabled="formLoading" type="primary" @click="submitForm" v-if="active == 0 || (active == 1 && !error)">{{ t('ts.下一步') }}</el-button> <el-button :disabled="formLoading || isShowLoading" type="primary" @click="submitForm" v-if="active == 0 || (active == 1 && !error)">{{ t('ts.下一步') }}</el-button>
<el-button :disabled="formLoading" type="primary" @click="submitForm" v-if="active == 2 || (active == 1 && error)">{{ t('ts.好的') }}</el-button> <el-button :disabled="formLoading || isShowLoading" type="primary" @click="submitForm" v-if="active == 2 || (active == 1 && error)">{{ t('ts.好的') }}</el-button>
<el-button @click="dialogVisible = false">{{ t('ts.取 消') }}</el-button> <el-button @click="dialogVisible = false">{{ t('ts.取 消') }}</el-button>
</div> </div>
</template> </template>
@ -298,14 +298,17 @@ const open = () => {
defineExpose({ open }) // open defineExpose({ open }) // open
const formRef = ref() const formRef = ref()
const isShowLoading = ref(false)
/** 提交表单 */ /** 提交表单 */
const submitForm = async () => { const submitForm = async () => {
// //
if (active.value === 1) { if (active.value === 1) {
isShowLoading.value = true
if(error.value){ if(error.value){
dialogVisible.value = false dialogVisible.value = false
error.value = false error.value = false
isShowLoading.value = false
}else{ }else{
if (props.confirmFormSuccess) { if (props.confirmFormSuccess) {
await props.confirmFormSuccess(props.tableObject.tableList, await props.confirmFormSuccess(props.tableObject.tableList,
@ -313,11 +316,13 @@ const submitForm = async () => {
if(msg){ if(msg){
message.error(msg) message.error(msg)
error.value = false error.value = false
isShowLoading.value = false
return return
}else{ }else{
message.success("导入成功!") message.success("导入成功!")
error.value = false error.value = false
active.value = 2 // active.value = 2 //
isShowLoading.value = false
return return
} }
} }

52
src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts

@ -43,24 +43,24 @@ export const DeliverRecordMain = useCrudSchemas(
} }
} }
}, },
{ // {
label: '客户订单号', // label: '客户订单号',
field: 'customerOrderNumber', // field: 'customerOrderNumber',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 180 // width: 180
}, // },
isTable: true, // isTable: true,
isForm: false, // isForm: false,
isSearch: true, // isSearch: true,
hiddenSearchHigh: true, // hiddenSearchHigh: true,
search: { // search: {
component: 'Input', // component: 'Input',
componentProps: { // componentProps: {
} // }
}, // },
}, // },
{ {
label: '客户代码', label: '客户代码',
field: 'customerCode', field: 'customerCode',
@ -579,6 +579,24 @@ export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTable: false, isTable: false,
isTableForm: false, isTableForm: false,
}, },
{
label: '客户订单号',
field: 'customerOrderNumber',
sort: 'custom',
table: {
width: 180
},
isTable: true,
isForm: false,
isSearch: true,
hiddenSearchHigh: false,
search: {
component: 'Input',
componentProps: {
}
},
},
{ {
label: '品番', label: '品番',
field: 'itemCode', field: 'itemCode',

Loading…
Cancel
Save