Browse Source

BUG修改

master
yejiaxing 11 months ago
parent
commit
7e1ec4579d
  1. 5
      src/api/wms/supplierinvoiceRequestMain/index.ts
  2. 51
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts
  3. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  4. 66
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
  5. 4
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

5
src/api/wms/supplierinvoiceRequestMain/index.ts

@ -36,6 +36,11 @@ export const getSupplierinvoiceRequestMain = async (id: number) => {
return await request.get({ url: `/wms/supplierinvoice-request-main/get?id=` + id })
}
// 查询供应商发票申请主详情
export const getNumber = async (params) => {
return await request.get({ url: `/wms/supplierinvoice-request-main/getNumber`, params})
}
// 新增供应商发票申请主
export const createSupplierinvoiceRequestMain = async (data: SupplierinvoiceRequestMainVO) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/create`, data })

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

@ -407,6 +407,19 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '单据号',
field: 'number',
isTableForm: false,
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '订单数量',
field: 'orderQty',
@ -630,41 +643,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
isTableForm: false,
isForm: false
},
{
label: '单据号',
field: 'nuumber',
isTableForm: false,
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '明细状态',
field: 'status',
dictType: DICT_TYPE.WORK_ORDER_DETAIL_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
isForm: false,
isTableForm: false,
table: {
width: 150
},
form: {
componentProps: {
disabled: true
},
value: 'OPEN'
},
tableForm:{
type: 'Select'
}
},
{
label: '备注',
field: 'remark',
@ -838,4 +817,4 @@ export const PurchaseDetailRules = reactive({
itemCode: [
{ required: true, message: '请选择物品代码', trigger: 'change' }
],
})
})

2
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -184,7 +184,7 @@
defaultButtons.mainListPurchasePlanAccBtn({ hide: isShowMainButton(row, ['3']) }), //
defaultButtons.mainListPurchasePlanRejBtn({ hide: isShowMainButton(row, ['3']) }), //
defaultButtons.mainListPurchasePlanWitBtn({ hide: isShowMainButton(row, ['3']) }), //
defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, ['1']), hasPermi: 'wms:purchase-plan-main:update' }), //
// defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, ['1']), hasPermi: 'wms:purchase-plan-main:update' }), //
// defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:purchase-plan-main:delete'}), //
]
}

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

@ -125,7 +125,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([
},
isForm: false,
},
{
label: '备注',
field: 'remark',
@ -269,12 +269,12 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
},{
}, {
key: 'supplierCode',
value: 'supplierCode',
isMainValue: true
}
,{
, {
key: 'status',
value: 2,
isMainValue: false
@ -302,17 +302,17 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '订单行',
field: 'poLine',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '单据号',
@ -344,38 +344,40 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true
}
},
{
label: '创建时间',
field: 'createTime',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
label: '订单数量',
field: 'orderQty',
sort: 'custom',
isTableForm: false,
table: {
width: 180
width: 150
},
isForm: false,
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '创建者',
field: 'creator',
label: '已计划数量',
field: 'plannedQty',
sort: 'custom',
isTableForm: false,
table: {
width: 150
},
isForm: false,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '已发货数量',

4
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -21,8 +21,8 @@
<span>{{ row.number }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event, row)" />
<template #action="{ row }" >
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event, row)"/>
</template>
</Table>
</ContentWrap>

Loading…
Cancel
Save