|
@@ -55,7 +55,7 @@
|
|
|
<view class="flex justify_between">
|
|
|
<view class="item-detail-text flex_1" v-if="item.affiliation=='SHELF'">
|
|
|
<view v-if="showPrice[0]">
|
|
|
- <view v-if="showPrice[1]=='PURCHASES_PRICE'">
|
|
|
+ <view v-if="showPrice[1]=='PURCHASES_PRICE'&&item.cost">
|
|
|
<text class="item-price" v-if="isAdmin || showPrice[2]">¥{{item.cost||0}}</text>
|
|
|
</view>
|
|
|
<text v-else class="item-price">¥{{item.price||0}}</text>
|
|
@@ -114,7 +114,7 @@
|
|
|
</view>
|
|
|
<view class="flex justify_between">
|
|
|
<view class="item-detail-text flex_1" v-if="showPrice[0]">
|
|
|
- <view v-if="showPrice[1]=='PURCHASES_PRICE'">
|
|
|
+ <view v-if="showPrice[1]=='PURCHASES_PRICE'&&item.cost">
|
|
|
<text class="item-price" v-if="isAdmin || showPrice[2]">¥{{item.cost||0}}</text>
|
|
|
</view>
|
|
|
<text v-else class="item-price">¥{{item.price||0}}</text>
|
|
@@ -195,7 +195,7 @@
|
|
|
</view>
|
|
|
<view class="item-detail-text flex_1" v-else>
|
|
|
<view v-if="showPrice[0]">
|
|
|
- <view v-if="showPrice[1]=='PURCHASES_PRICE'">
|
|
|
+ <view v-if="showPrice[1]=='PURCHASES_PRICE'&&item.cost">
|
|
|
<text class="item-price" v-if="isAdmin || showPrice[2]">¥{{item.cost||0}}</text>
|
|
|
</view>
|
|
|
<text v-else class="item-price">¥{{item.price||0}}</text>
|
|
@@ -225,7 +225,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { getShelfProductList, getShelfProductType, queryPartCodeByVin, getShelfQueryList, saveShelfOrder } from '@/api/shelf'
|
|
|
+ import { getShelfProductList, getShelfProductType, queryPartCodeByVin, getShelfQueryList, shelfOrderFlowCreate } from '@/api/shelf'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -546,7 +546,7 @@
|
|
|
tempList.push({
|
|
|
"productSn": item.productSn,
|
|
|
"qty": item.qty,
|
|
|
- "price": item.cost
|
|
|
+ // "price": item.cost
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -589,8 +589,8 @@
|
|
|
}
|
|
|
console.log(params,'立即提交')
|
|
|
this.saveLoading = true
|
|
|
- saveShelfOrder(params).then(res => {
|
|
|
- console.log(res,'saveShelfOrder')
|
|
|
+ shelfOrderFlowCreate(params).then(res => {
|
|
|
+ console.log(res,'shelfOrderFlowCreate')
|
|
|
if(res.status == 200){
|
|
|
res.data.shelfOrder.remindMessage = '请在货架上按照指定位置拿取配件'
|
|
|
// 提交成功
|