change
This commit is contained in:
@@ -113,6 +113,8 @@
|
||||
},
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
created () {
|
||||
this._getIoDisDocumentInfo()
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-5 button-default" @tap="clearUp">清空</button>
|
||||
<button class="zd-col-9 button-primary" :class="{'button-info': !val1}" :disabled="disabled1" @tap="labelPrint">标签打印</button>
|
||||
<button class="zd-col-9 button-primary" :class="{'button-info': !val1 || !kcqty}" :disabled="disabled" @tap="_materialBoxOutConfirm">确认出库</button>
|
||||
<button class="zd-col-9 button-primary" :class="{'button-info': !val1 || kcqty === ''}" :disabled="disabled" @tap="_materialBoxOutConfirm">确认出库</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -133,7 +133,7 @@
|
||||
},
|
||||
async _materialBoxOutConfirm () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.kcqty) {
|
||||
if (!this.val1 || this.kcqty === '') {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
|
||||
@@ -127,10 +127,11 @@
|
||||
async _getOutGroupInfo () {
|
||||
try {
|
||||
let res = await getOutGroupInfo(this.val1)
|
||||
if (res && res.data.length > 0) {
|
||||
if (res && res.data.data.length > 0) {
|
||||
this.val2 = res.data.bom_code
|
||||
this.val3 = res.data.device_code
|
||||
this.dataList = [...res.data.data]
|
||||
this.dataList = res.data.data
|
||||
console.log(this.dataList, 666)
|
||||
} else {
|
||||
this.dataList = []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user