Commit 0c54d7ca authored by 黄奎's avatar 黄奎

价格设置

parent 202c28d0
...@@ -382,19 +382,48 @@ ...@@ -382,19 +382,48 @@
<div class="app-attr"> <div class="app-attr">
<div class="box"> <div class="box">
<el-form-item label-width="90px" style="display:inline-block" label="批量设置"> <el-form-item label-width="90px" style="display:inline-block" label="批量设置">
<el-input style="width:100%" size="small" v-model="valpl" placeholder="请输入内容" <template v-if="currentUserInfo&&currentUserInfo.TenantId==29">
class="input-with-select"> <template v-if="SpecificationList&&SpecificationList.length>0">
<el-select style="width:120px" v-model="ggpl" slot="prepend" placeholder="请选择"> <template v-for="(rItem,rIndex) in SpecificationList">
<el-option label="价格" :value="1"></el-option> &nbsp;{{rItem.Name}}: <el-select :label="rItem.Name" v-model="rItem.CheckList"
<el-option label="库存" :value="2"></el-option> :key="rIndex" multiple>
<el-option label="成本价" :value="5"></el-option> <el-option v-for="(subItem,subIndex) in rItem.SpecificationValueList"
<el-option label="重量(g)" :value="3"></el-option> :key="subIndex" :label="subItem.Name" :value="subItem.Id"></el-option>
<el-option label="货号" :value="4"></el-option> </el-select>
<el-option v-if="FxState==1" label="返佣总金额" :value="6"></el-option> </template>
</el-select> </template>
<el-button @click="ggPlSet" slot="append">确定</el-button> <el-input style="width:100%" size="small" v-model="valpl" placeholder="请输入内容"
</el-input> class="input-with-select">
<el-select style="width:120px" v-model="ggpl" slot="prepend" placeholder="请选择">
<el-option label="价格" :value="1"></el-option>
<el-option label="库存" :value="2"></el-option>
<el-option label="成本价" :value="5"></el-option>
<el-option label="重量(g)" :value="3"></el-option>
<el-option label="货号" :value="4"></el-option>
<el-option v-if="FxState==1" label="返佣总金额" :value="6"></el-option>
</el-select>
<el-button @click="ggPlSet" slot="append">确定</el-button>
</el-input>
</template>
<template v-else>
<el-input style="width:100%" size="small" v-model="valpl" placeholder="请输入内容"
class="input-with-select">
<el-select style="width:120px" v-model="ggpl" slot="prepend" placeholder="请选择">
<el-option label="价格" :value="1"></el-option>
<el-option label="库存" :value="2"></el-option>
<el-option label="成本价" :value="5"></el-option>
<el-option label="重量(g)" :value="3"></el-option>
<el-option label="货号" :value="4"></el-option>
<el-option v-if="FxState==1" label="返佣总金额" :value="6"></el-option>
</el-select>
<el-button @click="ggPlSet" slot="append">确定</el-button>
</el-input>
</template>
</el-form-item> </el-form-item>
</div> </div>
<el-table ref="table" :data="SpecificationPriceList" border style="width: 100%" <el-table ref="table" :data="SpecificationPriceList" border style="width: 100%"
@selection-change="TbaleSelectionChange" max-height="450"> @selection-change="TbaleSelectionChange" max-height="450">
...@@ -1638,6 +1667,8 @@ ...@@ -1638,6 +1667,8 @@
IsDateFormat: 0, //默认0,1-是,是日期格式,方便后面转换成日期 IsDateFormat: 0, //默认0,1-是,是日期格式,方便后面转换成日期
StartDate: "", //开始时间 StartDate: "", //开始时间
EndDate: "", //结束时间 EndDate: "", //结束时间
IsCheckAll:false,
CheckList:[],
}; };
this.SpecificationList.push(obj); this.SpecificationList.push(obj);
}, },
......
...@@ -64,11 +64,11 @@ ...@@ -64,11 +64,11 @@
if (this.IsMultiple) { if (this.IsMultiple) {
if (resultMsg.length > 0) { if (resultMsg.length > 0) {
resultMsg.forEach(item => { resultMsg.forEach(item => {
html += '<img src="' + this.getIconLink(item.url) + '" style="max-width: 100%;display: block;" />'; html += '<img src="' + this.getIconLink(item.url) + '" style="max-width: 100%;display:block;" />';
}) })
} }
} else { } else {
html = '<img src="' + this.getIconLink(resultMsg.url) + '" style="max-width: 100%;display: block;" />'; html = '<img src="' + this.getIconLink(resultMsg.url) + '" style="max-width: 100%;display:block;" />';
} }
this.ue.execCommand('inserthtml', html); this.ue.execCommand('inserthtml', html);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment