修改返回处理
This commit is contained in:
@@ -99,7 +99,7 @@ export default {
|
|||||||
if (!this.dataList.length) {
|
if (!this.dataList.length) {
|
||||||
this.dataList.push(res.content)
|
this.dataList.push(res.content)
|
||||||
} else {
|
} else {
|
||||||
if (JSON.stringify(this.dataList).indexOf(JSON.stringify(res.content)) == -1) {
|
if (JSON.stringify(this.dataList).indexOf(JSON.stringify(res.content)) === -1) {
|
||||||
this.dataList.push(res.content)
|
this.dataList.push(res.content)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ export default {
|
|||||||
if (!this.dataList.length) {
|
if (!this.dataList.length) {
|
||||||
this.dataList.push(res.content)
|
this.dataList.push(res.content)
|
||||||
} else {
|
} else {
|
||||||
if (JSON.stringify(this.dataList).indexOf(JSON.stringify(res.content)) == -1) {
|
if (JSON.stringify(this.dataList).indexOf(JSON.stringify(res.content)) === -1) {
|
||||||
this.dataList.push(res.content)
|
this.dataList.push(res.content)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ export default {
|
|||||||
created () {
|
created () {
|
||||||
this._queryIODtl()
|
this._queryIODtl()
|
||||||
},
|
},
|
||||||
|
activated () {
|
||||||
|
this._queryIODtl()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 1.1出入库单查询 */
|
/** 1.1出入库单查询 */
|
||||||
async _queryIODtl () {
|
async _queryIODtl () {
|
||||||
|
|||||||
@@ -65,6 +65,9 @@ export default {
|
|||||||
created () {
|
created () {
|
||||||
this._queryIODtl()
|
this._queryIODtl()
|
||||||
},
|
},
|
||||||
|
activated () {
|
||||||
|
this._queryIODtl()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 1.1出入库单查询 */
|
/** 1.1出入库单查询 */
|
||||||
async _queryIODtl () {
|
async _queryIODtl () {
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="submit-bar">
|
<section class="submit-bar">
|
||||||
<button class="btn submit-button" :class="{'btn-disabled': dataList.length === 0}" :disabled="disabled1" @click="_confirmReturn">确认入库</button>
|
<button class="btn submit-button" :class="{'btn-disabled': dataList.length === 0}" :disabled="disabled1" @click="toSure">确认入库</button>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
@@ -113,6 +113,14 @@ export default {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.disabled1 = false
|
this.disabled1 = false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
toSure () {
|
||||||
|
this.disabled1 = true
|
||||||
|
if (!this.dataList.length) {
|
||||||
|
this.disabled1 = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this._confirmReturn()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user