|
@@ -37,22 +37,24 @@
|
|
|
@timeReturned="handleTime"
|
|
|
/>
|
|
|
</el-col>
|
|
|
- <!-- 商品编码 -->
|
|
|
+ <!-- 商品名称 -->
|
|
|
<el-col :span="4" style="width: 150px; padding: 0 0 0 10px">
|
|
|
<el-input
|
|
|
:size="searchSize"
|
|
|
placeholder="商品名称"
|
|
|
v-model="parmValue.good_name"
|
|
|
clearable
|
|
|
+ @blur="searchList"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<!-- 备货申请编码 -->
|
|
|
- <el-col :span="4" style="width: 160px; padding: 0 0 0 10px">
|
|
|
+ <el-col :span="4" style="width: 195px; padding: 0 0 0 10px">
|
|
|
<el-input
|
|
|
:size="searchSize"
|
|
|
v-model="parmValue.bk_code"
|
|
|
:maxlength="40"
|
|
|
placeholder="备货申请编码"
|
|
|
+ @blur="searchList"
|
|
|
/>
|
|
|
</el-col>
|
|
|
<el-col :span="4" style="width: 54px">
|
|
@@ -104,7 +106,6 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #status="{ scope }">
|
|
|
- <!-- :type="scope.row.status == '0' ? 'warning' : ''" -->
|
|
|
<el-tag
|
|
|
:size="tablebtnSize"
|
|
|
:type="
|
|
@@ -218,7 +219,7 @@ export default {
|
|
|
methods: {
|
|
|
// 选择时间操作
|
|
|
handleTime(e) {
|
|
|
- console.log(e);
|
|
|
+ // console.log(e);
|
|
|
if (e && e.startTime && e.endTime) {
|
|
|
this.parmValue.start = e.startTime;
|
|
|
this.parmValue.end = e.endTime;
|
|
@@ -228,6 +229,8 @@ export default {
|
|
|
}
|
|
|
if (this.parmValue.start != "" && this.parmValue.end != "") {
|
|
|
this.searchList();
|
|
|
+ } else if (this.parmValue.start === "" && this.parmValue.end === "") {
|
|
|
+ this.searchList();
|
|
|
}
|
|
|
},
|
|
|
// 点击详情操作
|
|
@@ -267,13 +270,14 @@ export default {
|
|
|
// 列表搜索
|
|
|
async searchList() {
|
|
|
this.loading = true;
|
|
|
- let { start, end, page, size, good_name } = this.parmValue;
|
|
|
+ let { start, end, page, size, good_name, bk_code } = this.parmValue;
|
|
|
let model = {
|
|
|
start,
|
|
|
end,
|
|
|
page,
|
|
|
size,
|
|
|
good_name,
|
|
|
+ bk_code,
|
|
|
};
|
|
|
const res = await asyncRequest.list(model);
|
|
|
if (res && res.code === 0 && res.data) {
|