wanggang 1 year ago
parent
commit
f09ef5dc75
  1. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/table/index.js
  2. 29
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/bei-jian.js
  3. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/table/index.js

@ -18,7 +18,7 @@ export default {
</template> </template>
</template> </template>
<div class="cell el-table__cell" :class="key" v-else-if="!item.hidden"> <div class="cell el-table__cell" :class="key" v-else-if="!item.hidden">
<div class="cell">{{item.title}}</div> <div class="cell">{{item.title}} <template v-if="data.length&&item.reduce">:{{data.map(o=>o[key]).reduce(item.reduce)}}</template></div>
</div> </div>
</template> </template>
</div> </div>

29
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/base-data/bei-jian.js

@ -12,11 +12,15 @@ const schema = {
}, },
beginDate: { beginDate: {
title: "开始时间", title: "开始时间",
type: "DateTime", type: "string",
input: "datetime",
clearable: true,
}, },
endDate: { endDate: {
title: "结束时间", title: "结束时间",
type: "DateTime", type: "string",
input: "datetime",
clearable: true,
}, },
clientCode: { clientCode: {
title: "客户编码", title: "客户编码",
@ -72,6 +76,20 @@ export default function () {
}, },
}, },
default: [ default: [
{
logic: "and",
column: "beginDate",
action: "biggerThanOrEqual",
value: null,
readOnly: true,
},
{
logic: "and",
column: "endDate",
action: "smallThanOrEqual",
value: null,
readOnly: true,
},
{ {
logic: "and", logic: "and",
column: "lu", column: "lu",
@ -79,6 +97,13 @@ export default function () {
value: null, value: null,
readOnly: true, readOnly: true,
}, },
{
logic: "and",
column: "contractNo",
action: "like",
value: null,
readOnly: true,
},
], ],
}, },
skipCount: { skipCount: {

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/settle/_check.js

@ -374,10 +374,12 @@ export default {
qty: { qty: {
type: "number", type: "number",
title: "数量", title: "数量",
reduce: (x, y) => x + y,
}, },
amt: { amt: {
type: "number", type: "number",
title: "金额", title: "金额",
reduce: (x, y) => x + y,
}, },
}, },
}; };

Loading…
Cancel
Save