|
|
@ -43,6 +43,15 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
|
|
|
|
this.bsnosql = getUrlParam('bsnosql');
|
|
|
|
this.bsnosql = getUrlParam('bsnosql');
|
|
|
|
this.bsCust = getUrlParam('bsCust');
|
|
|
|
this.bsCust = getUrlParam('bsCust');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mainWin = {};
|
|
|
|
|
|
|
|
if (!this.bsnosql) {
|
|
|
|
|
|
|
|
parentWin = window.parent.opener;
|
|
|
|
|
|
|
|
mainWin = getMainForm(parentWin);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
parentWin = window.parent.opener.opener;
|
|
|
|
|
|
|
|
mainWin = getMainForm(parentWin);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Ext.define('DsShipping.ux.MsClientGroup', {
|
|
|
|
Ext.define('DsShipping.ux.MsClientGroup', {
|
|
|
|
extend: 'Ext.data.Model',
|
|
|
|
extend: 'Ext.data.Model',
|
|
|
|
fields: [
|
|
|
|
fields: [
|
|
|
@ -237,6 +246,23 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
|
|
|
|
displayField: 'NAME'
|
|
|
|
displayField: 'NAME'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.storeReplacePaymentCORPID = Ext.create('DsExt.ux.RefTableStore', {
|
|
|
|
|
|
|
|
model: 'MsCompanysEntity',
|
|
|
|
|
|
|
|
proxy: { url: '/MvcShipping/MsCompanys/GetNoPicDataList' }
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//this.storeReplacePaymentCORPID.load({ params: { condition: "" } });
|
|
|
|
|
|
|
|
this.storeReplacePaymentCORPID.loadData(mainWin.GetPubStore("Company").data.items);
|
|
|
|
|
|
|
|
this.storeReplacePaymentCORPID.add({ GID: '', NAME: '' });
|
|
|
|
|
|
|
|
this.comboxReplacePaymentCORPID = Ext.create('DsExt.ux.RefTableCombox', {
|
|
|
|
|
|
|
|
fieldLabel: '垫付公司', //'委托分公司',
|
|
|
|
|
|
|
|
store: this.storeReplacePaymentCORPID,
|
|
|
|
|
|
|
|
forceSelection: true,
|
|
|
|
|
|
|
|
readOnly: false,
|
|
|
|
|
|
|
|
name: 'ReplacePaymentCORPID',
|
|
|
|
|
|
|
|
valueField: 'GID',
|
|
|
|
|
|
|
|
displayField: 'NAME'
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//编辑form
|
|
|
|
//编辑form
|
|
|
|
this.formEdit = Ext.widget('form', {
|
|
|
|
this.formEdit = Ext.widget('form', {
|
|
|
|
region: 'center',
|
|
|
|
region: 'center',
|
|
|
@ -442,6 +468,34 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
|
|
|
|
name: 'REMARK'
|
|
|
|
name: 'REMARK'
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
xtype: 'container',
|
|
|
|
|
|
|
|
layout: 'hbox',
|
|
|
|
|
|
|
|
defaultType: 'textfield',
|
|
|
|
|
|
|
|
items: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
xtype: "checkbox", //checkbox控件
|
|
|
|
|
|
|
|
name: "IsReplacePayment",
|
|
|
|
|
|
|
|
fieldLabel: "是否垫付",
|
|
|
|
|
|
|
|
inputValue: "true", //选中的值
|
|
|
|
|
|
|
|
uncheckedValue: "false" //未选中的值
|
|
|
|
|
|
|
|
}, this.comboxReplacePaymentCORPID
|
|
|
|
|
|
|
|
, {
|
|
|
|
|
|
|
|
name: "ReplacePaymentStatus",
|
|
|
|
|
|
|
|
fieldLabel: "垫付状态",
|
|
|
|
|
|
|
|
readOnly: true
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
name: "ReplacePaymentOPNAME",
|
|
|
|
|
|
|
|
fieldLabel: "垫付操作人",
|
|
|
|
|
|
|
|
readOnly:true
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
xtype: 'datefield',
|
|
|
|
|
|
|
|
format: 'Y-m-d H:i:s',
|
|
|
|
|
|
|
|
name: "ReplacePaymentOPTIME",
|
|
|
|
|
|
|
|
fieldLabel: "垫付时间",
|
|
|
|
|
|
|
|
readOnly: true
|
|
|
|
|
|
|
|
}, {xtype:'hiddenfield',flex:1}]
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]//end items(fieldset 1)
|
|
|
|
]//end items(fieldset 1)
|
|
|
|
}//end fieldset 1
|
|
|
|
}//end fieldset 1
|
|
|
@ -535,6 +589,22 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
|
|
|
|
this.onSubmitAuditBackClick();
|
|
|
|
this.onSubmitAuditBackClick();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
scope: this
|
|
|
|
scope: this
|
|
|
|
|
|
|
|
}, '-', {
|
|
|
|
|
|
|
|
id: 'btnDoReplacePayment',
|
|
|
|
|
|
|
|
text: Zi.LAN.DoReplacePayment,
|
|
|
|
|
|
|
|
tooltip: Zi.LAN.DoReplacePayment, //执行垫付
|
|
|
|
|
|
|
|
handler: function (button, event) {
|
|
|
|
|
|
|
|
this.onReplacePayment(1);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
scope: this
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
id: 'btnUnDoReplacePayment',
|
|
|
|
|
|
|
|
text: Zi.LAN.UnDoReplacePayment,
|
|
|
|
|
|
|
|
tooltip: Zi.LAN.UnDoReplacePayment, //取消垫付
|
|
|
|
|
|
|
|
handler: function (button, event) {
|
|
|
|
|
|
|
|
this.onReplacePayment(2);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
scope: this
|
|
|
|
}, '-',
|
|
|
|
}, '-',
|
|
|
|
{
|
|
|
|
{
|
|
|
|
text: Zi.LAN.delete1, //删除
|
|
|
|
text: Zi.LAN.delete1, //删除
|
|
|
@ -2169,7 +2239,7 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
|
|
|
|
this.panelTop = new Ext.Panel({
|
|
|
|
this.panelTop = new Ext.Panel({
|
|
|
|
layout: "border",
|
|
|
|
layout: "border",
|
|
|
|
region: "north",
|
|
|
|
region: "north",
|
|
|
|
height: 185,
|
|
|
|
height: 210,
|
|
|
|
items: [this.panelBtn, this.formEdit]
|
|
|
|
items: [this.panelBtn, this.formEdit]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -3719,13 +3789,10 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (billstatus != '1' && billstatus != '6') {
|
|
|
|
if (billstatus != '1' && billstatus != '6') {
|
|
|
|
// 提示 当前状态无法删除此单据
|
|
|
|
// 提示 当前状态无法删除此单据
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: Zi.LAN.nodelete, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: Zi.LAN.nodelete, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_this = this;
|
|
|
|
_this = this;
|
|
|
|
|
|
|
|
|
|
|
@ -3770,6 +3837,65 @@ Ext.extend(Shipping.MsChPayapplicationBLEdit, Ext.Panel, {
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onReplacePayment: function (type){
|
|
|
|
|
|
|
|
//1执行垫付 //2取消执行垫付
|
|
|
|
|
|
|
|
var Duino = this.formEdit.getForm().findField('BILLNO').getValue();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var billstatus = this.formEdit.getForm().findField('BILLSTATUS').getValue();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Duino == '*') {//提示', msg: '请先保存付费申请,然后才能提交审核!
|
|
|
|
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: Zi.LAN.baocunshenq, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (billstatus != '0' ) {
|
|
|
|
|
|
|
|
// 提示 当前状态无法删除此单据
|
|
|
|
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.Prompt, msg: '只有【审核通过】状态的申请单可以执行垫付操作', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var basicForm = this.formEdit.getForm();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var data = basicForm.getValues();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var dotype = "";
|
|
|
|
|
|
|
|
if (type == 1) {
|
|
|
|
|
|
|
|
dotype = "do";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (type == 2) {
|
|
|
|
|
|
|
|
dotype = "undo";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Ext.Msg.wait(Zi.LAN.nowdelete);
|
|
|
|
|
|
|
|
Ext.Ajax.request({
|
|
|
|
|
|
|
|
waitMsg: Zi.LAN.nowdelete,
|
|
|
|
|
|
|
|
url: '/Account/Chfee_payapplication/DoReplacePayment',
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
data: Ext.JSON.encode(data),
|
|
|
|
|
|
|
|
dotype: dotype
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
callback: function (options, success, response) {
|
|
|
|
|
|
|
|
if (success) {
|
|
|
|
|
|
|
|
var jsonresult = Ext.JSON.decode(response.responseText);
|
|
|
|
|
|
|
|
if (jsonresult.Success) {
|
|
|
|
|
|
|
|
if (this.opStatus == 'edit')
|
|
|
|
|
|
|
|
condition = " BILLNO='" + this.editRecord.get('BILLNO') + "'";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.LoadData(this.opStatus, condition);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.Error, msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
failure: function (response, options) {//警告', msg: '服务器响应出错,请重试'
|
|
|
|
|
|
|
|
Ext.Msg.show({ title: Zi.LAN.Caveat, msg: Zi.LAN.FuWuQiError, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
success: function (response, options) {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
scope: this
|
|
|
|
|
|
|
|
}); //end Ext.Ajax.request
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
onRefreshClick: function (button, event) {
|
|
|
|
onRefreshClick: function (button, event) {
|
|
|
|
var sql = this.getCondition();
|
|
|
|
var sql = this.getCondition();
|
|
|
|