Browse Source

修复部分干线bug

dev-xx
qb 11 months ago
parent
commit
153c6519bc
  1. 95
      src/views/distribution/artery/AddVehicleStowage.vue
  2. 2
      src/views/waybill/TemporaryStorageList.vue

95
src/views/distribution/artery/AddVehicleStowage.vue

@ -355,7 +355,7 @@
<el-button type="primary" icon="el-icon-search" @click="searchChange" <el-button type="primary" icon="el-icon-search" @click="searchChange"
> </el-button > </el-button
> >
<el-button icon="el-icon-delete" @click="searchReset()">重置</el-button> <el-button icon="el-icon-delete" @click="searchReset"> </el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -425,8 +425,7 @@
:model="details.newQuery" :model="details.newQuery"
class="el-fr-d" class="el-fr-d"
> >
<div class="fo-fl"> <!-- <el-form-item label="关键词" class="el-times">
<!-- <el-form-item label="关键词" class="el-times">
<el-input></el-input> <el-input></el-input>
</el-form-item> </el-form-item>
<el-form-item label="目的网点" class="el-times"> <el-form-item label="目的网点" class="el-times">
@ -444,26 +443,45 @@
<el-form-item label="托盘码" class="el-times"> <el-form-item label="托盘码" class="el-times">
<el-input></el-input> <el-input></el-input>
</el-form-item> --> </el-form-item> -->
<el-form-item label="开单时间" class="el-times"> <el-form-item label="开单时间" class="el-times">
<el-date-picker <el-date-picker
v-model="item.createTimeArr" v-model="item.createTimeArr"
type="daterange" type="daterange"
unlink-panels unlink-panels
range-separator="-" range-separator="-"
start-placeholder="开始时间" start-placeholder="开始时间"
end-placeholder="结束时间" end-placeholder="结束时间"
:shortcuts="shortcuts" :shortcuts="shortcuts"
clearable clearable
@change="value => item.itemTimesc(value, { prop: 'createTimeArr' })" @change="value => item.itemTimesc(value, { prop: 'createTimeArr' })"
/> />
</el-form-item> </el-form-item>
<!-- <el-form-item> <el-form-item label="入库时间" class="el-times">
<el-button type="primary" icon="el-icon-search" @click="searchReset()" <el-date-picker
> </el-button v-model="item.openTimeArr"
> type="daterange"
<el-button icon="el-icon-delete" @click="searchReset()">重置</el-button> unlink-panels
</el-form-item> --> range-separator="-"
</div> start-placeholder="开始时间"
end-placeholder="结束时间"
:shortcuts="shortcuts"
clearable
value-format="YYYY-MM-DD"
@change="value => item.itemTimesc(value, { prop: 'openTimeArr' })"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
@click="() => item.itemFilterData()"
>
</el-button>
<el-button icon="el-icon-delete" @click="() => item.itemClearQuery()">
</el-button>
</el-form-item>
</el-form> </el-form>
</div> </div>
@ -619,6 +637,7 @@ import {
isNumber, isNumber,
deepClone, deepClone,
debounce, debounce,
handleClearTableQuery,
} from '@/utils/util'; } from '@/utils/util';
import { import {
columnList, columnList,
@ -1048,7 +1067,7 @@ const onLoad = async () => {
if (!value) delete this.timeQuery[prop]; if (!value) delete this.timeQuery[prop];
this.itemFilterData(); // this.itemFilterData();
}, },
/** 筛选数据 */ /** 筛选数据 */
itemFilterData() { itemFilterData() {
@ -1086,6 +1105,13 @@ const onLoad = async () => {
this.renderData = _filterArr; this.renderData = _filterArr;
}, },
/** 清空搜索的值 */
itemClearQuery() {
this.query = {};
this.timeQuery = {};
handleClearTableQuery(this.newColumnList);
this.itemFilterData();
},
MappingData: [], MappingData: [],
}; };
@ -1171,10 +1197,8 @@ const searchChange = () => {
const searchReset = () => { const searchReset = () => {
details.query = {}; details.query = {};
details.page.pageNum = 1; details.page.pageNum = 1;
for (let i = 0; i < details.columnList.length; i++) {
const value = details.columnList[i]; handleClearTableQuery(details.columnList);
value.values = '';
}
initOriginWarehouseOrder(); initOriginWarehouseOrder();
}; };
@ -1392,7 +1416,7 @@ const handleAddNode = async (index: number) => {
if (!value) delete this.timeQuery[prop]; if (!value) delete this.timeQuery[prop];
this.itemFilterData(); // this.itemFilterData();
}, },
/** 筛选数据 */ /** 筛选数据 */
itemFilterData() { itemFilterData() {
@ -1430,6 +1454,13 @@ const handleAddNode = async (index: number) => {
this.renderData = _filterArr; this.renderData = _filterArr;
}, },
/** 清空搜索的值 */
itemClearQuery() {
this.query = {};
this.timeQuery = {};
handleClearTableQuery(this.newColumnList);
this.itemFilterData();
},
MappingData: [], MappingData: [],
}); });
@ -1882,12 +1913,6 @@ const handleSubmit = (formEl: FormInstance | undefined) => {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.fo-fl {
display: flex;
flex-wrap: wrap;
zoom: 0.9;
}
// //
:deep(.el-date-editor.el-input) { :deep(.el-date-editor.el-input) {
height: 100% !important; height: 100% !important;

2
src/views/waybill/TemporaryStorageList.vue

@ -1246,7 +1246,7 @@ const handleSuccess = res => {
details.loadingObj.UploadLoadong = false; details.loadingObj.UploadLoadong = false;
const { msg, code } = res; const { msg, code } = res;
if (code !== 200) return ElMessage.warning(msg || '上传失败'); if (code !== 200) return ElMessage.warning(msg || '上传失败');
ElMessage.success('上传成功'); ElMessage.success(msg || '上传成功');
initOnLoad({}, true); initOnLoad({}, true);
}; };

Loading…
Cancel
Save