Browse Source

修改采购订单联系人与字段顺序

master_hella_20240701
zhaoxuebing 8 months ago
parent
commit
a66c5c5dab
  1. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  2. 157
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts
  3. 173
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

5
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -120,7 +120,10 @@
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if(formField == 'supplierCode'){ if(formField == 'supplierCode'){
tableData.value = [] // tableData.value = [] //
setV['contactName']=val[0]['contacts']
setV['contactPhone']=val[0]['phone']
setV['contactEmail']=val[0]['email']
} }
formRef.setValues(setV) formRef.setValues(setV)
} }

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

@ -100,21 +100,6 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
value: new Date().getTime() value: new Date().getTime()
}, },
}, },
{
label: '税率',
field: 'taxRate',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
style: {width:'100%'},
min: 0
}
}
},
{ {
label: '截止日期', label: '截止日期',
field: 'dueDate', field: 'dueDate',
@ -138,32 +123,23 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '版本', label: '税率',
field: 'version', field: 'taxRate',
sort: 'custom',
table: {
width: 150
},
},
{
label: '联系人姓名',
field: 'contactName',
sort: 'custom',
table: {
width: 150
},
},
{
label: '联系人电话',
field: 'contactPhone',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
componentProps: {
style: {width:'100%'},
min: 0
}
}
}, },
{ {
label: '联系人电子邮件', label: '版本',
field: 'contactEmail', field: 'version',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -186,13 +162,6 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{
label: '备注',
field: 'remark',
table: {
width: 150
},
},
{ {
label: '是否寄存订单', label: '是否寄存订单',
field: 'isConsignment', field: 'isConsignment',
@ -212,21 +181,6 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
isForm: false,
form: {
value: 'PurchaseReceipt',
componentProps: {
disabled: true
}
}
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
@ -247,6 +201,47 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '联系人姓名',
field: 'contactName',
sort: 'custom',
table: {
width: 150
},
},
{
label: '联系人电话',
field: 'contactPhone',
sort: 'custom',
table: {
width: 150
},
},
{
label: '联系人电子邮件',
field: 'contactEmail',
sort: 'custom',
table: {
width: 150
},
},
{
label: '业务类型',
field: 'businessType',
sort: 'custom',
table: {
width: 150
},
isForm: false,
isTable: false,
form: {
value: 'PurchaseReceipt',
componentProps: {
disabled: true
}
}
},
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
@ -311,6 +306,13 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '备注',
field: 'remark',
table: {
width: 150
},
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',
@ -366,6 +368,19 @@ export const PurchaseMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
isTableForm: false,
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '行号', label: '行号',
field: 'lineNumber', field: 'lineNumber',
@ -422,19 +437,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '单据号',
field: 'number',
isTableForm: false,
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
@ -679,14 +681,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false, isTableForm: false,
isForm: false isForm: false
}, },
{
label: '备注',
field: 'remark',
table: {
width: 150
},
},
{ {
label: '是否可用', label: '是否可用',
field: 'available', field: 'available',
@ -793,6 +787,13 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{
label: '备注',
field: 'remark',
table: {
width: 150
},
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

173
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -126,15 +126,34 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{ {
label: '备注', label: '是否可用',
field: 'remark', field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTable: false, form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
isSearch: true,
},
{
label: '创建者',
field: 'creator',
sort: 'custom',
isForm: false,
table: {
width: 150
},
}, },
{ {
label: '创建时间', label: '创建时间',
@ -160,8 +179,8 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '创建者', label: '最后更新者',
field: 'creator', field: 'updater',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
table: { table: {
@ -192,33 +211,13 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '最后更新者', label: '备注',
field: 'updater', field: 'remark',
sort: 'custom',
isForm: false,
table: {
width: 150
},
},
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { isTable: false,
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
isSearch: true,
}, },
{ {
label: '操作', label: '操作',
@ -255,12 +254,26 @@ export const PurchasePlanMainRules = reactive({
* @returns {Array} * @returns {Array}
*/ */
export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '单据号',
field: 'number',
sort: 'custom',
isTableForm: false,
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 170
}, },
tableForm: { tableForm: {
isInpuFocusShow: true, isInpuFocusShow: true,
@ -358,20 +371,6 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
}] }]
} }
}, },
{
label: '单据号',
field: 'number',
sort: 'custom',
isTableForm: false,
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
@ -406,32 +405,6 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
// {
// label: '已计划数量',
// field: 'plannedQty',
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// componentProps: {
// disabled: true
// }
// },
// tableForm: {
// disabled: true
// }
// },
{
label: '已发货数量',
field: 'shippedQty',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{ {
label: '计划数量', label: '计划数量',
field: 'planQty', field: 'planQty',
@ -452,6 +425,16 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '已发货数量',
field: 'shippedQty',
sort: 'custom',
table: {
width: 150
},
isTableForm: false,
isForm: false
},
{ {
label: '计量单位', label: '计量单位',
field: 'uom', field: 'uom',
@ -467,6 +450,31 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
type: 'Select' type: 'Select'
} }
}, },
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{ {
label: '最后更新者', label: '最后更新者',
field: 'updater', field: 'updater',
@ -508,31 +516,6 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
type: 'Select',
inactiveValue: 'FALSE',
disabled: true
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

Loading…
Cancel
Save