选择成品箱物料
This commit is contained in:
@@ -17,20 +17,20 @@
|
|||||||
<div class="search-item">
|
<div class="search-item">
|
||||||
<div class="search-label">单据号</div>
|
<div class="search-label">单据号</div>
|
||||||
<div class="filter_input_wraper">
|
<div class="filter_input_wraper">
|
||||||
<input type="text" class="filter-input">
|
<input type="text" class="filter-input" v-model="val1">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-item">
|
<div class="search-item">
|
||||||
<div class="search-label">物料</div>
|
<div class="search-label">物料</div>
|
||||||
<div class="filter_input_wraper">
|
<div class="filter_input_wraper">
|
||||||
<input type="text" class="filter-input">
|
<input type="text" class="filter-input" v-model="val2">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-item flexend">
|
<div class="search-item flexend">
|
||||||
<button class="button button--primary">查询</button>
|
<button class="button button--primary" @click="_getMaterial">快速查询</button>
|
||||||
<button class="button button--primary">确定</button>
|
<button class="button button--primary" @click="toSure">确定</button>
|
||||||
<button class="button button--primary">清空</button>
|
<button class="button button--primary" @click="clear">清空</button>
|
||||||
<button class="button button--primary">关闭</button>
|
<button class="button button--primary" @click="close">关闭</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -45,23 +45,21 @@
|
|||||||
<th>箱号</th>
|
<th>箱号</th>
|
||||||
<th>物料编码</th>
|
<th>物料编码</th>
|
||||||
<th>物料名称</th>
|
<th>物料名称</th>
|
||||||
<th>物料类别</th>
|
|
||||||
<th>数量</th>
|
<th>数量</th>
|
||||||
<th>单位</th>
|
<th>单位</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(e, i) in [1, 2, 3]" :key="i">
|
<tr v-for="(e, i) in dataList" :key="i" :class="{'selected_icon': pkId === e.sale_code}" @click="toRadio(e)">
|
||||||
<td>1</td>
|
<td>{{i + 1}}</td>
|
||||||
<td>20160616</td>
|
<td>{{e.create_time}}</td>
|
||||||
<td>RT20160616001</td>
|
<td>{{e.sale_code}}</td>
|
||||||
<td>供应商甲</td>
|
<td>{{e.cust_name}}</td>
|
||||||
<td>xno01</td>
|
<td>{{e.bucketunique}}</td>
|
||||||
<td>020301020001</td>
|
<td>{{e.material_code}}</td>
|
||||||
<td>钴粉</td>
|
<td>{{e.material_name}}</td>
|
||||||
<td>成品</td>
|
<td>{{e.sale_qty}}</td>
|
||||||
<td>1000</td>
|
<td>{{e.qty_unit_name}}</td>
|
||||||
<td>个</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -70,16 +68,42 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { getMaterial } from '../../../config/getData1.js'
|
||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
options1: [],
|
val1: '',
|
||||||
value1: '',
|
val2: '',
|
||||||
date: [new Date((new Date().getTime() - 24 * 60 * 60 * 1000)), new Date((new Date().getTime() + 24 * 60 * 60 * 1000))],
|
date: [new Date((new Date().getTime() - 24 * 60 * 60 * 1000)), new Date((new Date().getTime() + 24 * 60 * 60 * 1000))],
|
||||||
options2: [],
|
dataList: [{sale_code: '030301010031'}],
|
||||||
value2: '',
|
pkId: '',
|
||||||
options3: [],
|
pkObj: {}
|
||||||
value3: ''
|
}
|
||||||
|
},
|
||||||
|
created () {
|
||||||
|
this._getMaterial()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 查询
|
||||||
|
async _getMaterial () {
|
||||||
|
let res = await getMaterial(this.date, this.val1, this.val2)
|
||||||
|
this.dataList = [...res.data]
|
||||||
|
},
|
||||||
|
toRadio (e) {
|
||||||
|
this.pkId = this.pkId === e.sale_code ? '' : e.sale_code
|
||||||
|
this.pkObj = this.pkId === e.sale_code ? e : {}
|
||||||
|
},
|
||||||
|
toSure () {
|
||||||
|
this.$router.push('/finishedinstore')
|
||||||
|
},
|
||||||
|
clear () {
|
||||||
|
this.val1 = ''
|
||||||
|
this.val2 = ''
|
||||||
|
this.pkId = ''
|
||||||
|
this.pkObj = {}
|
||||||
|
},
|
||||||
|
close () {
|
||||||
|
this.$router.push('/finishedinstore')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user