|
@@ -5,9 +5,8 @@
|
|
|
<t-tr header>
|
|
<t-tr header>
|
|
|
<t-th>名称</t-th>
|
|
<t-th>名称</t-th>
|
|
|
<t-th>散客</t-th>
|
|
<t-th>散客</t-th>
|
|
|
- <t-th>普店</t-th>
|
|
|
|
|
- <t-th>银店</t-th>
|
|
|
|
|
- <t-th>金店</t-th>
|
|
|
|
|
|
|
+ <t-th>花店</t-th>
|
|
|
|
|
+ <t-th>同行</t-th>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
<view v-for="(item, index) in list.data" :key="index">
|
|
<view v-for="(item, index) in list.data" :key="index">
|
|
|
<t-tr>
|
|
<t-tr>
|
|
@@ -20,9 +19,6 @@
|
|
|
</t-td>
|
|
</t-td>
|
|
|
<t-td align="center" color="info">
|
|
<t-td align="center" color="info">
|
|
|
<view><input v-model="item.hjAddPrice" @focus="item.hjAddPrice=''" name="hjAddPrice" type="digit" style="border:1upx solid #cccccc;" /></view>
|
|
<view><input v-model="item.hjAddPrice" @focus="item.hjAddPrice=''" name="hjAddPrice" type="digit" style="border:1upx solid #cccccc;" /></view>
|
|
|
- </t-td>
|
|
|
|
|
- <t-td align="center" color="info">
|
|
|
|
|
- <view><input v-model="item.zsAddPrice" @focus="item.zsAddPrice=''" name="zsAddPrice" type="digit" style="border:1upx solid #cccccc;" /></view>
|
|
|
|
|
</t-td>
|
|
</t-td>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
</view>
|
|
</view>
|
|
@@ -80,7 +76,7 @@ export default {
|
|
|
|
|
|
|
|
this.batchStyle = styleInfo
|
|
this.batchStyle = styleInfo
|
|
|
let self = this
|
|
let self = this
|
|
|
- let levelList = ['请选择列:','散客', '普店', '银店', '金店']
|
|
|
|
|
|
|
+ let levelList = ['请选择列:','散客', '花店', '同行']
|
|
|
uni.showActionSheet({
|
|
uni.showActionSheet({
|
|
|
itemList: levelList,
|
|
itemList: levelList,
|
|
|
success: function (respond) {
|
|
success: function (respond) {
|
|
@@ -108,8 +104,6 @@ export default {
|
|
|
array[index].addPrice = parseFloat((Number(array[index].addPrice) + currentPrice).toFixed(2))
|
|
array[index].addPrice = parseFloat((Number(array[index].addPrice) + currentPrice).toFixed(2))
|
|
|
}else if(that.levelIndex == 3){
|
|
}else if(that.levelIndex == 3){
|
|
|
array[index].hjAddPrice = parseFloat((Number(array[index].hjAddPrice) + currentPrice).toFixed(2))
|
|
array[index].hjAddPrice = parseFloat((Number(array[index].hjAddPrice) + currentPrice).toFixed(2))
|
|
|
- }else if(that.levelIndex == 4){
|
|
|
|
|
- array[index].zsAddPrice = parseFloat((Number(array[index].zsAddPrice) + currentPrice).toFixed(2))
|
|
|
|
|
}else{
|
|
}else{
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -120,8 +114,6 @@ export default {
|
|
|
array[index].addPrice = parseFloat((currentPrice).toFixed(2))
|
|
array[index].addPrice = parseFloat((currentPrice).toFixed(2))
|
|
|
}else if(that.levelIndex == 3){
|
|
}else if(that.levelIndex == 3){
|
|
|
array[index].hjAddPrice = parseFloat((currentPrice).toFixed(2))
|
|
array[index].hjAddPrice = parseFloat((currentPrice).toFixed(2))
|
|
|
- }else if(that.levelIndex == 4){
|
|
|
|
|
- array[index].zsAddPrice = parseFloat((currentPrice).toFixed(2))
|
|
|
|
|
}else{
|
|
}else{
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -142,18 +134,15 @@ export default {
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
if(that.$util.isMoney(value.addPrice) == false){
|
|
if(that.$util.isMoney(value.addPrice) == false){
|
|
|
- that.$msg('【'+value.name+'】的普店加价填写错误')
|
|
|
|
|
|
|
+ that.$msg('【'+value.name+'】的花店加价填写错误')
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
if(that.$util.isMoney(value.hjAddPrice) == false){
|
|
if(that.$util.isMoney(value.hjAddPrice) == false){
|
|
|
- that.$msg('【'+value.name+'】的银店加价填写错误')
|
|
|
|
|
|
|
+ that.$msg('【'+value.name+'】的同行加价填写错误')
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- if(that.$util.isMoney(value.zsAddPrice) == false){
|
|
|
|
|
- that.$msg('【'+value.name+'】的金店加价填写错误')
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
- addData.push({id:value.id,skAddPrice:value.skAddPrice,addPrice:value.addPrice,hjAddPrice:value.hjAddPrice,zsAddPrice:value.zsAddPrice})
|
|
|
|
|
|
|
+
|
|
|
|
|
+ addData.push({id:value.id,skAddPrice:value.skAddPrice,addPrice:value.addPrice,hjAddPrice:value.hjAddPrice})
|
|
|
})
|
|
})
|
|
|
let addString = JSON.stringify(addData)
|
|
let addString = JSON.stringify(addData)
|
|
|
batchChangeAddPrice({addData:addString}).then(res=>{
|
|
batchChangeAddPrice({addData:addString}).then(res=>{
|