From 20eabab60d944179d4b3c250ecacadedaed314db Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期三, 12 三月 2025 13:15:53 +0800 Subject: [PATCH] 原材料下单查询条件修改 --- src/views/business/materialOrder/index.vue | 76 +++++++++++++++++++++++++++++++------- 1 files changed, 62 insertions(+), 14 deletions(-) diff --git a/src/views/business/materialOrder/index.vue b/src/views/business/materialOrder/index.vue index 4b4bbc4..325eaf0 100644 --- a/src/views/business/materialOrder/index.vue +++ b/src/views/business/materialOrder/index.vue @@ -59,9 +59,11 @@ <div class="table-tab"> <div> <ul class="tab"> - <li v-for="(m, i) in tabList" :key="m.value" :class="{ active: m.value === tabIndex }" - @click="handleTab(m)"> - {{ m.label }}</li> + <li :class="{ active: tabIndex === 0 }" @click="handleTab(0)">寰呬笅鍗�</li> + <li :class="{ active: tabIndex === 1 }" @click="handleTab(1)">妫�楠屼腑</li> + <li :class="{ active: tabIndex === 2 }" @click="handleTab(2)">宸叉楠�</li> + <li :class="{ active: tabIndex === 4 }" @click="handleTab(4)">瀛e害妫�楠�</li> + <li :class="{ active: tabIndex === 3 }" v-if="checkPermi(['get:Ifs:ByAll'])" @click="handleTab(3)">鍏ㄩ儴</li> </ul> </div> <div> @@ -193,6 +195,7 @@ concessionRelease, getIfsByAll, getIfsByOver, + getIfsByQuarter, getIfsByStateOne, rawAllExport, rawOrderRelease, @@ -359,7 +362,13 @@ tableData2: [], tableLoading2: false, column2: [ - { label: '濮旀墭缂栧彿', prop: 'entrustCode',width: "160px", }, + { + label: '濮旀墭缂栧彿', + prop: 'entrustCode', + width: "160px", + dataType: "link", + linkMethod: "changeEntrustCode", + }, { dataType: 'tag', label: '妫�楠岀姸鎬�', @@ -404,7 +413,13 @@ { label: '渚涘簲鍟嗗悕绉�', prop: 'supplierName' }, { label: '涓嶅悎鏍兼弿杩�', prop: 'unqualifiedDesc' }, { label: '鍏嶆', prop: 'isExemption' }, - { label: '鏍峰搧鍚嶇О', prop: 'sampleName' }, + { + label: '鏍峰搧鍚嶇О', + prop: 'sampleName', + width: "160px", + dataType: "link", + linkMethod: "selectAllByOne", + }, { label: '鏍峰搧鍨嬪彿', prop: 'sampleModel' }, { label: '妫�楠屼汉', prop: 'userName' }, { @@ -551,7 +566,13 @@ { label: '渚涘簲鍟嗗悕绉�', prop: 'supplierName' }, { label: '涓嶅悎鏍兼弿杩�', prop: 'unqualifiedDesc' }, { label: '鍏嶆', prop: 'isExemption' }, - { label: '鏍峰搧鍚嶇О', prop: 'sampleName' }, + { + label: '鏍峰搧鍚嶇О', + prop: 'sampleName', + width: "160px", + dataType: "link", + linkMethod: "selectAllByOne", + }, { label: '鏍峰搧鍨嬪彿', prop: 'sampleModel' }, { label: '妫�楠屼汉', prop: 'userName' }, { @@ -651,7 +672,13 @@ { label: '渚涘簲鍟嗗悕绉�', prop: 'supplierName' }, { label: '涓嶅悎鏍兼弿杩�', prop: 'unqualifiedDesc' }, { label: '鍏嶆', prop: 'isExemption' }, - { label: '鏍峰搧鍚嶇О', prop: 'sampleName' }, + { + label: '鏍峰搧鍚嶇О', + prop: 'sampleName', + width: "160px", + dataType: "link", + linkMethod: "selectAllByOne", + }, { label: '鏍峰搧鍨嬪彿', prop: 'sampleModel' }, { label: '妫�楠屼汉', prop: 'userName' }, { @@ -823,7 +850,7 @@ // 寰呬笅鍗曟煡璇� getPurchaseOrderList() { this.tableLoading = true - const params = { ...this.entity, isInspect: 1, state: 0 } + const params = { ...this.entity, isInspect: 1, state: 0, ...this.page } getWarehouseSubmit(params).then(res => { this.tableLoading = false if (res.code === 200) { @@ -837,7 +864,7 @@ // 妫�楠屼腑鏌ヨ getIfsByStateOneList() { this.tableLoading1 = true - const params = { ...this.entity, orderState: 1, state: 1 } + const params = { ...this.entity, orderState: 1, state: 1, ...this.page1 } getIfsByStateOne(params).then(res => { this.tableLoading1 = false if (res.code === 200) { @@ -851,7 +878,14 @@ // 宸叉楠屾煡璇� getIfsByOverList() { this.tableLoading2 = true - const params = { ...this.entity, orderState: 4, state: 2 } + if(null != this.entity.date){ + this.entity.beginDeclareDate = this.entity.date[0] + this.entity.endDeclareDate = this.entity.date[1] + } else { + this.entity.beginDeclareDate = '' + this.entity.endDeclareDate = '' + } + const params = { ...this.entity, orderState: 4, state: 2, ...this.page2 } getIfsByOver(params).then(res => { this.tableLoading2 = false if (res.code === 200) { @@ -865,8 +899,15 @@ // 鏌ヨ瀛e害妫�楠� getIfsByQuarterList() { this.tableLoading4 = true - const params = { ...this.entity } - getIfsByOver(params).then(res => { + if(null != this.entity.date){ + this.entity.beginDeclareDate = this.entity.date[0] + this.entity.endDeclareDate = this.entity.date[1] + } else { + this.entity.beginDeclareDate = '' + this.entity.endDeclareDate = '' + } + const params = { ...this.entity, ...this.page4 } + getIfsByQuarter(params).then(res => { this.tableLoading4 = false if (res.code === 200) { this.tableData4 = res.data.records @@ -879,7 +920,14 @@ // 鍏ㄩ儴 getIfsByAllList() { this.tableLoading3 = true - const params = { ...this.entity, isInspect: 1 } + if(null != this.entity.date){ + this.entity.beginDeclareDate = this.entity.date[0] + this.entity.endDeclareDate = this.entity.date[1] + } else { + this.entity.beginDeclareDate = '' + this.entity.endDeclareDate = '' + } + const params = { ...this.entity, isInspect: 1, ...this.page3 } getIfsByAll(params).then(res => { this.tableLoading3 = false if (res.code === 200) { @@ -1204,7 +1252,7 @@ }, // 鍒囨崲涓嬪崟tab琛ㄦ牸 handleTab(m) { - this.tabIndex = m.value; + this.tabIndex = m; this.refreshTable() }, // 琛ㄦ牸閫夋嫨鏂规硶 -- Gitblit v1.9.3