|
|
@@ -27,7 +27,8 @@
|
|
|
</view>
|
|
|
<view class="work-item-detail">
|
|
|
|
|
|
- <view class="flex-space right-detail-title">每份用材</view>
|
|
|
+ <view class="flex-space right-detail-title" v-if="getMyShopInfo.stockModel && getMyShopInfo.stockModel == 1">每份用材</view>
|
|
|
+ <view class="flex-space right-detail-title" v-else>使用花材</view>
|
|
|
|
|
|
<view class="unit-use-item">
|
|
|
<view class="commodity-list">
|
|
|
@@ -48,11 +49,11 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view style="height:2vh;background-color:#EEEEEE;"></view>
|
|
|
+ <view style="height:2vh;background-color:#EEEEEE;" v-if="getMyShopInfo.stockModel && getMyShopInfo.stockModel == 1"></view>
|
|
|
|
|
|
- <view class="flex-space right-detail-title"> 总共用材 </view>
|
|
|
+ <view class="flex-space right-detail-title" v-if="getMyShopInfo.stockModel && getMyShopInfo.stockModel == 1"> 总共用材 </view>
|
|
|
|
|
|
- <view class="total-use-item">
|
|
|
+ <view class="total-use-item" v-if="getMyShopInfo.stockModel && getMyShopInfo.stockModel == 1">
|
|
|
<view class="commodity-list">
|
|
|
<view v-for="(s, idx) in orderItem" :key="idx" class="commodity-item" >
|
|
|
<image class="item-icon" :src="s.cover" @click="pageTo({url:'/admin/item/detail',query:{id: s.id}})" />
|
|
|
@@ -72,6 +73,8 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
<view class="button-area">
|
|
|
@@ -107,9 +110,7 @@
|
|
|
import { getFullInfo,finish,lockWork,cancelWork,print } from '@/api/work'
|
|
|
import {modifyWastage} from '@/api/work-item'
|
|
|
import wastageSelectNum from './wastageSelectNum.vue'
|
|
|
-// #ifdef APP-PLUS
|
|
|
-const plug = uni.requireNativePlugin('Html5app-Gprinter')
|
|
|
-// #endif
|
|
|
+import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
name: "orderInfo",
|
|
|
components: {wastageSelectNum},
|
|
|
@@ -124,6 +125,9 @@ export default {
|
|
|
today:''
|
|
|
}
|
|
|
},
|
|
|
+ computed:{
|
|
|
+ ...mapGetters(["getMyShopInfo"]),
|
|
|
+ },
|
|
|
methods:{
|
|
|
printFn(item){
|
|
|
if(item.status ==1){
|