|
|
@@ -30,7 +30,7 @@
|
|
|
<text v-if="item.giveNum && Number(item.giveNum)>0" style="color:green;">,已赠{{item.giveNum}}{{item.xhUnitName}}</text>
|
|
|
</text>
|
|
|
<view v-if="item.xhUnitType == 1" style="width:100%;">
|
|
|
- <button class="admin-button-com middle" style="width:180upx;margin:10upx 0 0 0;" @click="partOne(item)">拆1份</button>
|
|
|
+ <button class="admin-button-com middle" style="width:180upx;margin:10upx 0 0 0;" @click="partOne(item)">拆1扎</button>
|
|
|
<button class="admin-button-com middle blue" style="width:180upx;margin:10upx 0 0 20upx;" @click="subHalf(item)">减半扎</button>
|
|
|
</view>
|
|
|
<button v-else class="admin-button-com middle blue" style="margin:10upx auto 0 auto;" @click="giveItemFn(item)">赠送</button>
|
|
|
@@ -141,7 +141,7 @@ export default {
|
|
|
partOne(item){
|
|
|
let that = this
|
|
|
let product = [{ productId: item.productId, bigNum: 1, smallNum: 0, classId: 0, itemId: item.itemId, ratio:item.ratio }]
|
|
|
- that.$util.confirmModal({content:'确认拆1份?'},() => {
|
|
|
+ that.$util.confirmModal({content:'确认拆1扎?'},() => {
|
|
|
partItem({product:JSON.stringify(product),remark:'开单拆散'}).then((res) => {
|
|
|
that.init()
|
|
|
that.$msg(res.msg)
|