Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
C
chinafrica
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
zhengfg
chinafrica
Commits
dce4e164
提交
dce4e164
authored
9月 16, 2020
作者:
吴德鹏
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化英文版商品管理
上级
7a64aac4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
394 行增加
和
384 行删除
+394
-384
tbcfstationitemEn.html
...n/src/main/webapp/WEB-INF/page/sys/tbcfstationitemEn.html
+377
-370
common.js
platform-admin/src/main/webapp/js/common.js
+2
-2
tbcfhomepage.js
platform-admin/src/main/webapp/js/sys/tbcfhomepage.js
+5
-2
tbcfstationitemEn.js
platform-admin/src/main/webapp/js/sys/tbcfstationitemEn.js
+10
-10
没有找到文件。
platform-admin/src/main/webapp/WEB-INF/page/sys/tbcfstationitemEn.html
浏览文件 @
dce4e164
...
...
@@ -446,16 +446,16 @@
<Row
:gutter=
"16"
>
<div
class=
"first"
>
<div
class=
"querydatas"
>
<div
class=
"search-group-up"
style=
"margin-left: 30px"
>
<div
class=
"search-group-up"
>
<span>
product number
:
Item No
:
<i-input
v-model=
"q.code"
@
on-enter=
"query"
placeholder=
"product number"
style=
"width:160px"
>
</i-input>
</span>
<span
style=
"margin-left:
50
px"
>
product n
ame:
<span
style=
"margin-left:
35
px"
>
Product N
ame:
<i-input
v-model=
"q.name"
@
on-enter=
"query"
placeholder=
"product name"
style=
"width:160px"
>
</i-input>
</span>
...
...
@@ -465,20 +465,20 @@
<!-- <i-input v-model="q.supplier" @on-enter="query" placeholder="供应商" style="width:160px">-->
<!-- </i-input>-->
<!-- </span> -->
<!-- <span>
creator:
<i-select v-model="q.creator" @on-enter="query"
placeholder="creator" style="width:160px">
<i-option v-for="(el,i) in creatorList" :key='i'
:value="el.userId">{{el.userName}}
</i-option>
</i-select>
</span>-->
<span
style=
"margin-left: 11
5px"
>
product s
tatus:
<!-- <span>
creator:
<i-select v-model="q.creator" @on-enter="query"
placeholder="creator" style="width:160px">
<i-option v-for="(el,i) in creatorList" :key='i'
:value="el.userId">{{el.userName}}
</i-option>
</i-select>
</span>-->
<span
style=
"margin-left: 2
5px"
>
S
tatus:
<i-select
v-model=
"q.status"
@
on-enter=
"query"
placeholder=
"product status"
style=
"width:160px"
>
<i-option
value=
"1"
>
on
line sale
</i-option>
<i-option
value=
"2"
>
has been removed
</i-option>
<i-option
value=
"1"
>
on
shelf
</i-option>
<i-option
value=
"2"
>
off shelf
</i-option>
</i-select>
</span>
...
...
@@ -487,7 +487,7 @@
<div
class=
"search-group-down"
style=
"margin-left: 30px"
>
<span>
commodity classification
:
Top Category
:
<i-select
v-model=
"q.itemCategory"
@
on-enter=
"query"
placeholder=
"commodity classification"
style=
"width:160px"
@
on-change=
"changeGoodstype"
>
<i-option
v-for=
"(el,i) in Goodstype"
:key=
'i'
...
...
@@ -495,9 +495,9 @@
</i-option>
</i-select>
</span>
<span>
commodity secondary classification
:
<span>
Secondary Category
:
<i-select
placeholder=
"commodity secondary classification"
style=
"width:160px"
v-model=
"q.itemCategorytwo"
@
on-enter=
"query"
...
...
@@ -508,9 +508,9 @@
</i-select>
</span>
<span>
commodity three-level classification
:
<span>
Tertiary Category
:
<i-select
placeholder=
"please choose"
@
on-enter=
"query"
v-model=
"q.itemDescritionId"
style=
"width:160px"
>
<i-option
v-for=
"(el,i) in Goodstype3"
:key=
'i'
...
...
@@ -518,11 +518,12 @@
</i-option>
</i-select>
</span>
<div
class=
"query"
>
<i-button
@
click=
"query"
type=
"primary"
><i
class=
"fa fa-search"
></i>
query
</i-button>
<i-button
@
click=
"reloadSearch"
type=
"primary"
><i
class=
"fa fa-refresh"
></i>
reset
</i-button>
<i-button
@
click=
"reloadSearch"
type=
"primary"
><i
class=
"fa fa-refresh"
></i>
reset
</i-button>
</div>
</div>
...
...
@@ -540,37 +541,40 @@
<i-button
type=
"info"
@
click=
"add"
><i
class=
"fa fa-plus"
></i>
add
</i-button>
#end
#if($shiro.hasPermission("tbcfstationitem:update"))
<i-button
type=
"warning"
@
click=
"update"
><i
class=
"fa fa-pencil-square-o"
></i>
update
</i-button>
<i-button
type=
"warning"
@
click=
"update"
><i
class=
"fa fa-pencil-square-o"
></i>
modify
</i-button>
#end
#if($shiro.hasPermission("tbcfstationitem:changeItemStatus"))
<i-button
type=
"success"
@
click=
"changeItemStatus(1)"
><i
class=
"fa fa-arrow-up"
></i>
on shelf
</i-button>
#end
#if($shiro.hasPermission("tbcfstationitem:changeItemStatus"))
<i-button
type=
"warning"
@
click=
"changeItemStatus(2)"
><i
class=
"fa fa-arrow-down"
></i>
off shelf
<i-button
type=
"warning"
@
click=
"changeItemStatus(2)"
><i
class=
"fa fa-arrow-down"
></i>
off
shelf
</i-button>
<!-- #end-->
<!-- #if($shiro.hasPermission("tbcfstationitem:import"))-->
<!-- <i-button type="primary" @click="modal = true"><i class="fa fa-chevron-up"></i>导入-->
<!-- <Modal-->
<!-- v-model="modal"-->
<!-- title="商品导入"-->
<!-- @on-ok="ok"-->
<!-- @on-cancel="cancel">-->
<!-- <template>-->
<!-- <Upload action="../tbcfstationitem/importExcel/">-->
<!-- <i-Button icon="ios-cloud-upload-outline">请选择</i-Button>-->
<!-- </Upload>-->
<!-- </template>-->
<!-- </Modal>-->
<!-- </i-button>-->
<!-- #end-->
<!-- #if($shiro.hasPermission("tbcfstationitem:export"))-->
<!-- <i-button type="info" @click="exportExcel"><i class="fa fa-chevron-down"></i> 导出-->
<!-- </i-button>-->
<!-- #end-->
<!-- #end-->
<!-- #if($shiro.hasPermission("tbcfstationitem:import"))-->
<!-- <i-button type="primary" @click="modal = true"><i class="fa fa-chevron-up"></i>导入-->
<!-- <Modal-->
<!-- v-model="modal"-->
<!-- title="商品导入"-->
<!-- @on-ok="ok"-->
<!-- @on-cancel="cancel">-->
<!-- <template>-->
<!-- <Upload action="../tbcfstationitem/importExcel/">-->
<!-- <i-Button icon="ios-cloud-upload-outline">请选择</i-Button>-->
<!-- </Upload>-->
<!-- </template>-->
<!-- </Modal>-->
<!-- </i-button>-->
<!-- #end-->
<!-- #if($shiro.hasPermission("tbcfstationitem:export"))-->
<!-- <i-button type="info" @click="exportExcel"><i class="fa fa-chevron-down"></i> 导出-->
<!-- </i-button>-->
<!-- #end-->
#if($shiro.hasPermission("tbcfstationitem:delete"))
<i-button
type=
"error"
@
click=
"changeItemStatus(0)"
><i
class=
"fa fa-trash-o"
></i>
delete
</i-button>
<i-button
type=
"error"
@
click=
"changeItemStatus(0)"
><i
class=
"fa fa-trash-o"
></i>
delete
</i-button>
#end
</div>
</div>
...
...
@@ -590,29 +594,29 @@
<i-button
class=
"fixed-submit preview"
v-show=
"tbCfStationItem.itemId"
@
click=
"preview(tbCfStationItem.itemId,'pc')"
type=
"primary"
>
preview
</i-button>
<i-button
class=
"fixed-submit"
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
com
mit
</i-button>
<i-button
class=
"fixed-submit"
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
sub
mit
</i-button>
<i-button
class=
"fixed-back"
type=
"warning"
@
click=
"back()"
/>
back
</i-button>
</div>
<p
slot=
"title"
>
{{title}}
</p>
<i-form
ref=
"formValidate"
:model=
"tbCfStationItem"
:rules=
"ruleValidate"
:label-width=
"80"
>
<Form-item
label=
"
product number
"
prop=
"itemCode"
style=
"width: 800px"
>
<Form-item
label=
"
Item No
"
prop=
"itemCode"
style=
"width: 800px"
>
<i-input
v-model=
"tbCfStationItem.itemCode"
placeholder=
"product number"
/>
</Form-item>
<Form-item
label=
"
product n
ame"
prop=
"itemName"
style=
"width: 800px"
>
<Form-item
label=
"
Product N
ame"
prop=
"itemName"
style=
"width: 800px"
>
<i-input
v-model=
"tbCfStationItem.itemName"
placeholder=
"product name"
/>
</Form-item>
<Form-item
label=
"
product t
itle"
prop=
"itemBrief"
style=
"width: 800px"
>
<Form-item
label=
"
Product T
itle"
prop=
"itemBrief"
style=
"width: 800px"
>
<i-input
v-model=
"tbCfStationItem.itemBrief"
placeholder=
"product title"
/>
</Form-item>
<!-- <Form-item label="商品链接" prop="itemUrl">
<i-input v-model="tbCfStationItem.itemUrl" placeholder="商品链接"/>
</Form-item>-->
<Form-item
label=
"
search for the keyw
ord"
prop=
"itemTags"
style=
"width: 800px"
>
<i-input
v-model=
"tbCfStationItem.itemTags"
placeholder=
"
search for the keyw
ord"
/>
<Form-item
label=
"
Key W
ord"
prop=
"itemTags"
style=
"width: 800px"
>
<i-input
v-model=
"tbCfStationItem.itemTags"
placeholder=
"
Key W
ord"
/>
</Form-item>
<div
class=
"item-tag-container pp-flex-start"
>
<span>
t
ags
</span>
<span>
T
ags
</span>
<div
class=
"tag-preview"
>
<transition-group
tag=
"div"
name=
"slide"
>
<div
class=
"pp-tag"
v-for=
"(element,index) in isSelectedArr"
:key=
"index"
>
...
...
@@ -621,14 +625,14 @@
</div>
</transition-group>
<div
class=
"add-tag-btn"
@
click=
"showTagPopup()"
>
<i-button
type=
"success"
shape=
"circle"
size=
"small"
>
add t
ag
</i-button>
<i-button
type=
"success"
shape=
"circle"
size=
"small"
>
Add T
ag
</i-button>
</div>
</div>
</div>
<div
class=
"pp-popup-wrapper"
v-if=
"tagshow"
>
<div
class=
"pp-popup-mask"
></div>
<div
class=
"pp-popup-container"
>
<h3
class=
"pp-text-center"
>
data s
election
</h3>
<h3
class=
"pp-text-center"
>
Data S
election
</h3>
<div
class=
"pp-tags-section"
v-for=
"(element,index) in tagLists"
:key=
"index"
>
<i-button
size=
"large"
...
...
@@ -656,19 +660,19 @@
<!-- <i-input v-model="tbCfStationItem.itemLabel" placeholder="商品标签"/>-->
<!-- <div>123</div>-->
<!-- </Form-item>-->
<!-- <Form-item label="原价" prop="itemPrice" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.itemPrice" placeholder="原价(可不填)"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="现价" prop="discountPrice" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.discountPrice" placeholder="现价"/>-->
<!-- </Form-item>-->
<!-- <!– <Form-item label="商品库存" prop="item_count" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.itemCount" placeholder="商品库存"/>-->
<!-- </Form-item>–>-->
<!-- <Form-item label="成本价" prop="costPrice" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.costPrice" placeholder="成本价"/>-->
<!-- </Form-item>-->
<Form-item
label=
"
product p
icture"
prop=
"itemImg"
>
<!-- <Form-item label="原价" prop="itemPrice" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.itemPrice" placeholder="原价(可不填)"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="现价" prop="discountPrice" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.discountPrice" placeholder="现价"/>-->
<!-- </Form-item>-->
<!-- <!– <Form-item label="商品库存" prop="item_count" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.itemCount" placeholder="商品库存"/>-->
<!-- </Form-item>–>-->
<!-- <Form-item label="成本价" prop="costPrice" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.costPrice" placeholder="成本价"/>-->
<!-- </Form-item>-->
<Form-item
label=
"
P
icture"
prop=
"itemImg"
>
<!-- <i-input v-model="xPicture.pictureUrl" placeholder="图片地址"/> -->
<upload
multiple
...
...
@@ -686,27 +690,28 @@
</div>
</div>
</Form-item>
<!-- <Form-item label="commodity link" prop="itemUrl" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.itemUrl" placeholder="commodity link"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="供应商" prop="supplier" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.supplier" placeholder="供应商"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="freight template" prop="country" style="width: 800px">-->
<!-- <i-select label="please choose" v-model="tbCfStationItem.template">-->
<!-- <i-option v-for="c in templateList" :key='c.templateId'-->
<!-- :value="c.templateId">{{c.templateTitle}}-->
<!-- </i-option>-->
<!-- </i-select>-->
<!-- </Form-item>-->
<Form-item
label=
"commodity classification"
prop=
"itemCategory"
style=
"width: 800px"
>
<i-select
placeholder=
"please choose"
v-model=
"tbCfStationItem.itemCategory"
@
on-change=
"changeGoodstype"
>
<!-- <Form-item label="commodity link" prop="itemUrl" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.itemUrl" placeholder="commodity link"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="供应商" prop="supplier" style="width: 800px">-->
<!-- <i-input v-model="tbCfStationItem.supplier" placeholder="供应商"/>-->
<!-- </Form-item>-->
<!-- <Form-item label="freight template" prop="country" style="width: 800px">-->
<!-- <i-select label="please choose" v-model="tbCfStationItem.template">-->
<!-- <i-option v-for="c in templateList" :key='c.templateId'-->
<!-- :value="c.templateId">{{c.templateTitle}}-->
<!-- </i-option>-->
<!-- </i-select>-->
<!-- </Form-item>-->
<Form-item
label=
"Top Category"
prop=
"itemCategory"
style=
"width: 800px"
>
<i-select
placeholder=
"please choose"
v-model=
"tbCfStationItem.itemCategory"
@
on-change=
"changeGoodstype"
>
<i-option
v-for=
"(el,i) in Goodstype"
:key=
'i'
:value=
"el.goodstypeId"
>
{{el.goodstypeTitle}}
</i-option>
</i-select>
</Form-item>
<Form-item
label=
"
commodity secondary classification
"
prop=
"itemCategorytwo"
style=
"width: 800px"
>
<Form-item
label=
"
Secondary Category
"
prop=
"itemCategorytwo"
style=
"width: 800px"
>
<i-select
placeholder=
"please choose"
v-model=
"tbCfStationItem.itemCategorytwo"
@
on-change=
"changeGoodstype2"
>
<i-option
v-for=
"(el,i) in Goodstype2"
:key=
'i'
...
...
@@ -714,7 +719,7 @@
</i-option>
</i-select>
</Form-item>
<Form-item
label=
"
commodity three-level classification
"
prop=
"itemDescritionId"
style=
"width: 800px"
>
<Form-item
label=
"
Tertiary Category
"
prop=
"itemDescritionId"
style=
"width: 800px"
>
<i-select
placeholder=
"please choose"
v-model=
"tbCfStationItem.itemDescritionId"
>
<i-option
v-for=
"(el,i) in Goodstype3"
:key=
'i'
:value=
"el.descripitionId"
>
{{el.descripitionName}}
...
...
@@ -722,288 +727,290 @@
</i-select>
</Form-item>
<!-- <Card class="container">-->
<!-- <!– 标头 –>-->
<!-- <p class="title">-->
<!-- <span><i style="color: red;">*</i>multiple attributes</span>-->
<!-- <i-switch size="large" v-model="putaway">-->
<!-- <Icon type="md-checkmark"></Icon>-->
<!-- <Icon type="md-close"></Icon>-->
<!-- </i-switch>-->
<!-- <span>available now</span>-->
<!-- </p>-->
<!-- <!– 选项 –>-->
<!-- <section class="form-wrapper">-->
<!-- <h4>options</h4>-->
<!-- <section class="default-price" v-show="!disabledChangeAttribute">-->
<!-- <h4>set default price and inventory-->
<!-- <i-switch v-model="setDefaultValue" :disabled="disabled">-->
<!-- <Icon type="md-checkmark"></Icon>-->
<!-- <Icon type="md-close"></Icon>-->
<!-- </i-switch>-->
<!-- </h4>-->
<!-- <div v-show="setDefaultValue" class="default-price-in">-->
<!-- <div>-->
<!-- <i-Input v-model="default_price" style="width:160px;margin-top:5px;" size="small"-->
<!-- placeholder="默认价格"/>-->
<!-- </div>-->
<!-- <div>-->
<!-- <i-Input v-model="default_count" style="width:160px;margin-top:5px;" size="small"-->
<!-- placeholder="默认数量"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- </section>-->
<!-- <transition-group tag="ul" name="slide">-->
<!-- <li v-for="(el,i) in attrItem" :key="i">-->
<!-- <h6>选项{{i+1}}</h6>-->
<!-- <label>属性</label>-->
<!-- <i-Select-->
<!-- filterable-->
<!-- v-model="el.categoryName"-->
<!-- style="width:100px;margin:0 25px;"-->
<!-- allow-create-->
<!-- @on-create="handleCreateSelect"-->
<!-- :disabled='disabledChangeAttribute'-->
<!-- >-->
<!-- <i-Option v-for="(option,index) in el.option" :value="option" :key="index">{{option}}-->
<!-- </i-Option>-->
<!-- </i-Select>-->
<!-- <!– <select class="f-select" v-model="el.selected">-->
<!-- <option v-for="(option,index) in el.option">{{option}}</option>-->
<!-- </select>–>-->
<!-- <textarea-->
<!-- :disabled='disabledChangeAttribute'-->
<!-- @input="handleChangeContent" v-model="el.categoryDesc" cols="48" rows="2"-->
<!-- placeholder="请用逗号隔开各个选项"-->
<!-- ></textarea>-->
<!-- <!– <i-button type="error" @click="delAttr(i)">删除</i-button> –>-->
<!-- <i-button :disabled="disabledChangeAttribute" type="error" @click="confirmDel(i)">删除-->
<!-- </i-button>-->
<!-- </li>-->
<!-- </transition-group>-->
<!-- <i-button-->
<!-- v-show="!disabledChangeAttribute"-->
<!-- :disabled="disabledChangeAttribute"-->
<!-- style="margin-left:10px;margin-bottom:10px;margin-top:10px;"-->
<!-- type="success"-->
<!-- @click="addAttr"-->
<!-- >新增属性-->
<!-- </i-button>-->
<!-- <i-button-->
<!-- v-show="disabledChangeAttribute"-->
<!-- style="margin-left:10px;margin-bottom:10px;margin-top:10px;"-->
<!-- @click.stop="isShowAttributeContainer(true)"-->
<!-- >属性图片-->
<!-- </i-button>-->
<!-- <i-button-->
<!-- type="primary"-->
<!-- v-show="disabledChangeAttribute"-->
<!-- style="margin-left:10px;margin-bottom:10px;margin-top:10px;"-->
<!-- @click.stop="showBatchModel"-->
<!-- >批量操作-->
<!-- </i-button>-->
<!-- <!– 上传图片–>-->
<!-- <div class="attribute-img-container" v-show="showAttributeImg">-->
<!-- <div class="attribute-img-mask"></div>-->
<!-- <div class="attribute-img-wrapper">-->
<!-- <i class="attribute-img-wrapper-close" @click.stop="isShowAttributeContainer(false)">x</i>-->
<!-- <div class="attribute-img-lists">-->
<!-- <div class="attribute-img" v-for="(element,index) in AttributeImgArr">-->
<!-- <div class="attribute-img-remove-icon">-->
<!-- <!– <Icon size="20" type="ios-eye-outline" ></Icon>–>-->
<!-- <i></i>-->
<!-- <Icon size="20" type="ios-trash-outline"-->
<!-- @click="removeAttributeImg(element.img_path,index)"></Icon>-->
<!-- </div>-->
<!-- <img :src="element.img_path" @click="selectImg(element.img_path)">-->
<!-- </div>-->
<!-- <div class="attribute-img" @click="cancelSelectImg">-->
<!-- <img title="取消选择"-->
<!-- src="http://ku.90sjimg.com/element_origin_min_pic/01/47/26/835743e2ba5da85.jpg"-->
<!-- width="100%" height="100%"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="attribute-img-upload">-->
<!-- <Upload-->
<!-- multiple-->
<!-- type="drag"-->
<!-- :before-upload="handleBeforeUpload"-->
<!-- accept="image/jpeg, image/png"-->
<!-- action="../api/osstest/uploadtest"-->
<!-- :on-success="handleAttributeImgSuccess"-->
<!-- >-->
<!-- <div style="padding: 20px 0">-->
<!-- <Icon type="ios-cloud-upload" size="52" style="color: #3399ff"></Icon>-->
<!-- <p>点击或将文件拖拽到这里上传</p>-->
<!-- </div>-->
<!-- </Upload>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <!– 批量操作–>-->
<!-- <div class="attribute-img-container" v-show="showBatch">-->
<!-- <div class="attribute-img-mask"></div>-->
<!-- <div class="attribute-img-wrapper">-->
<!-- <h2 class="text-center">批量操作</h2>-->
<!-- <i class="attribute-img-wrapper-close" @click.stop="showBatch=false">x</i>-->
<!-- <Tabs active-key="key1">-->
<!-- <Tab-pane label="图片操作" key="key1">-->
<!-- <div>-->
<!-- <i-button-->
<!-- shape="circle"-->
<!-- v-for="(item,index) in selectBtnArr"-->
<!-- :type="item.isSelected?'primary':null"-->
<!-- @click="changeSelectBtnArr(item,index)"-->
<!-- style="margin-right:10px;"-->
<!-- >{{item.title}}-->
<!-- </i-button>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性规格</h3>-->
<!-- <div-->
<!-- class="attribute-sku-tag"-->
<!-- v-for="(item,index) in allAttributes"-->
<!-- @click="selectAttr(item,index)"-->
<!-- :class="item.isSelected?'attribute-sku-tag-active':null"-->
<!-- >{{item.text}}-->
<!-- </div>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性图片</h3>-->
<!-- <div class="pp-flex-start">-->
<!-- <img-->
<!-- class="attr-img"-->
<!-- v-for="(item,index) in AttributeImgArr"-->
<!-- :src="item.img_path"-->
<!-- :style="item.isSelected?'border:2px solid #1ab394;border-radius:4px;':null"-->
<!-- @click="BatchSelectImg(item,index)"-->
<!-- />-->
<!-- <Upload-->
<!-- multiple-->
<!-- type="drag"-->
<!-- :before-upload="handleBeforeUpload"-->
<!-- accept="image/jpeg, image/png"-->
<!-- action="../api/osstest/uploadtest"-->
<!-- :on-success="handleAttributeImgSuccess"-->
<!-- :show-upload-list="false"-->
<!-- :format="['jpg','jpeg','png']"-->
<!-- :max-size="2048"-->
<!-- style="display: inline-block;width:58px;">-->
<!-- <div style="width: 58px;height:58px;line-height: 58px;">-->
<!-- <Icon type="camera" size="20"></Icon>-->
<!-- </div>-->
<!-- </Upload>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性价格</h3>-->
<!-- <i-input type="number" ref="amount" @on-change="changeBatch($event,'amount')"-->
<!-- placeholder="属性价格"/>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性库存</h3>-->
<!-- <i-input type="number" ref="count" @on-change="changeBatch($event,'count')"-->
<!-- placeholder="属性库存"/>-->
<!-- </div>-->
<!-- <div style="height: 140px"></div>-->
<!-- <div class="confirm-btn">-->
<!-- <i-button type="primary" @click="saveBatchData()">保存</i-button>-->
<!-- </div>-->
<!-- </Tab-pane>-->
<!-- <Tab-pane label="价格操作" key="key2">-->
<!-- <div>-->
<!-- <div v-for="(el,i) in handleProductAttr_Batch" :key="i">-->
<!-- <h3 style="margin:20px 0;">{{el.categoryName}}</h3>-->
<!-- <div-->
<!-- class="attribute-sku-tag"-->
<!-- v-for="(option,index) in el.categoryDescArr" :key="index"-->
<!-- @click="handleClickProductAttr_Batch(option,index,i)"-->
<!-- :class="option.isSelected?'attribute-sku-tag-active':null"-->
<!-- >{{option.name}}-->
<!-- </div>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性价格</h3>-->
<!-- <i-input ref="amount" type="number"-->
<!-- @on-change="changeBatch($event,'amount')"-->
<!-- placeholder="属性价格"/>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性库存</h3>-->
<!-- <i-input ref="count" type="number" @on-change="changeBatch($event,'count')"-->
<!-- placeholder="属性库存"/>-->
<!-- </div>-->
<!-- <div class="pp-flex-center confirm-btn-price">-->
<!-- <i-button type="primary" @click="saveBatchDataPrice('use')">应用</i-button>-->
<!-- <i-button type="primary" @click="saveBatchDataPrice('save')">保存</i-button>-->
<!-- </div>-->
<!-- </div>-->
<!-- </Tab-pane>-->
<!-- </Tabs>-->
<!-- </div>-->
<!-- </div>-->
<!-- <br/>-->
<!-- <i-button style="margin-left:10px;margin-bottom:10px;margin-top:10px;"-->
<!-- @click="disabledChangeAttribute=true" v-show="!disabledChangeAttribute">-->
<!-- 确定商品规格-->
<!-- </i-button>-->
<!-- <!– 预览 –>-->
<!-- <section class="form-prev">-->
<!-- <h4>预览</h4>-->
<!-- <transition-group tag="ul" name="slide">-->
<!-- <li class="prev-li" v-for="(el,i) in prevItem" :key="i">-->
<!-- <div class="prev-attr">-->
<!-- <img @click="HandleSelectAttributeImg(el,i)" width="42" height="42" :src="el.skuImg"-->
<!-- v-if="el.skuImg"/>-->
<!-- <div @click="HandleSelectAttributeImg(el,i)" class="default-img" v-else></div>-->
<!-- </div>-->
<!-- <div class="prev-attr">-->
<!-- <span>{{el.skuName}}</span>-->
<!-- <!– <div class="attribute-sku-tag" style="height:24px;width:auto;white-space:nowrap; box-shadow: none">{{el.skuDesc}}</div>–>-->
<!-- <Tag color="geekblue" style="white-space:nowrap;">{{el.skuDesc}}</Tag>-->
<!-- </div>-->
<!-- <div class="prev-price">-->
<!-- <span>价格</span>-->
<!-- <i-input :disabled="!disabledChangeAttribute" v-model='el.skuPrice' size="small"-->
<!-- placeholder="USD"/>-->
<!-- </div>-->
<!-- <div class="prev-count">-->
<!-- <span>数量</span>-->
<!-- <i-input :disabled="!disabledChangeAttribute" v-model='el.skuCount' size="small"-->
<!-- type="number" placeholder="0"/>-->
<!-- </div>-->
<!-- <div class="prev-code">-->
<!-- <span>商品编码</span>-->
<!-- <i-input :disabled="!disabledChangeAttribute" v-model='el.skuCode' size="small"-->
<!-- placeholder="0"/>-->
<!-- </div>-->
<!-- <i-button :disabled="!disabledChangeAttribute" class="prev-del" type="warning"-->
<!-- @click="del(i)">删除-->
<!-- </i-button>-->
<!-- </li>-->
<!-- </transition-group>-->
<!-- </section>-->
<!-- <!– <i-button style="margin-left:10px;" type="primary" @click='save'>保存</i-button>–>-->
<!-- </section>-->
<!-- </Card>-->
<!-- <Card class="container">-->
<!-- <!– 标头 –>-->
<!-- <p class="title">-->
<!-- <span><i style="color: red;">*</i>multiple attributes</span>-->
<!-- <i-switch size="large" v-model="putaway">-->
<!-- <Icon type="md-checkmark"></Icon>-->
<!-- <Icon type="md-close"></Icon>-->
<!-- </i-switch>-->
<!-- <span>available now</span>-->
<!-- </p>-->
<!-- <!– 选项 –>-->
<!-- <section class="form-wrapper">-->
<!-- <h4>options</h4>-->
<!-- <section class="default-price" v-show="!disabledChangeAttribute">-->
<!-- <h4>set default price and inventory-->
<!-- <i-switch v-model="setDefaultValue" :disabled="disabled">-->
<!-- <Icon type="md-checkmark"></Icon>-->
<!-- <Icon type="md-close"></Icon>-->
<!-- </i-switch>-->
<!-- </h4>-->
<!-- <div v-show="setDefaultValue" class="default-price-in">-->
<!-- <div>-->
<!-- <i-Input v-model="default_price" style="width:160px;margin-top:5px;" size="small"-->
<!-- placeholder="默认价格"/>-->
<!-- </div>-->
<!-- <div>-->
<!-- <i-Input v-model="default_count" style="width:160px;margin-top:5px;" size="small"-->
<!-- placeholder="默认数量"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- </section>-->
<!-- <transition-group tag="ul" name="slide">-->
<!-- <li v-for="(el,i) in attrItem" :key="i">-->
<!-- <h6>选项{{i+1}}</h6>-->
<!-- <label>属性</label>-->
<!-- <i-Select-->
<!-- filterable-->
<!-- v-model="el.categoryName"-->
<!-- style="width:100px;margin:0 25px;"-->
<!-- allow-create-->
<!-- @on-create="handleCreateSelect"-->
<!-- :disabled='disabledChangeAttribute'-->
<!-- >-->
<!-- <i-Option v-for="(option,index) in el.option" :value="option" :key="index">{{option}}-->
<!-- </i-Option>-->
<!-- </i-Select>-->
<!-- <!– <select class="f-select" v-model="el.selected">-->
<!-- <option v-for="(option,index) in el.option">{{option}}</option>-->
<!-- </select>–>-->
<!-- <textarea-->
<!-- :disabled='disabledChangeAttribute'-->
<!-- @input="handleChangeContent" v-model="el.categoryDesc" cols="48" rows="2"-->
<!-- placeholder="请用逗号隔开各个选项"-->
<!-- ></textarea>-->
<!-- <!– <i-button type="error" @click="delAttr(i)">删除</i-button> –>-->
<!-- <i-button :disabled="disabledChangeAttribute" type="error" @click="confirmDel(i)">删除-->
<!-- </i-button>-->
<!-- </li>-->
<!-- </transition-group>-->
<!-- <i-button-->
<!-- v-show="!disabledChangeAttribute"-->
<!-- :disabled="disabledChangeAttribute"-->
<!-- style="margin-left:10px;margin-bottom:10px;margin-top:10px;"-->
<!-- type="success"-->
<!-- @click="addAttr"-->
<!-- >新增属性-->
<!-- </i-button>-->
<!-- <i-button-->
<!-- v-show="disabledChangeAttribute"-->
<!-- style="margin-left:10px;margin-bottom:10px;margin-top:10px;"-->
<!-- @click.stop="isShowAttributeContainer(true)"-->
<!-- >属性图片-->
<!-- </i-button>-->
<!-- <i-button-->
<!-- type="primary"-->
<!-- v-show="disabledChangeAttribute"-->
<!-- style="margin-left:10px;margin-bottom:10px;margin-top:10px;"-->
<!-- @click.stop="showBatchModel"-->
<!-- >批量操作-->
<!-- </i-button>-->
<!-- <!– 上传图片–>-->
<!-- <div class="attribute-img-container" v-show="showAttributeImg">-->
<!-- <div class="attribute-img-mask"></div>-->
<!-- <div class="attribute-img-wrapper">-->
<!-- <i class="attribute-img-wrapper-close" @click.stop="isShowAttributeContainer(false)">x</i>-->
<!-- <div class="attribute-img-lists">-->
<!-- <div class="attribute-img" v-for="(element,index) in AttributeImgArr">-->
<!-- <div class="attribute-img-remove-icon">-->
<!-- <!– <Icon size="20" type="ios-eye-outline" ></Icon>–>-->
<!-- <i></i>-->
<!-- <Icon size="20" type="ios-trash-outline"-->
<!-- @click="removeAttributeImg(element.img_path,index)"></Icon>-->
<!-- </div>-->
<!-- <img :src="element.img_path" @click="selectImg(element.img_path)">-->
<!-- </div>-->
<!-- <div class="attribute-img" @click="cancelSelectImg">-->
<!-- <img title="取消选择"-->
<!-- src="http://ku.90sjimg.com/element_origin_min_pic/01/47/26/835743e2ba5da85.jpg"-->
<!-- width="100%" height="100%"/>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div class="attribute-img-upload">-->
<!-- <Upload-->
<!-- multiple-->
<!-- type="drag"-->
<!-- :before-upload="handleBeforeUpload"-->
<!-- accept="image/jpeg, image/png"-->
<!-- action="../api/osstest/uploadtest"-->
<!-- :on-success="handleAttributeImgSuccess"-->
<!-- >-->
<!-- <div style="padding: 20px 0">-->
<!-- <Icon type="ios-cloud-upload" size="52" style="color: #3399ff"></Icon>-->
<!-- <p>点击或将文件拖拽到这里上传</p>-->
<!-- </div>-->
<!-- </Upload>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- <!– 批量操作–>-->
<!-- <div class="attribute-img-container" v-show="showBatch">-->
<!-- <div class="attribute-img-mask"></div>-->
<!-- <div class="attribute-img-wrapper">-->
<!-- <h2 class="text-center">批量操作</h2>-->
<!-- <i class="attribute-img-wrapper-close" @click.stop="showBatch=false">x</i>-->
<!-- <Tabs active-key="key1">-->
<!-- <Tab-pane label="图片操作" key="key1">-->
<!-- <div>-->
<!-- <i-button-->
<!-- shape="circle"-->
<!-- v-for="(item,index) in selectBtnArr"-->
<!-- :type="item.isSelected?'primary':null"-->
<!-- @click="changeSelectBtnArr(item,index)"-->
<!-- style="margin-right:10px;"-->
<!-- >{{item.title}}-->
<!-- </i-button>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性规格</h3>-->
<!-- <div-->
<!-- class="attribute-sku-tag"-->
<!-- v-for="(item,index) in allAttributes"-->
<!-- @click="selectAttr(item,index)"-->
<!-- :class="item.isSelected?'attribute-sku-tag-active':null"-->
<!-- >{{item.text}}-->
<!-- </div>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性图片</h3>-->
<!-- <div class="pp-flex-start">-->
<!-- <img-->
<!-- class="attr-img"-->
<!-- v-for="(item,index) in AttributeImgArr"-->
<!-- :src="item.img_path"-->
<!-- :style="item.isSelected?'border:2px solid #1ab394;border-radius:4px;':null"-->
<!-- @click="BatchSelectImg(item,index)"-->
<!-- />-->
<!-- <Upload-->
<!-- multiple-->
<!-- type="drag"-->
<!-- :before-upload="handleBeforeUpload"-->
<!-- accept="image/jpeg, image/png"-->
<!-- action="../api/osstest/uploadtest"-->
<!-- :on-success="handleAttributeImgSuccess"-->
<!-- :show-upload-list="false"-->
<!-- :format="['jpg','jpeg','png']"-->
<!-- :max-size="2048"-->
<!-- style="display: inline-block;width:58px;">-->
<!-- <div style="width: 58px;height:58px;line-height: 58px;">-->
<!-- <Icon type="camera" size="20"></Icon>-->
<!-- </div>-->
<!-- </Upload>-->
<!-- </div>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性价格</h3>-->
<!-- <i-input type="number" ref="amount" @on-change="changeBatch($event,'amount')"-->
<!-- placeholder="属性价格"/>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性库存</h3>-->
<!-- <i-input type="number" ref="count" @on-change="changeBatch($event,'count')"-->
<!-- placeholder="属性库存"/>-->
<!-- </div>-->
<!-- <div style="height: 140px"></div>-->
<!-- <div class="confirm-btn">-->
<!-- <i-button type="primary" @click="saveBatchData()">保存</i-button>-->
<!-- </div>-->
<!-- </Tab-pane>-->
<!-- <Tab-pane label="价格操作" key="key2">-->
<!-- <div>-->
<!-- <div v-for="(el,i) in handleProductAttr_Batch" :key="i">-->
<!-- <h3 style="margin:20px 0;">{{el.categoryName}}</h3>-->
<!-- <div-->
<!-- class="attribute-sku-tag"-->
<!-- v-for="(option,index) in el.categoryDescArr" :key="index"-->
<!-- @click="handleClickProductAttr_Batch(option,index,i)"-->
<!-- :class="option.isSelected?'attribute-sku-tag-active':null"-->
<!-- >{{option.name}}-->
<!-- </div>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性价格</h3>-->
<!-- <i-input ref="amount" type="number"-->
<!-- @on-change="changeBatch($event,'amount')"-->
<!-- placeholder="属性价格"/>-->
<!-- </div>-->
<!-- <div>-->
<!-- <h3 style="margin:20px 0;">属性库存</h3>-->
<!-- <i-input ref="count" type="number" @on-change="changeBatch($event,'count')"-->
<!-- placeholder="属性库存"/>-->
<!-- </div>-->
<!-- <div class="pp-flex-center confirm-btn-price">-->
<!-- <i-button type="primary" @click="saveBatchDataPrice('use')">应用</i-button>-->
<!-- <i-button type="primary" @click="saveBatchDataPrice('save')">保存</i-button>-->
<!-- </div>-->
<!-- </div>-->
<!-- </Tab-pane>-->
<!-- </Tabs>-->
<!-- </div>-->
<!-- </div>-->
<!-- <br/>-->
<!-- <i-button style="margin-left:10px;margin-bottom:10px;margin-top:10px;"-->
<!-- @click="disabledChangeAttribute=true" v-show="!disabledChangeAttribute">-->
<!-- 确定商品规格-->
<!-- </i-button>-->
<!-- <!– 预览 –>-->
<!-- <section class="form-prev">-->
<!-- <h4>预览</h4>-->
<!-- <transition-group tag="ul" name="slide">-->
<!-- <li class="prev-li" v-for="(el,i) in prevItem" :key="i">-->
<!-- <div class="prev-attr">-->
<!-- <img @click="HandleSelectAttributeImg(el,i)" width="42" height="42" :src="el.skuImg"-->
<!-- v-if="el.skuImg"/>-->
<!-- <div @click="HandleSelectAttributeImg(el,i)" class="default-img" v-else></div>-->
<!-- </div>-->
<!-- <div class="prev-attr">-->
<!-- <span>{{el.skuName}}</span>-->
<!-- <!– <div class="attribute-sku-tag" style="height:24px;width:auto;white-space:nowrap; box-shadow: none">{{el.skuDesc}}</div>–>-->
<!-- <Tag color="geekblue" style="white-space:nowrap;">{{el.skuDesc}}</Tag>-->
<!-- </div>-->
<!-- <div class="prev-price">-->
<!-- <span>价格</span>-->
<!-- <i-input :disabled="!disabledChangeAttribute" v-model='el.skuPrice' size="small"-->
<!-- placeholder="USD"/>-->
<!-- </div>-->
<!-- <div class="prev-count">-->
<!-- <span>数量</span>-->
<!-- <i-input :disabled="!disabledChangeAttribute" v-model='el.skuCount' size="small"-->
<!-- type="number" placeholder="0"/>-->
<!-- </div>-->
<!-- <div class="prev-code">-->
<!-- <span>商品编码</span>-->
<!-- <i-input :disabled="!disabledChangeAttribute" v-model='el.skuCode' size="small"-->
<!-- placeholder="0"/>-->
<!-- </div>-->
<!-- <i-button :disabled="!disabledChangeAttribute" class="prev-del" type="warning"-->
<!-- @click="del(i)">删除-->
<!-- </i-button>-->
<!-- </li>-->
<!-- </transition-group>-->
<!-- </section>-->
<!-- <!– <i-button style="margin-left:10px;" type="primary" @click='save'>保存</i-button>–>-->
<!-- </section>-->
<!-- </Card>-->
<Card
class=
"container"
style=
"margin-top:20px;"
>
<section
class=
"form-wrapper"
>
<h4>
商品参数
</h4>
<h4>
Product Parameters
</h4>
<transition-group
tag=
"ul"
name=
"slide"
>
<li
class=
"prev-li"
v-for=
"(item,index) in paramster"
:key=
"index"
style=
"margin-bottom: 0;"
>
<div>
<i-input
v-model=
"item.paramName"
size=
"small"
type=
"text"
placeholder=
"参数名称"
/>
<i-input
v-model=
"item.paramName"
size=
"small"
type=
"text"
placeholder=
"Parameter Name"
/>
</div>
<div>
<i-input
v-model=
"item.paramValue"
size=
"small"
type=
"text"
placeholder=
"参数值"
/>
<i-input
v-model=
"item.paramValue"
size=
"small"
type=
"text"
placeholder=
"Parameter Values"
/>
</div>
<i-button
class=
"prev-del paramster-del"
type=
"warning"
@
click=
"delParamster(index)"
>
删除
<i-button
class=
"prev-del paramster-del"
type=
"warning"
@
click=
"delParamster(index)"
>
Delete
</i-button>
</li>
</transition-group>
...
...
@@ -1012,7 +1019,7 @@
style=
"margin-left:15px;margin-bottom:10px;margin-top:10px;"
type=
"success"
@
click=
"addProductParams()"
>
新增参数
>
Add new parameters
</i-button>
</section>
</Card>
...
...
@@ -1040,23 +1047,23 @@
<br/>
<br/>
<Form-item
label=
"
product d
escription"
prop=
"itemDesc"
>
<Form-item
label=
"
Product D
escription"
prop=
"itemDesc"
>
<!-- <script id="Detail" name="tbCfVersion.versionDetail"type="text/plain">${pd.COLLSORT_DETAILS}</script>-->
<textarea
id=
"itemDesc"
style=
"width: 800px;height: 600px;"
></textarea>
</Form-item>
<Form-item>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
com
mit
</i-button>
<i-button
type=
"primary"
@
click=
"handleSubmit('formValidate')"
>
sub
mit
</i-button>
<i-button
type=
"warning"
@
click=
"back()"
style=
"margin-left: 8px"
/>
back
</i-button>
<i-button
type=
"ghost"
@
click=
"handleReset('formValidate')"
style=
"margin-left: 8px"
>
reset
</i-button>
</Form-item>
</i-form>
<!-- 退出警告 -->
<!-- <Modal-->
<!-- v-model="showQuitHint"-->
<!-- @on-ok="quit">-->
<!-- <p>not saved yet, do you want to exit?</p>-->
<!-- </Modal>-->
<!-- <Modal-->
<!-- v-model="showQuitHint"-->
<!-- @on-ok="quit">-->
<!-- <p>not saved yet, do you want to exit?</p>-->
<!-- </Modal>-->
</Card>
<script
src=
"${rc.contextPath}/js/plugins/Sortable.min.js"
></script>
<script
src=
"${rc.contextPath}/statics/libs/iview.js"
></script>
...
...
platform-admin/src/main/webapp/js/common.js
浏览文件 @
dce4e164
...
...
@@ -816,9 +816,9 @@ itemStatusFormat = function (cellvalue) {
itemStatusFormatEn
=
function
(
cellvalue
)
{
var
returnStr
;
if
(
cellvalue
==
'1'
)
{
returnStr
=
"<i-button class=
\"
ivu-btn ivu-btn-info
\"
style='border-radius:25px;' type=
\"
info
\"
>on
line sale
</i-button>"
;
returnStr
=
"<i-button class=
\"
ivu-btn ivu-btn-info
\"
style='border-radius:25px;' type=
\"
info
\"
>on
shelf
</i-button>"
;
}
else
if
(
cellvalue
==
'2'
)
{
returnStr
=
"<i-button class=
\"
ivu-btn ivu-btn-warning
\"
style='border-radius:25px;' type=
\"
warning
\"
>
has been removed
</i-button>"
;
returnStr
=
"<i-button class=
\"
ivu-btn ivu-btn-warning
\"
style='border-radius:25px;' type=
\"
warning
\"
>
off shelf
</i-button>"
;
}
else
if
(
cellvalue
==
'0'
)
{
returnStr
=
"<i-button class=
\"
ivu-btn ivu-btn-error
\"
style='border-radius:25px;' type=
\"
error
\"
>deleted</i-button>"
;
}
...
...
platform-admin/src/main/webapp/js/sys/tbcfhomepage.js
浏览文件 @
dce4e164
...
...
@@ -309,8 +309,11 @@ let vm = new Vue({
}
}
else
if
(
vm
.
typeActive
===
2
)
{
setTimeout
(()
=>
{
vm
.
handleSearch
(
vm
.
tbCfHomePage
.
linkUrl
);
},
500
)
let
itemId
=
vm
.
tbCfHomePage
.
linkUrl
vm
.
handleSearch
(
itemId
);
console
.
log
(
'itemId'
,
itemId
)
$
(
"#searchjqGrid"
).
jqGrid
(
'setSelection'
,
itemId
);
},
200
)
}
else
if
(
vm
.
typeActive
===
3
)
{
vm
.
tagListsActive
=
vm
.
tbCfHomePage
.
linkUrl
;
}
...
...
platform-admin/src/main/webapp/js/sys/tbcfstationitemEn.js
浏览文件 @
dce4e164
...
...
@@ -3,27 +3,27 @@ $(function () {
url
:
'../tbcfstationitem/list'
,
colModel
:
[
{
label
:
'itemId'
,
name
:
'itemId'
,
index
:
'item_id'
,
key
:
true
,
hidden
:
true
},
{
label
:
'
product p
icture'
,
name
:
'itemImg'
,
index
:
'item_img'
,
width
:
80
,
formatter
:
imageFormat
},
{
label
:
'
product number
'
,
name
:
'itemCode'
,
index
:
'item_code'
,
width
:
80
},
{
label
:
'
product n
ame'
,
name
:
'itemName'
,
index
:
'item_name'
,
width
:
120
},
{
label
:
'
P
icture'
,
name
:
'itemImg'
,
index
:
'item_img'
,
width
:
80
,
formatter
:
imageFormat
},
{
label
:
'
Item No
'
,
name
:
'itemCode'
,
index
:
'item_code'
,
width
:
80
},
{
label
:
'
Product N
ame'
,
name
:
'itemName'
,
index
:
'item_name'
,
width
:
120
},
/* {label: '商品标题', name: 'itemBrief', index: 'item_brief', width: 120},*/
/*{label: '商品链接', name: 'itemUrl', index: 'item_url', width: 80,formatter:linkFormat},*/
// {label: '商品原价', name: 'itemPrice', index: 'item_price', width: 45},
// {label: '商品现价', name: 'discountPrice', index: 'discount_price', width: 45},
{
label
:
'
s
tock'
,
name
:
'itemCount'
,
index
:
'item_count'
,
width
:
45
},
{
label
:
'
S
tock'
,
name
:
'itemCount'
,
index
:
'item_count'
,
width
:
45
},
// {label: '点击量', name: 'itemNum', index: 'item_num', width: 45},
/*{label: '所属平台', name: 'platformCode', index: 'platform_code', width: 80},
{label: '平台名', name: 'platformName', index: 'platform_name', width: 80},*/
// {label: '供应商', name: 'supplier', index: 'supplier', width: 80},
{
label
:
'置顶'
,
name
:
'itemTop'
,
index
:
'item_top'
,
width
:
80
,
hidden
:
true
},
{
label
:
'
commodity classification
'
,
name
:
'goodtype'
,
index
:
'goodtype'
,
width
:
110
},
{
label
:
'
commodity secondary classification
'
,
name
:
'title'
,
index
:
'title'
,
width
:
155
},
{
label
:
'
commodity three-level classification
'
,
name
:
'dname'
,
index
:
'itemDescritionId'
,
width
:
155
},
{
label
:
'
s
tatus'
,
name
:
'enableFlag'
,
index
:
'enable_flag'
,
width
:
70
,
formatter
:
itemStatusFormatEn
},
{
label
:
'
creation dat
e'
,
name
:
'createTime'
,
index
:
'create_time'
,
width
:
80
},
{
label
:
'
Top Category
'
,
name
:
'goodtype'
,
index
:
'goodtype'
,
width
:
110
},
{
label
:
'
Secondary Category
'
,
name
:
'title'
,
index
:
'title'
,
width
:
155
},
{
label
:
'
Tertiary Category
'
,
name
:
'dname'
,
index
:
'itemDescritionId'
,
width
:
155
},
{
label
:
'
S
tatus'
,
name
:
'enableFlag'
,
index
:
'enable_flag'
,
width
:
70
,
formatter
:
itemStatusFormatEn
},
{
label
:
'
Creation Tim
e'
,
name
:
'createTime'
,
index
:
'create_time'
,
width
:
80
},
// {label: 'creator', name: 'uname', index: 'uname', width: 80},
{
label
:
'
operate
'
,
index
:
'operate'
,
width
:
120
,
formatter
:
function
(
value
,
grid
,
rows
)
{
label
:
'
Operation
'
,
index
:
'operate'
,
width
:
120
,
formatter
:
function
(
value
,
grid
,
rows
)
{
if
(
rows
.
itemTop
===
1
)
{
return
'<span class="label label-primary pointer" onclick="vm.itemUpward(
\'
'
+
rows
.
itemId
+
'
\'
)" ">up</span> '
+
'<span class="label label-success pointer" onclick="vm.itemDownward(
\'
'
+
rows
.
itemId
+
'
\'
)" ">down</span>  '
+
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论