|
@@ -60,7 +60,7 @@
|
|
<dict-tag :options="dict.type.recharge_pay_type" :value="scope.row.payType" />
|
|
<dict-tag :options="dict.type.recharge_pay_type" :value="scope.row.payType" />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="订单状态" align="center" prop="orderStatus">
|
|
|
|
|
|
+ <el-table-column label="订单状态" align="center" prop="orderStatus" width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<dict-tag :options="dict.type.order_goods_status" :value="scope.row.orderStatus" />
|
|
<dict-tag :options="dict.type.order_goods_status" :value="scope.row.orderStatus" />
|
|
</template>
|
|
</template>
|
|
@@ -72,11 +72,13 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
|
|
|
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="220">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" icon="el-icon-chat-dot-square" @click="orderDetail(scope.row)">订单详情</el-button>
|
|
<el-button type="text" icon="el-icon-chat-dot-square" @click="orderDetail(scope.row)">订单详情</el-button>
|
|
<el-button type="text" icon="el-icon-check" @click="btn_receiving(scope.row)" v-if="scope.row.orderStatus == '1'">接单</el-button>
|
|
<el-button type="text" icon="el-icon-check" @click="btn_receiving(scope.row)" v-if="scope.row.orderStatus == '1'">接单</el-button>
|
|
- <el-button type="text" icon="el-icon-check" @click="btn_confirm(scope.row)" v-if="scope.row.orderStatus == '4'">确认</el-button>
|
|
|
|
|
|
+ <el-button type="text" icon="el-icon-check" @click="btn_confirm(scope.row)" v-if="scope.row.orderStatus == '4'">确认完成</el-button>
|
|
|
|
+ <el-button type="text" icon="el-icon-printer" v-if="userInfoVO.userType != '00'" @click="btn_lodop(scope.row)">打印 </el-button>
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</Page>
|
|
</Page>
|
|
@@ -99,17 +101,17 @@
|
|
<el-descriptions-item label="订单总价">{{ detailView.totalPrice ? detailView.totalPrice : '暂无信息' }}</el-descriptions-item>
|
|
<el-descriptions-item label="订单总价">{{ detailView.totalPrice ? detailView.totalPrice : '暂无信息' }}</el-descriptions-item>
|
|
<!-- <el-descriptions-item label="物流公司">{{detailView.deliveryCompany?detailView.deliveryCompany:'暂无信息'}}</el-descriptions-item>-->
|
|
<!-- <el-descriptions-item label="物流公司">{{detailView.deliveryCompany?detailView.deliveryCompany:'暂无信息'}}</el-descriptions-item>-->
|
|
<!-- <el-descriptions-item label="物流单号">{{detailView.totalPrice?detailView.totalPrice:'暂无信息'}}</el-descriptions-item>-->
|
|
<!-- <el-descriptions-item label="物流单号">{{detailView.totalPrice?detailView.totalPrice:'暂无信息'}}</el-descriptions-item>-->
|
|
- <el-descriptions-item label="收货地址" span="3">{{ detailView.province }}{{ detailView.city }}{{ detailView.area }}{{ detailView.address }}{{ detailView.addressDetail }}</el-descriptions-item>
|
|
|
|
|
|
+ <el-descriptions-item label="客户地址" span="3">{{ detailView.province }}{{ detailView.city }}{{ detailView.area }}{{ detailView.address }}{{ detailView.addressDetail }}</el-descriptions-item>
|
|
<el-descriptions-item label="备注信息" span="3">{{ detailView.deliveryNo ? detailView.deliveryNo : '暂无信息' }}</el-descriptions-item>
|
|
<el-descriptions-item label="备注信息" span="3">{{ detailView.deliveryNo ? detailView.deliveryNo : '暂无信息' }}</el-descriptions-item>
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
</el-card>
|
|
</el-card>
|
|
<div class="head-column2">
|
|
<div class="head-column2">
|
|
<el-table v-loading="detailLoading" :data="detailView.orderGoodsSkuList">
|
|
<el-table v-loading="detailLoading" :data="detailView.orderGoodsSkuList">
|
|
- <el-table-column label="分类" align="center" prop="goodsCategoryName" />
|
|
|
|
- <el-table-column :label="goodsType == 0 ? '商品名称' : '材料名称'" align="center" prop="goodsName" width="250px" />
|
|
|
|
- <el-table-column :label="goodsType == 0 ? '商品规格' : '材料规格'" align="center" width="250px">
|
|
|
|
|
|
+ <!-- <el-table-column label="分类" align="center" prop="goodsCategoryName" /> -->
|
|
|
|
+ <el-table-column :label="goodsType == 0 ? '商品名称' : '服务名称'" align="center" prop="goodsName" width="250px" />
|
|
|
|
+ <el-table-column :label="goodsType == 0 ? '商品规格' : '服务规格'" align="center" width="250px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <div style="text-align: center">{{ scope.row.skuName.replace(' ', '/') }}</div>
|
|
|
|
|
|
+ <div style="text-align: center">{{ JSON.parse(scope.row.skuName).join('/') }}</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="数量" align="center" prop="buyNum" />
|
|
<el-table-column label="数量" align="center" prop="buyNum" />
|
|
@@ -137,6 +139,8 @@
|
|
<script>
|
|
<script>
|
|
import { getGoods, listGoods, receiveOrder, confirmFinish } from '@/api/order/goods'
|
|
import { getGoods, listGoods, receiveOrder, confirmFinish } from '@/api/order/goods'
|
|
import { findUserByPhoneNumber, getUser } from '@/api/app/user'
|
|
import { findUserByPhoneNumber, getUser } from '@/api/app/user'
|
|
|
|
+import { getLodop } from '@/utils/lodopUtils'
|
|
|
|
+import { printGoods } from '@/api/order/clothItem'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'lifeServicesOrder',
|
|
name: 'lifeServicesOrder',
|
|
@@ -204,7 +208,10 @@ export default {
|
|
deliveryNo: null
|
|
deliveryNo: null
|
|
},
|
|
},
|
|
queryCreateTime: null,
|
|
queryCreateTime: null,
|
|
- queryPayTime: null
|
|
|
|
|
|
+ queryPayTime: null,
|
|
|
|
+ pointerList: [],
|
|
|
|
+ LODOP: null,
|
|
|
|
+ number: 1,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -213,6 +220,21 @@ export default {
|
|
this.goodsType = '2'
|
|
this.goodsType = '2'
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
|
|
+ mounted() {
|
|
|
|
+ this.number = 1
|
|
|
|
+ const printerTime = setInterval(() => {
|
|
|
|
+ this.LODOP = getLodop()
|
|
|
|
+ this.number++
|
|
|
|
+ if (this.number == 25) {
|
|
|
|
+ clearInterval(printerTime)
|
|
|
|
+ }
|
|
|
|
+ if (this.LODOP) {
|
|
|
|
+ clearInterval(printerTime)
|
|
|
|
+ }
|
|
|
|
+ }, 200)
|
|
|
|
+
|
|
|
|
+ this.pointerList = JSON.parse(this.$cache.local.get('printerSeting'))
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
calculateTotalCount() {
|
|
calculateTotalCount() {
|
|
this.totalCount = 0
|
|
this.totalCount = 0
|
|
@@ -227,6 +249,33 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ btn_lodop(row) {
|
|
|
|
+ if (!this.LODOP) {
|
|
|
|
+ this.$modal.msgError('请安装打印机软件')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ let p_name = ''
|
|
|
|
+
|
|
|
|
+ this.pointerList.forEach((pointer) => {
|
|
|
|
+ if (pointer.printType == 0) {
|
|
|
|
+ p_name = pointer.printName
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ printGoods(row.id).then((res) => {
|
|
|
|
+ if (this.userInfoVO.userType == '02') {
|
|
|
|
+ const obj = {
|
|
|
|
+ name: this.userInfoVO.storeName,
|
|
|
|
+ contactPhone: this.userInfoVO.phonenumber,
|
|
|
|
+ user: this.userInfoVO.nickName
|
|
|
|
+ }
|
|
|
|
+ res.data.sysOrg = obj
|
|
|
|
+ }
|
|
|
|
+ res.data.newTime = this.formatDates(new Date(), 1)
|
|
|
|
+ this.goodsPrinter(this.LODOP, res.data, p_name)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
handleUser() {
|
|
handleUser() {
|
|
this.userInfoVO = this.getUserInfo()
|
|
this.userInfoVO = this.getUserInfo()
|
|
},
|
|
},
|
|
@@ -269,7 +318,7 @@ export default {
|
|
// 订单详情
|
|
// 订单详情
|
|
orderDetail(row) {
|
|
orderDetail(row) {
|
|
this.openDetail = true
|
|
this.openDetail = true
|
|
- this.detailTitle = '订单商品详情'
|
|
|
|
|
|
+ this.detailTitle = '订单详情'
|
|
this.detailLoading = true
|
|
this.detailLoading = true
|
|
this.detailView = {}
|
|
this.detailView = {}
|
|
const id = row.id
|
|
const id = row.id
|