学 赵
1 year ago
145 changed files with 36242 additions and 2273 deletions
@ -0,0 +1,84 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Omu.ValueInjecter; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Application.Services; |
|||
using Volo.Abp.Identity; |
|||
|
|||
namespace BaseService.UserManagement |
|||
{ |
|||
[Route("api/[controller]/[action]")]
|
|||
[Authorize(IdentityPermissions.Roles.Default)] |
|||
public class RoleAppService : ApplicationService |
|||
{ |
|||
private IdentityRoleManager _roleManager { get; } |
|||
private IIdentityRoleRepository _repository { get; } |
|||
|
|||
public RoleAppService(IdentityRoleManager roleManager, IIdentityRoleRepository roleRepository) |
|||
{ |
|||
_roleManager = roleManager; |
|||
_repository = roleRepository; |
|||
} |
|||
|
|||
[HttpGet] |
|||
public async Task<ListResultDto<IdentityRoleDto>> GetAllAsync() |
|||
{ |
|||
var items = await _repository.GetListAsync().ConfigureAwait(false); |
|||
var dtos = ObjectMapper.Map<List<IdentityRole>, List<IdentityRoleDto>>(items); |
|||
return new ListResultDto<IdentityRoleDto>(dtos); |
|||
} |
|||
|
|||
[HttpGet] |
|||
public async Task<PagedResultDto<IdentityRoleDto>> GetListAsync(GetIdentityRolesInput input) |
|||
{ |
|||
var totalCount = await _repository.GetCountAsync(input.Filter).ConfigureAwait(false); |
|||
var items = await _repository.GetListAsync(input.Sorting, input.MaxResultCount, input.SkipCount, |
|||
input.Filter).ConfigureAwait(false); |
|||
var dtos = ObjectMapper.Map<List<IdentityRole>, List<IdentityRoleDto>>(items); |
|||
return new PagedResultDto<IdentityRoleDto>(totalCount, dtos); |
|||
} |
|||
|
|||
[HttpGet("{id}")] |
|||
[Authorize(IdentityPermissions.Roles.Delete)] |
|||
public async Task<IdentityRoleDto> Details(Guid id) |
|||
{ |
|||
var role = await _roleManager.GetByIdAsync(id).ConfigureAwait(false); |
|||
var dto = ObjectMapper.Map<IdentityRole, IdentityRoleDto>(role); |
|||
return dto; |
|||
} |
|||
|
|||
[HttpPost] |
|||
[Authorize(IdentityPermissions.Roles.Create)] |
|||
public async Task<IdentityRoleDto> CreateAsync(IdentityRoleCreateDto input) |
|||
{ |
|||
var role = new IdentityRole(GuidGenerator.Create(), input.Name); |
|||
role.InjectFrom(input); |
|||
await _roleManager.CreateAsync(role).ConfigureAwait(false); |
|||
var dto = ObjectMapper.Map<IdentityRole, IdentityRoleDto>(role); |
|||
return dto; |
|||
} |
|||
|
|||
[HttpPut("{id}")] |
|||
[Authorize(IdentityPermissions.Roles.Update)] |
|||
public async Task<IdentityRoleDto> UpdateAsync(Guid id, IdentityRoleUpdateDto input) |
|||
{ |
|||
var role = await _roleManager.GetByIdAsync(id).ConfigureAwait(false); |
|||
role.InjectFrom(input); |
|||
await _roleManager.UpdateAsync(role).ConfigureAwait(false); |
|||
var dto = ObjectMapper.Map<IdentityRole, IdentityRoleDto>(role); |
|||
return dto; |
|||
} |
|||
|
|||
[HttpDelete("{id}")] |
|||
[Authorize(IdentityPermissions.Roles.Delete)] |
|||
public async Task<IActionResult> Delete(Guid id) |
|||
{ |
|||
var role = await _roleManager.GetByIdAsync(id).ConfigureAwait(false); |
|||
await _roleManager.DeleteAsync(role).ConfigureAwait(false); |
|||
return new OkResult(); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,9 @@ |
|||
export default function html(strings, ...values) { |
|||
let output = ""; |
|||
let index; |
|||
for (index = 0; index < values.length; index += 1) { |
|||
output += strings[index] + values[index]; |
|||
} |
|||
output += strings[index]; |
|||
return output; |
|||
} |
@ -0,0 +1,85 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
|
|||
<head> |
|||
<meta charset="utf-8" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|||
<base href="./" /> |
|||
<title></title> |
|||
<style> |
|||
body { |
|||
margin: 0; |
|||
padding: 0; |
|||
} |
|||
|
|||
body * { |
|||
box-sizing: border-box; |
|||
} |
|||
|
|||
#app { |
|||
width: 100vw; |
|||
height: 100vh; |
|||
overflow-y: scroll; |
|||
display: flex; |
|||
} |
|||
|
|||
#app>ul { |
|||
margin: 0; |
|||
padding: 0; |
|||
list-style: none; |
|||
width: 200px; |
|||
border: 1px solid gray; |
|||
} |
|||
|
|||
#app>ul>li { |
|||
padding: .5em; |
|||
} |
|||
|
|||
#app>iframe { |
|||
width: calc(100vw - 200px); |
|||
} |
|||
</style> |
|||
</head> |
|||
|
|||
<body> |
|||
<div id="app"></div> |
|||
<script type="importmap"> |
|||
{ |
|||
"imports": { |
|||
"vue": "./lib/vue.esm-browser.js", |
|||
"vue-router": "./lib/vue-router.esm-browser.js", |
|||
"pinia": "./lib/pinia.esm-browser.js" |
|||
} |
|||
} |
|||
</script> |
|||
<script> |
|||
window.process = { env: { NODE_ENV: 'production' } }; |
|||
</script> |
|||
<script type="module"> |
|||
import { createApp, ref } from "vue"; |
|||
|
|||
const app = createApp({ |
|||
template: `<ul> |
|||
<li v-for="item in links"><a href="javascript:;" @click="load(item.href)">{{item.text}}</a></li> |
|||
</ul> |
|||
<iframe :src="src" frameborder="0" />`, |
|||
setup() { |
|||
const links = [ |
|||
{ text: "组件基础", href: "./pages/component.html" } |
|||
]; |
|||
const src = ref(""); |
|||
function load(href) { |
|||
src.value = href; |
|||
} |
|||
return { |
|||
links, |
|||
src, |
|||
load |
|||
} |
|||
} |
|||
}); |
|||
app.mount("#app"); |
|||
</script> |
|||
</body> |
|||
|
|||
</html> |
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,96 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
|
|||
<head> |
|||
<meta charset="utf-8" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|||
<base href="./" /> |
|||
<title>双向绑定</title> |
|||
</head> |
|||
|
|||
<body> |
|||
<div id="app"></div> |
|||
<script type="importmap"> |
|||
{ |
|||
"imports": { |
|||
"vue": "../lib/vue.esm-browser.js", |
|||
"vue-router": "../lib/vue-router.esm-browser.js", |
|||
"pinia": "../lib/pinia.esm-browser.js" |
|||
} |
|||
} |
|||
</script> |
|||
<script> |
|||
window.process = { env: { NODE_ENV: 'production' } }; |
|||
</script> |
|||
<script type="module"> |
|||
import { createApp, ref, reactive, watch, onMounted } from "vue"; |
|||
|
|||
const simpleComponent = { |
|||
components: {},//组件注册 |
|||
template: `<label>子组件:<input type="text" v-model="model.value"></label> |
|||
<button @click="onClick">click</button>`, |
|||
props: ['modelValue'], |
|||
emit: ["update:modelValue"], |
|||
setup(props, context) { |
|||
const model = reactive(props.modelValue); |
|||
watch(model, (value) => context.emit('update:modelValue', value)); |
|||
|
|||
const childMethod = () => { |
|||
alert('child method'); |
|||
} |
|||
|
|||
const callback = (result) => { |
|||
alert(`paretn method callback: ${result}`); |
|||
} |
|||
const onClick = () => { |
|||
context.emit('click', 'call parent method from child', callback) |
|||
}; |
|||
|
|||
context.expose({ childMethod }); |
|||
return { |
|||
model, |
|||
childMethod, |
|||
onClick |
|||
}; |
|||
} |
|||
}; |
|||
|
|||
const appComponent = { |
|||
components: { simpleComponent }, |
|||
template: `<label>父组件:<input type="text" v-model="model.value" /></label> |
|||
<button @click="onClick">click</button> |
|||
<simple-component ref="childRef" v-model="model" @click="parentMethod" />`, |
|||
props: ['modelValue'], |
|||
setup(props, context) { |
|||
const childRef = ref(null); |
|||
const model = reactive({ |
|||
value: "test" |
|||
}); |
|||
const onClick = () => { |
|||
console.log(props, context); |
|||
childRef.value.childMethod(); |
|||
}; |
|||
const parentMethod = (o, callback) => { |
|||
alert(o); |
|||
callback('from parent'); |
|||
}; |
|||
|
|||
onMounted(() => { |
|||
console.log(childRef.value) |
|||
}); |
|||
|
|||
return { |
|||
model, |
|||
childRef, |
|||
onClick, |
|||
parentMethod |
|||
}; |
|||
} |
|||
}; |
|||
|
|||
const app = createApp(appComponent); |
|||
app.mount("#app"); |
|||
</script> |
|||
</body> |
|||
|
|||
</html> |
@ -0,0 +1,6 @@ |
|||
# vue 3 |
|||
|
|||
```javascript |
|||
import { createApp } from "vue"; |
|||
createApp().mount("#app"); |
|||
``` |
@ -0,0 +1,128 @@ |
|||
import version from "./version.js"; |
|||
|
|||
const stateName = { |
|||
title: "状态", |
|||
type: "string", |
|||
input: "select", |
|||
options: [ |
|||
{ label: "执行完成(任务成功)", value: "Succeeded" }, |
|||
{ label: "执行完成(任务失败)", value: "Failed" }, |
|||
{ label: "执行中", value: "Processing" }, |
|||
{ label: "等待执行", value: "Enqueued" }, |
|||
], |
|||
}; |
|||
|
|||
const schema = { |
|||
title: "数据对比", |
|||
type: "object", |
|||
properties: { |
|||
type: { |
|||
title: "版本号", |
|||
type: "string", |
|||
}, |
|||
taskId: { |
|||
title: "单据流水号", |
|||
type: "string", |
|||
}, |
|||
email: { |
|||
title: "创建人", |
|||
type: "string", |
|||
}, |
|||
createdAt: { |
|||
title: "创建时间", |
|||
type: "DateTime", |
|||
}, |
|||
remark: { |
|||
title: "说明", |
|||
type: "string", |
|||
}, |
|||
stateName, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/Job/list"; |
|||
const deleteUrl = "settleaccount/Job/delete"; |
|||
const exportUrl = "settleaccount/pub_sa_detail_service/export"; |
|||
const compareUrl = "settleaccount/edi-se-compare/bbacedi-se-compare"; |
|||
const queryMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
const compareMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
|
|||
autoSubmit: true, |
|||
disableQueryOnLoad: true, |
|||
schema: { |
|||
title: "数据对比", |
|||
type: "object", |
|||
properties: { |
|||
type: Object.assign({ defaultSelected: true }, version), |
|||
name: { |
|||
type: "string", |
|||
default: null, |
|||
hidden: true, |
|||
}, |
|||
stateName, |
|||
filters: { |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
// {
|
|||
// logic: "and",
|
|||
// column: "year",
|
|||
// action: "like",
|
|||
// value: null,
|
|||
// readOnly: true,
|
|||
// },
|
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
deleteUrl, |
|||
exportUrl, |
|||
compareUrl, |
|||
deleteMethod, |
|||
exportMethod, |
|||
compareMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,128 @@ |
|||
import version from "./version.js"; |
|||
|
|||
const stateName = { |
|||
title: "状态", |
|||
type: "string", |
|||
input: "select", |
|||
options: [ |
|||
{ label: "执行完成(任务成功)", value: "Succeeded" }, |
|||
{ label: "执行完成(任务失败)", value: "Failed" }, |
|||
{ label: "执行中", value: "Processing" }, |
|||
{ label: "等待执行", value: "Enqueued" }, |
|||
], |
|||
}; |
|||
|
|||
const schema = { |
|||
title: "数据对比", |
|||
type: "object", |
|||
properties: { |
|||
type: { |
|||
title: "版本号", |
|||
type: "string", |
|||
}, |
|||
taskId: { |
|||
title: "单据流水号", |
|||
type: "string", |
|||
}, |
|||
email: { |
|||
title: "创建人", |
|||
type: "string", |
|||
}, |
|||
createdAt: { |
|||
title: "创建时间", |
|||
type: "DateTime", |
|||
}, |
|||
remark: { |
|||
title: "说明", |
|||
type: "string", |
|||
}, |
|||
stateName, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/Job/list"; |
|||
const deleteUrl = "settleaccount/Job/delete"; |
|||
const exportUrl = "settleaccount/pub_sa_detail_service/export"; |
|||
const compareUrl = "settleaccount/edi-se-compare/hbpoedi-se-compare"; |
|||
const queryMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
const compareMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
|
|||
autoSubmit: true, |
|||
disableQueryOnLoad: true, |
|||
schema: { |
|||
title: "数据对比", |
|||
type: "object", |
|||
properties: { |
|||
type: Object.assign({ defaultSelected: true }, version), |
|||
name: { |
|||
type: "string", |
|||
default: null, |
|||
hidden: true, |
|||
}, |
|||
stateName, |
|||
filters: { |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
// {
|
|||
// logic: "and",
|
|||
// column: "year",
|
|||
// action: "like",
|
|||
// value: null,
|
|||
// readOnly: true,
|
|||
// },
|
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
deleteUrl, |
|||
exportUrl, |
|||
compareUrl, |
|||
deleteMethod, |
|||
exportMethod, |
|||
compareMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,138 @@ |
|||
import version from "./version.js"; |
|||
import { state2, state3 } from "./state.js"; |
|||
|
|||
const schema = { |
|||
title: "结算数据", |
|||
type: "object", |
|||
properties: { |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
businessType: { |
|||
title: "业务分类", |
|||
type: "EnumBusinessType", |
|||
}, |
|||
version, |
|||
state2, |
|||
price: { |
|||
title: "价格", |
|||
type: "decimal", |
|||
}, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleDate: { |
|||
title: "下线日期", |
|||
type: "DateTime", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "发货单号", |
|||
type: "string", |
|||
}, |
|||
keycode: { |
|||
title: "键值", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算数量", |
|||
type: "decimal", |
|||
}, |
|||
groupNum: { |
|||
title: "结算分组号", |
|||
type: "decimal", |
|||
}, |
|||
entend1: { |
|||
title: "扩展1", |
|||
type: "string", |
|||
}, |
|||
entend2: { |
|||
title: "扩展2", |
|||
type: "string", |
|||
}, |
|||
entend3: { |
|||
title: "扩展3", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/p-uB_BA_SERVICE/detail-query"; |
|||
const queryMethod = "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: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,154 @@ |
|||
import version from "./version.js"; |
|||
import { state2, state3 } from "./state.js"; |
|||
|
|||
const schema = { |
|||
title: "结算数据", |
|||
type: "object", |
|||
properties: { |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
businessType: { |
|||
title: "业务分类", |
|||
type: "EnumBusinessType", |
|||
}, |
|||
version, |
|||
state2, |
|||
price: { |
|||
title: "价格", |
|||
type: "decimal", |
|||
}, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleDate: { |
|||
title: "下线日期", |
|||
type: "DateTime", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "发货单号", |
|||
type: "string", |
|||
}, |
|||
keycode: { |
|||
title: "键值", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算数量", |
|||
type: "decimal", |
|||
}, |
|||
groupNum: { |
|||
title: "结算分组号", |
|||
type: "decimal", |
|||
}, |
|||
entend1: { |
|||
title: "扩展1", |
|||
type: "string", |
|||
}, |
|||
entend2: { |
|||
title: "扩展2", |
|||
type: "string", |
|||
}, |
|||
entend3: { |
|||
title: "扩展3", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/p-uB_BA_SERVICE/main-query"; |
|||
const exportUrl = "settleaccount/p-uB_BA_SERVICE/export"; |
|||
const invoiceUrl = "settleaccount/p-uB_BA_SERVICE/generate-invoice"; |
|||
const rejectUrl = "settleaccount/p-uB_BA_SERVICE/reject"; |
|||
const receivedUrl = "settleaccount/p-uB_BA_SERVICE/received"; |
|||
const queryMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
const invoiceMethod = "POST"; |
|||
const rejectMethod = "POST"; |
|||
const receivedMethod = "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: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
exportUrl, |
|||
invoiceUrl, |
|||
rejectUrl, |
|||
receivedUrl, |
|||
exportMethod, |
|||
invoiceMethod, |
|||
rejectMethod, |
|||
receivedMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,126 @@ |
|||
import version from "./version.js"; |
|||
import state from "./state.js"; |
|||
|
|||
const schema = { |
|||
title: "结算数据", |
|||
type: "object", |
|||
properties: { |
|||
state, |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
businessType: { |
|||
title: "业务分类", |
|||
type: "EnumBusinessType", |
|||
}, |
|||
version, |
|||
price: { |
|||
title: "价格", |
|||
type: "decimal", |
|||
}, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleDate: { |
|||
title: "下线日期", |
|||
type: "DateTime", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "发货单号", |
|||
type: "string", |
|||
}, |
|||
keycode: { |
|||
title: "键值", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算数量", |
|||
type: "decimal", |
|||
}, |
|||
groupNum: { |
|||
title: "结算分组号", |
|||
type: "decimal", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/pub_can_sa_service/detail-query"; |
|||
const queryMethod = "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: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,102 @@ |
|||
import version from "./version.js"; |
|||
import state from "./state.js"; |
|||
|
|||
const schema = { |
|||
title: "结算数据", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state, |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
businessType: { |
|||
title: "业务分类", |
|||
type: "EnumBusinessType", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/pub_can_sa_service/main-query"; |
|||
const exportUrl = "settleaccount/pub_can_sa_service/export"; |
|||
const invoiceUrl = "settleaccount/pub_can_sa_service/generate-invoice"; |
|||
const queryMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
const invoiceMethod = "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: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
exportUrl, |
|||
invoiceUrl, |
|||
exportMethod, |
|||
invoiceMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,144 @@ |
|||
import version from "./version.js"; |
|||
|
|||
const schema = { |
|||
title: "结算数据", |
|||
type: "object", |
|||
properties: { |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
businessType: { |
|||
title: "业务分类", |
|||
type: "EnumBusinessType", |
|||
}, |
|||
version, |
|||
price: { |
|||
title: "价格", |
|||
type: "decimal", |
|||
}, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleDate: { |
|||
title: "下线日期", |
|||
type: "DateTime", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "发货单号", |
|||
type: "string", |
|||
}, |
|||
keycode: { |
|||
title: "键值", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算数量", |
|||
type: "decimal", |
|||
}, |
|||
groupNum: { |
|||
title: "结算分组号", |
|||
type: "decimal", |
|||
}, |
|||
entend1: { |
|||
title: "扩展1", |
|||
type: "string", |
|||
}, |
|||
entend2: { |
|||
title: "扩展2", |
|||
type: "string", |
|||
}, |
|||
entend3: { |
|||
title: "扩展3", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/pub_not_sa_service/detail-query"; |
|||
const exportUrl = "settleaccount/pub_not_sa_service/export"; |
|||
const settlementUrl = "settleaccount/pub_not_sa_service/generate-settlement-order"; |
|||
const queryMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
const settlementMethod = "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: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
exportUrl, |
|||
settlementUrl, |
|||
exportMethod, |
|||
settlementMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,99 @@ |
|||
import version from "./version.js"; |
|||
import { state2, state3 } from "./state.js"; |
|||
|
|||
const schema = { |
|||
title: "结算数据", |
|||
type: "object", |
|||
properties: { |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
version, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算单号", |
|||
type: "decimal", |
|||
}, |
|||
price: { |
|||
title: "结算单号", |
|||
type: "decimal", |
|||
}, |
|||
invGroupNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
|
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/p-uB_PD_SERVICE/detail-query"; |
|||
const queryMethod = "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: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,110 @@ |
|||
import version from "./version.js"; |
|||
import { state2, state3 } from "./state.js"; |
|||
|
|||
const schema = { |
|||
title: "结算数据", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state3, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
settleBillNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "地点", |
|||
type: "string", |
|||
}, |
|||
businessType: { |
|||
title: "业务类型", |
|||
type: "EnumBusinessType", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/p-uB_PD_SERVICE/main-query"; |
|||
const exportUrl = "settleaccount/p-uB_PD_SERVICE/export"; |
|||
const passedUrl = "settleaccount/p-uB_PD_SERVICE/approval-passed"; |
|||
const rejectUrl = "settleaccount/p-uB_BA_SERVICE/reject"; |
|||
const queryMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
const passedMethod = "POST"; |
|||
const rejectMethod = "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: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
exportUrl, |
|||
passedUrl, |
|||
rejectUrl, |
|||
exportMethod, |
|||
passedMethod, |
|||
rejectMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,136 @@ |
|||
import version from "./version.js"; |
|||
import state from "./state.js"; |
|||
|
|||
const schema = { |
|||
title: "结算数据", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state, |
|||
keyCode: { |
|||
title: "LU+ASN单号", |
|||
type: "string", |
|||
}, |
|||
billNum: { |
|||
title: "关联结算单号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "发货单号", |
|||
type: "string", |
|||
}, |
|||
site: { |
|||
title: "工厂地点", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "结算数量", |
|||
type: "decimal", |
|||
}, |
|||
price: { |
|||
title: "单价", |
|||
type: "decimal", |
|||
}, |
|||
invGroupNum: { |
|||
title: "发票分组号", |
|||
type: "string", |
|||
}, |
|||
settleDate: { |
|||
title: "结算日期(收货日期", |
|||
type: "Datetime", |
|||
}, |
|||
extend1: { |
|||
title: "扩展字段1", |
|||
type: "string", |
|||
}, |
|||
extend2: { |
|||
title: "扩展字段2", |
|||
type: "string", |
|||
}, |
|||
extend3: { |
|||
title: "扩展字段3", |
|||
type: "string", |
|||
}, |
|||
groupNum: { |
|||
title: "结算分组", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/pub_sa_detail_service/get-list"; |
|||
const exportUrl = "settleaccount/pub_sa_detail_service/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: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
deleteUrl, |
|||
exportUrl, |
|||
deleteMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,90 @@ |
|||
import version from "./version.js"; |
|||
import state from "./state.js"; |
|||
|
|||
const schema = { |
|||
title: "结算数据", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state, |
|||
billNum: { |
|||
title: "结算单号", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/pub_sa_service/get-list"; |
|||
const deleteUrl = "settleaccount/pub_sa_service/delete"; |
|||
const importUrl = "settleaccount/pub_sa_service/import-by-business-type"; |
|||
const queryMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "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: "version", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
deleteUrl, |
|||
importUrl, |
|||
deleteMethod, |
|||
importMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,122 @@ |
|||
import version from "./version.js"; |
|||
import state from "./state.js"; |
|||
|
|||
const schema = { |
|||
title: "结算数据", |
|||
type: "object", |
|||
properties: { |
|||
version, |
|||
state, |
|||
shippingDate: { |
|||
title: "发货时间", |
|||
type: "DateTime", |
|||
}, |
|||
wmsBillNum: { |
|||
title: "发运单号", |
|||
type: "string", |
|||
}, |
|||
lu: { |
|||
title: "零件号", |
|||
type: "string", |
|||
}, |
|||
pn: { |
|||
title: "生产号", |
|||
type: "string", |
|||
}, |
|||
keyCode: { |
|||
title: "组合键值(LU+PN)", |
|||
type: "string", |
|||
}, |
|||
qty: { |
|||
title: "数量", |
|||
type: "decimal", |
|||
}, |
|||
seqNumber: { |
|||
title: "日顺序号", |
|||
type: "string", |
|||
}, |
|||
assemblyCode: { |
|||
title: "小总成号", |
|||
type: "string", |
|||
}, |
|||
injectionCode: { |
|||
title: "注塑码", |
|||
type: "string", |
|||
}, |
|||
beginDate: { |
|||
title: "订单时间", |
|||
type: "DateTime", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const queryUrl = "settleaccount/pub_se_detail_service/get-list"; |
|||
const exportUrl = "settleaccount/pub_se_detail_service/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: "version", |
|||
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, |
|||
}, |
|||
}; |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue