选择销售订单
This commit is contained in:
@@ -26,7 +26,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
title () {
|
title () {
|
||||||
let res = ['成品入库', '选择成品箱物料', '成品入库查询'][Number(this.$route.meta.guidePath) - 1]
|
let res = ['成品入库', '选择销售订单', '成品入库查询'][Number(this.$route.meta.guidePath) - 1]
|
||||||
return res
|
return res
|
||||||
},
|
},
|
||||||
...mapGetters(['keepAlive'])
|
...mapGetters(['keepAlive'])
|
||||||
|
|||||||
@@ -39,33 +39,27 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>选择</th>
|
<th>选择</th>
|
||||||
<th>序号</th>
|
<th>交期</th>
|
||||||
<th>日期</th>
|
<th>销售单</th>
|
||||||
<th>单据号</th>
|
<th>行号</th>
|
||||||
<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 dataList" :key="e.sale_code" @click="toRadio(e)">
|
<tr v-for="e in dataList" :key="e.sale_code" @click="toRadio(e)">
|
||||||
<td>
|
<td>
|
||||||
<button class="iconfont select_icon select_square_icon" :class="e.checked ? 'selected_icon' : 'unselect_icon'"></button>
|
<button class="iconfont select_icon select_square_icon" :class="e.checked ? 'selected_icon' : 'unselect_icon'"></button>
|
||||||
</td>
|
</td>
|
||||||
<td>{{i + 1}}</td>
|
<td>{{e.plandeliver_date}}</td>
|
||||||
<td>{{e.create_time}}</td>
|
|
||||||
<td>{{e.sale_code}}</td>
|
<td>{{e.sale_code}}</td>
|
||||||
<td>{{e.cust_name}}</td>
|
<td>{{e.seq_no}}</td>
|
||||||
<td>{{e.bucketunique}}</td>
|
|
||||||
<td>{{e.material_code}}</td>
|
|
||||||
<td>{{e.material_name}}</td>
|
|
||||||
<td>{{e.material_spec}}</td>
|
<td>{{e.material_spec}}</td>
|
||||||
<td>{{e.sale_qty | numeric(3)}}</td>
|
<td>{{e.sale_qty | numeric(0)}}</td>
|
||||||
<td>{{e.qty_unit_name}}</td>
|
<td>{{e.material_code}}</td>
|
||||||
|
<td>{{e.cust_name}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -80,7 +74,7 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
page: 1,
|
page: 1,
|
||||||
size: '30',
|
size: '22',
|
||||||
busy: false,
|
busy: false,
|
||||||
desc: '',
|
desc: '',
|
||||||
val1: '',
|
val1: '',
|
||||||
@@ -99,30 +93,34 @@ export default {
|
|||||||
this.page = 1
|
this.page = 1
|
||||||
this.busy = false
|
this.busy = false
|
||||||
this.desc = ''
|
this.desc = ''
|
||||||
let res = await getMaterial(this.date !== null ? dateTimeFtt(this.date[0]) : '', this.date !== null ? dateTimeFtt(this.date[1]) : '', this.val1, this.val2)
|
let res = await getMaterial(this.page + '', this.size, this.date !== null ? dateTimeFtt(this.date[0]) : '', this.date !== null ? dateTimeFtt(this.date[1]) : '', this.val1, this.val2)
|
||||||
this.dataList = []
|
if (res.code === 200) {
|
||||||
res.data.map(el => {
|
this.dataList = []
|
||||||
this.$set(el, 'checked', false)
|
res.content.map(el => {
|
||||||
})
|
this.$set(el, 'checked', false)
|
||||||
this.dataList = [...res.data]
|
})
|
||||||
if (res.data.length < 30) {
|
this.dataList = [...res.content]
|
||||||
this.busy = true
|
if (res.content.length < 22) {
|
||||||
this.desc = '已加载全部数据'
|
this.busy = true
|
||||||
|
this.desc = '已加载全部数据'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async loadMore () {
|
async loadMore () {
|
||||||
this.busy = true
|
this.busy = true
|
||||||
this.page++
|
this.page++
|
||||||
let res = await getMaterial(this.date !== null ? dateTimeFtt(this.date[0]) : '', this.date !== null ? dateTimeFtt(this.date[1]) : '', this.val1, this.val2)
|
let res = await getMaterial(this.page + '', this.size, this.date !== null ? dateTimeFtt(this.date[0]) : '', this.date !== null ? dateTimeFtt(this.date[1]) : '', this.val1, this.val2)
|
||||||
res.data.map(el => {
|
if (res.code === 200) {
|
||||||
this.$set(el, 'checked', false)
|
res.content.map(el => {
|
||||||
})
|
this.$set(el, 'checked', false)
|
||||||
this.dataList = [...this.dataList, ...res.data]
|
})
|
||||||
if (res.data.length < 30) {
|
this.dataList = [...this.dataList, ...res.content]
|
||||||
this.busy = true
|
if (res.content.length < 22) {
|
||||||
this.desc = '已加载全部数据'
|
this.busy = true
|
||||||
} else {
|
this.desc = '已加载全部数据'
|
||||||
this.busy = false
|
} else {
|
||||||
|
this.busy = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
colseUp () {
|
colseUp () {
|
||||||
|
|||||||
Reference in New Issue
Block a user