xubinxcode il y a 3 ans
Parent
révision
4a36038585
3 fichiers modifiés avec 20 ajouts et 11 suppressions
  1. +7
    -0
      src/components/HelloWorld.vue
  2. +6
    -5
      src/components/hotel.vue
  3. +7
    -6
      src/components/hotelother.vue

+ 7
- 0
src/components/HelloWorld.vue Voir le fichier

@@ -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
})


+ 6
- 5
src/components/hotel.vue Voir le fichier

@@ -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) => {


+ 7
- 6
src/components/hotelother.vue Voir le fichier

@@ -47,7 +47,7 @@
</el-row>
<el-row>
<el-col :span="10">
<el-form-item label="使用日期" prop="purchasePriceList">
<el-form-item label-width="120px" label="使用日期" prop="purchasePriceList">
<el-col :span="11">
<el-date-picker type="date" placeholder="选择日期" v-model="check_in_date"
style="width: 100%;"></el-date-picker>
@@ -198,7 +198,7 @@
</el-row>
<el-row>
<el-col :span="10">
<el-form-item label="使用日期" prop="purchasePriceList">
<el-form-item label-width="120px" label="使用日期" prop="purchasePriceList">
<el-date-picker type="date" placeholder="选择日期" v-model="check_in_date"
style="width: 100%;"></el-date-picker>
</el-form-item>
@@ -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) => {


Chargement…
Annuler
Enregistrer