調整版面
This commit is contained in:
@@ -292,6 +292,13 @@
|
||||
num: {
|
||||
type: Number // num
|
||||
},
|
||||
order_no: {
|
||||
type: String,
|
||||
default:''
|
||||
},
|
||||
total_amt: {
|
||||
type:Number
|
||||
},
|
||||
mode: {
|
||||
type: String,
|
||||
default:''
|
||||
@@ -373,7 +380,7 @@
|
||||
},
|
||||
num: {
|
||||
handler(newVal) {
|
||||
console.log("........", newVal)
|
||||
//console.log("........", newVal)
|
||||
this.formData = {
|
||||
source: '',
|
||||
order_no: '',
|
||||
@@ -389,6 +396,16 @@
|
||||
},
|
||||
deep: true,
|
||||
immediate: true
|
||||
},
|
||||
order_no: {
|
||||
handler(newVal) {
|
||||
console.log(this.mode,this.order_no,this.total_amt)
|
||||
if (this.mode == "preOrder" && newVal != "") {
|
||||
this.formData.source = "1"
|
||||
this.formData.order_no = newVal
|
||||
this.formData.total_amt = this.total_amt
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -415,7 +432,7 @@
|
||||
axios
|
||||
.post(HTTP_HOST + 'api/order/GetList', search, { params: params })
|
||||
.then(response => {
|
||||
console.log(response)
|
||||
//console.log(response)
|
||||
self.order_dialog.list = response.data.list
|
||||
self.order_dialog.count = response.data.count;
|
||||
self.order_dialog.loading = false
|
||||
@@ -647,15 +664,29 @@
|
||||
this.alreadyAmt = 0;
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.mode, this.order_no, this.total_amt)
|
||||
this.getReceiptStyles();
|
||||
this.formData = {
|
||||
source: '',
|
||||
order_no: '',
|
||||
receipt_date: null,
|
||||
receipt_style: "",
|
||||
total_amt: 0,
|
||||
style_num: 0,
|
||||
num: 0
|
||||
if (this.mode !== "preOrder") {
|
||||
this.formData = {
|
||||
source: '',
|
||||
order_no: '',
|
||||
receipt_date: null,
|
||||
receipt_style: "",
|
||||
total_amt: 0,
|
||||
style_num: 0,
|
||||
num: 0
|
||||
}
|
||||
} else {
|
||||
this.formData = {
|
||||
source: '1',
|
||||
order_no: this.order_no,
|
||||
receipt_date: null,
|
||||
receipt_style: "",
|
||||
total_amt: this.total_amt,
|
||||
style_num: 0,
|
||||
num: 0
|
||||
}
|
||||
|
||||
}
|
||||
this.formDetail.length = 0;
|
||||
this.alreadyAmt = 0;
|
||||
|
||||
Reference in New Issue
Block a user