|
@@ -235,14 +235,18 @@
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">卖出后算</view>
|
|
|
|
|
- <view class="switch_bx">
|
|
|
|
|
- <switch :checked="belongCost == 0 ? true : false" @change="belongCostChange" style="transform: scale(0.8,0.8)" />
|
|
|
|
|
- <text v-if="belongCost == 0">收入</text>
|
|
|
|
|
- <text v-else>成本</text>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="tui-title">单独统计</view>
|
|
|
|
|
+ <radio-group class="tui-input" @change="belongCostChange">
|
|
|
|
|
+ <label class="list" for="noLink">
|
|
|
|
|
+ <radio id="noLink" value="0" :checked="belongCost == 0" style="transform: scale(0.7,0.7);" />
|
|
|
|
|
+ <span class="checkbox-text" style="font-size:30upx;">不要</span>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <label class="list" for="needLink">
|
|
|
|
|
+ <radio id="needLink" value="1" :checked="belongCost == 1" style="transform: scale(0.7,0.7);" />
|
|
|
|
|
+ <span class="checkbox-text" style="font-size:30upx;">需要</span>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ </radio-group>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="app-footer">
|
|
<view class="app-footer">
|
|
@@ -698,7 +702,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
belongCostChange(e){
|
|
belongCostChange(e){
|
|
|
let that = this
|
|
let that = this
|
|
|
- this.belongCost = e.detail.value == true ? 0 : 1
|
|
|
|
|
|
|
+ this.belongCost = e.detail.value
|
|
|
changeBelongCost({id:this.productData.id,belongCost:this.belongCost}).then(res=>{
|
|
changeBelongCost({id:this.productData.id,belongCost:this.belongCost}).then(res=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
that.$msg(res.msg)
|
|
that.$msg(res.msg)
|