|
|
@@ -64,6 +64,8 @@
|
|
|
: "--"
|
|
|
}}
|
|
|
<a-icon
|
|
|
+ v-if="livingIndex > 0"
|
|
|
+ @click="editCustomer(item)"
|
|
|
type="edit"
|
|
|
style="color: rgba(255, 141, 26, 1); font-size: 18px"
|
|
|
/></a-descriptions-item>
|
|
|
@@ -86,13 +88,17 @@
|
|
|
: "--"
|
|
|
}}
|
|
|
<a-icon
|
|
|
+ v-if="livingIndex > 0"
|
|
|
+ @click="editCustomer(item)"
|
|
|
type="edit"
|
|
|
style="color: rgba(255, 141, 26, 1); font-size: 18px"
|
|
|
/></a-descriptions-item>
|
|
|
|
|
|
<a-descriptions-item label="宾客类型">
|
|
|
- {{ customerTypeName(model.orderInfo.customerType) }}
|
|
|
+ {{ customerTypeName(item.livingOrder.customerType) }}
|
|
|
<a-icon
|
|
|
+ v-if="livingIndex > 0"
|
|
|
+ @click="editCustomerType(item)"
|
|
|
type="edit"
|
|
|
style="color: rgba(255, 141, 26, 1); font-size: 18px"
|
|
|
/></a-descriptions-item>
|
|
|
@@ -104,8 +110,10 @@
|
|
|
{{ model.orderInfo.dueOutTime }}
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="订单来源">
|
|
|
- {{ customerSourceName(model.orderInfo.customerSource) }}
|
|
|
+ {{ customerSourceName(item.livingOrder.customerSource) }}
|
|
|
<a-icon
|
|
|
+ v-if="livingIndex > 0"
|
|
|
+ @click="editCustomerSource(item)"
|
|
|
type="edit"
|
|
|
style="color: rgba(255, 141, 26, 1); font-size: 18px"
|
|
|
/></a-descriptions-item>
|
|
|
@@ -122,14 +130,18 @@
|
|
|
{{ model.orderInfo.outerOrdersNo }}
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="销售员工">
|
|
|
- {{ warranterName(model.orderInfo.warranter) }}
|
|
|
+ {{ warranterName(item.livingOrder.warranter) }}
|
|
|
<a-icon
|
|
|
+ v-if="livingIndex > 0"
|
|
|
+ @click="editWarranter(item)"
|
|
|
type="edit"
|
|
|
style="color: rgba(255, 141, 26, 1); font-size: 18px"
|
|
|
/></a-descriptions-item>
|
|
|
<a-descriptions-item label="订单备注" :span="2">
|
|
|
- {{ model.orderInfo.remark
|
|
|
+ {{ item.livingOrder.remark
|
|
|
}}<a-icon
|
|
|
+ v-if="livingIndex > 0"
|
|
|
+ @click="editRemark(item)"
|
|
|
type="edit"
|
|
|
style="color: rgba(255, 141, 26, 1); font-size: 18px"
|
|
|
/>
|
|
|
@@ -441,6 +453,26 @@
|
|
|
ref="modalSelectCheckInRoomOrder"
|
|
|
@ok="modalFormOk"
|
|
|
></select-check-in-room-order-modal>
|
|
|
+ <edit-customer-modal
|
|
|
+ ref="modalEditCustomer"
|
|
|
+ @ok="modalFormOk"
|
|
|
+ ></edit-customer-modal>
|
|
|
+ <edit-customer-type-modal
|
|
|
+ ref="modalEditCustomerType"
|
|
|
+ @ok="modalFormOk"
|
|
|
+ ></edit-customer-type-modal>
|
|
|
+ <edit-customer-source-modal
|
|
|
+ ref="modalEditCustomerSource"
|
|
|
+ @ok="modalFormOk"
|
|
|
+ ></edit-customer-source-modal>
|
|
|
+ <edit-warranter-modal
|
|
|
+ ref="modalEditWarranter"
|
|
|
+ @ok="modalFormOk"
|
|
|
+ ></edit-warranter-modal>
|
|
|
+ <edit-remark-modal
|
|
|
+ ref="modalEditRemarkModal"
|
|
|
+ @ok="modalFormOk"
|
|
|
+ ></edit-remark-modal>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -455,6 +487,11 @@ import FeeModal from "./FeeModal";
|
|
|
import MemberMessageModal from "@/views/room/modules/membergoodsmanage/membermessageModal";
|
|
|
import LeaseGoodsModal from "@/views/room/modules/leasegoods/leasegoodsModal";
|
|
|
import SelectCheckInRoomOrderModal from "./SelectCheckInRoomOrderModal.vue";
|
|
|
+import EditCustomerModal from "./EditCustomerModal.vue";
|
|
|
+import EditCustomerTypeModal from "./EditCustomerTypeModal.vue";
|
|
|
+import EditCustomerSourceModal from "./EditCustomerSourceModal.vue";
|
|
|
+import EditWarranterModal from "./EditWarranterModal.vue";
|
|
|
+import EditRemarkModal from "./EditRemarkModal.vue";
|
|
|
import { match } from "assert";
|
|
|
const columns = [
|
|
|
// {
|
|
|
@@ -564,6 +601,11 @@ export default {
|
|
|
MemberMessageModal,
|
|
|
LeaseGoodsModal,
|
|
|
SelectCheckInRoomOrderModal,
|
|
|
+ EditCustomerModal,
|
|
|
+ EditCustomerTypeModal,
|
|
|
+ EditCustomerSourceModal,
|
|
|
+ EditWarranterModal,
|
|
|
+ EditRemarkModal,
|
|
|
},
|
|
|
props: {
|
|
|
//表单禁用
|
|
|
@@ -700,6 +742,57 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ editRemark(item) {
|
|
|
+ var obj = {
|
|
|
+ orderId: item.livingOrder.id,
|
|
|
+ remark: item.livingOrder.remark,
|
|
|
+ };
|
|
|
+ this.$refs.modalEditRemarkModal.edit(obj);
|
|
|
+ this.$refs.modalEditRemarkModal.title = "修改";
|
|
|
+ this.$refs.modalEditRemarkModal.disableSubmit = false;
|
|
|
+ },
|
|
|
+ editWarranter(item) {
|
|
|
+ var obj = {
|
|
|
+ orderId: item.livingOrder.id,
|
|
|
+ warranter: item.livingOrder.warranter,
|
|
|
+ };
|
|
|
+ this.$refs.modalEditWarranter.edit(obj);
|
|
|
+ this.$refs.modalEditWarranter.title = "修改";
|
|
|
+ this.$refs.modalEditWarranter.disableSubmit = false;
|
|
|
+ },
|
|
|
+ editCustomerSource(item) {
|
|
|
+ var obj = {
|
|
|
+ orderId: item.livingOrder.id,
|
|
|
+ customerSource: item.livingOrder.customerSource,
|
|
|
+ };
|
|
|
+ this.$refs.modalEditCustomerSource.edit(obj);
|
|
|
+ this.$refs.modalEditCustomerSource.title = "修改";
|
|
|
+ this.$refs.modalEditCustomerSource.disableSubmit = false;
|
|
|
+ },
|
|
|
+ editCustomerType(item) {
|
|
|
+ var obj = {
|
|
|
+ orderId: item.livingOrder.id,
|
|
|
+ customerType: item.livingOrder.customerType,
|
|
|
+ vipCustomerId: item.livingOrder.vipCustomerId,
|
|
|
+ contractTeamId: item.livingOrder.contractTeamId,
|
|
|
+ contractTeamProtocolId: item.livingOrder.contractTeamProtocolId,
|
|
|
+ };
|
|
|
+ this.$refs.modalEditCustomerType.edit(obj);
|
|
|
+ this.$refs.modalEditCustomerType.title = "修改";
|
|
|
+ this.$refs.modalEditCustomerType.disableSubmit = false;
|
|
|
+ },
|
|
|
+ editCustomer(item) {
|
|
|
+ var customer = item.livingCustomers[0] || {};
|
|
|
+ var obj = {
|
|
|
+ orderId: item.livingOrder.id,
|
|
|
+ cusName: customer.customerName,
|
|
|
+ cusPhone: customer.phone,
|
|
|
+ cusId: customer.id,
|
|
|
+ };
|
|
|
+ this.$refs.modalEditCustomer.edit(obj);
|
|
|
+ this.$refs.modalEditCustomer.title = "修改";
|
|
|
+ this.$refs.modalEditCustomer.disableSubmit = false;
|
|
|
+ },
|
|
|
splitLiving() {
|
|
|
var that = this;
|
|
|
this.$confirm({
|