123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <!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-button type="ghost" @click="reload"><i class="fa fa-refresh"></i> 刷新</i-button>
- </i-col>
- </div>
- <div class="buttons-group">
- #if($shiro.hasPermission("freight:save"))
- <i-button type="info" @click="add"><i class="fa fa-plus"></i> 新增</i-button>
- #end
- #if($shiro.hasPermission("freight:update"))
- <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i> 修改</i-button>
- #end
- #if($shiro.hasPermission("freight:delete"))
- <i-button type="error" @click="del"><i class="fa fa-trash-o"></i> 删除</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="freight" :rules="ruleValidate" :label-width="140">
- <Form-item label="模版名称" prop="name">
- <i-input v-model="freight.name" placeholder="模版名称"/>
- </Form-item>
- <Form-item label="模版类型" prop="templateType">
- <Radio-group v-model="freight.templateType">
- <Radio label="0">
- <span>买家承担运费</span>
- </Radio>
- <Radio label="1">
- <span>卖家包邮</span>
- </Radio>
- </Radio-group>
- </Form-item>
- <Form-item label="计价方式" prop="pricingManner">
- <Radio-group v-model="freight.pricingManner" @on-change="changeUnit">
- <Radio label="0">
- <span>按件数</span>
- </Radio>
- <Radio label="1">
- <span>按重量</span>
- </Radio>
- <Radio label="2">
- <span>按体积</span>
- </Radio>
- </Radio-group>
- </Form-item>
- <Form-item label="配送区域及运费" prop="freightItem">
- <table class="table table-bordered">
- <tr>
- <td style="text-align: center; width: 400px">可配送区域</td>
- <td id="first" style="text-align: center; width: 100px">首件(个)</td>
- <td style="text-align: center; width: 100px">运费</td>
- <td id="continue" style="text-align: center; width: 100px">续件(个)</td>
- <td style="text-align: center; width: 100px">续费</td>
- <!--<td style="text-align: center; width: 90px">操作</td>-->
- </tr>
- <tr v-for="(item,index) in freightItemEntityList" v-show="item.isDelete==0">
- <td>
- <Checkbox v-model="item.deliveryArea" disabled />所有地区默认配送
- </td>
- <td>
- <Input-number :min="0" :step="1" v-model="item.firstPiece" style="width: 260px;" />
- </td>
- <td>
- <Input-number :min="0" :step="1" v-model="item.freight" style="width: 260px;" />
- </td>
- <td>
- <Input-number :min="0" :step="1" v-model="item.continuePiece" style="width: 260px;" />
- </td>
- <td>
- <Input-number :min="0" :step="1" v-model="item.renew" style="width: 260px;" />
- </td>
- <!--<td align="center">
- <button v-if="index == 0" class="btn btn-primary btn-sm" type="button"
- @click="addItemRow">
- <i class="fa fa-plus"></i>
- </button>
- <button class="btn red btn-sm" type="button" @click="delItemRow(index)">
- <i class="fa fa-trash-o"></i>
- </button>
- </td>-->
- </tr>
- </table>
- </Form-item>
- <Form-item label="" prop="isDefault">
- <Checkbox v-model="freight.isDefault"/>设为新商品默认模板
- </Form-item>
- </i-form>
- <div style="padding-left: 20px">
- <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
- <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
- </div>
- </Card>
- </div>
- <!-- 选择类型 -->
- <div id="categoryLayer" style="display: none;padding:10px;">
- <ul id="categoryTree" class="ztree"></ul>
- </div>
- <script src="${rc.contextPath}/js/shop/freight.js?_${date.systemTime}"></script>
- </body>
- </html>
|