Commit ea70c1a6 authored by yaobeibei's avatar yaobeibei

merge reset

parent 9e255061
...@@ -2117,10 +2117,7 @@ app.post('/entry', function(req, res) { ...@@ -2117,10 +2117,7 @@ app.post('/entry', function(req, res) {
return console.log(err) return console.log(err)
} }
if (response.statusCode === 200) { if (response.statusCode === 200) {
<<<<<<< HEAD
=======
console.log(response.body) console.log(response.body)
>>>>>>> reset
res.send({status: 200, datas: response.body}) res.send({status: 200, datas: response.body})
} }
if (response.statusCode === 204) { if (response.statusCode === 204) {
......
...@@ -517,22 +517,8 @@ ...@@ -517,22 +517,8 @@
}).then(data => { }).then(data => {
console.dir(data) console.dir(data)
this.entryBillID = billID this.entryBillID = billID
<<<<<<< HEAD
let datas = JSON.parse(data.datas) let datas = JSON.parse(data.datas)
console.log(datas)
if (data.status === 200) { if (data.status === 200) {
if (entryButton) {
self.entryBtn = true
this.$message({
type: 'success',
message: '该订单已经被录入'
})
}
=======
let datas = JSON.parse(data.datas)
if (data.status === 200) {
>>>>>>> reset
this.formatEntry(datas) this.formatEntry(datas)
} else { } else {
this.$alert(data.message, '无法录入', { this.$alert(data.message, '无法录入', {
...@@ -589,13 +575,7 @@ ...@@ -589,13 +575,7 @@
}).then(res => { }).then(res => {
return res.json() return res.json()
}).then(data => { }).then(data => {
<<<<<<< HEAD
console.log(data)
let datas = JSON.parse(data.datas)
console.log(datas)
=======
let datas = JSON.parse(data.datas) let datas = JSON.parse(data.datas)
>>>>>>> reset
if (data.status === 200) { if (data.status === 200) {
if (datas.ok === 1) { if (datas.ok === 1) {
this.message({ this.message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment