123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- #parse("sys/header.html")
- </head>
- <body>
- <div id="rrapp" v-cloak>
- <div v-show="!showViewList">
- <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="merchSn">
- <i-select v-model="freight.merchSn" filterable placeholder="商户" @on-change="getStoresByMerch" label-in-value>
- <i-option v-for="merch in merchList" :value="merch.merchSn" :key="merch.merchSn">{{merch.merchName}}</i-option>
- </i-select>
- </Form-item>
- <Form-item label="门店" prop="storeId">
- <i-select v-model="freight.storeId" filterable placeholder="门店" label-in-value>
- <i-option v-for="store in storeList" :value="store.id" :key="store.id">{{store.storeName}}</i-option>
- </i-select>
- </Form-item>
- <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>
- <Card v-show="!showCopyList">
- <p slot="title">{{title}}</p>
- <i-form>
- <Form-item label="运费id" prop="id">
- <i-input v-model="copyFreightDto.freightId" placeholder="运费id" disabled/>
- </Form-item>
- <Form-item>
- <Upload :show-upload-list="false" :on-success="uploadExcelSuccess" :on-error="uploadExcelError" :on-format-error="uploadExcelFormatError"
- :format="['xls','xlsx']"
- action="../uploadCommon/storeIdUpload">
- <i-button type="ghost" icon="ios-cloud-upload-outline">复制运费(批量上传门店id)</i-button>
- </Upload>
- <a href="../statics/file/store_id_export_yyyy_mm_dd_v1.0.0.xls">运费门店id模板下载</a>
- </Form-item>
- <Form-item label="上传成功的门店id" prop="storeList">
- <i-input v-model="copyFreightDto.storeList" placeholder="上传成功的门店id" disabled/>
- </Form-item>
- <Form-item>
- <i-button type="primary" @click="handleSubmitCopyFreight()">提交</i-button>
- <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
- </Form-item>
- </i-form>
- </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>
|