mahao
1 year ago
27 changed files with 1177 additions and 1826 deletions
@ -1,7 +1,8 @@ |
|||
import './style.css'; |
|||
|
|||
import { createApp } from 'vue'; |
|||
import VXETable from 'vxe-table'; |
|||
|
|||
import App from './App.vue'; |
|||
|
|||
createApp(App).mount('#app'); |
|||
createApp(App).use(VXETable).mount('#app'); |
|||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,15 +1,114 @@ |
|||
import AppList from "../../../components/list/index.js"; |
|||
import html from "html"; |
|||
import { ref } from "vue"; |
|||
import { delay } from "../../../utils/index.js"; |
|||
import useConfig from "../../../models/invoice/invoice_map_group.js"; |
|||
import request from "../../../request/index.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
template: html`<app-list :config="config" @command="onCommand" />
|
|||
<el-drawer v-model="drawer" destroy-on-close size="50%" class="page-drawer"> |
|||
<template #header> <span class="el-dialog__title"> INVOICE_GRP_DETAIL_DTO </span> </template> |
|||
<el-row v-loading="loading"> |
|||
<el-col style="height:calc(100vh - 180px);"> |
|||
<el-tabs style="width:100%;height:100%;" v-if="drawer&&!loading"> |
|||
<el-tab-pane label="invoicE_WAIT_DETAIL" v-if="model.invoicE_WAIT_DETAIL.length"> |
|||
<el-auto-resizer> |
|||
<template #default="{ height, width }"> |
|||
<el-table-v2 |
|||
fixed |
|||
:data="model.invoicE_WAIT_DETAIL" |
|||
:columns="columns1" |
|||
:width="width" |
|||
:height="height" |
|||
/> |
|||
</template> |
|||
</el-auto-resizer> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="invoicE_MAP_GROUP" v-if="model.invoicE_MAP_GROUP.length"> |
|||
<el-auto-resizer> |
|||
<template #default="{ height, width }"> |
|||
<el-table-v2 |
|||
fixed |
|||
:data="model.invoicE_MAP_GROUP" |
|||
:columns="columns2" |
|||
:width="width" |
|||
:height="height" |
|||
/> |
|||
</template> |
|||
</el-auto-resizer> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="invoicE_NOT_SETTLE" v-if="model.invoicE_NOT_SETTLE.length"> |
|||
<el-auto-resizer> |
|||
<template #default="{ height, width }"> |
|||
<el-table-v2 |
|||
fixed |
|||
:data="model.invoicE_NOT_SETTLE" |
|||
:columns="columns3" |
|||
:width="width" |
|||
:height="height" |
|||
/> |
|||
</template> |
|||
</el-auto-resizer> |
|||
</el-tab-pane> |
|||
</el-tabs> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<template #footer> |
|||
<span class="dialog-footer"> |
|||
<el-button type="primary" @click="drawer=false"> {{$t('confirm')}} </el-button> |
|||
</span> |
|||
</template> |
|||
</el-drawer>`, |
|||
styles: html` <style>
|
|||
.page-drawer .el-tab-pane { |
|||
width: 100%; |
|||
height: 100%; |
|||
} |
|||
.page-drawer .el-tabs__content { |
|||
height: calc(100% - 40px); |
|||
} |
|||
</style>`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const drawer = ref(false); |
|||
const loading = ref(false); |
|||
const model = ref({ |
|||
invoicE_WAIT_DETAIL: [{ version: "version" }], |
|||
invoicE_MAP_GROUP: [{ version: "version" }], |
|||
invoicE_NOT_SETTLE: [{ version: "version" }], |
|||
}); |
|||
|
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
drawer.value = true; |
|||
loading.value = true; |
|||
const data = { [item.path]: rows[0][item.path] }; |
|||
// const response = await request("settleaccount/b-bAC_BA_SERVICE/detail-query", data, { method: "POST" });
|
|||
// model.value = response.data;
|
|||
await delay(1000); |
|||
loading.value = false; |
|||
}; |
|||
return { config, onCommand }; |
|||
const columns1 = [ |
|||
{ |
|||
key: "version", |
|||
dataKey: "version", |
|||
title: "期间", |
|||
}, |
|||
]; |
|||
const columns2 = [ |
|||
{ |
|||
dataKey: "version", |
|||
title: "期间", |
|||
}, |
|||
]; |
|||
const columns3 = [ |
|||
{ |
|||
dataKey: "version", |
|||
title: "期间", |
|||
}, |
|||
]; |
|||
return { config, onCommand, drawer, loading, model, columns1, columns2, columns3 }; |
|||
}, |
|||
}; |
|||
|
@ -0,0 +1,183 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using SettleAccount.Bases; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Temp; |
|||
public class TMEP_INV |
|||
{ |
|||
public string LU { set; get; } |
|||
public string ContractDocID { set; get; } |
|||
public decimal Amt { set; get; } |
|||
public decimal Qty { set; get; } |
|||
public decimal Price { set; get; } |
|||
/// <summary>
|
|||
/// 开始日期
|
|||
/// </summary>
|
|||
public DateTime BeginDate { get; set; } |
|||
/// <summary>
|
|||
/// 结束日期
|
|||
/// </summary>
|
|||
public DateTime EndDate { get; set; } |
|||
} |
|||
|
|||
public class TEMP_CAN_SA_DETAIL |
|||
{ |
|||
/// <summary>
|
|||
///关联结算单号
|
|||
/// </summary>
|
|||
public string SettleBillNum { get; set; } |
|||
/// <summary>
|
|||
///工厂地点
|
|||
/// </summary>
|
|||
|
|||
public string Site { get; set; } |
|||
/// <summary>
|
|||
/// 版本
|
|||
/// </summary>
|
|||
public int Version { get; set; } |
|||
/// <summary>
|
|||
/// 单价
|
|||
/// </summary>
|
|||
public decimal Price { get; set; } |
|||
/// <summary>
|
|||
/// 结算单号(发票分组号)
|
|||
/// </summary>
|
|||
public string BillNum { get; set; } |
|||
/// <summary>
|
|||
/// 结算日期
|
|||
/// </summary>
|
|||
public DateTime SettleDate { get; set; } |
|||
/// <summary>
|
|||
///发票组号
|
|||
/// </summary>
|
|||
public string InvGroupNum { get; set; } |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
public string LU { get; set; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
public string MaterialDesc { get; set; } |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 生产号
|
|||
/// </summary>
|
|||
public string PN { get; set; } |
|||
/// <summary>
|
|||
/// 结算数量
|
|||
/// </summary>
|
|||
public decimal Qty { get; set; } |
|||
/// <summary>
|
|||
/// 结算分组号
|
|||
/// </summary>
|
|||
public string GroupNum { get; set; } |
|||
/// <summary>
|
|||
/// 金额
|
|||
/// </summary>
|
|||
public decimal Amt { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 合同号
|
|||
/// </summary>
|
|||
public string ContractDocID { set; get; } |
|||
/// <summary>
|
|||
/// 开始日期
|
|||
/// </summary>
|
|||
public DateTime BeginDate { get; set; } |
|||
/// <summary>
|
|||
/// 结束日期
|
|||
/// </summary>
|
|||
public DateTime EndDate { get; set; } |
|||
|
|||
|
|||
} |
|||
public class TEMP_NOT_SA_DETAIL : SA_NOT_BASE |
|||
{ |
|||
///// <summary>
|
|||
///// 对应字段(Material+ExternalCalNumber)
|
|||
///// </summary>
|
|||
//[Display(Name = "LU+生产码")]
|
|||
//public string KeyCode { get; set; } = null!;
|
|||
|
|||
///// <summary>
|
|||
///// 期间
|
|||
///// </summary>
|
|||
//[Display(Name = "期间")]
|
|||
//public int Version { get; set; }
|
|||
|
|||
///// <summary>
|
|||
///// 结算单号
|
|||
///// </summary>
|
|||
//[Display(Name = "结算单号")]
|
|||
//public string SettleBillNum { get; set; } = null!;
|
|||
|
|||
///// <summary>
|
|||
///// 对应字段Material
|
|||
///// </summary>
|
|||
//[Display(Name = "零件号")]
|
|||
//public string LU { get; set; } = null!;
|
|||
|
|||
///// <summary>
|
|||
///// 对应字段ExternalCalNumber
|
|||
///// </summary>
|
|||
//[Display(Name = "生产码")]
|
|||
//public string PN { get; set; } = null!;
|
|||
|
|||
/// <summary>
|
|||
/// 选择工厂导入
|
|||
/// </summary>
|
|||
[Display(Name = "工厂地点")] |
|||
public string Site { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 对应字段Quantity
|
|||
/// </summary>
|
|||
//[Display(Name = "结算数量")]
|
|||
//public decimal Qty { get; set; }
|
|||
|
|||
///// <summary>
|
|||
///// 匹配价格表对应区间对应地点带出
|
|||
///// </summary>
|
|||
//[Display(Name = "单价")]
|
|||
//public decimal Price { get; set; }
|
|||
|
|||
/// <summary>
|
|||
/// ExternalCallNumber包含(R0)为买单件 1为JIS 2.为买单件
|
|||
/// </summary>
|
|||
[Display(Name = "业务类别")] |
|||
public EnumBusinessType BusinessType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 对应字段MovementType,996正常,997为退货
|
|||
/// </summary>
|
|||
[Display(Name = "是否退货")] |
|||
public string IsReturn { get; set; } = null!; |
|||
|
|||
//[Display(Name = "发票分组号")]
|
|||
//public string InvGroupNum { get; set; } = null!;
|
|||
|
|||
///// <summary>
|
|||
///// 对应字段PostingDate
|
|||
///// </summary>
|
|||
//[Display(Name = "结算日期(收货日期)")]
|
|||
//public DateTime SettleDate { get; set; }
|
|||
|
|||
/// <summary>
|
|||
/// 对应字段Reference
|
|||
/// </summary>
|
|||
//[Display(Name = "结算分组")]
|
|||
//public string GroupNum { get; set; } = null!;
|
|||
|
|||
[Display(Name = "合同号")] |
|||
public string ContractDocID { get; set; } |
|||
|
|||
|
|||
} |
@ -1,6 +1,8 @@ |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
|||
|
|||
public interface IJobService |
|||
{ |
|||
void Invoke(); |
|||
Task Invoke(); |
|||
} |
|||
|
Loading…
Reference in new issue