|
@@ -5,8 +5,7 @@
|
|
|
<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-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>
|
|
@@ -16,9 +15,6 @@
|
|
|
</t-td>
|
|
</t-td>
|
|
|
<t-td align="center" color="info">
|
|
<t-td align="center" color="info">
|
|
|
<view><input v-model="item.addPrice" @focus="item.addPrice=''" name="price" type="digit" style="border:1upx solid #cccccc;" /></view>
|
|
<view><input v-model="item.addPrice" @focus="item.addPrice=''" name="price" type="digit" style="border:1upx solid #cccccc;" /></view>
|
|
|
- </t-td>
|
|
|
|
|
- <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>
|
|
|
|
|
</t-td>
|
|
</t-td>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
</view>
|
|
</view>
|
|
@@ -76,7 +72,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) {
|
|
@@ -102,8 +98,6 @@ export default {
|
|
|
array[index].skAddPrice = parseFloat((Number(array[index].skAddPrice) + currentPrice).toFixed(2))
|
|
array[index].skAddPrice = parseFloat((Number(array[index].skAddPrice) + currentPrice).toFixed(2))
|
|
|
}else if(that.levelIndex == 2){
|
|
}else if(that.levelIndex == 2){
|
|
|
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){
|
|
|
|
|
- array[index].hjAddPrice = parseFloat((Number(array[index].hjAddPrice) + currentPrice).toFixed(2))
|
|
|
|
|
}else{
|
|
}else{
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -112,8 +106,6 @@ export default {
|
|
|
array[index].skAddPrice = parseFloat((currentPrice).toFixed(2))
|
|
array[index].skAddPrice = parseFloat((currentPrice).toFixed(2))
|
|
|
}else if(that.levelIndex == 2){
|
|
}else if(that.levelIndex == 2){
|
|
|
array[index].addPrice = parseFloat((currentPrice).toFixed(2))
|
|
array[index].addPrice = parseFloat((currentPrice).toFixed(2))
|
|
|
- }else if(that.levelIndex == 3){
|
|
|
|
|
- array[index].hjAddPrice = parseFloat((currentPrice).toFixed(2))
|
|
|
|
|
}else{
|
|
}else{
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -137,12 +129,8 @@ export default {
|
|
|
that.$msg('【'+value.name+'】的花店加价填写错误')
|
|
that.$msg('【'+value.name+'】的花店加价填写错误')
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- if(that.$util.isMoney(value.hjAddPrice) == false){
|
|
|
|
|
- that.$msg('【'+value.name+'】的同行加价填写错误')
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- addData.push({id:value.id,skAddPrice:value.skAddPrice,addPrice:value.addPrice,hjAddPrice:value.hjAddPrice})
|
|
|
|
|
|
|
+ addData.push({id:value.id,skAddPrice:value.skAddPrice,addPrice:value.addPrice})
|
|
|
})
|
|
})
|
|
|
let addString = JSON.stringify(addData)
|
|
let addString = JSON.stringify(addData)
|
|
|
batchChangeAddPrice({addData:addString}).then(res=>{
|
|
batchChangeAddPrice({addData:addString}).then(res=>{
|