打印次数
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>载具号</th>
|
||||
<th>物料编码</th>
|
||||
<th>物料名称</th>
|
||||
<th>批次</th>
|
||||
@@ -55,8 +56,9 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.storagevehicle_code === pkId}" @tap="toCheck(e)">
|
||||
<td>{{i+1}}</td>
|
||||
<td>{{e.storagevehicle_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.pcsn}}</td>
|
||||
@@ -99,6 +101,8 @@
|
||||
index: '',
|
||||
val1: '',
|
||||
val2: '',
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
dataList: [],
|
||||
disabled: false
|
||||
};
|
||||
@@ -108,11 +112,18 @@
|
||||
this._queryInBillType()
|
||||
},
|
||||
methods: {
|
||||
toCheck (e) {
|
||||
this.pkId = this.pkId === e.storagevehicle_code ? '' : e.storagevehicle_code
|
||||
this.pkObj = this.pkId === e.storagevehicle_code ? e : {}
|
||||
this.val1 = e.storagevehicle_code
|
||||
this.searchList()
|
||||
},
|
||||
async _queryInBillType () {
|
||||
try {
|
||||
let res = await queryInBillType()
|
||||
if (res) {
|
||||
this.options = res.data
|
||||
this.index = this.options[0].value
|
||||
} else {
|
||||
this.options = []
|
||||
}
|
||||
@@ -141,8 +152,6 @@
|
||||
},
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.index = ''
|
||||
this.dataList = []
|
||||
this.disabled = false
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user