@ -154,6 +154,19 @@ const enableType = {
],
};
const site = {
title: "工厂地点",
type: "number",
input: "select",
options: [
{ value: 1040, label: 1040 },
{ value: 1046, label: 1046 },
hideForList: true,
default:1040,
const codeType = {
title: "生产码类型",
type: "string",
@ -208,4 +221,4 @@ const taskState = {
export default businessType;
export { version, state, state2, state3, transType, deliverBillType, deliverSubBillType, proType, billState, codeType, invState, taskState, enableType };
export { version, state, state2, state3, transType, deliverBillType, deliverSubBillType, proType, billState, codeType, invState, taskState, enableType,site };
@ -1,3 +1,4 @@
import { site } from "../_options.js";
export default function (businessType, type) {
const schema = {
title: "通用代码",
@ -45,10 +46,7 @@ export default function (businessType, type) {
title: "结算分组号",
type: "decimal",
},
site: {
site,
isReturn: {
title: "是否退货",
type: "boolean",
@ -106,109 +104,224 @@ export default function (businessType, type) {
const addMethod = "POST";
const exportMethod = "POST";
return {
if (businessType !== "JisBBAC")
query: {
{
url: queryUrl,
method: queryMethod,
hasFilter: true,
schema: {
type: "object",
properties: {
filters: {
title: "筛选",
type: "array",
hidden: true,
items: {
logic: {
type: "int",
column: {
action: {
value: {
default: [
logic: "and",
column: "settleDate",
action: "biggerThanOrEqual",
value: null,
readOnly: true,
clearable: true,
title: "下线开始",
action: "smallThan",
title: "下线结束",
action: "like",
column: "partCode",
column: "pn",
column: "groupNum",
skipCount: {
default: 0,
maxResultCount: {
default: 10,
sorting: {
table: {
schema: schema,
edit: {
addUrl,
exportUrl,
addMethod,
column: "site",
exportMethod,
}
else
const querySchema = {
querySchema.properties.filters.default.push({
action: "equal",
value: schema.properties.site.default,
});
schema: querySchema,