@@ -173,6 +173,8 @@ | |||||
total_price: '', | total_price: '', | ||||
total_cost: '', | total_cost: '', | ||||
profit: '', | profit: '', | ||||
count: '', | |||||
supplier_id: '', | |||||
editType: 'add', | editType: 'add', | ||||
purchasePriceList: [{ | purchasePriceList: [{ | ||||
run_date: '请选择日期', | run_date: '请选择日期', | ||||
@@ -199,6 +201,8 @@ | |||||
total_price: '', | total_price: '', | ||||
total_cost: '', | total_cost: '', | ||||
profit: '', | profit: '', | ||||
count: '', | |||||
supplier_id: '', | |||||
editType: 'add', | editType: 'add', | ||||
purchasePriceList: [{ | purchasePriceList: [{ | ||||
run_date: '请选择日期', | run_date: '请选择日期', | ||||
@@ -279,6 +283,8 @@ | |||||
}).catch((err) => { | }).catch((err) => { | ||||
console.log(err) | console.log(err) | ||||
}) | }) | ||||
} else { | |||||
console.error(flagArr) | |||||
} | } | ||||
} else { | } else { | ||||
@@ -418,6 +424,7 @@ | |||||
this.orderMainCopy = this.$lo.cloneDeep(orderMain) | this.orderMainCopy = this.$lo.cloneDeep(orderMain) | ||||
res.data.data.subOrderList.forEach((item) => { //回显值的处理 | res.data.data.subOrderList.forEach((item) => { //回显值的处理 | ||||
item.purchasePriceList.forEach((value) => { | item.purchasePriceList.forEach((value) => { | ||||
item.count = value.count | |||||
value.supplier_id = item.supplier_id | value.supplier_id = item.supplier_id | ||||
value.customer_comments = item.customer_comments | value.customer_comments = item.customer_comments | ||||
}) | }) | ||||
@@ -400,13 +400,13 @@ | |||||
day: [], | day: [], | ||||
rules: { | rules: { | ||||
hotel_id: [ | hotel_id: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | |||||
{required: true, message: '请输入', trigger: 'change'}, | |||||
], | ], | ||||
room_id: [ | room_id: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | |||||
{required: true, message: '请输入', trigger: 'change'}, | |||||
], | ], | ||||
plan_id: [ | plan_id: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | |||||
{required: true, message: '请输入', trigger: 'change'}, | |||||
], | ], | ||||
customer_name: [ | customer_name: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | {required: true, message: '请输入', trigger: 'blur'}, | ||||
@@ -418,10 +418,10 @@ | |||||
{required: true, message: '请输入', trigger: 'blur'}, | {required: true, message: '请输入', trigger: 'blur'}, | ||||
], | ], | ||||
count: [ | count: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | |||||
{required: true, message: '请输入', trigger: 'change'}, | |||||
], | ], | ||||
supplier_id: [ | supplier_id: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | |||||
{required: true, message: '请输入', trigger: 'change'}, | |||||
], | ], | ||||
purchasePriceList: [ | purchasePriceList: [ | ||||
{type: 'array', required: true, message: '请选择', trigger: 'change'}, | {type: 'array', required: true, message: '请选择', trigger: 'change'}, | ||||
@@ -468,6 +468,7 @@ | |||||
this.dataObj.purchasePriceList.forEach((item) => { | this.dataObj.purchasePriceList.forEach((item) => { | ||||
this.$set(item, 'count', value) | this.$set(item, 'count', value) | ||||
}) | }) | ||||
this.dataObj.count = value | |||||
}, | }, | ||||
changesupplier_id(value) { | changesupplier_id(value) { | ||||
this.dataObj.purchasePriceList.forEach((item) => { | this.dataObj.purchasePriceList.forEach((item) => { | ||||
@@ -47,7 +47,7 @@ | |||||
</el-row> | </el-row> | ||||
<el-row> | <el-row> | ||||
<el-col :span="10"> | <el-col :span="10"> | ||||
<el-form-item label="使用日期" prop="purchasePriceList"> | |||||
<el-form-item label-width="120px" label="使用日期" prop="purchasePriceList"> | |||||
<el-col :span="11"> | <el-col :span="11"> | ||||
<el-date-picker type="date" placeholder="选择日期" v-model="check_in_date" | <el-date-picker type="date" placeholder="选择日期" v-model="check_in_date" | ||||
style="width: 100%;"></el-date-picker> | style="width: 100%;"></el-date-picker> | ||||
@@ -198,7 +198,7 @@ | |||||
</el-row> | </el-row> | ||||
<el-row> | <el-row> | ||||
<el-col :span="10"> | <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" | <el-date-picker type="date" placeholder="选择日期" v-model="check_in_date" | ||||
style="width: 100%;"></el-date-picker> | style="width: 100%;"></el-date-picker> | ||||
</el-form-item> | </el-form-item> | ||||
@@ -340,7 +340,7 @@ | |||||
day: [], | day: [], | ||||
rules: { | rules: { | ||||
item_id: [ | item_id: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | |||||
{required: true, message: '请输入', trigger: 'change'}, | |||||
], | ], | ||||
customer_name: [ | customer_name: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | {required: true, message: '请输入', trigger: 'blur'}, | ||||
@@ -352,16 +352,16 @@ | |||||
{required: true, message: '请输入', trigger: 'blur'}, | {required: true, message: '请输入', trigger: 'blur'}, | ||||
], | ], | ||||
purchase_user_id: [ | purchase_user_id: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | |||||
{required: true, message: '请输入', trigger: 'change'}, | |||||
], | ], | ||||
confirm_status: [ | confirm_status: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | {required: true, message: '请输入', trigger: 'blur'}, | ||||
], | ], | ||||
count: [ | count: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | |||||
{required: true, message: '请输入', trigger: 'change'}, | |||||
], | ], | ||||
supplier_id: [ | supplier_id: [ | ||||
{required: true, message: '请输入', trigger: 'blur'}, | |||||
{required: true, message: '请输入', trigger: 'change'}, | |||||
], | ], | ||||
purchasePriceList: [ | purchasePriceList: [ | ||||
{type: 'array', required: true, message: '请输入', trigger: 'change'}, | {type: 'array', required: true, message: '请输入', trigger: 'change'}, | ||||
@@ -411,6 +411,7 @@ | |||||
this.dataObj.purchasePriceList.forEach((item) => { | this.dataObj.purchasePriceList.forEach((item) => { | ||||
this.$set(item, 'count', value) | this.$set(item, 'count', value) | ||||
}) | }) | ||||
this.dataObj.count = value | |||||
}, | }, | ||||
changesupplier_id(value) { | changesupplier_id(value) { | ||||
this.dataObj.purchasePriceList.forEach((item) => { | this.dataObj.purchasePriceList.forEach((item) => { | ||||