|
@@ -5,7 +5,6 @@
|
|
|
<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">
|
|
@@ -15,9 +14,6 @@
|
|
|
<view><input v-model="item.inTurn" @focus="item.inTurn=''" name="inTurn" type="number" style="border:1upx solid #cccccc;" /></view>
|
|
<view><input v-model="item.inTurn" @focus="item.inTurn=''" name="inTurn" type="number" style="border:1upx solid #cccccc;" /></view>
|
|
|
</t-td>
|
|
</t-td>
|
|
|
<t-td align="center" color="info">
|
|
<t-td align="center" color="info">
|
|
|
- <view><input v-model="item.weight" @focus="item.weight=''" name="weight" type="digit" style="border:1upx solid #cccccc;" /></view>
|
|
|
|
|
- </t-td>
|
|
|
|
|
- <t-td align="center" color="info">
|
|
|
|
|
<view><input v-model="item.shelfLife" @focus="item.shelfLife=''" name="shelfLife" type="digit" style="border:1upx solid #cccccc;" /></view>
|
|
<view><input v-model="item.shelfLife" @focus="item.shelfLife=''" name="shelfLife" type="digit" style="border:1upx solid #cccccc;" /></view>
|
|
|
</t-td>
|
|
</t-td>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
@@ -73,10 +69,9 @@ export default {
|
|
|
this.$msg('没有花材')
|
|
this.$msg('没有花材')
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
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) {
|
|
@@ -101,8 +96,6 @@ export default {
|
|
|
if(that.levelIndex == 1){
|
|
if(that.levelIndex == 1){
|
|
|
array[index].inTurn = parseFloat((Number(array[index].inTurn) + currentNum).toFixed(2))
|
|
array[index].inTurn = parseFloat((Number(array[index].inTurn) + currentNum).toFixed(2))
|
|
|
}else if(that.levelIndex == 2){
|
|
}else if(that.levelIndex == 2){
|
|
|
- array[index].weight = parseFloat((Number(array[index].weight) + currentNum).toFixed(2))
|
|
|
|
|
- }else if(that.levelIndex == 3){
|
|
|
|
|
array[index].shelfLife = parseFloat((Number(array[index].shelfLife) + currentNum).toFixed(2))
|
|
array[index].shelfLife = parseFloat((Number(array[index].shelfLife) + currentNum).toFixed(2))
|
|
|
}else{
|
|
}else{
|
|
|
|
|
|
|
@@ -111,8 +104,6 @@ export default {
|
|
|
if(that.levelIndex == 1){
|
|
if(that.levelIndex == 1){
|
|
|
array[index].inTurn = parseFloat((currentNum).toFixed(2))
|
|
array[index].inTurn = parseFloat((currentNum).toFixed(2))
|
|
|
}else if(that.levelIndex == 2){
|
|
}else if(that.levelIndex == 2){
|
|
|
- array[index].weight = parseFloat((currentNum).toFixed(2))
|
|
|
|
|
- }else if(that.levelIndex == 3){
|
|
|
|
|
array[index].shelfLife = parseFloat((currentNum).toFixed(2))
|
|
array[index].shelfLife = parseFloat((currentNum).toFixed(2))
|
|
|
}else{
|
|
}else{
|
|
|
|
|
|
|
@@ -132,15 +123,11 @@ export default {
|
|
|
that.$msg('【'+value.name+'】的排序值填写错误')
|
|
that.$msg('【'+value.name+'】的排序值填写错误')
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- if(that.$util.isMoney(value.weight) == false){
|
|
|
|
|
- that.$msg('【'+value.name+'】的重量填写错误')
|
|
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
if(that.$util.isMoney(value.shelfLife) == false){
|
|
if(that.$util.isMoney(value.shelfLife) == false){
|
|
|
that.$msg('【'+value.name+'】的保持期填写错误')
|
|
that.$msg('【'+value.name+'】的保持期填写错误')
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
- addData.push({id:value.id,inTurn:value.inTurn,weight:value.weight,shelfLife:value.shelfLife})
|
|
|
|
|
|
|
+ addData.push({id:value.id,inTurn:value.inTurn,shelfLife:value.shelfLife})
|
|
|
})
|
|
})
|
|
|
let addString = JSON.stringify(addData)
|
|
let addString = JSON.stringify(addData)
|
|
|
batchChangeMore({addData:addString}).then(res=>{
|
|
batchChangeMore({addData:addString}).then(res=>{
|