|
@@ -144,14 +144,14 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="是否关联预约" prop="isAppointment">
|
|
|
+ <!-- <el-form-item label="是否关联预约" prop="isAppointment">
|
|
|
<el-radio-group v-model="orderForm.isAppointment">
|
|
|
<el-radio-button v-for="dict in dict.type.sys_yes_no" :key="dict.value" :label="dict.value">{{ dict.label }}</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="预约单号" prop="orderNo" v-if="orderForm.isAppointment == 'Y'">
|
|
|
<el-input v-model="orderForm.orderNo" placeholder="请输入预约单号" clearable required />
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
<br />
|
|
|
|
|
|
<el-form-item label="会员余额:" prop="userAmount">
|
|
@@ -497,10 +497,15 @@
|
|
|
<el-dialog title="预约订单" :visible.sync="showAdvanceOrder" width="55%">
|
|
|
<el-table :data="advanceOrderList">
|
|
|
<el-table-column prop="orderNo" label="预约单号" width="180"> </el-table-column>
|
|
|
- <el-table-column prop="createTime" label="预约时间" width="180"> </el-table-column>
|
|
|
- <el-table-column prop="date" label="是否大件" width="180"> </el-table-column>
|
|
|
- <el-table-column prop="date" label="是否拆装" width="180"> </el-table-column>
|
|
|
- <el-table-column prop="date" label="件数" width="180"> </el-table-column>
|
|
|
+ <el-table-column prop="appointmentTime" label="预约时间" width="180"></el-table-column>
|
|
|
+ <el-table-column prop="isLargeItem" label="是否大件" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.isLargeItem == 'Y'">是</span>
|
|
|
+ <span v-if="scope.row.isLargeItem == 'N'">否</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="appointmentCount" label="件数" width="180"> </el-table-column>
|
|
|
+ <el-table-column prop="remark" label="备注" width="180" show-overflow-tooltip> </el-table-column>
|
|
|
<el-table-column prop="date" label="操作" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="changeAdanceOrder(scope.row)">选择订单</el-button>
|
|
@@ -828,10 +833,15 @@ export default {
|
|
|
// this.intervalCheckOrderStatus(orderInfo.orderNo)
|
|
|
// }, 4000)
|
|
|
} else {
|
|
|
- this.$refs.payStatusPopup.open(1, orderInfo)
|
|
|
+ if (orderInfo.payType) {
|
|
|
+ this.$refs.payStatusPopup.open(1, orderInfo)
|
|
|
+ } else {
|
|
|
+ this.$refs.payStatusPopup.open(6, orderInfo)
|
|
|
+ }
|
|
|
this.orderClothItemDTOS = []
|
|
|
this.queryParams = {}
|
|
|
this.appUserInfo = null
|
|
|
+ this.orderForm = {}
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -839,6 +849,7 @@ export default {
|
|
|
this.orderClothItemDTOS = []
|
|
|
this.queryParams = {}
|
|
|
this.appUserInfo = null
|
|
|
+ this.orderForm = {}
|
|
|
},
|
|
|
intervalCheckOrderStatus(orderno) {
|
|
|
getOrderStatusByOrderNo({ orderNo: orderno }).then((response) => {
|
|
@@ -1092,7 +1103,6 @@ export default {
|
|
|
},
|
|
|
|
|
|
getAdvanceOrder(id) {
|
|
|
- this.showAdvanceOrder = true
|
|
|
request({
|
|
|
url: '/mapi/order/cloth/list',
|
|
|
method: 'get',
|
|
@@ -1112,6 +1122,9 @@ export default {
|
|
|
// this.data = data.rows
|
|
|
// }
|
|
|
this.advanceOrderList = data.rows
|
|
|
+ if (this.advanceOrderList.length) {
|
|
|
+ this.showAdvanceOrder = true
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message.error(data.msg)
|
|
|
}
|
|
@@ -1122,6 +1135,7 @@ export default {
|
|
|
// orderForm.isAppointment orderForm.orderNo
|
|
|
this.orderForm.isAppointment = 'Y'
|
|
|
this.orderForm.orderNo = e.orderNo
|
|
|
+ this.showAdvanceOrder = false
|
|
|
},
|
|
|
|
|
|
clearAppointment() {
|