Browse Source

YT-275:新增模具分摊功能

intex_online20241111
songguoqiang 3 weeks ago
parent
commit
6c4126b306
  1. 5
      src/api/wms/customer/index.ts
  2. 3
      src/components/ImportForm/src/ImportCustomerStatementForm.vue
  3. 44
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts
  4. 5
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue
  5. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

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

@ -35,6 +35,11 @@ export const getCustomerPage = async (params) => {
export const getCustomerList = async (params) => { export const getCustomerList = async (params) => {
return await request.get({ url: `/wms/customer/list`, params }) return await request.get({ url: `/wms/customer/list`, params })
} }
// 查询客户列表
export const getCustomerListPc = async (params) => {
return await request.get({ url: `/wms/customer/listPc`, params })
}
// 查询客户详情 // 查询客户详情
export const getCustomer = async (id: number) => { export const getCustomer = async (id: number) => {
return await request.get({ url: `/wms/customer/get?id=` + id }) return await request.get({ url: `/wms/customer/get?id=` + id })

3
src/components/ImportForm/src/ImportCustomerStatementForm.vue

@ -318,7 +318,6 @@ const verifyData = async () => {
// buttonBaseClick('refresh',null) // buttonBaseClick('refresh',null)
} catch { } catch {
// //
alert(123);
} }
}else if(data.status==3){ }else if(data.status==3){
await message.alertWarning('已存在相同客户编号及年月的对账单,且已提交,无法导入。') await message.alertWarning('已存在相同客户编号及年月的对账单,且已提交,无法导入。')
@ -438,7 +437,7 @@ const queryParams = reactive({
const getCustomerList = async () => {// const getCustomerList = async () => {//
var param ={} var param ={}
const list = await CustomerApi.getCustomerList(param); const list = await CustomerApi.getCustomerListPc(param);
customerList.value = list; customerList.value = list;
} }

44
src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts

@ -62,15 +62,15 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{ // {
label: '年月', // label: '年月',
field: 'yearsMonthStr', // field: 'yearsMonthStr',
sort: 'custom', // sort: 'custom',
detail: { // detail: {
dateFormat: 'YYYY-MM' // dateFormat: 'YYYY-MM'
}, // },
isForm:false, // isForm:false,
}, // },
{ {
label: '状态', label: '状态',
field: 'status', field: 'status',
@ -92,12 +92,26 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
sort: 'custom', isTable:true,
formatter: dateFormatter, formatter: dateFormatter,
isSearch: false,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sort: 'custom',
isForm: false,
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
isSearch: true,
search: { search: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -106,7 +120,6 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, },
isForm: false,
}, },
{ {
label: '操作', label: '操作',
@ -283,9 +296,10 @@ export const CustomerStatementReconciliation = useCrudSchemas(reactive<CrudSchem
}, },
{ {
label: '验收日期', label: '验收日期',
field: 'acceptCheckTime', field: 'checkTime',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
formatter: dateFormatter,
}, },
{ {
label: '订单号', label: '订单号',
@ -295,7 +309,7 @@ export const CustomerStatementReconciliation = useCrudSchemas(reactive<CrudSchem
}, },
{ {
label: '数量-INTEX', label: '数量-INTEX',
field: 'tftmQuantity', field: 'intexQuantity',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
}, },
@ -398,7 +412,7 @@ export const CustomerStatementShareReconciliation = useCrudSchemas(reactive<Crud
}, },
{ {
label: '模具分摊金额', label: '模具分摊金额',
field: 'allocationPrice', field: 'amount',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
}, },

5
src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue

@ -293,7 +293,7 @@ const butttondata = (row, $index) => {
hide: isShowMainButton(row, ['3', '4', '5']) hide: isShowMainButton(row, ['3', '4', '5'])
}), // 退 }), // 退
defaultButtons.mainListCancelBtn({ defaultButtons.mainListCancelBtn({
hasPermi: 'wms:customer-statement-main:publish', hasPermi: 'wms:customer-statement-main:nodeAbrogate',
hide: isShowMainButton(row, ['2', '3', '4', '5']) hide: isShowMainButton(row, ['2', '3', '4', '5'])
}) // }) //
] ]
@ -432,7 +432,10 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()
//
importTemplateData.templateUrl = await CustomerStatementMainApi.importTemplate() importTemplateData.templateUrl = await CustomerStatementMainApi.importTemplate()
//
importShareTemplateData.templateUrl = await CustomerStatementMainApi.importShareTemplate()
}) })
// //
const tapRematch = async (id: number) => { const tapRematch = async (id: number) => {

2
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -882,7 +882,7 @@ const openForm = async (type: string, row?: any) => {
if ( if (
item.field == 'taxRate' || item.field == 'taxRate' ||
item.field == 'procurementCreator' || item.field == 'procurementCreator' ||
item.field == 'beforeTaxAmount' || // item.field == 'beforeTaxAmount' ||
item.field == 'totalTaxAmount' || item.field == 'totalTaxAmount' ||
item.field == 'goldenTaxInvoiceNumber' || item.field == 'goldenTaxInvoiceNumber' ||
item.field == 'invoiceTime' || item.field == 'invoiceTime' ||

Loading…
Cancel
Save