Commit 9b2c6cc9 by 蒋勇

d

parent da598e42
...@@ -16,7 +16,7 @@ module.exports={ ...@@ -16,7 +16,7 @@ module.exports={
{ {
"title":"控制信息", "title":"控制信息",
ctls:[ 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":""}, // {"type":"select","refModel":"pmproduct","isMulti":false,"label":"所属产品","prop":"pmproduct_id","labelField":"name","valueField":"id","style":""},
] ]
}, },
......
<gsb-pagecard> <gsb-pagecard>
<div slot="content"> <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" listMethod="findAndCountAll" deleteMethod="delete" initMethod="initNewInstance" isDataAuto="true"
:headStyle="headStyle" :colFormatter="onColFormater" :isSingleSelect="isSingleSelect" @rowclick="onRowClick" :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"> <div slot="other2" slot-scope="s">
<span v-if="s.row.mobile && s.row.mobile.length==11">{{s.row.mobile}}</span> <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> <span v-else><button @click="inputMobile(s.row)">输入号码</button></span>
......
...@@ -64,60 +64,49 @@ ...@@ -64,60 +64,49 @@
}*/ }*/
}, },
methods: { methods: {
onforminit(fm,ctls){ showByTranStatus(row){
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();
let $upBuyerGZ=$("button span:contains('上传盖章资料(买家)')"); let $upBuyerGZ=$("button span:contains('上传盖章资料(买家)')");
let $groupBuyerGZ= $upBuyerGZ.parent().parent().parent(); let $groupBuyerGZ= $upBuyerGZ.parent().parent().parent();
let $upSellerGZ=$("button span:contains('上传盖章资料(卖家)')"); let $upSellerGZ=$("button span:contains('上传盖章资料(卖家)')");
let $groupSellerGZ= $upSellerGZ.parent().parent().parent(); let $groupSellerGZ= $upSellerGZ.parent().parent().parent();
let $upOtherGZ=$("button span:contains('上传盖章资料(其它)')"); let $upOtherGZ=$("button span:contains('上传盖章资料(其它)')");
let $groupOtherGZ= $upOtherGZ.parent().parent().parent(); 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(); $groupMailSend.show();
ctls["logistics"]=true; }else{
ctls["mail_zip_url"]=true;
}else{
ctls["logistics"]=false;
ctls["mail_zip_url"]=false;
$groupMailSend.hide(); $groupMailSend.hide();
}
} if(row["transfer_status"]=="SUBMIT_TO_SBJ"){
if(fm[prop]=="SUBMIT_TO_SBJ"){
ctls["transfer_receive_ack"]=true;
$groupJG.show(); $groupJG.show();
}else{ }else{
ctls["transfer_receive_ack"]=false;
$groupJG.hide(); $groupJG.hide();
} }
},
if(fm[prop]=="BUYER_PROVIDE_MATERIAL"){ onbeforeedit(row){
$groupBuyerGZ.show(); this.showByTranStatus(row)
$groupSellerGZ.show(); },
$groupOtherGZ.show(); onforminit(fm,ctls){
}else{
$groupBuyerGZ.hide(); },
$groupSellerGZ.hide(); onselchange(prop,fm,target,ctls){
$groupOtherGZ.hide(); this.showByTranStatus(fm);
}
console.log(prop,fm[prop]);
}, },
validateformmethod(rule, value, cbk){ validateformmethod(rule, value, cbk){
return cbk(); return cbk();
...@@ -185,6 +174,7 @@ ...@@ -185,6 +174,7 @@
type: 'success', type: 'success',
message: '提交成功!' message: '提交成功!'
}); });
}else{ }else{
$("[name='grdid']").show(); $("[name='grdid']").show();
$("[name='frmid']").hide(); $("[name='frmid']").hide();
...@@ -194,6 +184,7 @@ ...@@ -194,6 +184,7 @@
that.$message.warning("提交失败"); that.$message.warning("提交失败");
} }
} }
}); });
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
...@@ -201,6 +192,7 @@ ...@@ -201,6 +192,7 @@
message: '已取消提交' message: '已取消提交'
}); });
}); });
return return
} }
this.$root.postReq("/web/transfer/tradetransferCtl/submit", model).then(function (d) { this.$root.postReq("/web/transfer/tradetransferCtl/submit", model).then(function (d) {
...@@ -220,6 +212,7 @@ ...@@ -220,6 +212,7 @@
that.$message.warning("提交失败"); 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