@@ -78,7 +77,8 @@
import NavBar from '@components/NavBar.vue'
import SearchBox from '@components/SearchBox3.vue'
import DropdownMenu from '@components/DropdownMenu.vue'
-import { bucketGetLevel, confirmGroupBucketNo, bucketPrintNo } from '@config/getData2.js'
+import { bucketGetLevel } from '@config/getData2.js'
+import { queryErpId, confirmGroupBucketNo, bucketPrintNo } from '@config/getData3.js'
import {submitPackUp} from '@config/mUtils.js'
import {toPrint} from '@config/print.js'
export default {
@@ -124,18 +124,40 @@ export default {
methods: {
handleChange (e) {
let arr = e.split('##')
- this.val1 = arr[0]
- this.val2 = arr[1]
- this.val3 = arr[2]
- this.val4 = arr[3]
- this.val5 = arr[4]
- this.active = arr[5] + ''
- if (this.option1.length) {
- this.option1.map((el, i) => {
- if (el.value === arr[5]) {
- this.active1 = i + ''
- }
- })
+ this._queryErpId(arr)
+ // this.val1 = arr[0]
+ // this.val2 = arr[1]
+ // this.val3 = arr[2]
+ // this.val4 = arr[3]
+ // this.val5 = arr[4]
+ // this.active = arr[5] + ''
+ // if (this.option1.length) {
+ // this.option1.map((el, i) => {
+ // if (el.value === arr[5]) {
+ // this.active1 = i + ''
+ // }
+ // })
+ // }
+ },
+ async _queryErpId (arr) {
+ let res = await queryErpId(arr[0])
+ if (res.code === '1') {
+ this.val1 = arr[0]
+ this.val2 = arr[1]
+ this.val3 = arr[2]
+ this.val4 = arr[3]
+ this.val5 = arr[4]
+ this.active = arr[5] + ''
+ if (this.option1.length) {
+ this.option1.map((el, i) => {
+ if (el.value === arr[5]) {
+ this.active1 = i + ''
+ }
+ })
+ }
+ } else {
+ this.Dialog(res.desc)
+ this.val1 = ''
}
},
toAdd () {
diff --git a/src/pages/xinrui/storage/settings/SoftWasteBarrelPrintNobag_back.vue b/src/pages/xinrui/storage/settings/SoftWasteBarrelPrintNobag_back.vue
new file mode 100644
index 0000000..9db846b
--- /dev/null
+++ b/src/pages/xinrui/storage/settings/SoftWasteBarrelPrintNobag_back.vue
@@ -0,0 +1,291 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+