查询
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
<el-select v-model="value1" filterable clearable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options1"
|
||||
:key="item.device_code"
|
||||
:label="item.device_name"
|
||||
:value="item.device_code">
|
||||
:key="item.stor_id"
|
||||
:label="item.stor_name"
|
||||
:value="item.stor_id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
@@ -33,9 +33,9 @@
|
||||
<el-select v-model="value2" filterable clearable placeholder="请选择">
|
||||
<el-option
|
||||
v-for="item in options2"
|
||||
:key="item.device_code"
|
||||
:label="item.device_name"
|
||||
:value="item.device_code">
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</div>
|
||||
@@ -85,7 +85,8 @@
|
||||
<td v-if="e.bill_status === '20'">分配中</td>
|
||||
<td v-if="e.bill_status === '30'">分配完</td>
|
||||
<td v-if="e.bill_status === '99'">完成</td>
|
||||
<td>{{e.bill_type}}</td>
|
||||
<td v-if="e.bill_type === '0001'">生产入库</td>
|
||||
<td v-if="e.bill_type === '0009'">手工入库</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.total_qty | numeric(3)}}</td>
|
||||
@@ -103,7 +104,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { outgetAll, inconfirm } from '../../../config/getData1.js'
|
||||
import { getBcpStor, getBillType, outgetAll, inconfirm } from '../../../config/getData1.js'
|
||||
import {dateTimeFtt} from '@config/utils.js'
|
||||
export default {
|
||||
data () {
|
||||
@@ -122,9 +123,21 @@ export default {
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._getBcpStor()
|
||||
this._getBillType()
|
||||
this._outgetAll()
|
||||
},
|
||||
methods: {
|
||||
// 仓库下拉框
|
||||
async _getBcpStor () {
|
||||
let res = await getBcpStor()
|
||||
this.options1 = [...res.data]
|
||||
},
|
||||
// 单据类型下拉框
|
||||
async _getBillType () {
|
||||
let res = await getBillType()
|
||||
this.options2 = [...res.data]
|
||||
},
|
||||
// 查询
|
||||
async _outgetAll () {
|
||||
let res = await outgetAll(this.value1, this.date !== null ? dateTimeFtt(this.date[0]) : '', this.date !== null ? dateTimeFtt(this.date[1]) : '', this.value2, this.val1, this.val2)
|
||||
|
||||
Reference in New Issue
Block a user