Browse Source

update

master
wanggang 1 year ago
parent
commit
7620bd437b
  1. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
  2. 11
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js
  3. 38
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js

@ -13,6 +13,7 @@ export default {
<template v-else-if="schema.input==='date'">{{dayjs(model[prop]).format('YYYY-MM-DD')}}</template>
<template v-else-if="schema.input==='datetime'">{{dayjs(model[prop]).format('YYYY-MM-DD HH:mm:ss')}}</template>
<template v-else-if="schema.input==='password'">******</template>
<template v-else-if="schema.input==='select'">{{options[model[prop]].label}}</template>
<template v-else>{{model[prop]}}</template>
</template>
</template>
@ -24,7 +25,6 @@ export default {
:multiple="!!schema.multiple"
:clearable="!!schema.clearable"
style="width:100%"
:title="JSON.stringify(options)"
>
<el-option v-for="item in options" :key="item.key" :label="item.label" :value="item.value" />
</el-select>

11
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/business-type.js

@ -0,0 +1,11 @@
export default [
{ value: 0, label: "未定义" },
{ value: 1, label: "JisBBAC" },
{ value: 2, label: "JisHBPO" },
{ value: 3, label: "直供件BBAC" },
{ value: 4, label: "直供件HBPO" },
{ value: 5, label: "买单件BBAC" },
{ value: 6, label: "买单件HBPO" },
{ value: 7, label: "备件" },
{ value: 8, label: "印度件" },
];

38
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/price-list.js

@ -1,33 +1,37 @@
import businessTypes from "./business-type.js";
const schema = {
title: "销售价格单",
type: "object",
properties: {
version: {
title: "版本",
lu: {
title: "零件号",
type: "string",
},
beginDate: {
price: {
title: "价格",
type: "number",
},
beginTime: {
title: "开始时间",
type: "DateTime",
type: "datetime",
},
endDate: {
endTime: {
title: "结算时间",
type: "DateTime",
type: "datetime",
},
price: {
title: "价格",
type: "decimal",
},
materialCode: {
title: "物料编号",
clientCode: {
title: "客户编码",
type: "string",
},
type: {
title: "价格类型",
type: "int",
businessType: {
title: "业务类别",
type: "string",
input: "select",
options: businessTypes,
},
customerCode: {
title: "客户",
version: {
title: "版本",
type: "string",
},
},

Loading…
Cancel
Save