|
@@ -17,22 +17,22 @@
|
|
|
<view>
|
|
<view>
|
|
|
<block v-for="(item, index) in detailInfo.product" :key="index">
|
|
<block v-for="(item, index) in detailInfo.product" :key="index">
|
|
|
<view v-if="item.xhUnitType == 1" style="text-align:center;margin-bottom:10upx;">
|
|
<view v-if="item.xhUnitType == 1" style="text-align:center;margin-bottom:10upx;">
|
|
|
- <text style="font-size:30upx;margin-bottom:3upx;">{{item.name}}</text>
|
|
|
|
|
- <button class="admin-button-com middle" style="margin:0 auto;" @click="">拆散</button>
|
|
|
|
|
|
|
+ <text style="font-size:30upx;">{{item.name}}</text>
|
|
|
|
|
+ <button class="admin-button-com middle" style="margin:10upx auto 0 auto;" @click="partOne(item)">拆1份</button>
|
|
|
</view>
|
|
</view>
|
|
|
</block>
|
|
</block>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</appResult>
|
|
</appResult>
|
|
|
-
|
|
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
import { mapGetters } from "vuex"
|
|
import { mapGetters } from "vuex"
|
|
|
import appResult from "@/components/app-result"
|
|
import appResult from "@/components/app-result"
|
|
|
-import { getDetail,cloudPrintOrder} from "@/api/order/index"
|
|
|
|
|
-import { getWeixinId } from "@/api/invite/index"
|
|
|
|
|
|
|
+import { getDetail,cloudPrintOrder} from "@/api/order"
|
|
|
|
|
+import { getWeixinId } from "@/api/invite"
|
|
|
import { IMGHOST } from '@/config'
|
|
import { IMGHOST } from '@/config'
|
|
|
|
|
+import { partItem } from "@/api/part"
|
|
|
export default {
|
|
export default {
|
|
|
name: "result",
|
|
name: "result",
|
|
|
components: {
|
|
components: {
|
|
@@ -60,6 +60,15 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ partOne(item){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ let product = [{ productId: item.id, 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)
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
shareOrder(){
|
|
shareOrder(){
|
|
|
console.log("pagesOrder/showOrder?id="+this.detailInfo.purchaseId)
|
|
console.log("pagesOrder/showOrder?id="+this.detailInfo.purchaseId)
|
|
|
let that = this
|
|
let that = this
|