提交 4c1be44b authored 作者: 吴德鹏's avatar 吴德鹏

优化运费管理

上级 24d43d98
...@@ -86,6 +86,10 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -86,6 +86,10 @@ public class TbCfStationItemEntity implements Serializable {
* 供应商 * 供应商
*/ */
private String supplier; private String supplier;
/**
* 国家
*/
private String country;
/** /**
* sku图片集合 * sku图片集合
*/ */
...@@ -132,6 +136,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -132,6 +136,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemId() { public String getItemId() {
return itemId; return itemId;
} }
/** /**
* 设置:商品编号 * 设置:商品编号
*/ */
...@@ -145,6 +150,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -145,6 +150,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemCode() { public String getItemCode() {
return itemCode; return itemCode;
} }
/** /**
* 设置:商品名字 * 设置:商品名字
*/ */
...@@ -158,6 +164,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -158,6 +164,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemName() { public String getItemName() {
return itemName; return itemName;
} }
/** /**
* 设置:商品标题 * 设置:商品标题
*/ */
...@@ -171,6 +178,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -171,6 +178,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemBrief() { public String getItemBrief() {
return itemBrief; return itemBrief;
} }
/** /**
* 设置:商品一级分类 * 设置:商品一级分类
*/ */
...@@ -184,6 +192,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -184,6 +192,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemCategory() { public String getItemCategory() {
return itemCategory; return itemCategory;
} }
/** /**
* 设置:商品价格 * 设置:商品价格
*/ */
...@@ -197,6 +206,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -197,6 +206,7 @@ public class TbCfStationItemEntity implements Serializable {
public BigDecimal getItemPrice() { public BigDecimal getItemPrice() {
return itemPrice; return itemPrice;
} }
/** /**
* 设置:商品折扣价 * 设置:商品折扣价
*/ */
...@@ -210,6 +220,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -210,6 +220,7 @@ public class TbCfStationItemEntity implements Serializable {
public BigDecimal getDiscountPrice() { public BigDecimal getDiscountPrice() {
return discountPrice; return discountPrice;
} }
/** /**
* 设置:成本价 * 设置:成本价
*/ */
...@@ -223,6 +234,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -223,6 +234,7 @@ public class TbCfStationItemEntity implements Serializable {
public BigDecimal getCostPrice() { public BigDecimal getCostPrice() {
return costPrice; return costPrice;
} }
/** /**
* 设置:商品链接 * 设置:商品链接
*/ */
...@@ -236,6 +248,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -236,6 +248,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemUrl() { public String getItemUrl() {
return itemUrl; return itemUrl;
} }
/** /**
* 设置:商品图片 * 设置:商品图片
*/ */
...@@ -249,6 +262,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -249,6 +262,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemImg() { public String getItemImg() {
return itemImg; return itemImg;
} }
/** /**
* 设置:搜索关键字 * 设置:搜索关键字
*/ */
...@@ -262,6 +276,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -262,6 +276,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemTags() { public String getItemTags() {
return itemTags; return itemTags;
} }
/** /**
* 设置:商品标签 * 设置:商品标签
*/ */
...@@ -275,6 +290,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -275,6 +290,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemLabel() { public String getItemLabel() {
return itemLabel; return itemLabel;
} }
/** /**
* 设置:浏览人数 * 设置:浏览人数
*/ */
...@@ -288,6 +304,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -288,6 +304,7 @@ public class TbCfStationItemEntity implements Serializable {
public Long getItemNum() { public Long getItemNum() {
return itemNum; return itemNum;
} }
/** /**
* 设置:收藏人数 * 设置:收藏人数
*/ */
...@@ -301,6 +318,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -301,6 +318,7 @@ public class TbCfStationItemEntity implements Serializable {
public Long getItemCollectionNum() { public Long getItemCollectionNum() {
return itemCollectionNum; return itemCollectionNum;
} }
/** /**
* 设置:商品库存 * 设置:商品库存
*/ */
...@@ -314,6 +332,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -314,6 +332,7 @@ public class TbCfStationItemEntity implements Serializable {
public Long getItemCount() { public Long getItemCount() {
return itemCount; return itemCount;
} }
/** /**
* 设置:商品规格 * 设置:商品规格
*/ */
...@@ -327,6 +346,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -327,6 +346,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemSku() { public String getItemSku() {
return itemSku; return itemSku;
} }
/** /**
* 设置:是否置顶 Y:是 N:否 * 设置:是否置顶 Y:是 N:否
*/ */
...@@ -340,6 +360,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -340,6 +360,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemTop() { public String getItemTop() {
return itemTop; return itemTop;
} }
/** /**
* 设置:供应商 * 设置:供应商
*/ */
...@@ -353,6 +374,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -353,6 +374,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getSupplier() { public String getSupplier() {
return supplier; return supplier;
} }
/** /**
* 设置:sku图片集合 * 设置:sku图片集合
*/ */
...@@ -366,6 +388,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -366,6 +388,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getSkuImgs() { public String getSkuImgs() {
return skuImgs; return skuImgs;
} }
/** /**
* 设置:所属平台 * 设置:所属平台
*/ */
...@@ -379,6 +402,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -379,6 +402,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getPlatformCode() { public String getPlatformCode() {
return platformCode; return platformCode;
} }
/** /**
* 设置:平台名 * 设置:平台名
*/ */
...@@ -392,6 +416,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -392,6 +416,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getPlatformName() { public String getPlatformName() {
return platformName; return platformName;
} }
/** /**
* 设置:状态 0、删除 1、上架 2、下架 * 设置:状态 0、删除 1、上架 2、下架
*/ */
...@@ -405,6 +430,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -405,6 +430,7 @@ public class TbCfStationItemEntity implements Serializable {
public Integer getEnableFlag() { public Integer getEnableFlag() {
return enableFlag; return enableFlag;
} }
/** /**
* 设置:创建日期 * 设置:创建日期
*/ */
...@@ -418,6 +444,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -418,6 +444,7 @@ public class TbCfStationItemEntity implements Serializable {
public Date getCreateTime() { public Date getCreateTime() {
return createTime; return createTime;
} }
/** /**
* 设置:商品二级分类 * 设置:商品二级分类
*/ */
...@@ -431,6 +458,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -431,6 +458,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemCategorytwo() { public String getItemCategorytwo() {
return itemCategorytwo; return itemCategorytwo;
} }
/** /**
* 设置:商品品名 * 设置:商品品名
*/ */
...@@ -444,6 +472,7 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -444,6 +472,7 @@ public class TbCfStationItemEntity implements Serializable {
public String getItemDescritionId() { public String getItemDescritionId() {
return itemDescritionId; return itemDescritionId;
} }
/** /**
* 设置:创建人 * 设置:创建人
*/ */
...@@ -457,4 +486,12 @@ public class TbCfStationItemEntity implements Serializable { ...@@ -457,4 +486,12 @@ public class TbCfStationItemEntity implements Serializable {
public String getCreator() { public String getCreator() {
return creator; return creator;
} }
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
} }
...@@ -123,6 +123,7 @@ public class TbCfStationItemServiceImpl implements TbCfStationItemService { ...@@ -123,6 +123,7 @@ public class TbCfStationItemServiceImpl implements TbCfStationItemService {
tbCfStationItem.setItemNum(0L); tbCfStationItem.setItemNum(0L);
tbCfStationItem.setItemUrl(itemSkus.getItemUrl()); tbCfStationItem.setItemUrl(itemSkus.getItemUrl());
tbCfStationItem.setSupplier(itemSkus.getSupplier()); tbCfStationItem.setSupplier(itemSkus.getSupplier());
tbCfStationItem.setCountry(itemSkus.getCountry());
tbCfStationItem.setItemPrice(itemSkus.getItemPrice()); tbCfStationItem.setItemPrice(itemSkus.getItemPrice());
tbCfStationItem.setDiscountPrice(itemSkus.getDiscountPrice()); tbCfStationItem.setDiscountPrice(itemSkus.getDiscountPrice());
tbCfStationItem.setCostPrice(itemSkus.getCostPrice()); tbCfStationItem.setCostPrice(itemSkus.getCostPrice());
...@@ -264,6 +265,7 @@ public class TbCfStationItemServiceImpl implements TbCfStationItemService { ...@@ -264,6 +265,7 @@ public class TbCfStationItemServiceImpl implements TbCfStationItemService {
tbCfStationItem.setCostPrice(itemSkus.getCostPrice()); tbCfStationItem.setCostPrice(itemSkus.getCostPrice());
tbCfStationItem.setItemUrl(itemSkus.getItemUrl()); tbCfStationItem.setItemUrl(itemSkus.getItemUrl());
tbCfStationItem.setSupplier(itemSkus.getSupplier()); tbCfStationItem.setSupplier(itemSkus.getSupplier());
tbCfStationItem.setCountry(itemSkus.getCountry());
tbCfStationItem.setItemBrief(itemSkus.getItemBrief()); tbCfStationItem.setItemBrief(itemSkus.getItemBrief());
tbCfStationItem.setItemName(itemSkus.getItemName()); tbCfStationItem.setItemName(itemSkus.getItemName());
tbCfStationItem.setItemCode(itemSkus.getItemCode()); tbCfStationItem.setItemCode(itemSkus.getItemCode());
......
...@@ -61,13 +61,15 @@ ...@@ -61,13 +61,15 @@
`handling_fee`, `handling_fee`,
`tariff`, `tariff`,
`country_code`, `country_code`,
`country`, c.country_name country,
`status`, t.`status`,
`is_default`, `is_default`,
`postage_free_price`, `postage_free_price`,
`create_time`, t.`create_time`,
`update_time` t.`update_time`
from tb_cf_express_template from tb_cf_express_template t
inner join country c
on t.country=c.id
WHERE 1=1 WHERE 1=1
<if test="name != null and name.trim() != ''"> <if test="name != null and name.trim() != ''">
AND template_title LIKE concat('%',#{name},'%') AND template_title LIKE concat('%',#{name},'%')
...@@ -135,21 +137,21 @@ ...@@ -135,21 +137,21 @@
<update id="update" parameterType="com.platform.entity.TbCfExpressTemplateEntity"> <update id="update" parameterType="com.platform.entity.TbCfExpressTemplateEntity">
update tb_cf_express_template update tb_cf_express_template
<set> <set>
<if test="templateTitle != null">`template_title` = #{templateTitle}, </if> <if test="templateTitle != null">`template_title` = #{templateTitle},</if>
<if test="type != null">`type` = #{type}, </if> <if test="type != null">`type` = #{type},</if>
<if test="itemCategoryId != null">`item_category_id` = #{itemCategoryId}, </if> <if test="itemCategoryId != null">`item_category_id` = #{itemCategoryId},</if>
<if test="startNum != null">`start_num` = #{startNum}, </if> <if test="startNum != null">`start_num` = #{startNum},</if>
<if test="expressFee != null">`express_fee` = #{expressFee}, </if> <if test="expressFee != null">`express_fee` = #{expressFee},</if>
<if test="continuationNum != null">`continuation_num` = #{continuationNum}, </if> <if test="continuationNum != null">`continuation_num` = #{continuationNum},</if>
<if test="continuationFee != null">`continuation_fee` = #{continuationFee}, </if> <if test="continuationFee != null">`continuation_fee` = #{continuationFee},</if>
<if test="handlingFee != null">`handling_fee` = #{handlingFee}, </if> <if test="handlingFee != null">`handling_fee` = #{handlingFee},</if>
<if test="tariff != null">`tariff` = #{tariff}, </if> <if test="tariff != null">`tariff` = #{tariff},</if>
<if test="countryCode != null">`country_code` = #{countryCode}, </if> <if test="countryCode != null">`country_code` = #{countryCode},</if>
<if test="country != null">`country` = #{country}, </if> <if test="country != null">`country` = #{country},</if>
<if test="status != null">`status` = #{status}, </if> <if test="status != null">`status` = #{status},</if>
<if test="isDefault != null">`is_default` = #{isDefault}, </if> <if test="isDefault != null">`is_default` = #{isDefault},</if>
<if test="postageFreePrice != null">`postage_free_price` = #{postageFreePrice}, </if> <if test="postageFreePrice != null">`postage_free_price` = #{postageFreePrice},</if>
<if test="createTime != null">`create_time` = #{createTime}, </if> <if test="createTime != null">`create_time` = #{createTime},</if>
<if test="updateTime != null">`update_time` = #{updateTime}</if> <if test="updateTime != null">`update_time` = #{updateTime}</if>
</set> </set>
where template_id = #{templateId} where template_id = #{templateId}
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
<result property="itemSku" column="item_sku"/> <result property="itemSku" column="item_sku"/>
<result property="itemTop" column="item_top"/> <result property="itemTop" column="item_top"/>
<result property="supplier" column="supplier"/> <result property="supplier" column="supplier"/>
<result property="country" column="country"/>
<result property="skuImgs" column="sku_imgs"/> <result property="skuImgs" column="sku_imgs"/>
<result property="platformCode" column="platform_code"/> <result property="platformCode" column="platform_code"/>
<result property="platformName" column="platform_name"/> <result property="platformName" column="platform_name"/>
...@@ -51,6 +52,7 @@ ...@@ -51,6 +52,7 @@
`item_sku`, `item_sku`,
`item_top`, `item_top`,
`supplier`, `supplier`,
country,
`sku_imgs`, `sku_imgs`,
`platform_code`, `platform_code`,
`platform_name`, `platform_name`,
...@@ -82,6 +84,7 @@ ...@@ -82,6 +84,7 @@
`item_sku`, `item_sku`,
`item_top`, `item_top`,
`supplier`, `supplier`,
country,
`sku_imgs`, `sku_imgs`,
`platform_code`, `platform_code`,
`platform_name`, `platform_name`,
...@@ -130,6 +133,7 @@ ...@@ -130,6 +133,7 @@
i.item_descrition_id, i.item_descrition_id,
i.item_top, i.item_top,
i.supplier, i.supplier,
i.country,
i.sku_imgs, i.sku_imgs,
i.creator, i.creator,
d.descripition_name dname, d.descripition_name dname,
...@@ -246,6 +250,7 @@ ...@@ -246,6 +250,7 @@
`item_sku`, `item_sku`,
`item_top`, `item_top`,
`supplier`, `supplier`,
country,
`sku_imgs`, `sku_imgs`,
`platform_code`, `platform_code`,
`platform_name`, `platform_name`,
...@@ -273,6 +278,7 @@ ...@@ -273,6 +278,7 @@
#{itemSku}, #{itemSku},
#{itemTop}, #{itemTop},
#{supplier}, #{supplier},
#{country},
#{skuImgs}, #{skuImgs},
#{platformCode}, #{platformCode},
#{platformName}, #{platformName},
...@@ -303,6 +309,7 @@ ...@@ -303,6 +309,7 @@
<if test="itemSku != null">`item_sku` = #{itemSku},</if> <if test="itemSku != null">`item_sku` = #{itemSku},</if>
<if test="itemTop != null">`item_top` = #{itemTop},</if> <if test="itemTop != null">`item_top` = #{itemTop},</if>
<if test="supplier != null">`supplier` = #{supplier},</if> <if test="supplier != null">`supplier` = #{supplier},</if>
<if test="country != null">`country` = #{country},</if>
<if test="skuImgs != null">`sku_imgs` = #{skuImgs},</if> <if test="skuImgs != null">`sku_imgs` = #{skuImgs},</if>
<if test="platformCode != null">`platform_code` = #{platformCode},</if> <if test="platformCode != null">`platform_code` = #{platformCode},</if>
<if test="platformName != null">`platform_name` = #{platformName},</if> <if test="platformName != null">`platform_name` = #{platformName},</if>
...@@ -338,4 +345,4 @@ ...@@ -338,4 +345,4 @@
#{itemId} #{itemId}
</foreach> </foreach>
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -61,8 +61,12 @@ ...@@ -61,8 +61,12 @@
<Form-item label="关税" prop="tariff"> <Form-item label="关税" prop="tariff">
<i-input v-model="tbCfExpressTemplate.tariff" placeholder="关税" style="width:300px"/> <i-input v-model="tbCfExpressTemplate.tariff" placeholder="关税" style="width:300px"/>
</Form-item> </Form-item>
<Form-item label="国家" prop="country"> <Form-item label="国家" prop="country" >
<i-input v-model="tbCfExpressTemplate.country" placeholder="国家" style="width:300px"/> <i-select label="请选择" v-model="tbCfExpressTemplate.country" style="width:300px">
<i-option v-for="c in countryList" :key='c.id'
:value="c.id">{{c.countryName}}
</i-option>
</i-select>
</Form-item> </Form-item>
<Form-item label="免邮价格" prop="postageFreePrice"> <Form-item label="免邮价格" prop="postageFreePrice">
<i-input v-model="tbCfExpressTemplate.postageFreePrice" placeholder="免邮价格" style="width:300px"/> <i-input v-model="tbCfExpressTemplate.postageFreePrice" placeholder="免邮价格" style="width:300px"/>
......
...@@ -175,6 +175,7 @@ ...@@ -175,6 +175,7 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.pp-flex-center { .pp-flex-center {
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -420,10 +421,12 @@ ...@@ -420,10 +421,12 @@
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
} }
.confirm-btn-price{
padding:20px; .confirm-btn-price {
padding: 20px;
} }
.confirm-btn-price>:first-child{
.confirm-btn-price > :first-child {
margin-right: 10px; margin-right: 10px;
} }
...@@ -555,7 +558,7 @@ ...@@ -555,7 +558,7 @@
<i-button class="fixed-submit preview" <i-button class="fixed-submit preview"
v-show="show_paste_btn" v-show="show_paste_btn"
@click="paste()" @click="paste()"
>粘贴 >粘贴
</i-button> </i-button>
<i-button class="fixed-submit preview" v-show="tbCfStationItem.itemId" <i-button class="fixed-submit preview" v-show="tbCfStationItem.itemId"
@click="preview(tbCfStationItem.itemId,'pc')" type="primary">预览 @click="preview(tbCfStationItem.itemId,'pc')" type="primary">预览
...@@ -597,7 +600,7 @@ ...@@ -597,7 +600,7 @@
</div> </div>
<div class="pp-popup-wrapper" v-if="tagshow"> <div class="pp-popup-wrapper" v-if="tagshow">
<div class="pp-popup-mask"></div> <div class="pp-popup-mask"></div>
<div class="pp-popup-container"> <div class="pp-popup-container">
<h3 class="pp-text-center">数据选择</h3> <h3 class="pp-text-center">数据选择</h3>
<div class="pp-tags-section" v-for="(element,index) in tagLists" :key="index"> <div class="pp-tags-section" v-for="(element,index) in tagLists" :key="index">
<i-button <i-button
...@@ -662,6 +665,13 @@ ...@@ -662,6 +665,13 @@
<Form-item label="供应商" prop="supplier" style="width: 800px"> <Form-item label="供应商" prop="supplier" style="width: 800px">
<i-input v-model="tbCfStationItem.supplier" placeholder="供应商"/> <i-input v-model="tbCfStationItem.supplier" placeholder="供应商"/>
</Form-item> </Form-item>
<Form-item label="国家" prop="country" style="width: 800px">
<i-select label="请选择" v-model="tbCfStationItem.country">
<i-option v-for="c in countryList" :key='c.id'
:value="c.id">{{c.countryName}}
</i-option>
</i-select>
</Form-item>
<Form-item label="商品一级分类" prop="itemCategory" style="width: 800px"> <Form-item label="商品一级分类" prop="itemCategory" style="width: 800px">
<i-select placeholder="请选择" v-model="tbCfStationItem.itemCategory" @on-change="changeGoodstype"> <i-select placeholder="请选择" v-model="tbCfStationItem.itemCategory" @on-change="changeGoodstype">
<i-option v-for="(el,i) in Goodstype" :key='i' <i-option v-for="(el,i) in Goodstype" :key='i'
...@@ -892,12 +902,13 @@ ...@@ -892,12 +902,13 @@
</div> </div>
<div> <div>
<h3 style="margin:20px 0;">属性价格</h3> <h3 style="margin:20px 0;">属性价格</h3>
<i-input ref="amount" type="number" @on-change="changeBatch($event,'amount')" <i-input ref="amount" type="number"
@on-change="changeBatch($event,'amount')"
placeholder="属性价格"/> placeholder="属性价格"/>
</div> </div>
<div> <div>
<h3 style="margin:20px 0;">属性库存</h3> <h3 style="margin:20px 0;">属性库存</h3>
<i-input ref="count" type="number" @on-change="changeBatch($event,'count')" <i-input ref="count" type="number" @on-change="changeBatch($event,'count')"
placeholder="属性库存"/> placeholder="属性库存"/>
</div> </div>
<div class="pp-flex-center confirm-btn-price"> <div class="pp-flex-center confirm-btn-price">
...@@ -984,12 +995,12 @@ ...@@ -984,12 +995,12 @@
@on-ok="delAttr"> @on-ok="delAttr">
<p>确认删除此属性</p> <p>确认删除此属性</p>
</Modal> </Modal>
<!-- 粘贴提示--> <!-- 粘贴提示-->
<Modal <Modal
v-model="paste_modal" v-model="paste_modal"
title="确认粘贴?" title="确认粘贴?"
@on-ok="comfirmPaste()" @on-ok="comfirmPaste()"
> >
<h4>粘贴内容如下:</h4> <h4>粘贴内容如下:</h4>
<br/> <br/>
<p>1.搜索关键词。</p> <p>1.搜索关键词。</p>
...@@ -1035,4 +1046,4 @@ ...@@ -1035,4 +1046,4 @@
}; };
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -4,7 +4,7 @@ $(function () { ...@@ -4,7 +4,7 @@ $(function () {
colModel: [ colModel: [
{label: 'id', name: 'id', index: 'id', key: true, hidden: true}, {label: 'id', name: 'id', index: 'id', key: true, hidden: true},
{label: '国家名称', name: 'countryName', index: 'country_name', width: 80}, {label: '国家名称', name: 'countryName', index: 'country_name', width: 80},
{label: '状态', name: 'status', index: 'status', width: 80}, {label: '状态', name: 'status', index: 'status', width: 80,formatter:statusFormat1},
{label: '创建时间', name: 'createTime', index: 'create_time', width: 80} {label: '创建时间', name: 'createTime', index: 'create_time', width: 80}
] ]
}); });
......
...@@ -70,6 +70,7 @@ let vm = new Vue({ ...@@ -70,6 +70,7 @@ let vm = new Vue({
value: 1, value: 1,
label: '计重' label: '计重'
}], }],
countryList: [],
showList: true, showList: true,
title: null, title: null,
tbCfExpressTemplate: {}, tbCfExpressTemplate: {},
...@@ -192,5 +193,12 @@ let vm = new Vue({ ...@@ -192,5 +193,12 @@ let vm = new Vue({
handleReset: function (name) { handleReset: function (name) {
handleResetForm(this, name); handleResetForm(this, name);
} }
},
created(){
$.get('../country/queryAll', res => {
console.log('国家',JSON.parse(res))
vm.countryList = JSON.parse(res).list;
})
} }
}); });
...@@ -28,6 +28,7 @@ $(function () { ...@@ -28,6 +28,7 @@ $(function () {
let vm = new Vue({ let vm = new Vue({
el: '#rrapp', el: '#rrapp',
data: { data: {
countryList: [],
modal: false, modal: false,
showList: true, showList: true,
title: null, title: null,
...@@ -997,6 +998,10 @@ let vm = new Vue({ ...@@ -997,6 +998,10 @@ let vm = new Vue({
$.get('../tbcfgoodstype/queryAll', res => { $.get('../tbcfgoodstype/queryAll', res => {
this.Goodstype = res.list; this.Goodstype = res.list;
}) })
$.get('../country/queryAll', res => {
console.log('国家',JSON.parse(res))
vm.countryList = JSON.parse(res).list;
})
$.get('../tbcfstationitem/queryCreator', res => { $.get('../tbcfstationitem/queryCreator', res => {
let parse = JSON.parse(res); let parse = JSON.parse(res);
this.creatorList = parse.list; this.creatorList = parse.list;
...@@ -1010,6 +1015,7 @@ let vm = new Vue({ ...@@ -1010,6 +1015,7 @@ let vm = new Vue({
this.serverSkuAttr.push(item.categoryDesc) this.serverSkuAttr.push(item.categoryDesc)
}) })
}) })
}, },
mounted() { mounted() {
this.$nextTick(() => { this.$nextTick(() => {
...@@ -1019,4 +1025,4 @@ let vm = new Vue({ ...@@ -1019,4 +1025,4 @@ let vm = new Vue({
}); });
}) })
} }
}); });
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论