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 = {}
setV[formField] = val[0][searchField]
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)
}

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

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

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

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

Loading…
Cancel
Save