diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue
index 2bc82a0..de0d7d0 100644
--- a/src/components/HelloWorld.vue
+++ b/src/components/HelloWorld.vue
@@ -173,6 +173,8 @@
total_price: '',
total_cost: '',
profit: '',
+ count: '',
+ supplier_id: '',
editType: 'add',
purchasePriceList: [{
run_date: '请选择日期',
@@ -199,6 +201,8 @@
total_price: '',
total_cost: '',
profit: '',
+ count: '',
+ supplier_id: '',
editType: 'add',
purchasePriceList: [{
run_date: '请选择日期',
@@ -279,6 +283,8 @@
}).catch((err) => {
console.log(err)
})
+ } else {
+ console.error(flagArr)
}
} else {
@@ -418,6 +424,7 @@
this.orderMainCopy = this.$lo.cloneDeep(orderMain)
res.data.data.subOrderList.forEach((item) => { //回显值的处理
item.purchasePriceList.forEach((value) => {
+ item.count = value.count
value.supplier_id = item.supplier_id
value.customer_comments = item.customer_comments
})
diff --git a/src/components/hotel.vue b/src/components/hotel.vue
index 700d28e..84d79fa 100644
--- a/src/components/hotel.vue
+++ b/src/components/hotel.vue
@@ -400,13 +400,13 @@
day: [],
rules: {
hotel_id: [
- {required: true, message: '请输入', trigger: 'blur'},
+ {required: true, message: '请输入', trigger: 'change'},
],
room_id: [
- {required: true, message: '请输入', trigger: 'blur'},
+ {required: true, message: '请输入', trigger: 'change'},
],
plan_id: [
- {required: true, message: '请输入', trigger: 'blur'},
+ {required: true, message: '请输入', trigger: 'change'},
],
customer_name: [
{required: true, message: '请输入', trigger: 'blur'},
@@ -418,10 +418,10 @@
{required: true, message: '请输入', trigger: 'blur'},
],
count: [
- {required: true, message: '请输入', trigger: 'blur'},
+ {required: true, message: '请输入', trigger: 'change'},
],
supplier_id: [
- {required: true, message: '请输入', trigger: 'blur'},
+ {required: true, message: '请输入', trigger: 'change'},
],
purchasePriceList: [
{type: 'array', required: true, message: '请选择', trigger: 'change'},
@@ -468,6 +468,7 @@
this.dataObj.purchasePriceList.forEach((item) => {
this.$set(item, 'count', value)
})
+ this.dataObj.count = value
},
changesupplier_id(value) {
this.dataObj.purchasePriceList.forEach((item) => {
diff --git a/src/components/hotelother.vue b/src/components/hotelother.vue
index 5683225..7cb6556 100644
--- a/src/components/hotelother.vue
+++ b/src/components/hotelother.vue
@@ -47,7 +47,7 @@
-
+
@@ -198,7 +198,7 @@
-
+
@@ -340,7 +340,7 @@
day: [],
rules: {
item_id: [
- {required: true, message: '请输入', trigger: 'blur'},
+ {required: true, message: '请输入', trigger: 'change'},
],
customer_name: [
{required: true, message: '请输入', trigger: 'blur'},
@@ -352,16 +352,16 @@
{required: true, message: '请输入', trigger: 'blur'},
],
purchase_user_id: [
- {required: true, message: '请输入', trigger: 'blur'},
+ {required: true, message: '请输入', trigger: 'change'},
],
confirm_status: [
{required: true, message: '请输入', trigger: 'blur'},
],
count: [
- {required: true, message: '请输入', trigger: 'blur'},
+ {required: true, message: '请输入', trigger: 'change'},
],
supplier_id: [
- {required: true, message: '请输入', trigger: 'blur'},
+ {required: true, message: '请输入', trigger: 'change'},
],
purchasePriceList: [
{type: 'array', required: true, message: '请输入', trigger: 'change'},
@@ -411,6 +411,7 @@
this.dataObj.purchasePriceList.forEach((item) => {
this.$set(item, 'count', value)
})
+ this.dataObj.count = value
},
changesupplier_id(value) {
this.dataObj.purchasePriceList.forEach((item) => {