diff --git a/pages/SecondPhase/slitting/Cutaxis.vue b/pages/SecondPhase/slitting/Cutaxis.vue
index 2a24519..89d6a24 100644
--- a/pages/SecondPhase/slitting/Cutaxis.vue
+++ b/pages/SecondPhase/slitting/Cutaxis.vue
@@ -127,6 +127,9 @@
if (this.dataList.length >= 2) {
return
}
+ if (this.index1 === this.dataList[0].site) {
+ return
+ }
this.dataList.push({site: this.index1})
},
handleDelete (index) {
diff --git a/pages/SecondPhase/slitting/PaperBind.vue b/pages/SecondPhase/slitting/PaperBind.vue
index 7e70418..be225dd 100644
--- a/pages/SecondPhase/slitting/PaperBind.vue
+++ b/pages/SecondPhase/slitting/PaperBind.vue
@@ -32,18 +32,12 @@
-
- {{$t('filter.material')}}
-
-
-
-
-
-
+
+
@@ -68,7 +62,6 @@
options2: [{value: '1', text: '1'}, {value: '2', text: '2'}, {value: '3', text: '3'}, {value: '4', text: '4'}, {value: '5', text: '5'}],
index2: '',
options: [],
- index: '',
newoptions: [],
disabled: false
};
@@ -93,38 +86,17 @@
selectChange2 (e) {
this.index2 = e
},
- selectChange (e) {
- this.index = e
- },
- /** 模糊匹配 */
- selectMatchItem (lists, keyWord) {
- let resArr = []
- lists.filter((item) => {
- if (item.text.indexOf(keyWord) > -1) {
- resArr.push(item)
- }
- })
- return resArr
- },
- handleChange (e) {
- if (e){
- this.index = ''
- this.newoptions = this.selectMatchItem(this.options, e)
- } else {
- this.newoptions = this.options
- }
- },
showSelector () {
this.newoptions = this.options
},
async _operateIvt (type) {
this.disabled = true
- if (!this.val1 || !this.index || !this.index1 || !this.index2 || !this.val3) {
+ if (!this.val1 || !this.index1 || !this.index2 || !this.val3) {
this.disabled = false
return
}
try {
- let res = await operateIvt(type, this.val1, this.index1, this.index2, this.index, this.val3)
+ let res = await operateIvt(type, this.val1, this.index1, this.index2, this.val3)
uni.showToast({
title: res.message,
icon: 'none'
@@ -137,7 +109,6 @@
clearUp () {
this.val1 = ''
this.val3 = ''
- this.index = ''
this.index1 = ''
this.index2 = ''
}
diff --git a/utils/getData3.js b/utils/getData3.js
index ddf97d2..dc1e02f 100644
--- a/utils/getData3.js
+++ b/utils/getData3.js
@@ -155,9 +155,9 @@ export const updatePackageInfo = (ivt, cn, code) => request({
/**
* 纸管绑定
*/
-export const operateIvt = (type, vcode, rnum, cnum, code, pcode) => request({
+export const operateIvt = (type, vcode, rnum, cnum, pcode) => request({
url:'api/pda/stockingivt/operateIvt',
- data: {type: type, vehicle_code: vcode, row_num: rnum, col_num: cnum, material_code: code, paper_code: pcode}
+ data: {type: type, vehicle_code: vcode, row_num: rnum, col_num: cnum, paper_code: pcode}
})
/**
* 分切暂存下料纸管绑定