Browse Source

客户退货页面展示字段添加

master
chenfang 10 months ago
parent
commit
17459b99d7
  1. 18
      src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts
  2. 4
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  3. 12
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  4. 22
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  5. 7
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

18
src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts

@ -138,6 +138,24 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择库位代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '库位基础信息', // 查询弹窗标题
searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false
}]
}
}
},
{
label: '是否可用',

4
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -84,10 +84,6 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'customerCode',
value: 'customerCode',
isMainValue: false
}]
}
}

12
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -125,6 +125,18 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}]
}
})
CustomerreturnRequestMain.allSchemas.formSchema.forEach(item => {
if(item.field == 'deliverRecordNumber') {
if(customerCode.value != null){
item.componentProps.searchCondition = [
{
key: 'customerCode',
value: customerCode.value ,
isMainValue: false
}]
}
}
})
console.log(128, customerCode.value)
if (type == 'tableForm') {

22
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -840,6 +840,28 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '计划数量',
field: 'planQty',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
},
{
label: '已收货数量',
field: 'shippedQty',
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled: true
},
},
{
label: '创建时间',
field: 'createTime',

7
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -57,7 +57,6 @@
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
:isShowButton = isShowButton
:isShowReduceButton = isShowButton
/>
<!-- 详情 -->
@ -175,9 +174,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
delete item.form.componentProps.searchCondition
}
})
}).catch(err => {
console.log(err)
message.error('错误')
})
if(formField == 'itemCode'){
console.log( val[0]);
@ -545,9 +541,6 @@ const resetShow = async () => {
item.tableForm.isInpuFocusShow = true
item.tableForm.disabled = false
}
if(item.field == 'planQty') {
item.tableForm.disabled = false
}
if(item.field == 'uom') {
item.tableForm.disabled = false
}

Loading…
Cancel
Save