Commit 9b2c6cc9 by 蒋勇

d

parent da598e42
......@@ -16,7 +16,7 @@ module.exports={
{
"title":"控制信息",
ctls:[
{"type":"select","dicKey":"transfer_status","label":"转让状态","prop":"transfer_status","labelField":"label","valueField":"value","style":"","isButton":true,target:"transfer_status"},
{"type":"select","dicKey":"transfer_status","excludeDicKey":"PAY_OVER,MATERIAL_PROVIDE,PASS_ALIYUN_VERIFY,MATERIALS_TO_BE_SUBMITTED","label":"转让状态","prop":"transfer_status","labelField":"label","valueField":"value","style":"","isButton":true,target:"transfer_status"},
// {"type":"select","refModel":"pmproduct","isMulti":false,"label":"所属产品","prop":"pmproduct_id","labelField":"name","valueField":"id","style":""},
]
},
......
<gsb-pagecard>
<div slot="content">
<gsb-grid2 ref="userGrid" :bizCode="bizCode" spaceHeight="100" groupName="transfer" modelName="tradetransfer"
<gsb-grid2 ref="deliverGrid" :bizCode="bizCode" spaceHeight="100" groupName="transfer" modelName="tradetransfer"
listMethod="findAndCountAll" deleteMethod="delete" initMethod="initNewInstance" isDataAuto="true"
:headStyle="headStyle" :colFormatter="onColFormater" :isSingleSelect="isSingleSelect" @rowclick="onRowClick"
@onDlgFormClick="onDlgFormClick" @onforminit="onforminit" @onselchange="onselchange" :validateformmethod="validateformmethod">
@onDlgFormClick="onDlgFormClick" @onforminit="onforminit" @beforeedit="onbeforeedit" @onselchange="onselchange" :validateformmethod="validateformmethod">
<div slot="other2" slot-scope="s">
<span v-if="s.row.mobile && s.row.mobile.length==11">{{s.row.mobile}}</span>
<span v-else><button @click="inputMobile(s.row)">输入号码</button></span>
......
......@@ -64,60 +64,49 @@
}*/
},
methods: {
onforminit(fm,ctls){
ctls["logistics"]=false;
ctls["mail_zip_url"]=false;
ctls["transfer_receive_ack"]=false;
},
onselchange(prop,fm,target,ctls){
let $q=$("button span:contains('邮寄资料')");
let $groupMailSend= $q.parent().parent().parent();
let $jg=$("button span:contains('递交官方资料')");
let $groupJG= $jg.parent().parent().parent();
showByTranStatus(row){
let $upBuyerGZ=$("button span:contains('上传盖章资料(买家)')");
let $groupBuyerGZ= $upBuyerGZ.parent().parent().parent();
let $upSellerGZ=$("button span:contains('上传盖章资料(卖家)')");
let $groupSellerGZ= $upSellerGZ.parent().parent().parent();
let $upOtherGZ=$("button span:contains('上传盖章资料(其它)')");
let $groupOtherGZ= $upOtherGZ.parent().parent().parent();
if(row["transfer_status"]=="BUYER_PROVIDE_MATERIAL"){
$groupBuyerGZ.show();
$groupSellerGZ.show();
$groupOtherGZ.show();
}else{
$groupBuyerGZ.hide();
$groupSellerGZ.hide();
$groupOtherGZ.hide();
}
let $q=$("button span:contains('邮寄资料')");
let $groupMailSend= $q.parent().parent().parent();
if(fm[prop]=="BUYER_EXPRESS"){
let $jg=$("button span:contains('递交官方资料')");
let $groupJG= $jg.parent().parent().parent();
if(row["transfer_status"]=="BUYER_EXPRESS"){
$groupMailSend.show();
ctls["logistics"]=true;
ctls["mail_zip_url"]=true;
}else{
ctls["logistics"]=false;
ctls["mail_zip_url"]=false;
}else{
$groupMailSend.hide();
}
if(fm[prop]=="SUBMIT_TO_SBJ"){
ctls["transfer_receive_ack"]=true;
}
if(row["transfer_status"]=="SUBMIT_TO_SBJ"){
$groupJG.show();
}else{
ctls["transfer_receive_ack"]=false;
$groupJG.hide();
}
if(fm[prop]=="BUYER_PROVIDE_MATERIAL"){
$groupBuyerGZ.show();
$groupSellerGZ.show();
$groupOtherGZ.show();
}else{
$groupBuyerGZ.hide();
$groupSellerGZ.hide();
$groupOtherGZ.hide();
}
console.log(prop,fm[prop]);
},
onbeforeedit(row){
this.showByTranStatus(row)
},
onforminit(fm,ctls){
},
onselchange(prop,fm,target,ctls){
this.showByTranStatus(fm);
},
validateformmethod(rule, value, cbk){
return cbk();
......@@ -185,6 +174,7 @@
type: 'success',
message: '提交成功!'
});
}else{
$("[name='grdid']").show();
$("[name='frmid']").hide();
......@@ -194,6 +184,7 @@
that.$message.warning("提交失败");
}
}
});
}).catch(() => {
this.$message({
......@@ -201,6 +192,7 @@
message: '已取消提交'
});
});
return
}
this.$root.postReq("/web/transfer/tradetransferCtl/submit", model).then(function (d) {
......@@ -220,6 +212,7 @@
that.$message.warning("提交失败");
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment