|
|
@@ -0,0 +1,1813 @@
|
|
|
+[
|
|
|
+ {
|
|
|
+ "id": "stk_pur_in",
|
|
|
+ "name": "采购入库单",
|
|
|
+ "type": "bill",
|
|
|
+ "idColumnName": "I_ID",
|
|
|
+ "codeColumnName": "I_CODE",
|
|
|
+ "billTypeColumnName": "I_BILLTYPE",
|
|
|
+ "subSys": "scm_purchase",
|
|
|
+ "entities": [
|
|
|
+ {
|
|
|
+ "name": "基本信息",
|
|
|
+ "tableName": "STK_PURIN",
|
|
|
+ "type": "head",
|
|
|
+ "fields": [
|
|
|
+ {
|
|
|
+ "name": "单据类型",
|
|
|
+ "columnName": "I_BILLTYPE",
|
|
|
+ "type": "billType",
|
|
|
+ "length": 50
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "业务类型",
|
|
|
+ "columnName": "I_BIZTYPE",
|
|
|
+ "type": "enumData",
|
|
|
+ "ref": "stk_purintype"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "收料部门",
|
|
|
+ "columnName": "I_RECDEPT",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_deptartment",
|
|
|
+ "refField": "DP_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "采购部门",
|
|
|
+ "columnName": "I_PURDEPT",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_deptartment",
|
|
|
+ "refField": "DP_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "单据编号",
|
|
|
+ "columnName": "I_CODE",
|
|
|
+ "type": "code",
|
|
|
+ "length": 50
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "入库日期",
|
|
|
+ "columnName": "I_DATE",
|
|
|
+ "type": "date"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "仓管员",
|
|
|
+ "columnName": "I_STOREKEEPER",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_employee",
|
|
|
+ "refField": "EM_NAME",
|
|
|
+ "parentRefField": "I_RECDEPT"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "采购员",
|
|
|
+ "columnName": "I_PURCHASER",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_employee",
|
|
|
+ "refField": "EM_NAME",
|
|
|
+ "parentRefField": "I_PURDEPT"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "供应商",
|
|
|
+ "columnName": "I_SUPPLIER",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_supplier",
|
|
|
+ "refField": "SU_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "供货方",
|
|
|
+ "columnName": "I_PROVIDER",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_supplier",
|
|
|
+ "refField": "SU_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "供货方联系人",
|
|
|
+ "columnName": "I_PROVIDER_CT",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_supplieI_ct",
|
|
|
+ "refField": "SC_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "供货方地址",
|
|
|
+ "columnName": "I_PROVIDER_ADDR",
|
|
|
+ "type": "textarea",
|
|
|
+ "length": 255
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "结算方",
|
|
|
+ "columnName": "I_SETTLE",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_supplier",
|
|
|
+ "refField": "SU_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "收款方",
|
|
|
+ "columnName": "I_CHARGE",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_supplier",
|
|
|
+ "refField": "SU_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "创建人",
|
|
|
+ "columnName": "I_CREATOR",
|
|
|
+ "type": "creator"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "创建日期",
|
|
|
+ "columnName": "I_CREATEDATE",
|
|
|
+ "type": "createDate"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "修改人",
|
|
|
+ "columnName": "I_MODIFIER",
|
|
|
+ "type": "modifier"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "修改日期",
|
|
|
+ "columnName": "I_MODIFYDATE",
|
|
|
+ "type": "modifyDate"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "审核人",
|
|
|
+ "columnName": "I_AUDITOR",
|
|
|
+ "type": "user",
|
|
|
+ "disableOnAdd": true,
|
|
|
+ "disableOnEdit": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "审核日期",
|
|
|
+ "columnName": "I_AUDITDATE",
|
|
|
+ "type": "date",
|
|
|
+ "disableOnAdd": true,
|
|
|
+ "disableOnEdit": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "单据状态",
|
|
|
+ "columnName": "I_STATUS",
|
|
|
+ "type": "status",
|
|
|
+ "statusList": [
|
|
|
+ {
|
|
|
+ "code": "E",
|
|
|
+ "name": "在录入",
|
|
|
+ "controls": [
|
|
|
+ {
|
|
|
+ "type": "menubar",
|
|
|
+ "scope": [
|
|
|
+ "copyBtn",
|
|
|
+ "unSubmitBtn",
|
|
|
+ "auditMenu"
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "code": "S",
|
|
|
+ "name": "已提交",
|
|
|
+ "controls": [
|
|
|
+ {
|
|
|
+ "type": "menubar",
|
|
|
+ "scope": [
|
|
|
+ "submitBtn",
|
|
|
+ "unAuditBtn"
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "code": "A",
|
|
|
+ "name": "已审核",
|
|
|
+ "controls": [
|
|
|
+ {
|
|
|
+ "type": "menubar",
|
|
|
+ "scope": [
|
|
|
+ "submitMenu",
|
|
|
+ "auditBtn"
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "作废人",
|
|
|
+ "columnName": "I_CANCELLER",
|
|
|
+ "type": "user",
|
|
|
+ "disableOnAdd": true,
|
|
|
+ "disableOnEdit": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "作废日期",
|
|
|
+ "columnName": "I_CANCELDATE",
|
|
|
+ "type": "date",
|
|
|
+ "disableOnAdd": true,
|
|
|
+ "disableOnEdit": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "作废状态",
|
|
|
+ "columnName": "I_CANCELSTATUS",
|
|
|
+ "type": "status",
|
|
|
+ "statusList": [
|
|
|
+ {
|
|
|
+ "code": "N",
|
|
|
+ "name": "未作废"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "code": "Y",
|
|
|
+ "name": "已作废"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "明细信息",
|
|
|
+ "tableName": "STK_PURIN_ENTRY",
|
|
|
+ "type": "entry",
|
|
|
+ "idColumnName": "IE_ID",
|
|
|
+ "seqColumnName": "IE_NO",
|
|
|
+ "defaultRowSize": 1,
|
|
|
+ "fields": [
|
|
|
+ {
|
|
|
+ "name": "入库类型",
|
|
|
+ "columnName": "IE_INTYPE",
|
|
|
+ "type": "baseData"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "物料编码",
|
|
|
+ "columnName": "IE_PROD",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_product",
|
|
|
+ "refField": "PI_CODE"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "物料名称",
|
|
|
+ "columnName": "IE_PRODNAME",
|
|
|
+ "type": "baseDataProp",
|
|
|
+ "baseDataField": "IE_PROD",
|
|
|
+ "refField": "PI_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "规格型号",
|
|
|
+ "columnName": "IE_PRODSPEC",
|
|
|
+ "type": "baseDataProp",
|
|
|
+ "baseDataField": "IE_PROD",
|
|
|
+ "refField": "PI_SPEC"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "库存单位",
|
|
|
+ "columnName": "IE_UNIT",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_unit",
|
|
|
+ "refField": "UN_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "应收数量",
|
|
|
+ "columnName": "IE_EXPECTED_QTY",
|
|
|
+ "type": "qty"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "实收数量",
|
|
|
+ "columnName": "IE_ACTUAL_QTY",
|
|
|
+ "type": "qty",
|
|
|
+ "defaultValue": 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "计价单位",
|
|
|
+ "columnName": "IE_PRICE_UNIT",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_unit",
|
|
|
+ "refField": "UN_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "计价数量",
|
|
|
+ "columnName": "IE_PRICE_QTY",
|
|
|
+ "type": "qty"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "批号",
|
|
|
+ "columnName": "IE_BATCH",
|
|
|
+ "type": "batch",
|
|
|
+ "ref": "stk_batch",
|
|
|
+ "refField": "BA_CODE"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "仓库",
|
|
|
+ "columnName": "IE_WAREHOUSE",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_warehouse",
|
|
|
+ "refField": "WH_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "库存状态",
|
|
|
+ "columnName": "IE_STOCK_STATUS",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_stockstatus",
|
|
|
+ "refField": "SS_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "是否赠品",
|
|
|
+ "columnName": "IE_GIVEAWAY",
|
|
|
+ "type": "checkbox"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "备注",
|
|
|
+ "columnName": "IE_REMARK",
|
|
|
+ "type": "textarea",
|
|
|
+ "length": 255
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "采购单位",
|
|
|
+ "columnName": "IE_PUI_UNIT",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_unit",
|
|
|
+ "refField": "UN_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "采购数量",
|
|
|
+ "columnName": "IE_PUI_QTY",
|
|
|
+ "type": "qty"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "财务信息",
|
|
|
+ "tableName": "STK_PURIN_FIN",
|
|
|
+ "type": "subHead",
|
|
|
+ "idColumnName": "IF_ID",
|
|
|
+ "fields": [
|
|
|
+ {
|
|
|
+ "name": "定价时点",
|
|
|
+ "columnName": "IF_PRICE_DATE",
|
|
|
+ "type": "enumData",
|
|
|
+ "ref": "base_price_date"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "本位币",
|
|
|
+ "columnName": "IF_LOCAL_CURR",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_currency",
|
|
|
+ "refField": "CI_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "结算方式",
|
|
|
+ "columnName": "IF_SETTLE",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_settle",
|
|
|
+ "refField": "SE_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "价目表",
|
|
|
+ "columnName": "IF_PRICE_LIST",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "scm_purchase_price",
|
|
|
+ "refField": "PP_CODE"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "汇率类型",
|
|
|
+ "columnName": "IF_EXCHANGE_TYPE",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_exchange_type",
|
|
|
+ "refField": "ET_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "结算币别",
|
|
|
+ "columnName": "IF_CURRENCY",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_currency",
|
|
|
+ "refField": "CI_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "折扣表",
|
|
|
+ "columnName": "IF_DISCOUNT_LIST",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "scm_purchase_discount",
|
|
|
+ "refField": "PD_CODE"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "汇率",
|
|
|
+ "columnName": "IF_EXCHANGE_RATE",
|
|
|
+ "type": "float",
|
|
|
+ "length": 23,
|
|
|
+ "decimalDigit": 10
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "付款条件",
|
|
|
+ "columnName": "IF_PAYCOND",
|
|
|
+ "type": "baseData",
|
|
|
+ "ref": "base_paycondition",
|
|
|
+ "refField": "PA_NAME"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "金额",
|
|
|
+ "columnName": "IF_AMOUNT",
|
|
|
+ "type": "amount",
|
|
|
+ "refField": "IF_CURRENCY"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "税额",
|
|
|
+ "columnName": "IF_TAX_AMOUNT",
|
|
|
+ "type": "amount",
|
|
|
+ "refField": "IF_CURRENCY"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "价税合计",
|
|
|
+ "columnName": "IF_ALL_AMOUNT",
|
|
|
+ "type": "amount",
|
|
|
+ "refField": "IF_CURRENCY"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "含税",
|
|
|
+ "columnName": "IF_INCLUDE_TAX",
|
|
|
+ "type": "checkbox"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "name": "价外税",
|
|
|
+ "columnName": "IF_PRICEEX_TAX",
|
|
|
+ "type": "checkbox"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "operations": [
|
|
|
+ {
|
|
|
+ "id": "save",
|
|
|
+ "name": "保存",
|
|
|
+ "type": "save"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "submit",
|
|
|
+ "name": "提交",
|
|
|
+ "type": "changeStatus",
|
|
|
+ "params": {
|
|
|
+ "statusField": "I_STATUS",
|
|
|
+ "statusValue": "S"
|
|
|
+ },
|
|
|
+ "validators": [
|
|
|
+ {
|
|
|
+ "type": "legal",
|
|
|
+ "description": "状态 = 在录入,允许",
|
|
|
+ "params": {
|
|
|
+ "filter": {
|
|
|
+ "field": "STK_PURIN.I_STATUS",
|
|
|
+ "compare": "=",
|
|
|
+ "value": "E"
|
|
|
+ },
|
|
|
+ "triggerOnTrue": false,
|
|
|
+ "message": "只能提交在录入的单据"
|
|
|
+ },
|
|
|
+ "level": "error"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "log": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "unSubmit",
|
|
|
+ "name": "反提交",
|
|
|
+ "type": "changeStatus",
|
|
|
+ "params": {
|
|
|
+ "statusField": "I_STATUS",
|
|
|
+ "statusValue": "E"
|
|
|
+ },
|
|
|
+ "validators": [
|
|
|
+ {
|
|
|
+ "type": "legal",
|
|
|
+ "description": "状态 = 已提交,允许",
|
|
|
+ "params": {
|
|
|
+ "filter": {
|
|
|
+ "field": "STK_PURIN.I_STATUS",
|
|
|
+ "compare": "=",
|
|
|
+ "value": "E"
|
|
|
+ },
|
|
|
+ "triggerOnTrue": false,
|
|
|
+ "message": "单据未提交"
|
|
|
+ },
|
|
|
+ "level": "error"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "log": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "audit",
|
|
|
+ "name": "审核",
|
|
|
+ "type": "changeStatus",
|
|
|
+ "params": {
|
|
|
+ "statusField": "I_STATUS",
|
|
|
+ "statusValue": "A"
|
|
|
+ },
|
|
|
+ "validators": [
|
|
|
+ {
|
|
|
+ "type": "legal",
|
|
|
+ "description": "状态 = 在录入,不允许",
|
|
|
+ "params": {
|
|
|
+ "filter": {
|
|
|
+ "field": "STK_PURIN.I_STATUS",
|
|
|
+ "compare": "=",
|
|
|
+ "value": "E"
|
|
|
+ },
|
|
|
+ "triggerOnTrue": true,
|
|
|
+ "message": "请先提交单据"
|
|
|
+ },
|
|
|
+ "level": "error"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "legal",
|
|
|
+ "description": "状态 = 已审核,不允许",
|
|
|
+ "params": {
|
|
|
+ "filter": {
|
|
|
+ "field": "STK_PURIN.I_STATUS",
|
|
|
+ "compare": "=",
|
|
|
+ "value": "A"
|
|
|
+ },
|
|
|
+ "triggerOnTrue": true,
|
|
|
+ "message": "单据已经审核,无需再审"
|
|
|
+ },
|
|
|
+ "level": "error"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "log": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "unAudit",
|
|
|
+ "name": "反审核",
|
|
|
+ "type": "changeStatus",
|
|
|
+ "params": {
|
|
|
+ "statusField": "I_STATUS",
|
|
|
+ "statusValue": "E"
|
|
|
+ },
|
|
|
+ "validators": [
|
|
|
+ {
|
|
|
+ "type": "legal",
|
|
|
+ "description": "状态 = 已审核,允许",
|
|
|
+ "params": {
|
|
|
+ "filter": {
|
|
|
+ "field": "STK_PURIN.I_STATUS",
|
|
|
+ "compare": "=",
|
|
|
+ "value": "A"
|
|
|
+ },
|
|
|
+ "triggerOnTrue": false,
|
|
|
+ "message": "单据未审核"
|
|
|
+ },
|
|
|
+ "level": "error"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "log": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "new",
|
|
|
+ "name": "新增",
|
|
|
+ "type": "addView",
|
|
|
+ "params": {
|
|
|
+ "viewName": "stk_pur_in",
|
|
|
+ "viewType": "form",
|
|
|
+ "openType": "card"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "close",
|
|
|
+ "name": "关闭",
|
|
|
+ "type": "closeView"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "showList",
|
|
|
+ "name": "列表",
|
|
|
+ "type": "addView",
|
|
|
+ "params": {
|
|
|
+ "viewName": "stk_pur_in",
|
|
|
+ "viewType": "list",
|
|
|
+ "openType": "card"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "newEntry",
|
|
|
+ "name": "新增明细行",
|
|
|
+ "type": "newEntry",
|
|
|
+ "params": {
|
|
|
+ "entity": "STK_PURIN_ENTRY"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "codeRules": [
|
|
|
+ {
|
|
|
+ "default": true,
|
|
|
+ "name": "采购入库编码规则",
|
|
|
+ "description": "采购入库编码规则",
|
|
|
+ "editable": true,
|
|
|
+ "repairable": true,
|
|
|
+ "entries": [
|
|
|
+ {
|
|
|
+ "type": "date",
|
|
|
+ "field": "I_DATE",
|
|
|
+ "format": "yyyyMM"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "number",
|
|
|
+ "cover": "0",
|
|
|
+ "seed": 1,
|
|
|
+ "increment": 1,
|
|
|
+ "length": 4
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "views": [
|
|
|
+ {
|
|
|
+ "viewType": "form",
|
|
|
+ "appearance": {
|
|
|
+ "layout": "fit",
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "xtype": "form",
|
|
|
+ "menubar": [
|
|
|
+ {
|
|
|
+ "text": "新增",
|
|
|
+ "itemId": "newMenu",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "新增",
|
|
|
+ "itemId": "newBtn"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "复制",
|
|
|
+ "itemId": "copyBtn"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "保存",
|
|
|
+ "itemId": "saveBtn",
|
|
|
+ "operation": "save"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "提交",
|
|
|
+ "itemId": "submitMenu",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "提交",
|
|
|
+ "itemId": "submitBtn",
|
|
|
+ "operation": "submit"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "反提交",
|
|
|
+ "itemId": "unSubmitBtn",
|
|
|
+ "operation": "unSubmit"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "审核",
|
|
|
+ "itemId": "auditMenu",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "审核",
|
|
|
+ "itemId": "auditBtn",
|
|
|
+ "operation": "audit"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "反审核",
|
|
|
+ "itemId": "unAuditBtn",
|
|
|
+ "operation": "unAudit"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "选单",
|
|
|
+ "itemId": "pullBtn",
|
|
|
+ "operation": "showPullView"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "下推",
|
|
|
+ "itemId": "pushBtn",
|
|
|
+ "operation": "showPushView",
|
|
|
+ "disableOnAdd": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "业务操作",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "作废"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "反作废"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "凭证",
|
|
|
+ "itemId": "voucherMenu",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "查看业务凭证",
|
|
|
+ "itemId": "bizVoucherBtn",
|
|
|
+ "disableOnAdd": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "查看总账凭证",
|
|
|
+ "itemId": "glVoucherBtn",
|
|
|
+ "disableOnAdd": true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "列表",
|
|
|
+ "itemId": "showListBtn",
|
|
|
+ "operation": "showList"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "退出",
|
|
|
+ "itemId": "closeBtn",
|
|
|
+ "operation": "close"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "layout": {
|
|
|
+ "type": "vbox",
|
|
|
+ "pack": "start",
|
|
|
+ "align": "stretch"
|
|
|
+ },
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "xtype": "tabpanel",
|
|
|
+ "ui": "form",
|
|
|
+ "height": 200,
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "title": "基本信息",
|
|
|
+ "layout": "absolute",
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "xtype": "combobox",
|
|
|
+ "fieldLabel": "单据类型",
|
|
|
+ "itemId": "STK_PURIN_I_BILLTYPE",
|
|
|
+ "bind": "{STK_PURIN.I_BILLTYPE}",
|
|
|
+ "x": 10,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "textfield",
|
|
|
+ "fieldLabel": "单据编号",
|
|
|
+ "itemId": "STK_PURIN_I_CODE",
|
|
|
+ "bind": "{STK_PURIN.I_CODE}",
|
|
|
+ "emptyText": "保存时自动生成",
|
|
|
+ "x": 10,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "combobox",
|
|
|
+ "fieldLabel": "业务类型",
|
|
|
+ "itemId": "STK_PURIN_I_BIZTYPE",
|
|
|
+ "bind": "{STK_PURIN.I_BIZTYPE}",
|
|
|
+ "x": 10,
|
|
|
+ "y": 90,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "供应商",
|
|
|
+ "itemId": "STK_PURIN_I_SUPPLIER",
|
|
|
+ "bind": "{STK_PURIN.I_SUPPLIER}",
|
|
|
+ "x": 310,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "采购部门",
|
|
|
+ "itemId": "STK_PURIN_I_PURDEPT",
|
|
|
+ "bind": "{STK_PURIN.I_PURDEPT}",
|
|
|
+ "x": 310,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "采购员",
|
|
|
+ "itemId": "STK_PURIN_I_PURCHASER",
|
|
|
+ "bind": "{STK_PURIN.I_PURCHASER}",
|
|
|
+ "x": 310,
|
|
|
+ "y": 90,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "datefield",
|
|
|
+ "fieldLabel": "入库日期",
|
|
|
+ "itemId": "STK_PURIN_I_DATE",
|
|
|
+ "bind": "{STK_PURIN.I_DATE}",
|
|
|
+ "x": 610,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "收料部门",
|
|
|
+ "itemId": "STK_PURIN_I_RECDEPT",
|
|
|
+ "bind": "{STK_PURIN.I_RECDEPT}",
|
|
|
+ "x": 610,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "仓管员",
|
|
|
+ "itemId": "STK_PURIN_I_STOREKEEPER",
|
|
|
+ "bind": "{STK_PURIN.I_STOREKEEPER}",
|
|
|
+ "x": 610,
|
|
|
+ "y": 90,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "textfield",
|
|
|
+ "fieldLabel": "单据状态",
|
|
|
+ "itemId": "STK_PURIN_I_STATUS",
|
|
|
+ "bind": "{STK_PURIN.I_STATUS}",
|
|
|
+ "x": 910,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300,
|
|
|
+ "disabled": true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "title": "供应商信息",
|
|
|
+ "layout": "absolute",
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "供货方",
|
|
|
+ "itemId": "STK_PURIN_I_PROVIDER",
|
|
|
+ "bind": "{STK_PURIN.I_PROVIDER}",
|
|
|
+ "x": 10,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "结算方",
|
|
|
+ "itemId": "STK_PURIN_I_SETTLE",
|
|
|
+ "bind": "{STK_PURIN.I_SETTLE}",
|
|
|
+ "x": 10,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "收款方",
|
|
|
+ "itemId": "STK_PURIN_I_CHARGE",
|
|
|
+ "bind": "{STK_PURIN.I_CHARGE}",
|
|
|
+ "x": 10,
|
|
|
+ "y": 90,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "供货方联系人",
|
|
|
+ "itemId": "STK_PURIN_I_PROVIDER_CT",
|
|
|
+ "bind": "{STK_PURIN.I_PROVIDER_CT}",
|
|
|
+ "x": 310,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "textarea",
|
|
|
+ "fieldLabel": "供货方地址",
|
|
|
+ "itemId": "STK_PURIN_I_PROVIDER_ADDR",
|
|
|
+ "bind": "{STK_PURIN.I_PROVIDER_ADDR}",
|
|
|
+ "x": 610,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "title": "财务信息",
|
|
|
+ "layout": "absolute",
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "本位币",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_LOCAL_CURR",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_LOCAL_CURR}",
|
|
|
+ "x": 10,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "结算币别",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_CURRENCY",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_CURRENCY}",
|
|
|
+ "x": 10,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "汇率类型",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_EXCHANGE_TYPE",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_EXCHANGE_TYPE}",
|
|
|
+ "x": 10,
|
|
|
+ "y": 90,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "numberfield",
|
|
|
+ "fieldLabel": "汇率",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_EXCHANGE_RATE",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_EXCHANGE_RATE}",
|
|
|
+ "x": 10,
|
|
|
+ "y": 130,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "combobox",
|
|
|
+ "fieldLabel": "定价时点",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_PRICE_DATE",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_PRICE_DATE}",
|
|
|
+ "x": 310,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "结算方式",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_SETTLE",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_SETTLE}",
|
|
|
+ "x": 310,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "价目表",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_PRICE_LIST",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_PRICE_LIST}",
|
|
|
+ "x": 310,
|
|
|
+ "y": 90,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "折扣表",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_DISCOUNT_LIST",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_DISCOUNT_LIST}",
|
|
|
+ "x": 310,
|
|
|
+ "y": 130,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "searchfield",
|
|
|
+ "fieldLabel": "付款条件",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_PAYCOND",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_PAYCOND}",
|
|
|
+ "x": 610,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "numberfield",
|
|
|
+ "fieldLabel": "金额",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_AMOUNT",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_AMOUNT}",
|
|
|
+ "x": 610,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "numberfield",
|
|
|
+ "fieldLabel": "税额",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_TAX_AMOUNT",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_TAX_AMOUNT}",
|
|
|
+ "x": 610,
|
|
|
+ "y": 90,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "numberfield",
|
|
|
+ "fieldLabel": "价税合计",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_ALL_AMOUNT",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_ALL_AMOUNT}",
|
|
|
+ "x": 610,
|
|
|
+ "y": 130,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "checkbox",
|
|
|
+ "fieldLabel": "含税",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_INCLUDE_TAX",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_INCLUDE_TAX}",
|
|
|
+ "x": 910,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "checkbox",
|
|
|
+ "fieldLabel": "价外税",
|
|
|
+ "itemId": "STK_PURIN_FIN_IF_PRICEEX_TAX",
|
|
|
+ "bind": "{STK_PURIN_FIN.IF_PRICEEX_TAX}",
|
|
|
+ "x": 910,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "title": "其他",
|
|
|
+ "layout": "absolute",
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "x": 10,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300,
|
|
|
+ "fieldLabel": "创建人",
|
|
|
+ "xtype": "textfield",
|
|
|
+ "itemId": "STK_PURIN_I_CREATOR",
|
|
|
+ "bind": "{STK_PURIN.I_CREATOR}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "x": 10,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300,
|
|
|
+ "fieldLabel": "创建日期",
|
|
|
+ "xtype": "datefield",
|
|
|
+ "itemId": "STK_PURIN_I_CREATEDATE",
|
|
|
+ "bind": "{STK_PURIN.I_CREATEDATE}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "x": 310,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300,
|
|
|
+ "fieldLabel": "修改人",
|
|
|
+ "xtype": "textfield",
|
|
|
+ "itemId": "STK_PURIN_I_MODIFIER",
|
|
|
+ "bind": "{STK_PURIN.I_MODIFIER}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "x": 310,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300,
|
|
|
+ "fieldLabel": "修改日期",
|
|
|
+ "xtype": "datefield",
|
|
|
+ "itemId": "STK_PURIN_I_MODIFYDATE",
|
|
|
+ "bind": "{STK_PURIN.I_MODIFYDATE}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "x": 610,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300,
|
|
|
+ "fieldLabel": "审核人",
|
|
|
+ "xtype": "textfield",
|
|
|
+ "itemId": "STK_PURIN_I_AUDITOR",
|
|
|
+ "bind": "{STK_PURIN.I_AUDITOR}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "x": 610,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300,
|
|
|
+ "fieldLabel": "审核日期",
|
|
|
+ "xtype": "datefield",
|
|
|
+ "itemId": "STK_PURIN_I_AUDITDATE",
|
|
|
+ "bind": "{STK_PURIN.I_AUDITDATE}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "x": 910,
|
|
|
+ "y": 10,
|
|
|
+ "width": 300,
|
|
|
+ "fieldLabel": "作废人",
|
|
|
+ "xtype": "textfield",
|
|
|
+ "itemId": "STK_PURIN_I_CANCELLER",
|
|
|
+ "bind": "{STK_PURIN.I_CANCELLER}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "x": 910,
|
|
|
+ "y": 50,
|
|
|
+ "width": 300,
|
|
|
+ "fieldLabel": "作废日期",
|
|
|
+ "xtype": "datefield",
|
|
|
+ "itemId": "STK_PURIN_I_CANCELDATE",
|
|
|
+ "bind": "{STK_PURIN.I_CANCELDATE}"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "x": 910,
|
|
|
+ "y": 90,
|
|
|
+ "width": 300,
|
|
|
+ "fieldLabel": "作废状态",
|
|
|
+ "xtype": "textfield",
|
|
|
+ "itemId": "STK_PURIN_I_CANCELSTATUS",
|
|
|
+ "bind": "{STK_PURIN.I_CANCELSTATUS}"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "tabpanel",
|
|
|
+ "ui": "form",
|
|
|
+ "flex": 1,
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "title": "明细信息",
|
|
|
+ "layout": "fit",
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "xtype": "gridpanel",
|
|
|
+ "menubar": [
|
|
|
+ {
|
|
|
+ "text": "新增行",
|
|
|
+ "itemId": "newEntryMenu",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "新增行",
|
|
|
+ "itemId": "newEntryBtn",
|
|
|
+ "operation": "newEntry"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "插入行",
|
|
|
+ "itemId": "insertEntryBtn"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "复制行",
|
|
|
+ "itemId": "copyEntryBtn"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "删除行",
|
|
|
+ "itemId": "delEntryBtn"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "批量填充"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "业务操作",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "获取批号"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "业务查询",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "库存查询"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "批号主档"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "bind": "{STK_PURIN_ENTRY}",
|
|
|
+ "editable": true,
|
|
|
+ "ui": "form",
|
|
|
+ "columns": [
|
|
|
+ {
|
|
|
+ "text": "序号",
|
|
|
+ "align": "center",
|
|
|
+ "dataIndex": "IE_NO",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_NO",
|
|
|
+ "width": 60
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "入库类型",
|
|
|
+ "align": "center",
|
|
|
+ "dataIndex": "IE_INTYPE",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_INTYPE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "物料编码",
|
|
|
+ "xtype": "searchcolumn",
|
|
|
+ "dataIndex": "IE_PROD",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_PROD",
|
|
|
+ "editor": {
|
|
|
+ "xtype": "searchfield"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "物料名称",
|
|
|
+ "dataIndex": "IE_PRODNAME",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_PRODNAME",
|
|
|
+ "width": 160
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "规格型号",
|
|
|
+ "dataIndex": "IE_PRODSPEC",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_PRODSPEC",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "库存单位",
|
|
|
+ "xtype": "searchcolumn",
|
|
|
+ "dataIndex": "IE_UNIT",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_UNIT",
|
|
|
+ "editor": {
|
|
|
+ "xtype": "searchfield"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "应收数量",
|
|
|
+ "xtype": "numbercolumn",
|
|
|
+ "dataIndex": "IE_EXPECTED_QTY",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_EXPECTED_QTY"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "实收数量",
|
|
|
+ "xtype": "numbercolumn",
|
|
|
+ "dataIndex": "IE_ACTUAL_QTY",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_ACTUAL_QTY",
|
|
|
+ "editor": {
|
|
|
+ "xtype": "numberfield"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "计价单位",
|
|
|
+ "xtype": "searchcolumn",
|
|
|
+ "dataIndex": "IE_PRICE_UNIT",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_PRICE_UNIT",
|
|
|
+ "editor": {
|
|
|
+ "xtype": "searchfield"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "计价数量",
|
|
|
+ "xtype": "numbercolumn",
|
|
|
+ "dataIndex": "IE_PRICE_QTY",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_PRICE_QTY",
|
|
|
+ "editor": {
|
|
|
+ "xtype": "numberfield"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "批号",
|
|
|
+ "dataIndex": "IE_BATCH",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_BATCH"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "仓库",
|
|
|
+ "xtype": "searchcolumn",
|
|
|
+ "dataIndex": "IE_WAREHOUSE",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_WAREHOUSE",
|
|
|
+ "editor": {
|
|
|
+ "xtype": "searchfield"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "库存状态",
|
|
|
+ "xtype": "searchcolumn",
|
|
|
+ "dataIndex": "IE_STOCK_STATUS",
|
|
|
+ "itemId": "STK_PURIN_ENTRY_IE_STOCK_STATUS",
|
|
|
+ "editor": {
|
|
|
+ "xtype": "searchfield"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "title": "物料数据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "title": "明细财务信息"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "title": "其他信息"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "viewType": "list",
|
|
|
+ "appearance": {
|
|
|
+ "layout": "fit",
|
|
|
+ "items": [
|
|
|
+ {
|
|
|
+ "xtype": "gridpanel",
|
|
|
+ "ui": "form",
|
|
|
+ "menubar": [
|
|
|
+ {
|
|
|
+ "text": "过滤"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "刷新"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "新增",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "新增",
|
|
|
+ "itemId": "newBtn",
|
|
|
+ "operation": "new"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "复制"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "删除"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "提交",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "提交"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "反提交"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "审核",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "审核"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "反审核"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "下推"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "关联查询",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "上查"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "下查"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "menuseparator"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "业务流程图"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "全流程跟踪"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "业务操作",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "作废"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "反作废"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "menuseparator"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "拆单"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "合并"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "选项",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "选项"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "menuseparator"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "打印"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "预览"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "套打",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "套打设置"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "menuseparator"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "连续套打全部单据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "连续套打所选单据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "连续套打预览全部单据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "连续套打预览所选单据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "menuseparator"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "合并套打全部单据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "合并套打所选单据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "合并套打预览全部单据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "合并套打预览所选单据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "menuseparator"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "套打导出"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "分批打印全部单据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "分批打印所选单据"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "menuseparator"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "导入",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "导入"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "导入模板设置"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "导出",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "导出模板设置"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "按列表导出数据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "按导出模板导出数据"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "按导入模板导出数据"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "xtype": "menuseparator"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "附件"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "凭证",
|
|
|
+ "menu": [
|
|
|
+ {
|
|
|
+ "text": "查看业务凭证"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "查看总账凭证"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "text": "退出"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "showScheme": true,
|
|
|
+ "showHeaderFilter": true,
|
|
|
+ "showPagingBar": true,
|
|
|
+ "selType": "checkboxmodel"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ "schemes": [
|
|
|
+ {
|
|
|
+ "id": "default",
|
|
|
+ "name": "缺省方案",
|
|
|
+ "columns": [
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_CODE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_DATE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_SUPPLIER",
|
|
|
+ "width": 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_STATUS",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_PROD",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_PRODNAME",
|
|
|
+ "width": 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_UNIT",
|
|
|
+ "width": 80
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_ACTUAL_QTY",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_BATCH",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_WAREHOUSE",
|
|
|
+ "width": 100
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "today",
|
|
|
+ "name": "今天",
|
|
|
+ "filter": {
|
|
|
+ "field": "STK_PURIN.I_CREATEDATE",
|
|
|
+ "compare": "=",
|
|
|
+ "value": "today"
|
|
|
+ },
|
|
|
+ "columns": [
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_CODE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_DATE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_SUPPLIER",
|
|
|
+ "width": 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_STATUS",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_PROD",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_PRODNAME",
|
|
|
+ "width": 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_UNIT",
|
|
|
+ "width": 80
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_ACTUAL_QTY",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_BATCH",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_WAREHOUSE",
|
|
|
+ "width": 100
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "thisWeek",
|
|
|
+ "name": "本周",
|
|
|
+ "filter": {
|
|
|
+ "field": "STK_PURIN.I_CREATEDATE",
|
|
|
+ "compare": "=",
|
|
|
+ "value": "thisWeek"
|
|
|
+ },
|
|
|
+ "columns": [
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_CODE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_DATE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_SUPPLIER",
|
|
|
+ "width": 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_STATUS",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_PROD",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_PRODNAME",
|
|
|
+ "width": 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_UNIT",
|
|
|
+ "width": 80
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_ACTUAL_QTY",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_BATCH",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_WAREHOUSE",
|
|
|
+ "width": 100
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "default": true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "thisMonth",
|
|
|
+ "name": "本月",
|
|
|
+ "filter": {
|
|
|
+ "field": "STK_PURIN.I_CREATEDATE",
|
|
|
+ "compare": "=",
|
|
|
+ "value": "thisMonth"
|
|
|
+ },
|
|
|
+ "columns": [
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_CODE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_DATE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_SUPPLIER",
|
|
|
+ "width": 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_STATUS",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_PROD",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_PRODNAME",
|
|
|
+ "width": 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_UNIT",
|
|
|
+ "width": 80
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_ACTUAL_QTY",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_BATCH",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_WAREHOUSE",
|
|
|
+ "width": 100
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": "unAudit",
|
|
|
+ "name": "待审核",
|
|
|
+ "filter": {
|
|
|
+ "field": "STK_PURIN.I_STATUS",
|
|
|
+ "compare": "=",
|
|
|
+ "value": "S"
|
|
|
+ },
|
|
|
+ "columns": [
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_CODE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_DATE",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_SUPPLIER",
|
|
|
+ "width": 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN",
|
|
|
+ "field": "I_STATUS",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_PROD",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_PRODNAME",
|
|
|
+ "width": 200
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_UNIT",
|
|
|
+ "width": 80
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_ACTUAL_QTY",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_BATCH",
|
|
|
+ "width": 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "entity": "STK_PURIN_ENTRY",
|
|
|
+ "field": "IE_WAREHOUSE",
|
|
|
+ "width": 100
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+]
|