-
-
+
+
@@ -70,6 +70,7 @@
:data="dataObj.purchasePriceList"
border
height="500"
+ :span-method="arraySpanMethod"
:summary-method="getSummaries"
show-summary
style="width: 100%;min-width:890px; margin-top: 20px">
@@ -118,7 +119,7 @@
prop="customer_comments"
label="备注">
-
+
@@ -143,11 +144,11 @@
-
-
-
-
-
+
+ 未发单
+ 已发单
+ 已确认
+ 已取消
@@ -286,11 +287,11 @@
-
-
-
-
-
+
+ 未发单
+ 已发单
+ 已确认
+ 已取消
@@ -323,14 +324,14 @@
data() {
return {
dataObjTemp: this.$lo.cloneDeep(this.dataObj),
- confirm_status: '未发单',
+ opened: '1',
check_in_date: '',
day: []
}
},
computed: {
disable() {
- return this.dataObj.editType != 'add'
+ return this.dataObjTemp.editType == 'view'
}
},
watch: {
@@ -338,24 +339,6 @@
console.log('change')
this.dataObjTemp = this.$lo.cloneDeep(this.dataObj)
},
- confirm_status(val) {
- let type = '';
- switch (val) {
- case "未发单":
- type = '1'
- break;
- case "已发单":
- type = '2'
- break;
- case "已确认":
- type = '3'
- break;
- case "已取消":
- type = '4'
- break;
- }
- this.$set(this.dataObj, "confirm_status", type)
- },
check_in_date(val) {
let time = this.getAllDateCN(val)
console.log(time)
@@ -395,7 +378,7 @@
this.$set(item, 'supplier_id', value)
})
this.dataObj.supplier_id = value
- this.$set(this.dataObj, 'supplier_id', value)
+ // this.$set(this.dataObj, 'supplier_id', value)
}
},
changeNote(value) {
@@ -404,7 +387,7 @@
this.$set(item, 'customer_comments', value)
})
this.dataObj.customer_comments = value
- this.$set(this.dataObj, 'customer_comments', value)
+ // this.$set(this.dataObj, 'customer_comments', value)
}
},
arraySpanMethod({row, column, rowIndex, columnIndex}) {
@@ -493,19 +476,20 @@
this.dataObjTemp.editType = 'edit';
},
save() {
- this.dataObjTemp.editType = 'view';
axios.post("/hotel.php/order_main/subOrderSave", this.dataObj).then((res) => {
console.log(res)
- if (res.flag) {
- this.$alert('提示', res.msg, {
- confirmButtonText: '确定',
- });
+ if (res.data.flag) {
+ this.dataObjTemp.editType = 'view';
}
+ this.$alert(res.data.msg, '提示', {
+ confirmButtonText: '确定',
+ });
}).catch((err) => {
console.log(err)
})
},
cancel() {
+ this.dataObjTemp.editType = 'view';
this.$set(this.dataObj, 'editType', 'view');
this.$set(this, 'dataObj', this.dataObj);
}