Browse Source

bug修复

master
chenfang 11 months ago
parent
commit
1eee444056
  1. 6
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  2. 24
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  3. 3
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  4. 2
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
  5. 4
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

6
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue

@ -214,7 +214,7 @@ const buttonTableClick = async (val, row) => {
console.log(err) console.log(err)
}) })
} else if (val == 'mainSubmit') { // } else if (val == 'mainSubmit') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要提交审批吗?')
CustomerreceiptRequestMainApi.submit(row.id).then(() => { CustomerreceiptRequestMainApi.submit(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
getList() getList()
@ -222,7 +222,7 @@ const buttonTableClick = async (val, row) => {
console.log(err) console.log(err)
}) })
} else if (val == 'mainTurnDown') { // } else if (val == 'mainTurnDown') { //
await message.confirm('确认要重新添加吗?') await message.confirm('确认要驳回吗?')
CustomerreceiptRequestMainApi.refused(row.id).then(() => { CustomerreceiptRequestMainApi.refused(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
getList() getList()
@ -238,7 +238,7 @@ const buttonTableClick = async (val, row) => {
console.log(err) console.log(err)
}) })
} else if (val == 'mainHandle') { // } else if (val == 'mainHandle') { //
await message.confirm('确认要 处理吗?') await message.confirm('确认要处理吗?')
CustomerreceiptRequestMainApi.handle(row.id).then(() => { CustomerreceiptRequestMainApi.handle(row.id).then(() => {
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
getList() getList()

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

@ -117,19 +117,8 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isSearch: true, isSearch: true,
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 disabled: true
searchListPlaceholder: '请选择客户代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '客户信息', // 查询弹窗标题
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}]
} }
} }
}, },
@ -154,6 +143,11 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},
{
key: 'customerCode',
value: 'customerCode',
isMainValue: true
}] }]
} }
} }
@ -527,9 +521,9 @@ export const DeliverRequestMainRules = reactive({
// toLocationTypes: [ // toLocationTypes: [
// { required: true, message: '请选择到库位类型范围', trigger: 'change' } // { required: true, message: '请选择到库位类型范围', trigger: 'change' }
// ], // ],
deliverPlanNumber: [ // deliverPlanNumber: [
{ required: true, message: '请选择发货计划单号', trigger: 'change' } // { required: true, message: '请选择发货计划单号', trigger: 'change' }
], // ],
departmentCode: [ departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } { required: true, message: '请输入部门', trigger: 'blur' }
], ],

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

@ -130,9 +130,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
item.tableForm.isInpuFocusShow = false item.tableForm.isInpuFocusShow = false
item.tableForm.disabled = true item.tableForm.disabled = true
} }
if(item.field == 'qty') {
item.tableForm.disabled = true
}
if(item.field == 'uom') { if(item.field == 'uom') {
item.tableForm.disabled = true item.tableForm.disabled = true
} }

2
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts

@ -369,7 +369,7 @@ export const DeliverPlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
form: { form: {
componentProps: { componentProps: {
isInpuFocusShow: true, isSearchList: true,
searchListPlaceholder: '请选择物品代码', searchListPlaceholder: '请选择物品代码',
searchField: 'code', searchField: 'code',
searchTitle: '物品基础信息', searchTitle: '物品基础信息',

4
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

@ -122,8 +122,8 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
// setV['soLine'] = val[0]['lineNumber'] // setV['soLine'] = val[0]['lineNumber']
// setV['lineNumber'] = val[0]['lineNumber'] // setV['lineNumber'] = val[0]['lineNumber']
// setV['itemCode'] = val[0]['itemCode'] // setV['itemCode'] = val[0]['itemCode']
// setV['remark'] = val[0]['remark'] setV['remark'] = val[0]['remark']
// setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }

Loading…
Cancel
Save