Browse Source

采购收货任务拆分策略拆分方式判断,tableForm弹窗列表框的input不可以输入

master
zhang_li 1 year ago
parent
commit
d1cd1eba9b
  1. 4
      src/components/BasicForm/src/BasicForm.vue
  2. 10
      src/components/TableForm/src/TableForm.vue
  3. 9
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue
  4. 3
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts
  5. 2
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

4
src/components/BasicForm/src/BasicForm.vue

@ -130,6 +130,7 @@ const opensearchTable = (formField, searchField, searchTitle, searchAllSchemas,
const _searchTableTitle = searchTitle const _searchTableTitle = searchTitle
const _searchTableAllSchemas = searchAllSchemas const _searchTableAllSchemas = searchAllSchemas
const _searchTablePage = searchPage const _searchTablePage = searchPage
console.log(_searchTablePage)
searchTableRef.value.open(_searchTableTitle, _searchTableAllSchemas, _searchTablePage, formField, searchField, type, row) searchTableRef.value.open(_searchTableTitle, _searchTableAllSchemas, _searchTablePage, formField, searchField, type, row)
} }
// //
@ -294,6 +295,9 @@ const handleAddTable = () => {
} }
// //
const inpuFocus = (headerItem, row, index) => { const inpuFocus = (headerItem, row, index) => {
console.log(11)
console.log(headerItem)
console.log(11)
opensearchTable( opensearchTable(
headerItem.field, headerItem.field,
headerItem.tableForm.searchField, headerItem.tableForm.searchField,

10
src/components/TableForm/src/TableForm.vue

@ -57,16 +57,16 @@
<!-- 字符串输入框 --> <!-- 字符串输入框 -->
<el-form-item <el-form-item
v-if="!headerItem?.tableForm?.type || headerItem?.tableForm?.type == 'InputString'" v-if="!headerItem?.tableForm?.type || headerItem?.tableForm?.type == 'InputString'"
:prop="headerItem.field"> :prop="headerItem.field" style="display: flex;align-items: center;">
<el-input <el-input
v-model="row[headerItem.field]" v-model="row[headerItem.field]"
clearable clearable
:type="headerItem?.tableForm?.inputType" :type="headerItem?.tableForm?.inputType"
:placeholder="headerItem?.tableForm?.placeholder || '请输入' + headerItem.label" :placeholder="headerItem?.tableForm?.placeholder || '请输入' + headerItem.label"
:disabled="itemIsDisabled(headerItem, row)" :disabled="headerItem?.tableForm?.isSearchList ? true : false"
style="width: 100%;" style="flex:1"
@click="inpuFocus(headerItem,row,index)"
/> />
<el-button v-if="headerItem?.tableForm?.isSearchList" @click="inpuFocus(headerItem,row,index)"><Icon icon="ep:search" size="14"/></el-button>
</el-form-item> </el-form-item>
<!-- 金额输入框 --> <!-- 金额输入框 -->
<el-form-item <el-form-item
@ -389,7 +389,7 @@ const handleAddTable = () => {
} }
// //
const inpuFocus = (headerItem, row, index)=>{ const inpuFocus = (headerItem, row, index)=>{
if(headerItem?.tableForm?.isInpuFocusShow){ if(headerItem?.tableForm?.isSearchList){
emit('inpuFocus', headerItem, row, index) emit('inpuFocus', headerItem, row, index)
} }
} }

9
src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/AddForm.vue

@ -138,7 +138,7 @@ const formData = ref({
// //
{ ParamCode: 'ByLocation', Value: true }, { ParamCode: 'ByLocation', Value: true },
// //
{ ParamCode: 'ByContainer', Value: 'false' }, { ParamCode: 'ByContainer', Value: false },
// //
{ ParamCode: 'JobDetailCount', Value: 0 }, { ParamCode: 'JobDetailCount', Value: 0 },
] ]
@ -244,6 +244,13 @@ const submitForm = async () => {
if (!formRef) return if (!formRef) return
const valid = await formRef.value.validate() const valid = await formRef.value.validate()
if (!valid) return; if (!valid) return;
let onlyOne = formData.value.configuration.filter(item=>{
return item.Value == true
})
if(onlyOne?.length !=1){
message.error('只能选择一种拆分方式')
return
}
// //
formLoading.value = true formLoading.value = true
try { try {

3
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -336,6 +336,9 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
tableForm:{
isSearchList: true, // 开启查询弹窗
}
}, },
{ {
label: 'ERP库位', label: 'ERP库位',

2
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts

@ -334,7 +334,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
tableForm:{ tableForm:{
isInpuFocusShow: true, isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择订单号', searchListPlaceholder: '请选择订单号',
searchField: 'poNumber', searchField: 'poNumber',
searchTitle: '供应商发货记录', searchTitle: '供应商发货记录',

Loading…
Cancel
Save