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