<!DOCTYPE html>
<html>
<head>
    <title>第三方商户快递账号表</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-select v-model="q.thirdPartyMerchCode" placeholder="第三方商户编号" label-in-value>
                        <i-option v-for="thirdMerchant in thirdMerchantBizList" :value="thirdMerchant.thirdPartyMerchCode" :key="thirdMerchant.thirdPartyMerchCode">{{thirdMerchant.thirdPartyMerchName}}</i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("thirdmerchexpress:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("thirdmerchexpress:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("thirdmerchexpress:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="thirdMerchExpress" :rules="ruleValidate" :label-width="120">
            <Form-item label="商户快递账号" prop="expressAccount">
                <i-input v-model="thirdMerchExpress.expressAccount" placeholder="商户快递账号"/>
            </Form-item>
            <Form-item label="商户快递密码" prop="expressPwd">
                <i-input v-model="thirdMerchExpress.expressPwd" placeholder="商户快递密码"/>
            </Form-item>
            <Form-item label="商户快递月结账号" prop="expressCusId">
                <i-input v-model="thirdMerchExpress.expressCusId" placeholder="商户快递月结账号"/>
            </Form-item>
            <Form-item label="第三方商户代码" prop="thirdPartyMerchCode">
                <i-select v-model="thirdMerchExpress.thirdPartyMerchCode" placeholder="第三方商户代码" label-in-value>
                    <i-option v-for="thirdMerchant in thirdMerchantBizList" :value="thirdMerchant.thirdPartyMerchCode" :key="thirdMerchant.thirdPartyMerchCode">{{thirdMerchant.thirdPartyMerchName}}</i-option>
                </i-select>
            </Form-item>
            <Form-item label="备注" prop="remark">
                <i-input v-model="thirdMerchExpress.remark" placeholder="备注"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/shop/thirdmerchexpress.js?_${date.systemTime}"></script>
</body>
</html>