Showing
5 changed files
with
37 additions
and
26 deletions
| ... | @@ -128,8 +128,12 @@ export default { | ... | @@ -128,8 +128,12 @@ export default { |
| 128 | }); | 128 | }); |
| 129 | await getCustomizeExcel({}).then((res) => { | 129 | await getCustomizeExcel({}).then((res) => { |
| 130 | if (res.code === "200") { | 130 | if (res.code === "200") { |
| 131 | - this.transferValue = res.data.defaultLogisticsWaybill; | 131 | + this.transferValue = res.data.logisticsWaybillDimension |
| 132 | - this.transferValue1 = res.data.defaultCommodityDetail; | 132 | + ? res.data.logisticsWaybillDimension |
| 133 | + : res.data.defaultLogisticsWaybill; | ||
| 134 | + this.transferValue1 = res.data.commodityDetailDimension | ||
| 135 | + ? res.data.commodityDetailDimension | ||
| 136 | + : res.data.defaultCommodityDetail; | ||
| 133 | this.historyInfo = res.data; | 137 | this.historyInfo = res.data; |
| 134 | this.$nextTick(() => { | 138 | this.$nextTick(() => { |
| 135 | this.commodityDetailDimension = this.commodityDetailDimension.map( | 139 | this.commodityDetailDimension = this.commodityDetailDimension.map( |
| ... | @@ -159,9 +163,13 @@ export default { | ... | @@ -159,9 +163,13 @@ export default { |
| 159 | radioChange(e) { | 163 | radioChange(e) { |
| 160 | console.log(e); | 164 | console.log(e); |
| 161 | if (e === 3) { | 165 | if (e === 3) { |
| 162 | - this.transferValue = this.historyInfo.defaultLogisticsWaybill; | 166 | + this.transferValue = this.historyInfo.logisticsWaybillDimension |
| 167 | + ? this.historyInfo.logisticsWaybillDimension | ||
| 168 | + : this.historyInfo.defaultLogisticsWaybill; | ||
| 163 | } else if (e === 6) { | 169 | } else if (e === 6) { |
| 164 | - this.transferValue1 = this.historyInfo.defaultCommodityDetail; | 170 | + this.transferValue1 = this.historyInfo.commodityDetailDimension |
| 171 | + ? this.historyInfo.commodityDetailDimension | ||
| 172 | + : this.historyInfo.defaultCommodityDetail; | ||
| 165 | } | 173 | } |
| 166 | }, | 174 | }, |
| 167 | 175 | ... | ... |
| ... | @@ -191,7 +191,7 @@ | ... | @@ -191,7 +191,7 @@ |
| 191 | ref="entryTable" | 191 | ref="entryTable" |
| 192 | :data="tableData" | 192 | :data="tableData" |
| 193 | :headerData="headerData" | 193 | :headerData="headerData" |
| 194 | - :maxHeight="500" | 194 | + :maxHeight="tableMaxheight" |
| 195 | :border="true" | 195 | :border="true" |
| 196 | :pagination="true" | 196 | :pagination="true" |
| 197 | :order="false" | 197 | :order="false" |
| ... | @@ -370,9 +370,7 @@ export default { | ... | @@ -370,9 +370,7 @@ export default { |
| 370 | this.search(0); | 370 | this.search(0); |
| 371 | }, | 371 | }, |
| 372 | mounted() { | 372 | mounted() { |
| 373 | - this.$nextTick(() => { | ||
| 374 | this.tableMaxheight = window.innerHeight - 300; | 373 | this.tableMaxheight = window.innerHeight - 300; |
| 375 | - }); | ||
| 376 | }, | 374 | }, |
| 377 | watch: { | 375 | watch: { |
| 378 | $route() { | 376 | $route() { | ... | ... |
| ... | @@ -194,17 +194,18 @@ export default { | ... | @@ -194,17 +194,18 @@ export default { |
| 194 | slot: true, | 194 | slot: true, |
| 195 | }, | 195 | }, |
| 196 | { | 196 | { |
| 197 | - name: "物流运单编号", | 197 | + name: "提运单号", |
| 198 | - value: "logisticsNo", | 198 | + value: "billNo", |
| 199 | width: "", | 199 | width: "", |
| 200 | align: "left", | 200 | align: "left", |
| 201 | }, | 201 | }, |
| 202 | { | 202 | { |
| 203 | - name: "提运单号", | 203 | + name: "物流运单编号", |
| 204 | - value: "billNo", | 204 | + value: "logisticsNo", |
| 205 | width: "", | 205 | width: "", |
| 206 | align: "left", | 206 | align: "left", |
| 207 | }, | 207 | }, |
| 208 | + | ||
| 208 | { | 209 | { |
| 209 | name: "清单编号", | 210 | name: "清单编号", |
| 210 | value: "invtNo", | 211 | value: "invtNo", | ... | ... |
| ... | @@ -48,7 +48,11 @@ | ... | @@ -48,7 +48,11 @@ |
| 48 | placeholder="" | 48 | placeholder="" |
| 49 | > | 49 | > |
| 50 | <el-option | 50 | <el-option |
| 51 | - v-for="(item, index) in $store.getters.dict.RECEIPT_STATUS.filter(fItem => fItem.itemChineseName !== '已提交')" | 51 | + v-for="( |
| 52 | + item, index | ||
| 53 | + ) in $store.getters.dict.RECEIPT_STATUS.filter( | ||
| 54 | + (fItem) => fItem.itemChineseName !== '已提交' | ||
| 55 | + )" | ||
| 52 | :key="index" | 56 | :key="index" |
| 53 | :label="item.itemChineseName" | 57 | :label="item.itemChineseName" |
| 54 | :value="item.itemValue" | 58 | :value="item.itemValue" |
| ... | @@ -146,9 +150,9 @@ | ... | @@ -146,9 +150,9 @@ |
| 146 | </div> | 150 | </div> |
| 147 | </TablePopover> | 151 | </TablePopover> |
| 148 | </template> | 152 | </template> |
| 149 | - <template v-slot:logisticsNo="scope"> | 153 | + <template v-slot:billNo="scope"> |
| 150 | <el-button type="text" @click="view(scope.row)">{{ | 154 | <el-button type="text" @click="view(scope.row)">{{ |
| 151 | - scope.row.logisticsNo | 155 | + scope.row.billNo |
| 152 | }}</el-button> | 156 | }}</el-button> |
| 153 | </template> | 157 | </template> |
| 154 | </Table> | 158 | </Table> |
| ... | @@ -186,18 +190,19 @@ export default { | ... | @@ -186,18 +190,19 @@ export default { |
| 186 | slot: true, | 190 | slot: true, |
| 187 | }, | 191 | }, |
| 188 | { | 192 | { |
| 189 | - name: "物流运单编号", | 193 | + name: "提运单号", |
| 190 | - value: "logisticsNo", | 194 | + value: "billNo", |
| 191 | width: "", | 195 | width: "", |
| 192 | align: "left", | 196 | align: "left", |
| 193 | - slot: true | 197 | + slot: true, |
| 194 | }, | 198 | }, |
| 195 | { | 199 | { |
| 196 | - name: "提运单号", | 200 | + name: "物流运单编号", |
| 197 | - value: "billNo", | 201 | + value: "logisticsNo", |
| 198 | width: "", | 202 | width: "", |
| 199 | align: "left", | 203 | align: "left", |
| 200 | }, | 204 | }, |
| 205 | + | ||
| 201 | { | 206 | { |
| 202 | name: "物流企业名称", | 207 | name: "物流企业名称", |
| 203 | value: "logisticsName", | 208 | value: "logisticsName", |
| ... | @@ -295,13 +300,13 @@ export default { | ... | @@ -295,13 +300,13 @@ export default { |
| 295 | if (val == 0) { | 300 | if (val == 0) { |
| 296 | this.page.pageIndex = 1; | 301 | this.page.pageIndex = 1; |
| 297 | } | 302 | } |
| 298 | - let obj = {...this.sreachFormData}; | 303 | + let obj = { ...this.sreachFormData }; |
| 299 | obj.pageIndex = this.page.pageIndex; | 304 | obj.pageIndex = this.page.pageIndex; |
| 300 | obj.pageSize = this.page.pageSize; | 305 | obj.pageSize = this.page.pageSize; |
| 301 | obj.createTimeStart = ""; | 306 | obj.createTimeStart = ""; |
| 302 | obj.createTimeEnd = ""; | 307 | obj.createTimeEnd = ""; |
| 303 | - obj.logisticsNo = obj.logisticsWaybillNumber | 308 | + obj.logisticsNo = obj.logisticsWaybillNumber; |
| 304 | - delete obj.logisticsWaybillNumber | 309 | + delete obj.logisticsWaybillNumber; |
| 305 | if (obj.logisticsNo != null && obj.logisticsNo != "") { | 310 | if (obj.logisticsNo != null && obj.logisticsNo != "") { |
| 306 | obj.logisticsNo = obj.logisticsNo.split("\n"); | 311 | obj.logisticsNo = obj.logisticsNo.split("\n"); |
| 307 | } else { | 312 | } else { |
| ... | @@ -311,7 +316,7 @@ export default { | ... | @@ -311,7 +316,7 @@ export default { |
| 311 | obj.createTimeStart = obj.createTime[0]; | 316 | obj.createTimeStart = obj.createTime[0]; |
| 312 | obj.createTimeEnd = obj.createTime[1]; | 317 | obj.createTimeEnd = obj.createTime[1]; |
| 313 | } | 318 | } |
| 314 | - delete obj.createTime | 319 | + delete obj.createTime; |
| 315 | // if (obj.billNo != null && obj.billNo != "") { | 320 | // if (obj.billNo != null && obj.billNo != "") { |
| 316 | // obj.billNo = obj.billNo.split("\n"); | 321 | // obj.billNo = obj.billNo.split("\n"); |
| 317 | // } else { | 322 | // } else { |
| ... | @@ -362,7 +367,7 @@ export default { | ... | @@ -362,7 +367,7 @@ export default { |
| 362 | }) | 367 | }) |
| 363 | .finally(() => { | 368 | .finally(() => { |
| 364 | this.$nextTick(() => { | 369 | this.$nextTick(() => { |
| 365 | - this.$store.dispatch('setLoadingState', false) | 370 | + this.$store.dispatch("setLoadingState", false); |
| 366 | this.$refs.returnStatusPopover.tableLoading = false; | 371 | this.$refs.returnStatusPopover.tableLoading = false; |
| 367 | }); | 372 | }); |
| 368 | }); | 373 | }); | ... | ... |
| ... | @@ -52,8 +52,7 @@ | ... | @@ -52,8 +52,7 @@ |
| 52 | :border="true" | 52 | :border="true" |
| 53 | :pagination="false" | 53 | :pagination="false" |
| 54 | :order="false" | 54 | :order="false" |
| 55 | - :height="tableMaxheight + 'px'" | 55 | + :maxHeight="tableMaxheight" |
| 56 | - :maxHeight="tableMaxheight + 'px'" | ||
| 57 | > | 56 | > |
| 58 | </Table> | 57 | </Table> |
| 59 | 58 | ... | ... |
-
Please register or login to post a comment