| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- Ext.define('saas.view.money.payBalance.FormPanel', {
- extend: 'saas.view.core.form.FormPanel',
- xtype: 'money-paybalance-formpanel',
- controller: 'money-paybalance-formpanel',
- viewModel: 'money-paybalance-formpanel',
- viewName: 'money-paybalance-formpanel',
- caller: 'Purchase',
- //字段属性
- _title: '付款单',
- _idField: 'id',
- _codeField: 'pu_code',
- _statusField: 'pu_status',
- _statusCodeField: 'pu_statuscode',
-
- _relationColumn: 'pd_puid',
- _readUrl: 'http://192.168.0.181:8560/api/purchase/purchase/read/',
- _saveUrl: 'http://192.168.0.181:8560/api/purchase/purchase/save',
- _auditUrl: 'http://192.168.0.181:8560/api/purchase/purchase/audit',
- _deleteUrl: 'http://192.168.0.181:8560/api/purchase/purchase/delete/',
- _deleteDetailUrl: 'http://192.168.0.181:8560/api/purchase/purchase/deleteItem/',
- _turnInUrl: 'http://192.168.253.228:8800/purchase/turnProdin/',
- initId: 0,
- // toolBtns: [{
- // xtype: 'button',
- // text: '转采购验收单',
- // handler: 'turnIn'
- // }],
- defaultItems: [{
- xtype: 'hidden',
- name: 'id',
- fieldLabel: 'id'
- }, {
- xtype: "textfield",
- name: "pb_code",
- fieldLabel: "付款单号"
- }, {
- xtype: "hidden",
- name: "pb_vendid",
- bind: "{pb_vendid}",
- fieldLabel: "供应商ID"
- }, {
- xtype: "hidden",
- name: "pb_vendcode",
- fieldLabel: "供应商编号"
- }, {
- xtype: "dbfindtrigger",
- name: "pb_vendname",
- fieldLabel: "供应商名称"
- }, {
- xtype: 'numberfield',
- name: 'pb_pdamount',
- fieldLabel: '总欠款'
- }, {
- xtype: "datefield",
- name: "pb_date",
- fieldLabel: "日期"
- }, {
- xtype: "detailGridField",
- storeModel: 'saas.model.purchase.purchasedetail',
- _detnoColumn: 'pd_detno',
- columns: [{
- text: "序号",
- dataIndex: "pd_detno",
- width: 100,
- xtype: "numbercolumn",
- align: 'center',
- format: '0',
- summaryType: 'count',
- summaryRenderer: function (value, summaryData, dataIndex) {
- return Ext.String.format('合计: {0}条', value);
- },
- }, {
- text: '资金账户',
- dataIndex: 'pd_bankname'
- }, {
- text: "付款金额",
- dataIndex: "pd_amount",
- }, {
- text: "结算方式",
- dataIndex: "pd_paymethod"
- }, {
- text: "结算号",
- dataIndex: "pd_paycode"
- }, {
- text: "备注",
- dataIndex: "pd_remark"
- }]
- }, {
- xtype: "detailGridField",
- storeModel: 'saas.model.purchase.purchasedetail',
- _detnoColumn: 'pbd_detno',
- columns: [{
- text: "序号",
- dataIndex: "pbd_detno",
- width: 100,
- xtype: "numbercolumn",
- align: 'center',
- format: '0',
- summaryType: 'count',
- summaryRenderer: function (value, summaryData, dataIndex) {
- return Ext.String.format('合计: {0}条', value);
- },
- }, {
- text: '来源单号',
- dataIndex: 'pbd_slcode'
- }, {
- text: "业务类型",
- dataIndex: "pbd_slkind",
- }, {
- text: "单据日期",
- dataIndex: "pbd_sldate"
- }, {
- text: "单据金额",
- dataIndex: "pbd_amount"
- }, {
- text: "已核销金额",
- dataIndex: "pd_remark"
- }, {
- text: "未核销金额",
- dataIndex: "pd_remark"
- }, {
- text: "本次核销金额",
- dataIndex: "pbd_nowbalance"
- }]
- }, {
- format: "Y-m-d",
- xtype: "datefield",
- name: "createTime",
- fieldLabel: "创建时间"
- }, {
- xtype: "datefield",
- name: "updateTime",
- fieldLabel: "更新时间"
- }, {
- xtype: "textfield",
- readOnly: true,
- editable: false,
- name: "pd_status",
- fieldLabel: "单据状态"
- }, {
- xtype: "hidden",
- readOnly: true,
- editable: false,
- name: "pd_statuscode",
- fieldLabel: "单据状态码"
- }]
- });
|