|
|
@ -147,7 +147,8 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
{ name: 'TTLINVDR', type: 'number' },
|
|
|
|
{ name: 'TTLINVDR', type: 'number' },
|
|
|
|
{ name: 'TTLDUIDR', type: 'number' },
|
|
|
|
{ name: 'TTLDUIDR', type: 'number' },
|
|
|
|
{ name: 'PROFITRATE', type: 'string' },
|
|
|
|
{ name: 'PROFITRATE', type: 'string' },
|
|
|
|
{ name: 'BillFeeStatus', type: 'string' }
|
|
|
|
{ name: 'BillFeeStatus', type: 'string' },
|
|
|
|
|
|
|
|
{ name: 'SUBMITSTATUS', type: 'string' }
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
remoteSort: true,
|
|
|
|
remoteSort: true,
|
|
|
@ -1042,6 +1043,11 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
dataIndex: 'PROFITRATE',
|
|
|
|
dataIndex: 'PROFITRATE',
|
|
|
|
header: '利润率',
|
|
|
|
header: '利润率',
|
|
|
|
width: 80
|
|
|
|
width: 80
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
sortable: true,
|
|
|
|
|
|
|
|
dataIndex: 'SUBMITSTATUS',
|
|
|
|
|
|
|
|
header: '提交状态',
|
|
|
|
|
|
|
|
width: 70
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
];
|
|
|
@ -1289,6 +1295,33 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.StoreSubmit = Ext.create('Ext.data.Store', {
|
|
|
|
|
|
|
|
fields: ['SUBMITSTATUS']
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.StoreSubmit.add({ "SUBMITSTATUS": "" });
|
|
|
|
|
|
|
|
this.StoreSubmit.add({ "SUBMITSTATUS": "全部" });
|
|
|
|
|
|
|
|
this.StoreSubmit.add({ "SUBMITSTATUS": "已提交" });
|
|
|
|
|
|
|
|
this.StoreSubmit.add({ "SUBMITSTATUS": "未提交" });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.comboxSubmit = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
|
|
|
fieldLabel: '显示已提交',
|
|
|
|
|
|
|
|
store: this.StoreSubmit,
|
|
|
|
|
|
|
|
forceSelection: true,
|
|
|
|
|
|
|
|
// flex: 0.5,
|
|
|
|
|
|
|
|
//labelWidth: 60,
|
|
|
|
|
|
|
|
name: 'SUBMITSTATUS',
|
|
|
|
|
|
|
|
valueField: 'SUBMITSTATUS',
|
|
|
|
|
|
|
|
displayField: 'SUBMITSTATUS',
|
|
|
|
|
|
|
|
enableKeyEvents: true,
|
|
|
|
|
|
|
|
listeners: {
|
|
|
|
|
|
|
|
keyup: function (field, e) {
|
|
|
|
|
|
|
|
if (e.getKey() == e.ENTER) {
|
|
|
|
|
|
|
|
_this.onRefreshClick();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.StoreIsVou = Ext.create('Ext.data.Store', {
|
|
|
|
this.StoreIsVou = Ext.create('Ext.data.Store', {
|
|
|
|
fields: ['OpLb']
|
|
|
|
fields: ['OpLb']
|
|
|
@ -1430,7 +1463,8 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
defaults: {
|
|
|
|
defaults: {
|
|
|
|
anchor: '100%'
|
|
|
|
anchor: '100%'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
items: [{
|
|
|
|
items: [
|
|
|
|
|
|
|
|
{
|
|
|
|
xtype: 'container',
|
|
|
|
xtype: 'container',
|
|
|
|
layout: 'hbox',
|
|
|
|
layout: 'hbox',
|
|
|
|
defaultType: 'textfield',
|
|
|
|
defaultType: 'textfield',
|
|
|
@ -1485,7 +1519,9 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
, this.comboxOp, this.comboxBillFeeStatus, this.comboxFSTATUS
|
|
|
|
, this.comboxOp, this.comboxBillFeeStatus, this.comboxFSTATUS
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}, {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, {
|
|
|
|
xtype: 'container',
|
|
|
|
xtype: 'container',
|
|
|
|
layout: 'hbox',
|
|
|
|
layout: 'hbox',
|
|
|
|
defaultType: 'textfield',
|
|
|
|
defaultType: 'textfield',
|
|
|
@ -1517,7 +1553,9 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, this.comboxOpLock, this.comboxFeeLock
|
|
|
|
}, this.comboxOpLock, this.comboxFeeLock
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}, {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, {
|
|
|
|
xtype: 'container',
|
|
|
|
xtype: 'container',
|
|
|
|
layout: 'hbox',
|
|
|
|
layout: 'hbox',
|
|
|
|
defaultType: 'textfield',
|
|
|
|
defaultType: 'textfield',
|
|
|
@ -1574,6 +1612,24 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
}, this.comboxIsVou, this.comboxOPTYPE
|
|
|
|
}, this.comboxIsVou, this.comboxOPTYPE
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, {
|
|
|
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
|
|
|
items: [this.comboxSubmit
|
|
|
|
|
|
|
|
, { xtype: "hiddenfield" }
|
|
|
|
|
|
|
|
, { xtype: "hiddenfield" }
|
|
|
|
|
|
|
|
, { xtype: "hiddenfield" }
|
|
|
|
|
|
|
|
, { xtype: "hiddenfield" }
|
|
|
|
|
|
|
|
, { xtype: "hiddenfield" }
|
|
|
|
|
|
|
|
, { xtype: "hiddenfield" }
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//comboxSubmit
|
|
|
|
|
|
|
|
|
|
|
|
]//end items(fieldset 1)
|
|
|
|
]//end items(fieldset 1)
|
|
|
|
}//end fieldset 1
|
|
|
|
}//end fieldset 1
|
|
|
|
]//end root items
|
|
|
|
]//end root items
|
|
|
@ -1623,6 +1679,22 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
this.onRefreshClick(button, event);
|
|
|
|
this.onRefreshClick(button, event);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
text: "业务提交",
|
|
|
|
|
|
|
|
id: "btnBsLockSubmit",
|
|
|
|
|
|
|
|
menu: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
text: "所选业务提交",
|
|
|
|
|
|
|
|
handler: function (menu, event) {
|
|
|
|
|
|
|
|
_this.onSubmitLockClick(menu,1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
text: "所选业务撤回",
|
|
|
|
|
|
|
|
handler: function (menu, event) {
|
|
|
|
|
|
|
|
_this.onSubmitLockClick(menu,2);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}],
|
|
|
|
|
|
|
|
scope: this
|
|
|
|
}, '-', {
|
|
|
|
}, '-', {
|
|
|
|
text: "生成凭证",
|
|
|
|
text: "生成凭证",
|
|
|
|
id: "btnCreateVoucher",
|
|
|
|
id: "btnCreateVoucher",
|
|
|
@ -1988,7 +2060,7 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
this.panelSearch = new Ext.Panel({
|
|
|
|
this.panelSearch = new Ext.Panel({
|
|
|
|
layout: "border",
|
|
|
|
layout: "border",
|
|
|
|
region: "north",
|
|
|
|
region: "north",
|
|
|
|
height: 96,
|
|
|
|
height: 122,
|
|
|
|
items: [this.formSearch]
|
|
|
|
items: [this.formSearch]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -3225,6 +3297,85 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onSubmitLockClick: function (menu, type) {
|
|
|
|
|
|
|
|
//1 提交 2撤回
|
|
|
|
|
|
|
|
_this = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var GidStr = '';
|
|
|
|
|
|
|
|
var records = _this.GridCheckBoxModel.selected.items;
|
|
|
|
|
|
|
|
if (records.length == 0) {
|
|
|
|
|
|
|
|
Ext.Msg.show({ title: '提示', msg: '请先选择要提交的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var bodyAddDatas = [];
|
|
|
|
|
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
|
|
|
|
|
var rec = records[i];
|
|
|
|
|
|
|
|
var Gid = rec.data.BSNO;
|
|
|
|
|
|
|
|
//var status = rec.data.BSSTATUS;
|
|
|
|
|
|
|
|
//if (type == 2)
|
|
|
|
|
|
|
|
// status = rec.data.BSSTATUS
|
|
|
|
|
|
|
|
//else status = rec.data.FEESTATUS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//if (status != true) {
|
|
|
|
|
|
|
|
// bodyAddDatas.push(rec);
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
if (GidStr != "") GidStr += ",";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GidStr += "" + Gid + "";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//if (bodyAddDatas.length == 0) {
|
|
|
|
|
|
|
|
// Ext.Msg.show({ title: '提示', msg: '没有要锁定的业务!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var jsonbodyAddDatas = ConvertRecordsToJsonAll(bodyAddDatas);
|
|
|
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
|
|
|
waitMsg: '正在提交...',
|
|
|
|
|
|
|
|
url: '/Account/Chfee_lock/SubmitLock',
|
|
|
|
|
|
|
|
timeout: 120000,
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
BSNOS: GidStr,
|
|
|
|
|
|
|
|
type: type
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
callback: function (options, success, response) {
|
|
|
|
|
|
|
|
if (success) {
|
|
|
|
|
|
|
|
var result = Ext.JSON.decode(response.responseText);
|
|
|
|
|
|
|
|
if (!result.Success) {
|
|
|
|
|
|
|
|
Ext.Msg.show({
|
|
|
|
|
|
|
|
title: '提示',
|
|
|
|
|
|
|
|
msg: result.Message,
|
|
|
|
|
|
|
|
icon: Ext.MessageBox.ERROR,
|
|
|
|
|
|
|
|
buttons: Ext.Msg.OK
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Ext.Msg.show({ title: '提示', msg: result.Message, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
|
|
|
MsgTip("提示", result.Message, 3000);
|
|
|
|
|
|
|
|
_this.onDsQuery();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
Ext.MessageBox.alert('请求出现错误,请重试', response.responseText);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
scope: this
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onCreateVoucherSel: function () {
|
|
|
|
onCreateVoucherSel: function () {
|
|
|
|
|
|
|
|
|
|
|
|
var records = _this.GridCheckBoxModel.selected.items;
|
|
|
|
var records = _this.GridCheckBoxModel.selected.items;
|
|
|
@ -3487,6 +3638,14 @@ Ext.extend(Shipping.MsChfeelock, Ext.Panel, {
|
|
|
|
sql = sql + getAndConSql(sql, PS_ISVOU, " ISNULL(B.ISVOU,0)=0");
|
|
|
|
sql = sql + getAndConSql(sql, PS_ISVOU, " ISNULL(B.ISVOU,0)=0");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var SUBMITSTATUS = form.findField('SUBMITSTATUS').getValue();
|
|
|
|
|
|
|
|
if (SUBMITSTATUS == '已提交')
|
|
|
|
|
|
|
|
sql = sql + getAndConSql(sql, SUBMITSTATUS, " isnull(L.PROPVALUE,'')='已提交' ");
|
|
|
|
|
|
|
|
else if (SUBMITSTATUS == '未提交')
|
|
|
|
|
|
|
|
sql = sql + getAndConSql(sql, SUBMITSTATUS, " isnull(L.PROPVALUE,'')='' ");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var BillFeeStatus = form.findField('BillFeeStatus').getValue();
|
|
|
|
var BillFeeStatus = form.findField('BillFeeStatus').getValue();
|
|
|
|
sql = sql + getAndConSql(sql, BillFeeStatus, "BillFeeStatus='" + BillFeeStatus + "'");
|
|
|
|
sql = sql + getAndConSql(sql, BillFeeStatus, "BillFeeStatus='" + BillFeeStatus + "'");
|
|
|
|
|
|
|
|
|
|
|
|