mahao
1 year ago
21 changed files with 6734 additions and 146 deletions
@ -0,0 +1,132 @@ |
|||
import useVmi from "./vmi.js"; |
|||
|
|||
const schema = Object.assign({}, useVmi()); |
|||
|
|||
Object.keys(schema.properties).forEach((o) => { |
|||
if (o !== "erpToLoc" && o !== "realPartCode" && o !== "qty") { |
|||
schema.properties[o].hideForList = true; |
|||
} |
|||
}); |
|||
|
|||
const baseUrl = "settleaccount/vmi"; |
|||
const queryUrl = `${baseUrl}/balance-sum`; |
|||
const exportUrl = `${baseUrl}/balance-sum-export`; |
|||
const queryMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "寄售库存", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "billTime", |
|||
action: "biggerThanOrEqual", |
|||
value: null, |
|||
readOnly: true, |
|||
title: "发运开始", |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "billTime", |
|||
action: "smallThan", |
|||
value: null, |
|||
readOnly: true, |
|||
title: "发运结束", |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "erpToLoc", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "realPartCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "custPartCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "vinCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "codeType", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "deliverBillType", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
exportUrl, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,44 @@ |
|||
import AppList from "../../components/list/index.js"; |
|||
import html from "html"; |
|||
import { ref, onMounted, onUnmounted } from "vue"; |
|||
import { useRoute } from "vue-router"; |
|||
import { ElNotification } from "element-plus"; |
|||
import request from "../../request/index.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list v-if="config" :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = ref(null); |
|||
const route = useRoute(); |
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
}; |
|||
const showMessage = async (data) => { |
|||
await ElNotification.closeAll(); |
|||
ElNotification({ |
|||
position: "bottom-right", |
|||
title: "提示", |
|||
message: `待同步库存数量: ${data}`, |
|||
duration: 0, |
|||
}); |
|||
}; |
|||
const event = "VmiBalance"; |
|||
onMounted(async () => { |
|||
const model = "vmi/sum"; |
|||
const useConfig = (await import(`../../models/${model}.js`)).default; |
|||
config.value = useConfig(route.meta?.businessType, route.meta); |
|||
const result = await request("settleaccount/vmi-async-message/get-message-count", null, { method: "POST" }); |
|||
if (!result.errors) { |
|||
showMessage(result.data); |
|||
} |
|||
PubSub.subscribe(event, async (_, data) => { |
|||
if (route.path === "/vmi/sum") { |
|||
showMessage(data); |
|||
} |
|||
}); |
|||
}); |
|||
onUnmounted(() => PubSub.unsubscribe(event)); |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,131 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Domain.Entities.Auditing; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ; |
|||
public class TED_SA_INV : AuditedAggregateRoot<Guid> |
|||
{ |
|||
/// <summary>
|
|||
/// 发票号
|
|||
/// </summary>
|
|||
public string invoiceNumber { set; get; } |
|||
/// <summary>
|
|||
/// 结算系统发票号
|
|||
/// </summary>
|
|||
public string sasInvoiceNumber { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 客户代码
|
|||
/// </summary>
|
|||
public string Customer { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 开票至
|
|||
/// </summary>
|
|||
public string BillTo { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发票日期
|
|||
/// </summary>
|
|||
public DateTime InvoiceDate { set; get; } |
|||
/// <summary>
|
|||
/// 地点
|
|||
/// </summary>
|
|||
public string Site { set; get; } |
|||
/// <summary>
|
|||
/// 单据类型
|
|||
/// </summary>
|
|||
public string TYPE { set; get; } |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
public string PartNumber { set; get; } |
|||
/// <summary>
|
|||
/// 发票数量
|
|||
/// </summary>
|
|||
public decimal InvoiceQuatity { set; get; } |
|||
/// <summary>
|
|||
/// 发票价格
|
|||
/// </summary>
|
|||
public decimal Price { set; get; } |
|||
/// <summary>
|
|||
/// 供应商
|
|||
/// </summary>
|
|||
public string Supplier { set; get; } |
|||
/// <summary>
|
|||
/// 备注
|
|||
/// </summary>
|
|||
public string Remark { set; get; } |
|||
/// <summary>
|
|||
/// 发票未税金额
|
|||
/// </summary>
|
|||
public decimal InvoiceNetAmount { set; get; } |
|||
/// <summary>
|
|||
/// 发票税额
|
|||
/// </summary>
|
|||
public decimal InvoiceTaxAmount { set; get; } |
|||
/// <summary>
|
|||
/// 税率
|
|||
/// </summary>
|
|||
public decimal TaxRate { set; get; } |
|||
/// <summary>
|
|||
/// 库位
|
|||
/// </summary>
|
|||
public string Location { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发票未税尾差
|
|||
/// </summary>
|
|||
public decimal InvoiceNet { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发票税额尾差
|
|||
/// </summary>
|
|||
public decimal InvoiceTax { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 开始时间
|
|||
/// </summary>
|
|||
public DateTime begintime { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 结束时间
|
|||
/// </summary>
|
|||
public DateTime endtime { set; get; } |
|||
|
|||
|
|||
public TED_SA_INV(string invoiceNumber, string sasInvoiceNumber, string customer, string billTo, DateTime invoiceDate, string site, string tYPE, string partNumber, decimal invoiceQuatity, decimal price, string supplier, string remark, decimal invoiceNetAmount, decimal invoiceTaxAmount, decimal taxRate, string location, decimal invoiceNet, decimal invoiceTax, DateTime begintime, DateTime endtime) |
|||
{ |
|||
this.invoiceNumber = invoiceNumber; |
|||
this.sasInvoiceNumber = sasInvoiceNumber; |
|||
Customer = customer; |
|||
BillTo = billTo; |
|||
InvoiceDate = invoiceDate; |
|||
Site = site; |
|||
TYPE = tYPE; |
|||
PartNumber = partNumber; |
|||
InvoiceQuatity = invoiceQuatity; |
|||
Price = price; |
|||
Supplier = supplier; |
|||
Remark = remark; |
|||
InvoiceNetAmount = invoiceNetAmount; |
|||
InvoiceTaxAmount = invoiceTaxAmount; |
|||
TaxRate = taxRate; |
|||
Location = location; |
|||
InvoiceNet = invoiceNet; |
|||
InvoiceTax = invoiceTax; |
|||
this.begintime = begintime; |
|||
this.endtime = endtime; |
|||
|
|||
|
|||
|
|||
|
|||
} |
|||
|
|||
public TED_SA_INV() |
|||
{ |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,246 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class _202309040005 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
//migrationBuilder.DropIndex(
|
|||
// name: "IX_Set_VmiReplenished_ChangedTime",
|
|||
// table: "Set_VmiReplenished");
|
|||
|
|||
//migrationBuilder.DropIndex(
|
|||
// name: "IX_Set_VmiLog_ChangedTime",
|
|||
// table: "Set_VmiLog");
|
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "UpdatedTime", |
|||
table: "Set_VmiLog", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "datetime2", |
|||
oldDefaultValueSql: "getdate()"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Set_TED_SA_INV", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
invoiceNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
sasInvoiceNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
Customer = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
BillTo = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
InvoiceDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
TYPE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
PartNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
InvoiceQuatity = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
Supplier = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
Remark = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
InvoiceNetAmount = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
InvoiceTaxAmount = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
TaxRate = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
Location = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
InvoiceNet = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
InvoiceTax = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
begintime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
endtime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_TED_SA_INV", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), |
|||
column: "ConcurrencyStamp", |
|||
value: "b9e638afef8b4de097fc683516354089"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), |
|||
column: "ConcurrencyStamp", |
|||
value: "50529732e41e474cb6d6908a8ec88099"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
|||
column: "ConcurrencyStamp", |
|||
value: "f25b1fe5c17a40d18e18752ce0009d65"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
|||
column: "ConcurrencyStamp", |
|||
value: "e91d573f386b42ae8eb6bf32a38bc483"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
|||
column: "ConcurrencyStamp", |
|||
value: "c5726eb21c9445de91546c7f1c71efac"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
|||
column: "ConcurrencyStamp", |
|||
value: "d247508e91324e40ac5754ede500b1ac"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
|||
column: "ConcurrencyStamp", |
|||
value: "2f60da6b559d48a19c1817213f1528d6"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
|||
column: "ConcurrencyStamp", |
|||
value: "18ec8f18b9434fa4baaa2fcb5e24c41b"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
|||
column: "ConcurrencyStamp", |
|||
value: "10aadf01ae724c359846cf31aab2b31b"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
|||
column: "ConcurrencyStamp", |
|||
value: "0ebe68a46be34b078560896901dd380d"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
|||
column: "ConcurrencyStamp", |
|||
value: "28715471b0bd426292d154ae294bcaf4"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "Set_TED_SA_INV"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "UpdatedTime", |
|||
table: "Set_VmiLog", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValueSql: "getdate()", |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "datetime2"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), |
|||
column: "ConcurrencyStamp", |
|||
value: "119eda96252e4bd58016d77b0bf1f43b"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), |
|||
column: "ConcurrencyStamp", |
|||
value: "3bd216de9cdf423ab81dc6cf014f8616"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
|||
column: "ConcurrencyStamp", |
|||
value: "24fd0b376e354409a5bcdec267b72b2d"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
|||
column: "ConcurrencyStamp", |
|||
value: "7884254f65f7422da2abe11929da3f6b"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
|||
column: "ConcurrencyStamp", |
|||
value: "229a34c072454e7d949556e07a9f1e1f"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
|||
column: "ConcurrencyStamp", |
|||
value: "313eaf08e98642ec9b7531ac5e1575c9"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
|||
column: "ConcurrencyStamp", |
|||
value: "1680a6235f8d40f092e576028cde752a"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
|||
column: "ConcurrencyStamp", |
|||
value: "0464f68915234385b952314fefffc134"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
|||
column: "ConcurrencyStamp", |
|||
value: "45a3d39659e34ef3bee5b93bb5781412"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
|||
column: "ConcurrencyStamp", |
|||
value: "0c40557cb16c4c079fa836f5337875ed"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
|||
column: "ConcurrencyStamp", |
|||
value: "9f16199bb6f34f14a193a7ae7fa700be"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Set_VmiReplenished_ChangedTime", |
|||
table: "Set_VmiReplenished", |
|||
column: "ChangedTime") |
|||
.Annotation("SqlServer:Clustered", true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Set_VmiLog_ChangedTime", |
|||
table: "Set_VmiLog", |
|||
column: "ChangedTime") |
|||
.Annotation("SqlServer:Clustered", true); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue