|
|
@@ -126,6 +126,7 @@
|
|
|
<view class="commodity-list">
|
|
|
<view v-for="(s, idx) in detailInfo.product" :key="idx" class="commodity-item" >
|
|
|
<image class="item-icon" :src="s.cover" @click.stop="previewImage(s.bigCover)" />
|
|
|
+ <button style="position:absolute;" class="admin-button-com blue mini-btn" @click="partOne(s)">拆1份</button>
|
|
|
<view class="item-info" @click="pageTo({url:'/admin/item/detail',query:{id: s.productId}})">
|
|
|
<view class="info-line">
|
|
|
<text class="item-name">{{ s.name }}</text>
|
|
|
@@ -259,15 +260,16 @@
|
|
|
import { mapGetters } from "vuex";
|
|
|
import stepStatus from "./components/stepStatus";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
-import { getDetail,debtPay,hasPay, freeShipping,confirmFinish,cancel } from "@/api/order/index";
|
|
|
-import { getOrderProduct } from "@/api/order-item/index";
|
|
|
+import { getDetail,debtPay,hasPay, freeShipping,confirmFinish,cancel } from "@/api/order";
|
|
|
+import { getOrderProduct } from "@/api/order-item";
|
|
|
import productMins from "@/mixins/product";
|
|
|
import { ORDER_STATUS } from "@/utils/declare";
|
|
|
import BLE from "@/mixins/BLE";
|
|
|
import { cloudPrintOrder, cancelOrder } from "@/api/order";
|
|
|
import { hasHitNavigate } from "@/api/map";
|
|
|
-import { getWeixinId } from "@/api/invite/index";
|
|
|
+import { getWeixinId } from "@/api/invite";
|
|
|
import { IMGHOST } from '@/config'
|
|
|
+import { partItem } from "@/api/part"
|
|
|
export default {
|
|
|
name: "orderDetail",
|
|
|
components: {
|
|
|
@@ -321,6 +323,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ 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份?'},() => {
|
|
|
+ partItem({product:JSON.stringify(product),remark:'开单拆散'}).then((res) => {
|
|
|
+ that.$msg(res.msg)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
previewImage(url){
|
|
|
uni.previewImage({
|
|
|
urls: [url]
|