Commit 9e6da03f authored by 徐来柯's avatar 徐来柯

fix bug

parent 467a4f73
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="box-container"> <div class="box-container">
<div class="wrap"> <div class="wrap">
<h1 class="page-title">物料出库管理</h1> <h1 class="page-title">物料出库管理</h1>
<search-form :formList="[1,2,3]" :searchList="searchList" :btnList="[1,2]" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" /> <search-form ref="form" :formList="[1,2,3]" :searchList="searchList" :btnList="[1,2]" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" />
<el-table <el-table
border border
:height="$store.getters.someHeight" :height="$store.getters.someHeight"
...@@ -187,9 +187,18 @@ export default { ...@@ -187,9 +187,18 @@ export default {
method:"post", method:"post",
url:`/api/MaterialDelivery/MaterialDelivery_ScanCodeAdd?ScanCode=${value}`, url:`/api/MaterialDelivery/MaterialDelivery_ScanCodeAdd?ScanCode=${value}`,
}).then((res)=>{ }).then((res)=>{
if (res.data.code !== -1) {
console.log('扫码成功。。。') console.log('扫码成功。。。')
this.$refs.form.formData.scanValue = ''
var postData = this.resetData() var postData = this.resetData()
this.searchData(this.postData) this.searchData(postData)
} else {
console.log('扫码失败。。。')
this.typeV = '5'
this.deleteShow = true
this.deletetext = res.data.msg
this.$refs.form.$refs.codeInput.blur()
}
}).catch(() => { }).catch(() => {
console.log('扫码失败。。。') console.log('扫码失败。。。')
}) })
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="box-container"> <div class="box-container">
<div class="wrap"> <div class="wrap">
<h1 class="page-title">物料入库管理</h1> <h1 class="page-title">物料入库管理</h1>
<search-form :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" /> <search-form ref="form" :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" />
<el-table <el-table
border border
:height="$store.getters.someHeight" :height="$store.getters.someHeight"
...@@ -204,15 +204,24 @@ export default { ...@@ -204,15 +204,24 @@ export default {
url:`/api/MaterialWarehousing/MWarehousing_ScanCodeAdd?ScanCode=${value}`, url:`/api/MaterialWarehousing/MWarehousing_ScanCodeAdd?ScanCode=${value}`,
}).then((res)=>{ }).then((res)=>{
console.log('扫码成功。。。') console.log('扫码成功。。。')
if (res.data.code !== -1) {
var postData = { var postData = {
argKeyWord: this.formData.argKeyWord, argKeyWord: this.formData.argKeyWord,
argWhere: this.formData.argWhere, argWhere: this.formData.argWhere,
Stime: this.formData.dateValue ? this.$moment(this.formData.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : ' ', Stime: this.formData.dateValue ? this.$moment(this.formData.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : ' ',
Etime: this.formData.dateValue ? this.$moment(this.formData.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ' ' Etime: this.formData.dateValue ? this.$moment(this.formData.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ' '
} }
this.searchData(this.postData) this.$refs.form.formData.scanValue = ''
}).catch(() => { this.searchData(postData)
} else {
console.log('扫码失败。。。') console.log('扫码失败。。。')
this.typeV = '5'
this.deleteShow = true
this.deletetext = res.data.msg
this.$refs.form.$refs.codeInput.blur()
}
}).catch(() => {
console.log('扫描错误。。。')
}) })
}, },
resetData () { resetData () {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="box-container"> <div class="box-container">
<div class="wrap"> <div class="wrap">
<h1 class="page-title">产品出库管理</h1> <h1 class="page-title">产品出库管理</h1>
<search-form :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" /> <search-form ref="form" :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" />
<el-table <el-table
border border
:height="$store.getters.someHeight" :height="$store.getters.someHeight"
...@@ -198,9 +198,18 @@ export default { ...@@ -198,9 +198,18 @@ export default {
method:"post", method:"post",
url:`/api/ProductDelivery/ProductDelivery_ScanCodeAdd?ScanCode=${value}`, url:`/api/ProductDelivery/ProductDelivery_ScanCodeAdd?ScanCode=${value}`,
}).then((res)=>{ }).then((res)=>{
if (res.data.code !== -1) {
console.log('扫码成功。。。') console.log('扫码成功。。。')
this.$refs.form.formData.scanValue = ''
var postData = this.resetData() var postData = this.resetData()
this.searchData(this.postData) this.searchData(postData)
} else {
console.log('扫码失败。。。')
this.typeV = '5'
this.deleteShow = true
this.deletetext = res.data.msg
this.$refs.form.$refs.codeInput.blur()
}
}).catch(() => { }).catch(() => {
console.log('扫码失败。。。') console.log('扫码失败。。。')
}) })
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="box-container"> <div class="box-container">
<div class="wrap"> <div class="wrap">
<h1 class="page-title">产品入库管理</h1> <h1 class="page-title">产品入库管理</h1>
<search-form :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" /> <search-form ref="form" :formList="[1,2,3]" :btnList="[1,2]" :searchList="searchList" :formData="formData" @scanGunCode="scanGunCode" @searchData="searchData" @openDialog="openDialog" @delData="delData" />
<el-table <el-table
border border
ref="multipleTable" ref="multipleTable"
...@@ -198,14 +198,23 @@ export default { ...@@ -198,14 +198,23 @@ export default {
method:"post", method:"post",
url:`/api/ProductStorage/ProductStorage_ScanCodeAdd?ScanCode=${value}`, url:`/api/ProductStorage/ProductStorage_ScanCodeAdd?ScanCode=${value}`,
}).then((res)=>{ }).then((res)=>{
if (res.data.code !== -1) {
console.log('扫码成功。。。') console.log('扫码成功。。。')
this.$refs.form.formData.scanValue = ''
var postData = { var postData = {
argKeyWord: this.formData.argKeyWord, argKeyWord: this.formData.argKeyWord,
argWhere: this.formData.argWhere, argWhere: this.formData.argWhere,
Stime: this.formData.dateValue ? this.$moment(this.formData.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : ' ', Stime: this.formData.dateValue ? this.$moment(this.formData.dateValue[0]).format('YYYY-MM-DD HH:mm:ss') : ' ',
Etime: this.formData.dateValue ? this.$moment(this.formData.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ' ' Etime: this.formData.dateValue ? this.$moment(this.formData.dateValue[1]).format('YYYY-MM-DD HH:mm:ss') : ' '
} }
this.searchData(this.postData) this.searchData(postData)
} else {
console.log('扫码失败。。。')
this.typeV = '5'
this.deleteShow = true
this.deletetext = res.data.msg
this.$refs.form.$refs.codeInput.blur()
}
}).catch(() => { }).catch(() => {
console.log('扫码失败。。。') console.log('扫码失败。。。')
}) })
......
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