|
|
@@ -60,10 +60,13 @@
|
|
|
</div>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="app-footer open_btn">
|
|
|
+ <view @click="printPart" class="admin-button-com big blue">打印</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import { getPartFullInfo } from "@/api/part";
|
|
|
+import { getPartFullInfo, printPartOrder } from "@/api/part";
|
|
|
import productMins from "@/mixins/product";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
export default {
|
|
|
@@ -108,6 +111,13 @@ export default {
|
|
|
const { data } = await getPartFullInfo({orderSn:orderSn})
|
|
|
this.detailInfo = data.info
|
|
|
this.itemList = data.itemList
|
|
|
+ },
|
|
|
+ printPart(){
|
|
|
+ printPartOrder({orderSn:this.detailInfo.orderSn}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg('打印成功')
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -311,7 +321,7 @@ export default {
|
|
|
height: 70upx;
|
|
|
line-height: 70upx;
|
|
|
text-align: center;
|
|
|
- color: #3385ff;
|
|
|
+ color: #ffffff;
|
|
|
border: 1upx solid #3385ff;
|
|
|
&.active{
|
|
|
color: #666666;
|