Showing
10 changed files
with
744 additions
and
565 deletions
| ... | @@ -42,6 +42,8 @@ export function updateOrAddFlight(form){ | ... | @@ -42,6 +42,8 @@ export function updateOrAddFlight(form){ |
| 42 | form.declarationCategory = form.declarationCategory.join(';'); | 42 | form.declarationCategory = form.declarationCategory.join(';'); |
| 43 | form.serviceCode = form.serviceCode.join(';'); | 43 | form.serviceCode = form.serviceCode.join(';'); |
| 44 | form.subCategory = form.subCategory.join(';'); | 44 | form.subCategory = form.subCategory.join(';'); |
| 45 | + form.handlingCode = form.handlingCode.join(';'); | ||
| 46 | + | ||
| 45 | 47 | ||
| 46 | return request({ | 48 | return request({ |
| 47 | url:'/destinationFlight/updateOrAddFlight', | 49 | url:'/destinationFlight/updateOrAddFlight', | ... | ... |
| ... | @@ -35,7 +35,7 @@ | ... | @@ -35,7 +35,7 @@ |
| 35 | :base-path="route.path" | 35 | :base-path="route.path" |
| 36 | /> | 36 | /> |
| 37 | </el-menu> | 37 | </el-menu> |
| 38 | - <div class="version">version:0.5.1</div> | 38 | + <div class="version">{{ version }}</div> |
| 39 | <!-- </el-scrollbar> --> | 39 | <!-- </el-scrollbar> --> |
| 40 | </div> | 40 | </div> |
| 41 | </template> | 41 | </template> |
| ... | @@ -45,8 +45,14 @@ import { mapGetters, mapState } from "vuex"; | ... | @@ -45,8 +45,14 @@ import { mapGetters, mapState } from "vuex"; |
| 45 | import Logo from "./Logo"; | 45 | import Logo from "./Logo"; |
| 46 | import SidebarItem from "./SidebarItem"; | 46 | import SidebarItem from "./SidebarItem"; |
| 47 | import variables from "@/assets/styles/variables.scss"; | 47 | import variables from "@/assets/styles/variables.scss"; |
| 48 | +import settings from "@/settings"; | ||
| 48 | 49 | ||
| 49 | export default { | 50 | export default { |
| 51 | + data() { | ||
| 52 | + return { | ||
| 53 | + version: "", | ||
| 54 | + }; | ||
| 55 | + }, | ||
| 50 | components: { SidebarItem, Logo }, | 56 | components: { SidebarItem, Logo }, |
| 51 | computed: { | 57 | computed: { |
| 52 | ...mapState(["settings"]), | 58 | ...mapState(["settings"]), |
| ... | @@ -70,6 +76,9 @@ export default { | ... | @@ -70,6 +76,9 @@ export default { |
| 70 | return !this.sidebar.opened; | 76 | return !this.sidebar.opened; |
| 71 | }, | 77 | }, |
| 72 | }, | 78 | }, |
| 79 | + created() { | ||
| 80 | + this.version = settings.version; | ||
| 81 | + }, | ||
| 73 | }; | 82 | }; |
| 74 | </script> | 83 | </script> |
| 75 | 84 | ... | ... |
| ... | @@ -37,5 +37,10 @@ module.exports = { | ... | @@ -37,5 +37,10 @@ module.exports = { |
| 37 | * The default is only used in the production env | 37 | * The default is only used in the production env |
| 38 | * If you want to also use it in dev, you can pass ['production', 'development'] | 38 | * If you want to also use it in dev, you can pass ['production', 'development'] |
| 39 | */ | 39 | */ |
| 40 | - errorLog: 'production' | 40 | + errorLog: 'production', |
| 41 | + | ||
| 42 | + /** | ||
| 43 | + * 版本号 | ||
| 44 | + */ | ||
| 45 | + version:'version:0.5.3' | ||
| 41 | } | 46 | } | ... | ... |
| ... | @@ -9,10 +9,9 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' | ... | @@ -9,10 +9,9 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' |
| 9 | const service = axios.create({ | 9 | const service = axios.create({ |
| 10 | // axios中请求配置有baseURL选项,表示请求URL公共部分 | 10 | // axios中请求配置有baseURL选项,表示请求URL公共部分 |
| 11 | //baseURL: process.env.VUE_APP_BASE_API, | 11 | //baseURL: process.env.VUE_APP_BASE_API, |
| 12 | - //baseURL: 'http://192.168.1.45:8080', | 12 | + baseURL: `http://47.103.140.98:9002`, //阿里云服务器 |
| 13 | - baseURL: `http://47.103.140.98:9002`, | 13 | + // baseURL: 'https://imacuat.zmd.apac.fedex.com/IMAC2', //uat服务器 |
| 14 | - // baseURL: 'https://imacuat.zmd.apac.fedex.com/IMAC2', | 14 | + // baseURL: 'http://192.168.1.134:18080', //测试服务器 |
| 15 | - // baseURL: 'http://192.168.1.134:18080', | ||
| 16 | 15 | ||
| 17 | // 超时 | 16 | // 超时 |
| 18 | timeout: 30000 | 17 | timeout: 30000 | ... | ... |
| ... | @@ -5,9 +5,9 @@ const mimeMap = { | ... | @@ -5,9 +5,9 @@ const mimeMap = { |
| 5 | xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', | 5 | xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', |
| 6 | zip: 'application/zip' | 6 | zip: 'application/zip' |
| 7 | } | 7 | } |
| 8 | -// const baseUrl = 'https://imacuat.zmd.apac.fedex.com/IMAC2' | 8 | +// const baseUrl = 'https://imacuat.zmd.apac.fedex.com/IMAC2' // uat服务器 |
| 9 | -const baseUrl = 'http://47.103.140.98:9002' | 9 | +const baseUrl = 'http://47.103.140.98:9002' //阿里云服务器 |
| 10 | -// const baseUrl = 'http://192.168.1.134:18080' | 10 | +// const baseUrl = 'http://192.168.1.134:18080' //测试服务器 |
| 11 | export function downLoadZip(str, filename) { | 11 | export function downLoadZip(str, filename) { |
| 12 | var url = baseUrl + str | 12 | var url = baseUrl + str |
| 13 | axios({ | 13 | axios({ | ... | ... |
| ... | @@ -2,87 +2,55 @@ | ... | @@ -2,87 +2,55 @@ |
| 2 | <div style="margin: 40px" v-loading="loading"> | 2 | <div style="margin: 40px" v-loading="loading"> |
| 3 | <el-empty description="找不到这条数据!" v-if="isEmpty"></el-empty> | 3 | <el-empty description="找不到这条数据!" v-if="isEmpty"></el-empty> |
| 4 | <template v-else> | 4 | <template v-else> |
| 5 | - <el-form | 5 | + <el-form ref="form" :model="form" label-width="200px" size="small" :disabled="disable" :rules="rules"> |
| 6 | - ref="form" | ||
| 7 | - :model="form" | ||
| 8 | - label-width="200px" | ||
| 9 | - size="small" | ||
| 10 | - :disabled="disable" | ||
| 11 | - :rules="rules" | ||
| 12 | - > | ||
| 13 | - <el-form-item label="航班号" prop="purposeOfFlightNo"> | ||
| 14 | - <el-input | ||
| 15 | - v-model.trim="form.purposeOfFlightNo" | ||
| 16 | - style="width: 30%" | ||
| 17 | - :disabled="nameDisabled" | ||
| 18 | - ></el-input> | ||
| 19 | - </el-form-item> | ||
| 20 | - | ||
| 21 | - <el-form-item> | ||
| 22 | - <el-alert | ||
| 23 | - title="提示:站点之间用回车符分隔" | ||
| 24 | - type="warning" | ||
| 25 | - show-icon | ||
| 26 | - size="small" | ||
| 27 | - :closable="false" | ||
| 28 | - style="height: 30px; width: fit-content" | ||
| 29 | - > | ||
| 30 | - </el-alert> | ||
| 31 | - </el-form-item> | ||
| 32 | <el-row :gutter="20"> | 6 | <el-row :gutter="20"> |
| 33 | - <el-col :span="10"> | 7 | + <el-col :span="8"> |
| 34 | - <el-form-item label="站点包含"> | 8 | + <el-form-item label="航班号" prop="purposeOfFlightNo"> |
| 35 | - <!-- <el-alert title="提示:站点之间用回车符分隔" type="info" show-icon size="small" :closable="false" style="height:30px; margin-buttom"> </el-alert> --> | 9 | + <el-input v-model.trim="form.purposeOfFlightNo" style="width: 30%" :disabled="nameDisabled"></el-input> |
| 36 | - <el-input | ||
| 37 | - type="textarea" | ||
| 38 | - v-model="form.location" | ||
| 39 | - :rows="6" | ||
| 40 | - resize="none" | ||
| 41 | - ></el-input> | ||
| 42 | </el-form-item> | 10 | </el-form-item> |
| 43 | </el-col> | 11 | </el-col> |
| 44 | - <el-col :span="10"> | 12 | + <el-col :span="12"> |
| 45 | - <el-form-item label="站点不包含"> | 13 | + <el-form-item label="航班预审" prop="isNeedRequired"> |
| 46 | - <el-input | 14 | + <el-switch v-model="isNeedRequired" :active-value="1" :inactive-value="0"> |
| 47 | - type="textarea" | 15 | + </el-switch> |
| 48 | - v-model="form.notLocation" | ||
| 49 | - :rows="6" | ||
| 50 | - resize="none" | ||
| 51 | - ></el-input> | ||
| 52 | </el-form-item> | 16 | </el-form-item> |
| 53 | </el-col> | 17 | </el-col> |
| 54 | </el-row> | 18 | </el-row> |
| 19 | + <el-form-item> | ||
| 20 | + <el-row :gutter="20"> | ||
| 21 | + <el-col :span="6"> | ||
| 22 | + <el-radio v-model="isLocation" label="1" size="mini">站点包含</el-radio> | ||
| 23 | + <el-radio v-model="isLocation" label="2" size="mini">站点不包含</el-radio> | ||
| 24 | + </el-col> | ||
| 25 | + <el-col :span="6"> | ||
| 26 | + <el-alert title="提示:站点之间用回车符分隔" type="warning" show-icon size="mini" :closable="false" | ||
| 27 | + style="height: 30px; width: fit-content"> | ||
| 28 | + </el-alert> | ||
| 29 | + </el-col> | ||
| 30 | + </el-row> | ||
| 31 | + </el-form-item> | ||
| 32 | + | ||
| 33 | + <el-form-item label="站点包含" v-show="isLocation == 1"> | ||
| 34 | + <el-input type="textarea" v-model="form.location" :rows="6" resize="none" style="width: 600px"></el-input> | ||
| 35 | + </el-form-item> | ||
| 36 | + <el-form-item label="站点不包含" v-show="isLocation == 2"> | ||
| 37 | + <el-input type="textarea" v-model="form.notLocation" :rows="6" resize="none" style="width: 600px"></el-input> | ||
| 38 | + </el-form-item> | ||
| 55 | 39 | ||
| 56 | <el-form-item> | 40 | <el-form-item> |
| 57 | - <el-alert | 41 | + <el-alert title="提示:URSA之间用分号分隔,例:F2;F3;P_" type="warning" show-icon size="mini" :closable="false" |
| 58 | - title="提示:URSA之间用分号分隔,例:F2;F3;P_" | 42 | + style="height: 30px; width: fit-content"> |
| 59 | - type="warning" | ||
| 60 | - show-icon | ||
| 61 | - size="small" | ||
| 62 | - :closable="false" | ||
| 63 | - style="height: 30px; width: fit-content" | ||
| 64 | - > | ||
| 65 | </el-alert> | 43 | </el-alert> |
| 66 | </el-form-item> | 44 | </el-form-item> |
| 67 | <el-row :gutter="20"> | 45 | <el-row :gutter="20"> |
| 68 | <el-col :span="10"> | 46 | <el-col :span="10"> |
| 69 | <el-form-item label="URSA包含"> | 47 | <el-form-item label="URSA包含"> |
| 70 | - <el-input | 48 | + <el-input type="textarea" v-model.trim="form.includeUrsa" :rows="6" resize="none"></el-input> |
| 71 | - type="textarea" | ||
| 72 | - v-model.trim="form.includeUrsa" | ||
| 73 | - :rows="6" | ||
| 74 | - resize="none" | ||
| 75 | - ></el-input> | ||
| 76 | </el-form-item> | 49 | </el-form-item> |
| 77 | </el-col> | 50 | </el-col> |
| 78 | <el-col :span="10"> | 51 | <el-col :span="10"> |
| 79 | <el-form-item label="URSA不包含"> | 52 | <el-form-item label="URSA不包含"> |
| 80 | - <el-input | 53 | + <el-input type="textarea" v-model.trim="form.notIncludeUrsa" :rows="6" resize="none"></el-input> |
| 81 | - type="textarea" | ||
| 82 | - v-model.trim="form.notIncludeUrsa" | ||
| 83 | - :rows="6" | ||
| 84 | - resize="none" | ||
| 85 | - ></el-input> | ||
| 86 | </el-form-item> | 54 | </el-form-item> |
| 87 | </el-col> | 55 | </el-col> |
| 88 | </el-row> | 56 | </el-row> |
| ... | @@ -90,63 +58,41 @@ | ... | @@ -90,63 +58,41 @@ |
| 90 | <el-form-item label="件数"> | 58 | <el-form-item label="件数"> |
| 91 | <el-col :span="3"> | 59 | <el-col :span="3"> |
| 92 | <!-- <el-input v-model="form.minNumOfPieces"></el-input> --> | 60 | <!-- <el-input v-model="form.minNumOfPieces"></el-input> --> |
| 93 | - <el-input-number | 61 | + <el-input-number v-model=" |
| 94 | - v-model=" | ||
| 95 | form.minNumOfPieces == 0 | 62 | form.minNumOfPieces == 0 |
| 96 | ? (form.minNumOfPieces = undefined) | 63 | ? (form.minNumOfPieces = undefined) |
| 97 | : form.minNumOfPieces | 64 | : form.minNumOfPieces |
| 98 | - " | 65 | + " :precision="0" :controls="false" style="width: 100%"></el-input-number> |
| 99 | - :precision="0" | ||
| 100 | - :controls="false" | ||
| 101 | - style="width: 100%" | ||
| 102 | - ></el-input-number> | ||
| 103 | </el-col> | 66 | </el-col> |
| 104 | <el-col style="text-align: center" :span="1">-</el-col> | 67 | <el-col style="text-align: center" :span="1">-</el-col> |
| 105 | <el-col :span="3"> | 68 | <el-col :span="3"> |
| 106 | <!-- <el-input v-model="form.maxNumOfPieces"></el-input> --> | 69 | <!-- <el-input v-model="form.maxNumOfPieces"></el-input> --> |
| 107 | - <el-input-number | 70 | + <el-input-number v-model=" |
| 108 | - v-model=" | ||
| 109 | form.maxNumOfPieces == 0 | 71 | form.maxNumOfPieces == 0 |
| 110 | ? (form.maxNumOfPieces = undefined) | 72 | ? (form.maxNumOfPieces = undefined) |
| 111 | : form.maxNumOfPieces | 73 | : form.maxNumOfPieces |
| 112 | - " | 74 | + " :precision="0" :controls="false" style="width: 100%" :min="form.minNumOfPieces + 1"></el-input-number> |
| 113 | - :precision="0" | ||
| 114 | - :controls="false" | ||
| 115 | - style="width: 100%" | ||
| 116 | - :min="form.minNumOfPieces + 1" | ||
| 117 | - ></el-input-number> | ||
| 118 | </el-col> | 75 | </el-col> |
| 119 | </el-form-item> | 76 | </el-form-item> |
| 120 | 77 | ||
| 121 | <el-form-item label="重量"> | 78 | <el-form-item label="重量"> |
| 122 | <el-col :span="3"> | 79 | <el-col :span="3"> |
| 123 | <!-- <el-input v-model="form.minWeight"></el-input> --> | 80 | <!-- <el-input v-model="form.minWeight"></el-input> --> |
| 124 | - <el-input-number | 81 | + <el-input-number v-model=" |
| 125 | - v-model=" | ||
| 126 | form.minWeight == 0 | 82 | form.minWeight == 0 |
| 127 | ? (form.minWeight = undefined) | 83 | ? (form.minWeight = undefined) |
| 128 | : form.minWeight | 84 | : form.minWeight |
| 129 | - " | 85 | + " :precision="2" :controls="false" style="width: 100%"></el-input-number> |
| 130 | - :precision="2" | ||
| 131 | - :controls="false" | ||
| 132 | - style="width: 100%" | ||
| 133 | - ></el-input-number> | ||
| 134 | </el-col> | 86 | </el-col> |
| 135 | <el-col :span="1" style="text-align: center"><span>Kg</span></el-col> | 87 | <el-col :span="1" style="text-align: center"><span>Kg</span></el-col> |
| 136 | <el-col style="text-align: center" :span="1">-</el-col> | 88 | <el-col style="text-align: center" :span="1">-</el-col> |
| 137 | <el-col :span="3"> | 89 | <el-col :span="3"> |
| 138 | <!-- <el-input v-model="form.maxWeight"></el-input> --> | 90 | <!-- <el-input v-model="form.maxWeight"></el-input> --> |
| 139 | - <el-input-number | 91 | + <el-input-number v-model=" |
| 140 | - v-model=" | ||
| 141 | form.maxWeight == 0 | 92 | form.maxWeight == 0 |
| 142 | ? (form.maxWeight = undefined) | 93 | ? (form.maxWeight = undefined) |
| 143 | : form.maxWeight | 94 | : form.maxWeight |
| 144 | - " | 95 | + " :precision="2" :controls="false" style="width: 100%" :min="form.minWeight + 0.01"></el-input-number> |
| 145 | - :precision="2" | ||
| 146 | - :controls="false" | ||
| 147 | - style="width: 100%" | ||
| 148 | - :min="form.minWeight + 0.01" | ||
| 149 | - ></el-input-number> | ||
| 150 | </el-col> | 96 | </el-col> |
| 151 | <el-col :span="1" style="text-align: center"><span>Kg</span></el-col> | 97 | <el-col :span="1" style="text-align: center"><span>Kg</span></el-col> |
| 152 | </el-form-item> | 98 | </el-form-item> |
| ... | @@ -154,12 +100,8 @@ | ... | @@ -154,12 +100,8 @@ |
| 154 | <el-form-item label="申报类别"> | 100 | <el-form-item label="申报类别"> |
| 155 | <el-card shadow="never" style="width: 70%"> | 101 | <el-card shadow="never" style="width: 70%"> |
| 156 | <el-checkbox-group v-model="form.typeOfGoods"> | 102 | <el-checkbox-group v-model="form.typeOfGoods"> |
| 157 | - <el-checkbox | 103 | + <el-checkbox v-for="item in cargoType" :key="item.id" :label="item.chineseName" :name="item.chineseName"> |
| 158 | - v-for="item in cargoType" | 104 | + </el-checkbox> |
| 159 | - :key="item.id" | ||
| 160 | - :label="item.chineseName" | ||
| 161 | - :name="item.chineseName" | ||
| 162 | - ></el-checkbox> | ||
| 163 | </el-checkbox-group> | 105 | </el-checkbox-group> |
| 164 | </el-card> | 106 | </el-card> |
| 165 | </el-form-item> | 107 | </el-form-item> |
| ... | @@ -167,12 +109,8 @@ | ... | @@ -167,12 +109,8 @@ |
| 167 | <el-form-item label="货物类型"> | 109 | <el-form-item label="货物类型"> |
| 168 | <el-card shadow="never" style="width: 70%"> | 110 | <el-card shadow="never" style="width: 70%"> |
| 169 | <el-checkbox-group v-model="form.declarationCategory"> | 111 | <el-checkbox-group v-model="form.declarationCategory"> |
| 170 | - <el-checkbox | 112 | + <el-checkbox v-for="item in cargoStatus" :key="item.id" :label="item.chineseName" :name="item.chineseName" |
| 171 | - v-for="item in cargoStatus" | 113 | + disabled></el-checkbox> |
| 172 | - :key="item.id" | ||
| 173 | - :label="item.chineseName" | ||
| 174 | - :name="item.chineseName" | ||
| 175 | - ></el-checkbox> | ||
| 176 | </el-checkbox-group> | 114 | </el-checkbox-group> |
| 177 | </el-card> | 115 | </el-card> |
| 178 | </el-form-item> | 116 | </el-form-item> |
| ... | @@ -180,12 +118,17 @@ | ... | @@ -180,12 +118,17 @@ |
| 180 | <el-form-item label="Service Code"> | 118 | <el-form-item label="Service Code"> |
| 181 | <el-card shadow="never" style="width: 70%"> | 119 | <el-card shadow="never" style="width: 70%"> |
| 182 | <el-checkbox-group v-model="form.serviceCode"> | 120 | <el-checkbox-group v-model="form.serviceCode"> |
| 183 | - <el-checkbox | 121 | + <el-checkbox v-for="item in serviceCode" :key="item.id" :label="item.englishName" |
| 184 | - v-for="item in serviceCode" | 122 | + :name="item.englishName"></el-checkbox> |
| 185 | - :key="item.id" | 123 | + </el-checkbox-group> |
| 186 | - :label="item.englishName" | 124 | + </el-card> |
| 187 | - :name="item.englishName" | 125 | + </el-form-item> |
| 188 | - ></el-checkbox> | 126 | + |
| 127 | + <el-form-item label="Handling Code"> | ||
| 128 | + <el-card shadow="never" style="width: 70%"> | ||
| 129 | + <el-checkbox-group v-model="form.handlingCode"> | ||
| 130 | + <el-checkbox v-for="item in handlingCode" :key="item.id" :label="item.englishName" | ||
| 131 | + :name="item.englishName"></el-checkbox> | ||
| 189 | </el-checkbox-group> | 132 | </el-checkbox-group> |
| 190 | </el-card> | 133 | </el-card> |
| 191 | </el-form-item> | 134 | </el-form-item> |
| ... | @@ -193,24 +136,17 @@ | ... | @@ -193,24 +136,17 @@ |
| 193 | <el-form-item label="Sub Category"> | 136 | <el-form-item label="Sub Category"> |
| 194 | <el-card shadow="never" style="width: 70%"> | 137 | <el-card shadow="never" style="width: 70%"> |
| 195 | <el-checkbox-group v-model="form.subCategory"> | 138 | <el-checkbox-group v-model="form.subCategory"> |
| 196 | - <el-checkbox | 139 | + <el-checkbox v-for="item in subCategory" :key="item.id" :label="item.englishName" |
| 197 | - v-for="item in subCategory" | 140 | + :name="item.englishName"></el-checkbox> |
| 198 | - :key="item.id" | ||
| 199 | - :label="item.englishName" | ||
| 200 | - :name="item.englishName" | ||
| 201 | - ></el-checkbox> | ||
| 202 | </el-checkbox-group> | 141 | </el-checkbox-group> |
| 203 | </el-card> | 142 | </el-card> |
| 204 | </el-form-item> | 143 | </el-form-item> |
| 144 | + | ||
| 145 | + | ||
| 205 | </el-form> | 146 | </el-form> |
| 206 | <el-row style="margin-left: 200px"> | 147 | <el-row style="margin-left: 200px"> |
| 207 | - <el-button | 148 | + <el-button type="primary" size="small" v-if="$route.params.handle != 'detail'" @click="submit('form')" |
| 208 | - type="primary" | 149 | + :loading="btnLoading"> |
| 209 | - size="small" | ||
| 210 | - v-if="$route.params.handle != 'detail'" | ||
| 211 | - @click="submit('form')" | ||
| 212 | - :loading="btnLoading" | ||
| 213 | - > | ||
| 214 | <span v-if="$route.params.handle === 'add'">添加</span> | 150 | <span v-if="$route.params.handle === 'add'">添加</span> |
| 215 | <span v-else>保存</span> | 151 | <span v-else>保存</span> |
| 216 | </el-button> | 152 | </el-button> |
| ... | @@ -221,210 +157,308 @@ | ... | @@ -221,210 +157,308 @@ |
| 221 | </template> | 157 | </template> |
| 222 | 158 | ||
| 223 | <script> | 159 | <script> |
| 224 | -import { | 160 | + import { |
| 225 | - findByFlightId, | 161 | + findByFlightId, |
| 226 | - updateOrAddFlight, | 162 | + updateOrAddFlight, |
| 227 | - allDictData, | 163 | + allDictData, |
| 228 | - findDestinationFltRuleByActualFlight, | 164 | + findDestinationFltRuleByActualFlight, |
| 229 | -} from "@/api/destinationFlight"; | 165 | + } from "@/api/destinationFlight"; |
| 230 | 166 | ||
| 231 | -export default { | 167 | + export default { |
| 232 | - data() { | 168 | + data() { |
| 233 | - return { | 169 | + return { |
| 234 | - form: { | 170 | + form: { |
| 171 | + typeOfGoods: [], | ||
| 172 | + declarationCategory: [], | ||
| 173 | + serviceCode: [], | ||
| 174 | + subCategory: [], | ||
| 175 | + handlingCode:[], | ||
| 176 | + }, | ||
| 177 | + rules: { | ||
| 178 | + purposeOfFlightNo: [{ | ||
| 179 | + required: true, | ||
| 180 | + message: "请输入航班号", | ||
| 181 | + trigger: "blur" | ||
| 182 | + }, ], | ||
| 183 | + }, | ||
| 235 | typeOfGoods: [], | 184 | typeOfGoods: [], |
| 236 | declarationCategory: [], | 185 | declarationCategory: [], |
| 186 | + formServiceCode: [], | ||
| 187 | + formHandlingCode:[], | ||
| 188 | + formSubCategory: [], | ||
| 189 | + cargoType: [], | ||
| 190 | + cargoStatus: [], | ||
| 237 | serviceCode: [], | 191 | serviceCode: [], |
| 192 | + handlingCode:[], | ||
| 238 | subCategory: [], | 193 | subCategory: [], |
| 239 | - }, | 194 | + isLocation: "1", |
| 240 | - rules: { | 195 | + isNeedRequired: 0, |
| 241 | - purposeOfFlightNo: [ | 196 | + disable: false, |
| 242 | - { required: true, message: "请输入航班号", trigger: "blur" }, | 197 | + nameDisabled: false, |
| 243 | - ], | 198 | + btnLoading: false, |
| 244 | - }, | 199 | + loading: true, |
| 245 | - typeOfGoods: [], | 200 | + isEmpty: false, |
| 246 | - declarationCategory: [], | 201 | + }; |
| 247 | - formServiceCode: [], | ||
| 248 | - formSubCategory: [], | ||
| 249 | - cargoType: [], | ||
| 250 | - cargoStatus: [], | ||
| 251 | - serviceCode: [], | ||
| 252 | - subCategory: [], | ||
| 253 | - disable: false, | ||
| 254 | - nameDisabled: false, | ||
| 255 | - btnLoading: false, | ||
| 256 | - loading: true, | ||
| 257 | - isEmpty: false, | ||
| 258 | - }; | ||
| 259 | - }, | ||
| 260 | - methods: { | ||
| 261 | - submit(form) { | ||
| 262 | - this.$refs[form].validate((valid) => { | ||
| 263 | - if (!valid) { | ||
| 264 | - return false; | ||
| 265 | - } | ||
| 266 | - }); | ||
| 267 | - | ||
| 268 | - this.btnLoading = true; | ||
| 269 | - let handle = this.$route.params.handle; | ||
| 270 | - if (handle === "update") { | ||
| 271 | - //修改,获取id | ||
| 272 | - this.form.id = this.$route.params.id; | ||
| 273 | - } | ||
| 274 | - | ||
| 275 | - //调用接口 | ||
| 276 | - this.typeOfGoods = this.form.typeOfGoods; | ||
| 277 | - this.declarationCategory = this.form.declarationCategory; | ||
| 278 | - this.formServiceCode = this.form.serviceCode; | ||
| 279 | - this.formSubCategory = this.form.subCategory; | ||
| 280 | - updateOrAddFlight(this.form).then((response) => { | ||
| 281 | - if (response.code === 200) { | ||
| 282 | - this.$message({ | ||
| 283 | - showClose: true, | ||
| 284 | - message: "成功", | ||
| 285 | - type: "success", | ||
| 286 | - }); | ||
| 287 | - this.close(); | ||
| 288 | - } else { | ||
| 289 | - this.$message({ | ||
| 290 | - showClose: true, | ||
| 291 | - message: response.msg, | ||
| 292 | - type: "error", | ||
| 293 | - }); | ||
| 294 | - this.btnLoading = false; | ||
| 295 | - } | ||
| 296 | - }); | ||
| 297 | - this.form.typeOfGoods = this.typeOfGoods; | ||
| 298 | - this.form.declarationCategory = this.declarationCategory; | ||
| 299 | - this.form.serviceCode = this.formServiceCode; | ||
| 300 | - this.form.subCategory = this.formSubCategory; | ||
| 301 | }, | 202 | }, |
| 302 | - close() { | 203 | + methods: { |
| 303 | - this.$store.state.tagsView.visitedViews.splice( | 204 | + //排序 |
| 304 | - this.$store.state.tagsView.visitedViews.findIndex( | 205 | + sorttodo(arr, englishName){ |
| 305 | - (item) => item.path === this.$route.path | 206 | + var index = 1, newArr = [], length = arr.length; |
| 306 | - ), | 207 | + for ( var i=0; i<length; i++){ |
| 307 | - 1 | 208 | + if ( arr[i].englishName === englishName ){ |
| 308 | - ); | 209 | + newArr[0] = arr[i]; |
| 309 | - this.$router.push( | 210 | + } |
| 310 | - this.$store.state.tagsView.visitedViews[ | 211 | + else{ |
| 311 | - this.$store.state.tagsView.visitedViews.length - 1 | 212 | + newArr[index++] = arr[i]; |
| 312 | - ].path | 213 | + } |
| 313 | - ); | 214 | + } |
| 314 | - }, | 215 | + return newArr; |
| 315 | - }, | 216 | + }, |
| 316 | - created() { | ||
| 317 | - let handle = this.$route.params.handle; | ||
| 318 | 217 | ||
| 319 | - allDictData().then((response) => { | 218 | + submit(form) { |
| 320 | - if (response.code != 200) { | 219 | + this.$refs[form].validate((valid) => { |
| 321 | - this.$message({ | 220 | + if (!valid) { |
| 322 | - showClose: true, | 221 | + return false; |
| 323 | - message: response.msg, | 222 | + } |
| 324 | - type: "error", | ||
| 325 | }); | 223 | }); |
| 326 | - reuturn; | ||
| 327 | - } | ||
| 328 | - let dict = response.data; | ||
| 329 | - this.cargoType = dict.cargoType; | ||
| 330 | - this.cargoStatus = dict.cargoStatus; | ||
| 331 | - this.serviceCode = dict.serviceCode.sort((a, b) => | ||
| 332 | - a.englishName.localeCompare(b.englishName) | ||
| 333 | - ); | ||
| 334 | - this.subCategory = dict.subCategory; | ||
| 335 | - }); | ||
| 336 | - if (handle === "detail") { | ||
| 337 | - this.disable = true; | ||
| 338 | - } | ||
| 339 | 224 | ||
| 340 | - if (handle != "add") { | 225 | + this.btnLoading = true; |
| 341 | - this.nameDisabled = true; | 226 | + let handle = this.$route.params.handle; |
| 342 | - let id = this.$route.params.id; | 227 | + if (handle === "update") { |
| 228 | + //修改,获取id | ||
| 229 | + this.form.id = this.$route.params.id; | ||
| 230 | + } | ||
| 343 | 231 | ||
| 344 | - if (isNaN(Number(id))) { | 232 | + //调用接口 |
| 345 | - findDestinationFltRuleByActualFlight(id).then((response) => { | 233 | + this.typeOfGoods = this.form.typeOfGoods; |
| 346 | - if (response.code != 200) { | 234 | + this.declarationCategory = this.form.declarationCategory; |
| 235 | + this.formServiceCode = this.form.serviceCode; | ||
| 236 | + this.formHandlingCode = this.form.handlingCode; | ||
| 237 | + this.formSubCategory = this.form.subCategory; | ||
| 238 | + this.form.isNeedRequired = this.isNeedRequired; | ||
| 239 | + if (this.isLocation == 1) { | ||
| 240 | + this.form.notLocation = ""; | ||
| 241 | + } else { | ||
| 242 | + this.form.location = ""; | ||
| 243 | + } | ||
| 244 | + if ( | ||
| 245 | + this.form.includeUrsa && | ||
| 246 | + this.form.includeUrsa.length != 0 && | ||
| 247 | + this.form.notIncludeUrsa && | ||
| 248 | + this.form.notIncludeUrsa.length != 0 | ||
| 249 | + ) { | ||
| 250 | + let include = this.form.includeUrsa.split(";"); | ||
| 251 | + let notInclude = this.form.notIncludeUrsa.split(";"); | ||
| 252 | + let errorList = []; | ||
| 253 | + notInclude.forEach((element) => { | ||
| 254 | + if (element.indexOf("_") > 0) { | ||
| 255 | + errorList.push(element); | ||
| 256 | + } else { | ||
| 257 | + let flag = 0; | ||
| 258 | + for (let i = 0; i < include.length; i++) { | ||
| 259 | + if ( | ||
| 260 | + element == "" || | ||
| 261 | + (include[i].indexOf("_") > 0 && | ||
| 262 | + include[i].substring(0, 1) == element.substring(0, 1)) | ||
| 263 | + ) { | ||
| 264 | + flag = 1; | ||
| 265 | + break; | ||
| 266 | + } | ||
| 267 | + } | ||
| 268 | + if (flag == 0) { | ||
| 269 | + errorList.push(element); | ||
| 270 | + } | ||
| 271 | + } | ||
| 272 | + }); | ||
| 273 | + console.log(errorList); | ||
| 274 | + if (errorList.length != 0) { | ||
| 347 | this.$message({ | 275 | this.$message({ |
| 348 | showClose: true, | 276 | showClose: true, |
| 349 | - message: response.msg, | 277 | + message: "URSA不包含中[" + |
| 278 | + errorList + | ||
| 279 | + "]错误,URSA不包含必须属于URSA包含中的类型", | ||
| 350 | type: "error", | 280 | type: "error", |
| 351 | }); | 281 | }); |
| 352 | - this.isEmpty = true; | 282 | + this.btnLoading = false; |
| 353 | - } else if (response.data == null) { | 283 | + return; |
| 354 | - this.isEmpty = true; | ||
| 355 | - } else { | ||
| 356 | - let info = response.data; | ||
| 357 | - info.typeOfGoods = info.typeOfGoods | ||
| 358 | - ? info.typeOfGoods.split(";") | ||
| 359 | - : []; | ||
| 360 | - info.declarationCategory = info.declarationCategory | ||
| 361 | - ? info.declarationCategory.split(";") | ||
| 362 | - : []; | ||
| 363 | - info.serviceCode = info.serviceCode | ||
| 364 | - ? info.serviceCode.split(";") | ||
| 365 | - : []; | ||
| 366 | - info.subCategory = info.subCategory | ||
| 367 | - ? info.subCategory.split(";") | ||
| 368 | - : []; | ||
| 369 | - this.form = info; | ||
| 370 | } | 284 | } |
| 371 | - this.loading = false; | 285 | + } |
| 372 | - }); | 286 | + updateOrAddFlight(this.form).then((response) => { |
| 373 | - } else { | 287 | + if (response.code === 200) { |
| 374 | - //货物信息 | 288 | + this.$message({ |
| 375 | - findByFlightId(id).then((response) => { | 289 | + showClose: true, |
| 376 | - if (response.code != 200) { | 290 | + message: "成功", |
| 291 | + type: "success", | ||
| 292 | + }); | ||
| 293 | + this.close(); | ||
| 294 | + } else { | ||
| 377 | this.$message({ | 295 | this.$message({ |
| 378 | showClose: true, | 296 | showClose: true, |
| 379 | message: response.msg, | 297 | message: response.msg, |
| 380 | type: "error", | 298 | type: "error", |
| 381 | }); | 299 | }); |
| 382 | - this.isEmpty = true; | 300 | + this.btnLoading = false; |
| 383 | - } else { | ||
| 384 | - let info = response.data.list; | ||
| 385 | - info.typeOfGoods = info.typeOfGoods | ||
| 386 | - ? info.typeOfGoods.split(";") | ||
| 387 | - : []; | ||
| 388 | - info.declarationCategory = info.declarationCategory | ||
| 389 | - ? info.declarationCategory.split(";") | ||
| 390 | - : []; | ||
| 391 | - info.serviceCode = info.serviceCode | ||
| 392 | - ? info.serviceCode.split(";") | ||
| 393 | - : []; | ||
| 394 | - info.subCategory = info.subCategory | ||
| 395 | - ? info.subCategory.split(";") | ||
| 396 | - : []; | ||
| 397 | - this.form = info; | ||
| 398 | } | 301 | } |
| 399 | - this.loading = false; | ||
| 400 | }); | 302 | }); |
| 303 | + this.form.typeOfGoods = this.typeOfGoods; | ||
| 304 | + this.form.declarationCategory = this.declarationCategory; | ||
| 305 | + this.form.serviceCode = this.formServiceCode; | ||
| 306 | + this.form.handlingCode = this.formHandlingCode; | ||
| 307 | + this.form.subCategory = this.formSubCategory; | ||
| 308 | + }, | ||
| 309 | + close() { | ||
| 310 | + this.$store.state.tagsView.visitedViews.splice( | ||
| 311 | + this.$store.state.tagsView.visitedViews.findIndex( | ||
| 312 | + (item) => item.path === this.$route.path | ||
| 313 | + ), | ||
| 314 | + 1 | ||
| 315 | + ); | ||
| 316 | + this.$router.push( | ||
| 317 | + this.$store.state.tagsView.visitedViews[ | ||
| 318 | + this.$store.state.tagsView.visitedViews.length - 1 | ||
| 319 | + ].path | ||
| 320 | + ); | ||
| 321 | + }, | ||
| 322 | + }, | ||
| 323 | + created() { | ||
| 324 | + let handle = this.$route.params.handle; | ||
| 325 | + | ||
| 326 | + allDictData().then((response) => { | ||
| 327 | + if (response.code != 200) { | ||
| 328 | + this.$message({ | ||
| 329 | + showClose: true, | ||
| 330 | + message: response.msg, | ||
| 331 | + type: "error", | ||
| 332 | + }); | ||
| 333 | + reuturn; | ||
| 334 | + } | ||
| 335 | + let dict = response.data; | ||
| 336 | + this.cargoType = dict.cargoType; | ||
| 337 | + this.cargoStatus = dict.cargoStatus; | ||
| 338 | + this.serviceCode = dict.serviceCode.sort((a, b) => | ||
| 339 | + a.englishName.localeCompare(b.englishName) | ||
| 340 | + ); | ||
| 341 | + | ||
| 342 | + | ||
| 343 | + this.handlingCode =this.sorttodo(dict.handlingCode,"BLANK"); | ||
| 344 | + this.subCategory = dict.subCategory; | ||
| 345 | + }); | ||
| 346 | + if (handle === "detail") { | ||
| 347 | + this.disable = true; | ||
| 401 | } | 348 | } |
| 402 | - } else { | 349 | + |
| 403 | - this.loading = false; | 350 | + if (handle != "add") { |
| 404 | - } | 351 | + this.nameDisabled = true; |
| 405 | - }, | 352 | + let id = this.$route.params.id; |
| 406 | -}; | 353 | + |
| 354 | + if (isNaN(Number(id))) { | ||
| 355 | + findDestinationFltRuleByActualFlight(id).then((response) => { | ||
| 356 | + if (response.code != 200) { | ||
| 357 | + this.$message({ | ||
| 358 | + showClose: true, | ||
| 359 | + message: response.msg, | ||
| 360 | + type: "error", | ||
| 361 | + }); | ||
| 362 | + this.isEmpty = true; | ||
| 363 | + } else if (response.data == null) { | ||
| 364 | + this.isEmpty = true; | ||
| 365 | + } else { | ||
| 366 | + let info = response.data; | ||
| 367 | + info.typeOfGoods = info.typeOfGoods ? | ||
| 368 | + info.typeOfGoods.split(";") : | ||
| 369 | + []; | ||
| 370 | + info.declarationCategory = info.declarationCategory ? | ||
| 371 | + info.declarationCategory.split(";") : | ||
| 372 | + []; | ||
| 373 | + info.serviceCode = info.serviceCode ? | ||
| 374 | + info.serviceCode.split(";") : | ||
| 375 | + []; | ||
| 376 | + info.handlingCode = info.handlingCode ? | ||
| 377 | + info.handlingCode.split(";") : | ||
| 378 | + []; | ||
| 379 | + info.subCategory = info.subCategory ? | ||
| 380 | + info.subCategory.split(";") : | ||
| 381 | + []; | ||
| 382 | + this.form = info; | ||
| 383 | + if (info.location != null || info.location == "") { | ||
| 384 | + this.isLocation = "1"; | ||
| 385 | + } else { | ||
| 386 | + this.isLocation = "2"; | ||
| 387 | + } | ||
| 388 | + this.isNeedRequired = info.isNeedRequired; | ||
| 389 | + } | ||
| 390 | + this.loading = false; | ||
| 391 | + }); | ||
| 392 | + } else { | ||
| 393 | + //货物信息 | ||
| 394 | + findByFlightId(id).then((response) => { | ||
| 395 | + if (response.code != 200) { | ||
| 396 | + this.$message({ | ||
| 397 | + showClose: true, | ||
| 398 | + message: response.msg, | ||
| 399 | + type: "error", | ||
| 400 | + }); | ||
| 401 | + this.isEmpty = true; | ||
| 402 | + } else { | ||
| 403 | + let info = response.data.list; | ||
| 404 | + info.typeOfGoods = info.typeOfGoods ? | ||
| 405 | + info.typeOfGoods.split(";") : | ||
| 406 | + []; | ||
| 407 | + info.declarationCategory = info.declarationCategory ? | ||
| 408 | + info.declarationCategory.split(";") : | ||
| 409 | + []; | ||
| 410 | + info.serviceCode = info.serviceCode ? | ||
| 411 | + info.serviceCode.split(";") : | ||
| 412 | + []; | ||
| 413 | + info.handlingCode = info.handlingCode ? | ||
| 414 | + info.handlingCode.split(";") : | ||
| 415 | + []; | ||
| 416 | + info.subCategory = info.subCategory ? | ||
| 417 | + info.subCategory.split(";") : | ||
| 418 | + []; | ||
| 419 | + this.form = info; | ||
| 420 | + if (info.location != null || info.location == "") { | ||
| 421 | + this.isLocation = "1"; | ||
| 422 | + } else { | ||
| 423 | + this.isLocation = "2"; | ||
| 424 | + } | ||
| 425 | + let isNeedRequired = response.data.isNeedRequired; | ||
| 426 | + this.form.isNeedRequired = isNeedRequired; | ||
| 427 | + this.isNeedRequired = isNeedRequired; | ||
| 428 | + } | ||
| 429 | + this.loading = false; | ||
| 430 | + }); | ||
| 431 | + } | ||
| 432 | + } else { | ||
| 433 | + this.loading = false; | ||
| 434 | + } | ||
| 435 | + }, | ||
| 436 | + }; | ||
| 407 | </script> | 437 | </script> |
| 408 | <style rel="stylesheet/scss" lang="scss"> | 438 | <style rel="stylesheet/scss" lang="scss"> |
| 409 | -.el-textarea.is-disabled .el-textarea__inner { | 439 | + .el-textarea.is-disabled .el-textarea__inner { |
| 410 | - background-color: rgba(255, 255, 255, 0.5); | 440 | + background-color: rgba(255, 255, 255, 0.5); |
| 411 | - color: #303133; | 441 | + color: #303133; |
| 412 | -} | 442 | + } |
| 413 | -.el-input.is-disabled .el-input__inner { | ||
| 414 | - background-color: rgba(255, 255, 255, 0.5); | ||
| 415 | - color: #303133; | ||
| 416 | -} | ||
| 417 | -.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { | ||
| 418 | - background-color: rgba(255, 255, 255, 0.5); | ||
| 419 | -} | ||
| 420 | -.el-checkbox__input.is-disabled + span.el-checkbox__label { | ||
| 421 | - color: #303133; | ||
| 422 | -} | ||
| 423 | -.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after { | ||
| 424 | - border-color: #303133; | ||
| 425 | -} | ||
| 426 | -.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { | ||
| 427 | - border-color: #606266; | ||
| 428 | -} | ||
| 429 | -</style> | ||
| 430 | 443 | ||
| 444 | + .el-input.is-disabled .el-input__inner { | ||
| 445 | + background-color: rgba(255, 255, 255, 0.5); | ||
| 446 | + color: #303133; | ||
| 447 | + } | ||
| 448 | + | ||
| 449 | + .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { | ||
| 450 | + background-color: rgba(255, 255, 255, 0.5); | ||
| 451 | + } | ||
| 452 | + | ||
| 453 | + .el-checkbox__input.is-disabled+span.el-checkbox__label { | ||
| 454 | + color: #303133; | ||
| 455 | + } | ||
| 456 | + | ||
| 457 | + .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after { | ||
| 458 | + border-color: #303133; | ||
| 459 | + } | ||
| 460 | + | ||
| 461 | + .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { | ||
| 462 | + border-color: #606266; | ||
| 463 | + } | ||
| 464 | +</style> | ... | ... |
| ... | @@ -65,7 +65,7 @@ | ... | @@ -65,7 +65,7 @@ |
| 65 | 65 | ||
| 66 | 66 | ||
| 67 | <!-- 查看目的航班对话框 --> | 67 | <!-- 查看目的航班对话框 --> |
| 68 | - <el-dialog title="实际配载航班" :visible.sync="openFlightDate" width="70%" :close-on-click-modal="false"> | 68 | + <el-dialog title="实际配载航班" :visible.sync="openFlightDate" width="70%" :close-on-click-modal="false" :append-to-body="true"> |
| 69 | <el-table v-loading="loadingFlightDate" :data="sourceFlightAndFlightDate"> | 69 | <el-table v-loading="loadingFlightDate" :data="sourceFlightAndFlightDate"> |
| 70 | 70 | ||
| 71 | <el-table-column label="原航班" align="center" prop="sourceFlightNo" /> | 71 | <el-table-column label="原航班" align="center" prop="sourceFlightNo" /> |
| ... | @@ -84,7 +84,7 @@ | ... | @@ -84,7 +84,7 @@ |
| 84 | 84 | ||
| 85 | 85 | ||
| 86 | <!-- 添加或修改对话框 --> | 86 | <!-- 添加或修改对话框 --> |
| 87 | - <el-dialog :title="title" :visible.sync="open" width="60%" :close-on-click-modal="false"> | 87 | + <el-dialog :title="title" :visible.sync="open" width="60%" :close-on-click-modal="false" :append-to-body="true"> |
| 88 | <el-form ref="form" :model="form" :rules="rules" label-width="100px"> | 88 | <el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
| 89 | <el-row> | 89 | <el-row> |
| 90 | <el-col :span="10"> | 90 | <el-col :span="10"> | ... | ... |
| ... | @@ -55,12 +55,12 @@ | ... | @@ -55,12 +55,12 @@ |
| 55 | <el-form-item> | 55 | <el-form-item> |
| 56 | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> | 56 | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| 57 | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> | 57 | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| 58 | - | ||
| 59 | <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button> | 58 | <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button> |
| 60 | - | 59 | + <el-button type="primary" icon="el-icon-circle-check" size="mini" @click="handleFlightStatus('flightStatus10')">航班开启</el-button> |
| 60 | + <el-button type="primary" icon="el-icon-circle-close" size="mini" @click="handleFlightStatus('flightStatus80')">航班关闭</el-button> | ||
| 61 | </el-form-item> | 61 | </el-form-item> |
| 62 | </el-form> | 62 | </el-form> |
| 63 | - <!-- <el-row :gutter="10" class="mb8"> | 63 | + <!-- <el-row :gutter="10" class="mb8"> |
| 64 | <el-col :span="1.5"> | 64 | <el-col :span="1.5"> |
| 65 | <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button> | 65 | <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button> |
| 66 | </el-col> | 66 | </el-col> |
| ... | @@ -114,10 +114,11 @@ | ... | @@ -114,10 +114,11 @@ |
| 114 | </el-table-column> --> | 114 | </el-table-column> --> |
| 115 | <el-table-column label="最后修改时间" align="center" prop="lastModifyTime" width="120" /> | 115 | <el-table-column label="最后修改时间" align="center" prop="lastModifyTime" width="120" /> |
| 116 | 116 | ||
| 117 | - <el-table-column v-if="findAllFltDatList.length>0" label="操作" align="center" class-name="small-padding fixed-width" width="130" fixed="right"> | 117 | + <el-table-column v-if="findAllFltDatList.length>0" label="操作" align="center" |
| 118 | + class-name="small-padding fixed-width" width="130" fixed="right"> | ||
| 118 | <template slot-scope="scope"> | 119 | <template slot-scope="scope"> |
| 119 | <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button> | 120 | <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button> |
| 120 | - <!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDeleteorPlayorpause(scope.row,0,'删除')"> | 121 | + <!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDeleteorPlayorpause(scope.row,0,'删除')"> |
| 121 | 删除</el-button> --> | 122 | 删除</el-button> --> |
| 122 | </template> | 123 | </template> |
| 123 | </el-table-column> | 124 | </el-table-column> |
| ... | @@ -130,12 +131,13 @@ | ... | @@ -130,12 +131,13 @@ |
| 130 | 131 | ||
| 131 | 132 | ||
| 132 | <!-- 添加或修改对话框 --> | 133 | <!-- 添加或修改对话框 --> |
| 133 | - <el-dialog :title="title" :visible.sync="open" width="60%" :close-on-click-modal="false"> | 134 | + <el-dialog :title="title" :visible.sync="open" width="60%" :close-on-click-modal="false" :append-to-body="true"> |
| 134 | <el-form ref="form" :model="form" :rules="rules" label-width="130px"> | 135 | <el-form ref="form" :model="form" :rules="rules" label-width="130px"> |
| 135 | <el-row> | 136 | <el-row> |
| 136 | <el-col :span="12"> | 137 | <el-col :span="12"> |
| 137 | <el-form-item label="航班号" prop="fltNo"> | 138 | <el-form-item label="航班号" prop="fltNo"> |
| 138 | - <el-input @blur="blurfltNo" :disabled="formdisabled.fltNo" style="width:93%;" v-model="form.fltNo" placeholder="请输入航班号" /> | 139 | + <el-input @blur="blurfltNo" :disabled="formdisabled.fltNo" style="width:93%;" v-model="form.fltNo" |
| 140 | + placeholder="请输入航班号" /> | ||
| 139 | </el-form-item> | 141 | </el-form-item> |
| 140 | </el-col> | 142 | </el-col> |
| 141 | <!-- <el-col :span="1">  </el-col> --> | 143 | <!-- <el-col :span="1">  </el-col> --> |
| ... | @@ -149,15 +151,15 @@ | ... | @@ -149,15 +151,15 @@ |
| 149 | </el-col> | 151 | </el-col> |
| 150 | 152 | ||
| 151 | 153 | ||
| 152 | - <el-col :span="12"> | 154 | + <el-col :span="12"> |
| 153 | - <el-form-item label="航班路线" prop="route"> | 155 | + <el-form-item label="航班路线" prop="route"> |
| 154 | - <el-input style="width:93%" v-model="form.route" placeholder="请输入航班路线" /> | 156 | + <el-input style="width:93%" v-model="form.route" placeholder="请输入航班路线" /> |
| 155 | - </el-form-item> | 157 | + </el-form-item> |
| 156 | - </el-col> | 158 | + </el-col> |
| 157 | 159 | ||
| 158 | <el-col :span="12"> | 160 | <el-col :span="12"> |
| 159 | <el-form-item label="航班种类" prop="kindId"> | 161 | <el-form-item label="航班种类" prop="kindId"> |
| 160 | - <el-select v-model="form.kindId" placeholder="请选择航班种类"> | 162 | + <el-select v-model="form.kindId" placeholder="请选择航班种类"> |
| 161 | <el-option v-for="item in flightKindlist" :key="item.id" :label="item.chineseName" :value="item.id"> | 163 | <el-option v-for="item in flightKindlist" :key="item.id" :label="item.chineseName" :value="item.id"> |
| 162 | </el-option> | 164 | </el-option> |
| 163 | </el-select> | 165 | </el-select> |
| ... | @@ -165,7 +167,7 @@ | ... | @@ -165,7 +167,7 @@ |
| 165 | </el-col> | 167 | </el-col> |
| 166 | <el-col :span="12"> | 168 | <el-col :span="12"> |
| 167 | <el-form-item label="航班类型" prop="typeId"> | 169 | <el-form-item label="航班类型" prop="typeId"> |
| 168 | - <el-select v-model="form.typeId" placeholder="请选择航班类型"> | 170 | + <el-select v-model="form.typeId" placeholder="请选择航班类型"> |
| 169 | <el-option v-for="item in flightTypelist" :key="item.id" :label="item.chineseName" :value="item.id"> | 171 | <el-option v-for="item in flightTypelist" :key="item.id" :label="item.chineseName" :value="item.id"> |
| 170 | </el-option> | 172 | </el-option> |
| 171 | </el-select> | 173 | </el-select> |
| ... | @@ -181,23 +183,21 @@ | ... | @@ -181,23 +183,21 @@ |
| 181 | </el-col> | 183 | </el-col> |
| 182 | <el-col :span="12"> | 184 | <el-col :span="12"> |
| 183 | <el-form-item label="原始重量(KG)" prop="originalWeight"> | 185 | <el-form-item label="原始重量(KG)" prop="originalWeight"> |
| 184 | - <el-input placeholder="请输入原始重量(KG)" style="width:93%" min="0" | 186 | + <el-input-number @change="LowHighAvailable" placeholder="请输入原始重量(KG)" style="width:93%" |
| 185 | - oninput="value=value.indexOf('.') > -1?value.slice(0, value.indexOf('.') + 3):value" type="number" | 187 | + v-model="form.originalWeight" :precision="2"></el-input-number> |
| 186 | - v-model="form.originalWeight"></el-input> | ||
| 187 | </el-form-item> | 188 | </el-form-item> |
| 188 | </el-col> | 189 | </el-col> |
| 189 | 190 | ||
| 190 | <el-col :span="12"> | 191 | <el-col :span="12"> |
| 191 | <el-form-item label="额外增重百分比" prop="extraWeightPercent"> | 192 | <el-form-item label="额外增重百分比" prop="extraWeightPercent"> |
| 192 | - <el-input placeholder="请输入额外增重百分比" style="width:93%" min="0" | 193 | + <el-input-number @change="LowHighAvailable" placeholder="请输入额外增重百分比" style="width:93%" |
| 193 | - oninput="value=value.indexOf('.') > -1?value.slice(0, value.indexOf('.') + 3):value" type="number" | 194 | + v-model="form.extraWeightPercent" :precision="2"></el-input-number> |
| 194 | - v-model="form.extraWeightPercent"></el-input> | ||
| 195 | </el-form-item> | 195 | </el-form-item> |
| 196 | </el-col> | 196 | </el-col> |
| 197 | 197 | ||
| 198 | <el-col :span="12"> | 198 | <el-col :span="12"> |
| 199 | <el-form-item label="是否开启高低价" prop="highLowPriceFlg"> | 199 | <el-form-item label="是否开启高低价" prop="highLowPriceFlg"> |
| 200 | - <el-switch v-model="form.highLowPriceFlg" active-color="#13ce66"> | 200 | + <el-switch @change='LowHighAvailable' v-model="form.highLowPriceFlg" active-color="#13ce66"> |
| 201 | </el-switch> | 201 | </el-switch> |
| 202 | </el-form-item> | 202 | </el-form-item> |
| 203 | </el-col> | 203 | </el-col> |
| ... | @@ -212,34 +212,61 @@ | ... | @@ -212,34 +212,61 @@ |
| 212 | 212 | ||
| 213 | <el-col :span="12"> | 213 | <el-col :span="12"> |
| 214 | <el-form-item label="高价百分比" prop="highPriceWeightPercent"> | 214 | <el-form-item label="高价百分比" prop="highPriceWeightPercent"> |
| 215 | - <el-input placeholder="请输入高价百分比" style="width:93%" min="0" | 215 | + <el-input-number @change="LowHighAvailable" placeholder="请输入高价百分比" style="width:93%" |
| 216 | - oninput="value=value.indexOf('.') > -1?value.slice(0, value.indexOf('.') + 3):value" type="number" | 216 | + v-model="form.highPriceWeightPercent" :precision="2"></el-input-number> |
| 217 | - v-model="form.highPriceWeightPercent"></el-input> | ||
| 218 | </el-form-item> | 217 | </el-form-item> |
| 219 | </el-col> | 218 | </el-col> |
| 220 | 219 | ||
| 221 | <el-col :span="12"> | 220 | <el-col :span="12"> |
| 222 | <el-form-item label="低价百分比" prop="lowPriceWeightPercent"> | 221 | <el-form-item label="低价百分比" prop="lowPriceWeightPercent"> |
| 223 | - <el-input placeholder="请输入低价百分比" style="width:93%" min="0" | 222 | + <el-input-number @change="LowHighAvailable" placeholder="请输入低价百分比" style="width:93%" |
| 224 | - oninput="value=value.indexOf('.') > -1?value.slice(0, value.indexOf('.') + 3):value" type="number" | 223 | + v-model="form.lowPriceWeightPercent" :precision="2"></el-input-number> |
| 225 | - v-model="form.lowPriceWeightPercent"></el-input> | ||
| 226 | </el-form-item> | 224 | </el-form-item> |
| 227 | </el-col> | 225 | </el-col> |
| 228 | 226 | ||
| 229 | <el-col :span="12"> | 227 | <el-col :span="12"> |
| 230 | - <el-form-item label="已配重量" prop="alloctedWeight"> | 228 | + <el-form-item label="高价可配重量" prop="HighAvailableWeight"> |
| 231 | - <el-input :disabled="true" placeholder="请输入已配重量" style="width:93%" min="0" | 229 | + |
| 232 | - oninput="value=value.indexOf('.') > -1?value.slice(0, value.indexOf('.') + 3):value" type="number" | 230 | + <el-input-number :disabled="true" placeholder="请输入高价可配重量" style="width:93%" |
| 233 | - v-model="form.alloctedWeight"></el-input> | 231 | + v-model="form.HighAvailableWeight" :precision="2"></el-input-number> |
| 232 | + </el-form-item> | ||
| 233 | + </el-col> | ||
| 234 | + <el-col :span="12"> | ||
| 235 | + <el-form-item label="低价可配重量" prop="LowAvailableWeight"> | ||
| 236 | + <el-input-number :disabled="true" placeholder="请输入低价可配重量" style="width:93%" | ||
| 237 | + v-model="form.LowAvailableWeight" :precision="2"></el-input-number> | ||
| 234 | </el-form-item> | 238 | </el-form-item> |
| 235 | </el-col> | 239 | </el-col> |
| 236 | 240 | ||
| 241 | + | ||
| 242 | + <el-col :span="12"> | ||
| 243 | + <el-form-item label="高价已配重量" prop="HighAllocatedWeight"> | ||
| 244 | + <el-input-number :disabled="true" placeholder="请输入高价已配重量" style="width:93%" | ||
| 245 | + v-model="form.HighAllocatedWeight" :precision="2"></el-input-number> | ||
| 246 | + </el-form-item> | ||
| 247 | + </el-col> | ||
| 248 | + <el-col :span="12"> | ||
| 249 | + <el-form-item label="低价已配重量" prop="LowAllocatedWeight"> | ||
| 250 | + <el-input-number :disabled="true" placeholder="请输入低价已配重量" style="width:93%" | ||
| 251 | + v-model="form.LowAllocatedWeight" :precision="2"></el-input-number> | ||
| 252 | + </el-form-item> | ||
| 253 | + </el-col> | ||
| 254 | + <el-col :span="12"> | ||
| 255 | + <el-form-item label="已配总重量" prop="alloctedWeight"> | ||
| 256 | + | ||
| 257 | + <el-input-number :disabled="true" placeholder="请输入已配总重量" style="width:93%" v-model="form.alloctedWeight" | ||
| 258 | + :precision="2"></el-input-number> | ||
| 259 | + | ||
| 260 | + </el-form-item> | ||
| 261 | + </el-col> | ||
| 262 | + | ||
| 263 | + | ||
| 237 | </el-row> | 264 | </el-row> |
| 238 | 265 | ||
| 239 | 266 | ||
| 240 | </el-form> | 267 | </el-form> |
| 241 | <div slot="footer" class="dialog-footer"> | 268 | <div slot="footer" class="dialog-footer"> |
| 242 | - <el-button type="primary" :disabled="form.alloctedWeight>0 ? true:false" @click="submitForm">确 定</el-button> | 269 | + <el-button type="primary" @click="submitForm">确 定</el-button> |
| 243 | <el-button @click="cancel">取 消</el-button> | 270 | <el-button @click="cancel">取 消</el-button> |
| 244 | </div> | 271 | </div> |
| 245 | </el-dialog> | 272 | </el-dialog> |
| ... | @@ -251,7 +278,8 @@ | ... | @@ -251,7 +278,8 @@ |
| 251 | findAllFltDataApi, | 278 | findAllFltDataApi, |
| 252 | findFltById, | 279 | findFltById, |
| 253 | saveOrUpdate, | 280 | saveOrUpdate, |
| 254 | - findFltCommonConf | 281 | + findFltCommonConf, |
| 282 | + updateStatusBatch | ||
| 255 | 283 | ||
| 256 | } from "@/api/findAllFltData"; | 284 | } from "@/api/findAllFltData"; |
| 257 | export default { | 285 | export default { |
| ... | @@ -360,47 +388,49 @@ | ... | @@ -360,47 +388,49 @@ |
| 360 | }, | 388 | }, |
| 361 | methods: { | 389 | methods: { |
| 362 | //输入航班号后 | 390 | //输入航班号后 |
| 363 | - blurfltNo(){ | 391 | + blurfltNo() { |
| 364 | - if(this.form.fltNo!=null&&this.form.fltNo!=undefined &&this.form.fltNo!=""){ | 392 | + if (this.form.fltNo != null && this.form.fltNo != undefined && this.form.fltNo != "") { |
| 365 | - this.form.fltNo=this.form.fltNo.toUpperCase(); | 393 | + this.form.fltNo = this.form.fltNo.toUpperCase(); |
| 366 | findFltCommonConf(this.form).then(response => { | 394 | findFltCommonConf(this.form).then(response => { |
| 367 | - if (response.code == 200) { | 395 | + if (response.code == 200) { |
| 368 | - //额外增重百分比:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置为0,不可编辑 | 396 | + //额外增重百分比:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置为0,不可编辑 |
| 369 | - if(response.data.extraWeightPercent!=null&&response.data.extraWeightPercent!=undefined){ | 397 | + if (response.data.extraWeightPercent != null && response.data.extraWeightPercent != undefined) { |
| 370 | - this.$set(this.form, "extraWeightPercent", response.data.extraWeightPercent); | 398 | + this.$set(this.form, "extraWeightPercent", response.data.extraWeightPercent); |
| 371 | - // this.form.extraWeightPercent=response.data.extraWeightPercent; | 399 | + // this.form.extraWeightPercent=response.data.extraWeightPercent; |
| 372 | - }else{ | 400 | + } else { |
| 373 | - this.$set(this.form, "extraWeightPercent", 0); | 401 | + this.$set(this.form, "extraWeightPercent", 0); |
| 374 | - //this.form.extraWeightPercent=response.data.extraWeightPercent=0; | 402 | + //this.form.extraWeightPercent=response.data.extraWeightPercent=0; |
| 375 | - } | 403 | + } |
| 376 | - //是否开启高低价:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘是否开启高低价’ 为是,不可编辑 | 404 | + //是否开启高低价:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘是否开启高低价’ 为是,不可编辑 |
| 377 | - if(response.data.highLowPriceFlg!=null&&response.data.highLowPriceFlg!=undefined){ | 405 | + if (response.data.highLowPriceFlg != null && response.data.highLowPriceFlg != undefined) { |
| 378 | - this.form.highLowPriceFlg=response.data.highLowPriceFlg=== 1 ? true : false; | 406 | + this.form.highLowPriceFlg = response.data.highLowPriceFlg === 1 ? true : false; |
| 379 | - }else{ | 407 | + } else { |
| 380 | - this.form.highLowPriceFlg=response.data.highLowPriceFlg=1; | 408 | + this.form.highLowPriceFlg = true; |
| 381 | - } | 409 | + } |
| 382 | - //是否预审:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘是否预审’ 为否,不可编辑; | 410 | + //是否预审:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘是否预审’ 为否,不可编辑; |
| 383 | - if(response.data.isNeedRequired!=null&&response.data.isNeedRequired!=undefined){ | 411 | + if (response.data.isNeedRequired != null && response.data.isNeedRequired != undefined) { |
| 384 | - this.form.isNeedRequired=response.data.isNeedRequired=== 1 ? true : false; | 412 | + this.form.isNeedRequired = response.data.isNeedRequired === 1 ? true : false; |
| 385 | - }else{ | 413 | + } else { |
| 386 | - this.form.isNeedRequired=response.data.isNeedRequired=1; | 414 | + this.form.isNeedRequired = false; |
| 387 | - } | 415 | + } |
| 388 | - //高/低价百分比:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘高价百分比’60%,‘低价百分比’40%,不可编辑 | 416 | + //高/低价百分比:根据已存在的相同航班号对应的最新值进行设置,如果无相同航班号,按照默认设置‘高价百分比’60%,‘低价百分比’40%,不可编辑 |
| 389 | - if(response.data.highPriceWeightPercent!=null&&response.data.highPriceWeightPercent!=undefined){ | 417 | + if (response.data.highPriceWeightPercent != null && response.data.highPriceWeightPercent != |
| 390 | - this.form.highPriceWeightPercent=response.data.highPriceWeightPercent; | 418 | + undefined) { |
| 391 | - }else{ | 419 | + this.form.highPriceWeightPercent = response.data.highPriceWeightPercent; |
| 392 | - this.form.highPriceWeightPercent=response.data.highPriceWeightPercent=60; | 420 | + } else { |
| 393 | - } | 421 | + this.form.highPriceWeightPercent = response.data.highPriceWeightPercent = 60; |
| 394 | - if(response.data.lowPriceWeightPercent!=null&&response.data.lowPriceWeightPercent!=undefined){ | 422 | + } |
| 395 | - this.form.lowPriceWeightPercent=response.data.lowPriceWeightPercent; | 423 | + if (response.data.lowPriceWeightPercent != null && response.data.lowPriceWeightPercent != undefined) { |
| 396 | - }else{ | 424 | + this.form.lowPriceWeightPercent = response.data.lowPriceWeightPercent; |
| 397 | - this.form.lowPriceWeightPercent=response.data.lowPriceWeightPercent=40; | 425 | + } else { |
| 426 | + this.form.lowPriceWeightPercent = response.data.lowPriceWeightPercent = 40; | ||
| 427 | + } | ||
| 428 | + this.LowHighAvailable(); | ||
| 429 | + } else { | ||
| 430 | + this.msgError(response.msg); | ||
| 398 | } | 431 | } |
| 399 | - } else { | ||
| 400 | - this.msgError(response.msg); | ||
| 401 | - } | ||
| 402 | 432 | ||
| 403 | - }); | 433 | + }); |
| 404 | 434 | ||
| 405 | } | 435 | } |
| 406 | 436 | ||
| ... | @@ -418,9 +448,9 @@ | ... | @@ -418,9 +448,9 @@ |
| 418 | // 是否需要预审 1 预审 0 取消预审 | 448 | // 是否需要预审 1 预审 0 取消预审 |
| 419 | needRequiredFormat(row) { | 449 | needRequiredFormat(row) { |
| 420 | if (row.needRequired === 1) { | 450 | if (row.needRequired === 1) { |
| 421 | - return '预审' | 451 | + return '是' |
| 422 | } else { | 452 | } else { |
| 423 | - return '取消预审' | 453 | + return '否' |
| 424 | } | 454 | } |
| 425 | return row.ticketToPiece; | 455 | return row.ticketToPiece; |
| 426 | }, | 456 | }, |
| ... | @@ -448,7 +478,7 @@ | ... | @@ -448,7 +478,7 @@ |
| 448 | //航班类型 | 478 | //航班类型 |
| 449 | this.flightTypelist = response.data.flightType; | 479 | this.flightTypelist = response.data.flightType; |
| 450 | //航班状态 | 480 | //航班状态 |
| 451 | - | 481 | + // debugger |
| 452 | this.flightStatuslist = response.data.flightStatus; | 482 | this.flightStatuslist = response.data.flightStatus; |
| 453 | 483 | ||
| 454 | } else { | 484 | } else { |
| ... | @@ -460,7 +490,7 @@ | ... | @@ -460,7 +490,7 @@ |
| 460 | 490 | ||
| 461 | // 多选框选中数据 | 491 | // 多选框选中数据 |
| 462 | handleSelectionChange(selection) { | 492 | handleSelectionChange(selection) { |
| 463 | - this.ids = selection.map(item => item.postId) | 493 | + this.ids = selection.map(item => item.id) |
| 464 | this.single = selection.length != 1 | 494 | this.single = selection.length != 1 |
| 465 | this.multiple = !selection.length | 495 | this.multiple = !selection.length |
| 466 | }, | 496 | }, |
| ... | @@ -497,7 +527,10 @@ | ... | @@ -497,7 +527,10 @@ |
| 497 | this.title = "添加航班信息"; | 527 | this.title = "添加航班信息"; |
| 498 | this.form.id = null; | 528 | this.form.id = null; |
| 499 | this.form.statusId = this.flightStatuslist[0].id; | 529 | this.form.statusId = this.flightStatuslist[0].id; |
| 500 | - this.form.alloctedWeight = 0; | 530 | + this.form.alloctedWeight = 0; //已配重量 |
| 531 | + this.form.LowAllocatedWeight = 0; //低价已配重量 | ||
| 532 | + this.form.HighAllocatedWeight = 0; //高价已配重量 | ||
| 533 | + | ||
| 501 | //航班号 | 534 | //航班号 |
| 502 | this.formdisabled.fltNo = false; | 535 | this.formdisabled.fltNo = false; |
| 503 | //航班日期 | 536 | //航班日期 |
| ... | @@ -511,6 +544,50 @@ | ... | @@ -511,6 +544,50 @@ |
| 511 | //原始重量 | 544 | //原始重量 |
| 512 | this.formdisabled.originalWeight = false; | 545 | this.formdisabled.originalWeight = false; |
| 513 | }, | 546 | }, |
| 547 | + //计算高地价可配 | ||
| 548 | + LowHighAvailable() { | ||
| 549 | + | ||
| 550 | + //判断是否开启高地价 | ||
| 551 | + if (this.form.highLowPriceFlg) { | ||
| 552 | + let Weight = 0; | ||
| 553 | + //计算实际重量 | ||
| 554 | + if (this.form.highPriceWeightPercent > 0 || this.form.lowPriceWeightPercent > 0) { | ||
| 555 | + Weight = this.Weightall(); | ||
| 556 | + } | ||
| 557 | + //高价可配 | ||
| 558 | + if (this.form.highPriceWeightPercent > 0) { | ||
| 559 | + this.$set(this.form, "HighAvailableWeight", (Weight - this.form.alloctedWeight) * (this.form | ||
| 560 | + .highPriceWeightPercent / 100)); | ||
| 561 | + // this.form.HighAvailableWeight = Weightall * (this.form.highPriceWeightPercent / 100) | ||
| 562 | + } else { | ||
| 563 | + this.$set(this.form, "HighAvailableWeight", 0); | ||
| 564 | + // this.form.HighAvailableWeight = 0; | ||
| 565 | + } | ||
| 566 | + //低价可配 | ||
| 567 | + if (this.form.lowPriceWeightPercent > 0) { | ||
| 568 | + | ||
| 569 | + this.$set(this.form, "LowAvailableWeight", (Weight - this.form.alloctedWeight) - this.form | ||
| 570 | + .HighAvailableWeight); | ||
| 571 | + //this.form.LowAvailableWeight = Weightall - this.form.HighAvailableWeight; | ||
| 572 | + } else { | ||
| 573 | + this.$set(this.form, "LowAvailableWeight", 0); | ||
| 574 | + // this.form.LowAvailableWeight = 0; | ||
| 575 | + } | ||
| 576 | + | ||
| 577 | + } | ||
| 578 | + | ||
| 579 | + }, | ||
| 580 | + //计算实际重量 | ||
| 581 | + Weightall() { | ||
| 582 | + let Weight = 0; | ||
| 583 | + if (this.form.extraWeightPercent > 0) { | ||
| 584 | + Weight = this.form.originalWeight + this.form.originalWeight * (this.form.extraWeightPercent / 100) | ||
| 585 | + } else { | ||
| 586 | + Weight = this.form.originalWeight; | ||
| 587 | + } | ||
| 588 | + return Weight; | ||
| 589 | + }, | ||
| 590 | + | ||
| 514 | /** 修改按钮操作 */ | 591 | /** 修改按钮操作 */ |
| 515 | handleUpdate(row) { | 592 | handleUpdate(row) { |
| 516 | this.reset(); | 593 | this.reset(); |
| ... | @@ -528,25 +605,9 @@ | ... | @@ -528,25 +605,9 @@ |
| 528 | this.form.highLowPriceFlg = this.form.highLowPriceFlg === 1 ? true : false; | 605 | this.form.highLowPriceFlg = this.form.highLowPriceFlg === 1 ? true : false; |
| 529 | //是否预审 | 606 | //是否预审 |
| 530 | this.form.isNeedRequired = this.form.isNeedRequired === 1 ? true : false; | 607 | this.form.isNeedRequired = this.form.isNeedRequired === 1 ? true : false; |
| 531 | - // if (this.form.alloctedWeight > 0) { | 608 | + // 计算高地价可配 |
| 532 | - // //航班路线 | 609 | + this.LowHighAvailable(); |
| 533 | - // this.formdisabled.route = true; | 610 | + |
| 534 | - // //航班种类 | ||
| 535 | - // this.formdisabled.kindId = true; | ||
| 536 | - // //航班类型 | ||
| 537 | - // this.formdisabled.typeId = true; | ||
| 538 | - // //原始重量 | ||
| 539 | - // this.formdisabled.originalWeight = true; | ||
| 540 | - // }else{ | ||
| 541 | - // //航班路线 | ||
| 542 | - // this.formdisabled.route = false; | ||
| 543 | - // //航班种类 | ||
| 544 | - // this.formdisabled.kindId = false; | ||
| 545 | - // //航班类型 | ||
| 546 | - // this.formdisabled.typeId = false; | ||
| 547 | - // //原始重量 | ||
| 548 | - // this.formdisabled.originalWeight = false; | ||
| 549 | - // } | ||
| 550 | } else { | 611 | } else { |
| 551 | this.msgError(response.msg); | 612 | this.msgError(response.msg); |
| 552 | } | 613 | } |
| ... | @@ -593,15 +654,27 @@ | ... | @@ -593,15 +654,27 @@ |
| 593 | if (valid) { | 654 | if (valid) { |
| 594 | //debugger | 655 | //debugger |
| 595 | let formdata = JSON.parse(JSON.stringify(this.form)); | 656 | let formdata = JSON.parse(JSON.stringify(this.form)); |
| 657 | + | ||
| 596 | //高价百分比和低价百分比和不可以大于100 | 658 | //高价百分比和低价百分比和不可以大于100 |
| 597 | - if(formdata.highPriceWeightPercent+formdata.lowPriceWeightPercent>100){ | 659 | + if (this.form.highLowPriceFlg && formdata.highPriceWeightPercent + formdata.lowPriceWeightPercent != |
| 598 | - this.$message.warning("高低价百分比总和不可以大于100"); | 660 | + 100) { |
| 661 | + this.$message.warning("请正确填写高低价百分比"); | ||
| 662 | + return; | ||
| 663 | + } | ||
| 664 | + //已删除的无法修改 | ||
| 665 | + //拿到已删除的id | ||
| 666 | + let statusId=0; | ||
| 667 | + this.flightStatuslist.map((item) => { | ||
| 668 | + // this.unitList 是你 select option遍历的集合 e 是选中的id | ||
| 669 | + if (item.chineseName === "已删除") { | ||
| 670 | + statusId=item.id; | ||
| 671 | + return; | ||
| 672 | + } | ||
| 673 | + }) | ||
| 674 | + if (statusId === formdata.statusId) { | ||
| 675 | + this.$message.warning("已删除的航班无法修改"); | ||
| 599 | return; | 676 | return; |
| 600 | } | 677 | } |
| 601 | - | ||
| 602 | - | ||
| 603 | - | ||
| 604 | - | ||
| 605 | //是否开启高地价 | 678 | //是否开启高地价 |
| 606 | formdata.highLowPriceFlg = formdata.highLowPriceFlg ? 1 : 0; | 679 | formdata.highLowPriceFlg = formdata.highLowPriceFlg ? 1 : 0; |
| 607 | //是否预审 | 680 | //是否预审 |
| ... | @@ -641,6 +714,26 @@ | ... | @@ -641,6 +714,26 @@ |
| 641 | this.queryParams.pageNum = 1; | 714 | this.queryParams.pageNum = 1; |
| 642 | this.queryParams.start = 0; | 715 | this.queryParams.start = 0; |
| 643 | this.findAllFltData(); | 716 | this.findAllFltData(); |
| 717 | + }, | ||
| 718 | + //批量开启/关闭航班 | ||
| 719 | + handleFlightStatus(status){ | ||
| 720 | + let handle = status == 'flightStatus80' ? '关闭' : '开启' | ||
| 721 | + if (this.ids.length == 0){ | ||
| 722 | + this.msgError('请选择批量' + handle + '的航班') | ||
| 723 | + return; | ||
| 724 | + } | ||
| 725 | + let data = {}; | ||
| 726 | + data.status = status; | ||
| 727 | + data.updateIds = this.ids; | ||
| 728 | + | ||
| 729 | + updateStatusBatch(data).then(response => { | ||
| 730 | + if (response.code === 200) { | ||
| 731 | + this.msgSuccess( handle + "成功"); | ||
| 732 | + this.findAllFltData(); | ||
| 733 | + } else { | ||
| 734 | + this.msgError(response.msg); | ||
| 735 | + } | ||
| 736 | + }); | ||
| 644 | } | 737 | } |
| 645 | 738 | ||
| 646 | } | 739 | } | ... | ... |
| ... | @@ -2,18 +2,18 @@ | ... | @@ -2,18 +2,18 @@ |
| 2 | <div class="cargoPage" v-loading="downloading"> | 2 | <div class="cargoPage" v-loading="downloading"> |
| 3 | <el-form | 3 | <el-form |
| 4 | ref="cargoForm" | 4 | ref="cargoForm" |
| 5 | - size="mini" | 5 | + size="small" |
| 6 | :model="formData" | 6 | :model="formData" |
| 7 | label-position="top" | 7 | label-position="top" |
| 8 | label-width="auto" | 8 | label-width="auto" |
| 9 | style="margin: 10px; width: 100%" | 9 | style="margin: 10px; width: 100%" |
| 10 | > | 10 | > |
| 11 | - <el-row type="flex" style="flexWrap: wrap!important"> | 11 | + <el-row type="flex" style="flexWrap: wrap!important;margin:0 20px"> |
| 12 | <el-col :span="6"> | 12 | <el-col :span="6"> |
| 13 | - <el-form-item label="ACCS航班日期:"> | 13 | + <el-form-item label="配舱航班日期:"> |
| 14 | <el-date-picker | 14 | <el-date-picker |
| 15 | class="formItem" | 15 | class="formItem" |
| 16 | - v-model="flightTime" | 16 | + v-model="cargoPlaneTime" |
| 17 | type="daterange" | 17 | type="daterange" |
| 18 | range-separator="至" | 18 | range-separator="至" |
| 19 | start-placeholder="开始日期" | 19 | start-placeholder="开始日期" |
| ... | @@ -24,34 +24,68 @@ | ... | @@ -24,34 +24,68 @@ |
| 24 | </el-form-item> | 24 | </el-form-item> |
| 25 | </el-col> | 25 | </el-col> |
| 26 | <el-col :span="6"> | 26 | <el-col :span="6"> |
| 27 | - <el-form-item label="创建日期:"> | 27 | + <el-form-item label="配载航班号:"> |
| 28 | - <el-date-picker | 28 | + <el-input type="textarea" v-model="cargoPlaneNo" class="formItem" placeholder="AC001;AC002"></el-input> |
| 29 | + </el-form-item> | ||
| 30 | + </el-col> | ||
| 31 | + <el-col :span="6"> | ||
| 32 | + <el-form-item label="海关回执状态:"> | ||
| 33 | + <el-select | ||
| 34 | + placeholder="不限" | ||
| 35 | + v-model="formData.customsReceiptStatusId" | ||
| 29 | class="formItem" | 36 | class="formItem" |
| 30 | - v-model="createDate" | 37 | + multiple |
| 31 | - type="daterange" | 38 | + clearable |
| 32 | - range-separator="至" | ||
| 33 | - start-placeholder="开始日期" | ||
| 34 | - end-placeholder="结束日期" | ||
| 35 | - :value-format="valueFormat" | ||
| 36 | > | 39 | > |
| 37 | - </el-date-picker> | 40 | + <el-option |
| 41 | + v-for="item in findConditionData.cargoCustomsReturnStatus" | ||
| 42 | + :label="item.chineseName" | ||
| 43 | + :value="item.id" | ||
| 44 | + :key="item.id" | ||
| 45 | + > | ||
| 46 | + </el-option> | ||
| 47 | + </el-select> | ||
| 38 | </el-form-item> | 48 | </el-form-item> |
| 39 | </el-col> | 49 | </el-col> |
| 40 | <el-col :span="6"> | 50 | <el-col :span="6"> |
| 41 | - <el-form-item label="ACCS航班号:"> | 51 | + <el-form-item label="运单号:"> |
| 42 | - <el-input type="text" v-model="fltNo" class="formItem" placeholder="请输入ACCS航班号"></el-input> | 52 | + <el-input |
| 53 | + type="textarea" | ||
| 54 | + v-model="formData.waybillNo" | ||
| 55 | + class="formItem" | ||
| 56 | + placeholder="xxxx;xxxx" | ||
| 57 | + ></el-input> | ||
| 43 | </el-form-item> | 58 | </el-form-item> |
| 44 | </el-col> | 59 | </el-col> |
| 45 | <el-col :span="6"> | 60 | <el-col :span="6"> |
| 46 | <el-form-item label="申报类别:"> | 61 | <el-form-item label="申报类别:"> |
| 62 | + <el-select | ||
| 63 | + placeholder="不限" | ||
| 64 | + v-model="formData.typeId" | ||
| 65 | + class="formItem" | ||
| 66 | + clearable | ||
| 67 | + > | ||
| 68 | + <el-option | ||
| 69 | + v-for="item in findConditionData.cargoType" | ||
| 70 | + :label="item.chineseName" | ||
| 71 | + :value="item.id" | ||
| 72 | + :key="item.id" | ||
| 73 | + > | ||
| 74 | + </el-option> | ||
| 75 | + </el-select> | ||
| 76 | + </el-form-item> | ||
| 77 | + </el-col> | ||
| 78 | + <el-col :span="6"> | ||
| 79 | + <el-form-item label="服务类型:"> | ||
| 47 | <el-select | 80 | <el-select |
| 48 | placeholder="不限" | 81 | placeholder="不限" |
| 49 | - v-model="formData.typeId" | 82 | + v-model="formData.serviceTypeId" |
| 50 | class="formItem" | 83 | class="formItem" |
| 84 | + filterable | ||
| 51 | clearable | 85 | clearable |
| 52 | > | 86 | > |
| 53 | <el-option | 87 | <el-option |
| 54 | - v-for="item in findConditionData.cargoType" | 88 | + v-for="item in findConditionData.cargoServiceType" |
| 55 | :label="item.chineseName" | 89 | :label="item.chineseName" |
| 56 | :value="item.id" | 90 | :value="item.id" |
| 57 | :key="item.id" | 91 | :key="item.id" |
| ... | @@ -60,15 +94,79 @@ | ... | @@ -60,15 +94,79 @@ |
| 60 | </el-select> | 94 | </el-select> |
| 61 | </el-form-item> | 95 | </el-form-item> |
| 62 | </el-col> | 96 | </el-col> |
| 97 | + <el-col :span="6"> | ||
| 98 | + <el-form-item label="URSA:"> | ||
| 99 | + <el-input | ||
| 100 | + type="textarea" | ||
| 101 | + v-model="ursa" | ||
| 102 | + class="formItem" | ||
| 103 | + placeholder="S_;P_;E2" | ||
| 104 | + ></el-input> | ||
| 105 | + </el-form-item> | ||
| 106 | + </el-col> | ||
| 107 | + <el-col :span="6"> | ||
| 108 | + <el-form-item label="站点:"> | ||
| 109 | + <el-input | ||
| 110 | + type="textarea" | ||
| 111 | + v-model="siteName" | ||
| 112 | + class="formItem" | ||
| 113 | + placeholder="PVG;PEK" | ||
| 114 | + ></el-input> | ||
| 115 | + </el-form-item> | ||
| 116 | + </el-col> | ||
| 63 | <el-col :span="24"> | 117 | <el-col :span="24"> |
| 64 | - <el-collapse> | 118 | + <el-collapse> |
| 65 | - <el-collapse-item> | 119 | + <el-collapse-item> |
| 66 | - <template slot="title"> | 120 | + <template slot="title"> |
| 67 | - <span style="fontWeight:900;color:#409EFF;fontSize:14px"><i class="el-icon-s-tools"></i>更多查询条件</span> | 121 | + <span style="fontWeight:900;color:#409EFF;fontSize:14px"><i class="el-icon-s-tools"></i>更多查询条件</span> |
| 68 | - </template> | 122 | + </template> |
| 69 | - <el-row type="flex" style="flexWrap: wrap!important"> | 123 | + <el-row type="flex" style="flexWrap: wrap!important"> |
| 70 | - <el-col :span="6"> | 124 | + <el-col :span="6"> |
| 71 | - <el-form-item label="货物状态:"> | 125 | + <el-form-item label="ACCS原航班日期:"> |
| 126 | + <el-date-picker | ||
| 127 | + class="formItem" | ||
| 128 | + v-model="flightTime" | ||
| 129 | + type="daterange" | ||
| 130 | + range-separator="至" | ||
| 131 | + start-placeholder="开始日期" | ||
| 132 | + end-placeholder="结束日期" | ||
| 133 | + :value-format="valueFormat" | ||
| 134 | + > | ||
| 135 | + </el-date-picker> | ||
| 136 | + </el-form-item> | ||
| 137 | + </el-col> | ||
| 138 | + <el-col :span="6"> | ||
| 139 | + <el-form-item label="ACCS航班号:"> | ||
| 140 | + <el-input type="text" v-model="fltNo" class="formItem" placeholder="请输入ACCS航班号"></el-input> | ||
| 141 | + </el-form-item> | ||
| 142 | + </el-col> | ||
| 143 | + <el-col :span="6"> | ||
| 144 | + <el-form-item label="取件日期:"> | ||
| 145 | + <el-date-picker | ||
| 146 | + v-model="formData.pickUpDate" | ||
| 147 | + type="date" | ||
| 148 | + placeholder="选择日期" | ||
| 149 | + :value-format="valueFormat" | ||
| 150 | + > | ||
| 151 | + </el-date-picker> | ||
| 152 | + </el-form-item> | ||
| 153 | + </el-col> | ||
| 154 | + <el-col :span="6"> | ||
| 155 | + <el-form-item label="创建日期:"> | ||
| 156 | + <el-date-picker | ||
| 157 | + class="formItem" | ||
| 158 | + v-model="createDate" | ||
| 159 | + type="daterange" | ||
| 160 | + range-separator="至" | ||
| 161 | + start-placeholder="开始日期" | ||
| 162 | + end-placeholder="结束日期" | ||
| 163 | + :value-format="valueFormat" | ||
| 164 | + > | ||
| 165 | + </el-date-picker> | ||
| 166 | + </el-form-item> | ||
| 167 | + </el-col> | ||
| 168 | + <el-col :span="6"> | ||
| 169 | + <el-form-item label="货物状态:"> | ||
| 72 | <el-select | 170 | <el-select |
| 73 | placeholder="不限" | 171 | placeholder="不限" |
| 74 | v-model="formData.statusId" | 172 | v-model="formData.statusId" |
| ... | @@ -85,105 +183,31 @@ | ... | @@ -85,105 +183,31 @@ |
| 85 | </el-option> | 183 | </el-option> |
| 86 | </el-select> | 184 | </el-select> |
| 87 | </el-form-item> | 185 | </el-form-item> |
| 88 | - </el-col> | 186 | + </el-col> |
| 89 | - <el-col :span="6"> | 187 | + <el-col :span="6"> |
| 90 | - <el-form-item label="海关回执状态:"> | 188 | + <el-form-item label="是否自动:"> |
| 91 | - <el-select | 189 | + <el-select |
| 92 | - placeholder="不限" | 190 | + placeholder="不限" |
| 93 | - v-model="formData.customsReceiptStatusId" | 191 | + v-model="formData.allocationTypeId" |
| 94 | - class="formItem" | 192 | + class="formItem" |
| 95 | - clearable | 193 | + clearable |
| 96 | - > | 194 | + > |
| 97 | - <el-option | 195 | + <el-option |
| 98 | - v-for="item in findConditionData.cargoCustomsReturnStatus" | 196 | + label="手动" |
| 99 | - :label="item.chineseName" | 197 | + value="1" |
| 100 | - :value="item.id" | ||
| 101 | - :key="item.id" | ||
| 102 | - > | ||
| 103 | - </el-option> | ||
| 104 | - </el-select> | ||
| 105 | - </el-form-item> | ||
| 106 | - </el-col> | ||
| 107 | - <el-col :span="6"> | ||
| 108 | - <el-form-item label="服务类型:"> | ||
| 109 | - <el-select | ||
| 110 | - placeholder="不限" | ||
| 111 | - v-model="formData.serviceTypeId" | ||
| 112 | - class="formItem" | ||
| 113 | - filterable | ||
| 114 | - clearable | ||
| 115 | - > | ||
| 116 | - <el-option | ||
| 117 | - v-for="item in findConditionData.cargoServiceType" | ||
| 118 | - :label="item.chineseName" | ||
| 119 | - :value="item.id" | ||
| 120 | - :key="item.id" | ||
| 121 | - > | ||
| 122 | - </el-option> | ||
| 123 | - </el-select> | ||
| 124 | - </el-form-item> | ||
| 125 | - </el-col> | ||
| 126 | - <el-col :span="6"> | ||
| 127 | - <el-form-item label="是否自动:"> | ||
| 128 | - <el-select | ||
| 129 | - placeholder="不限" | ||
| 130 | - v-model="formData.allocationTypeId" | ||
| 131 | - class="formItem" | ||
| 132 | - clearable | ||
| 133 | > | 198 | > |
| 134 | - <el-option | 199 | + </el-option> |
| 135 | - label="手动" | 200 | + <el-option |
| 136 | - value="1" | 201 | + label="自动" |
| 137 | - > | 202 | + value="2" |
| 138 | - </el-option> | ||
| 139 | - <el-option | ||
| 140 | - label="自动" | ||
| 141 | - value="2" | ||
| 142 | - > | ||
| 143 | - </el-option> | ||
| 144 | - </el-select> | ||
| 145 | - </el-form-item> | ||
| 146 | - </el-col> | ||
| 147 | - <el-col :span="6"> | ||
| 148 | - <el-form-item label="运单号:"> | ||
| 149 | - <el-input | ||
| 150 | - type="textarea" | ||
| 151 | - v-model="formData.waybillNo" | ||
| 152 | - class="formItem" | ||
| 153 | - placeholder="xxxx;xxxx" | ||
| 154 | - ></el-input> | ||
| 155 | - </el-form-item> | ||
| 156 | - </el-col> | ||
| 157 | - <el-col :span="6"> | ||
| 158 | - <el-form-item label="站点:"> | ||
| 159 | - <el-input | ||
| 160 | - v-model="siteName" | ||
| 161 | - class="formItem" | ||
| 162 | - ></el-input> | ||
| 163 | - </el-form-item> | ||
| 164 | - </el-col> | ||
| 165 | - <el-col :span="6"> | ||
| 166 | - <el-form-item label="URSA:"> | ||
| 167 | - <el-input | ||
| 168 | - v-model="ursa" | ||
| 169 | - class="formItem" | ||
| 170 | - ></el-input> | ||
| 171 | - </el-form-item> | ||
| 172 | - </el-col> | ||
| 173 | - <el-col :span="6"> | ||
| 174 | - <el-form-item label="取件日期:"> | ||
| 175 | - <el-date-picker | ||
| 176 | - v-model="formData.pickUpDate" | ||
| 177 | - type="date" | ||
| 178 | - placeholder="选择日期" | ||
| 179 | - :value-format="valueFormat" | ||
| 180 | > | 203 | > |
| 181 | - </el-date-picker> | 204 | + </el-option> |
| 182 | - </el-form-item> | 205 | + </el-select> |
| 183 | - </el-col> | 206 | + </el-form-item> |
| 184 | - </el-row> | 207 | + </el-col> |
| 185 | - </el-collapse-item> | 208 | + </el-row> |
| 186 | - </el-collapse> | 209 | + </el-collapse-item> |
| 210 | + </el-collapse> | ||
| 187 | </el-col> | 211 | </el-col> |
| 188 | <!-- <el-col :span="6"> | 212 | <!-- <el-col :span="6"> |
| 189 | <el-form-item label="预配航班日期:"> | 213 | <el-form-item label="预配航班日期:"> |
| ... | @@ -226,15 +250,6 @@ | ... | @@ -226,15 +250,6 @@ |
| 226 | </el-form-item> | 250 | </el-form-item> |
| 227 | </el-col> --> | 251 | </el-col> --> |
| 228 | <!-- <el-col :span="6"> | 252 | <!-- <el-col :span="6"> |
| 229 | - <el-form-item label="航班序列单号:"> | ||
| 230 | - <el-input | ||
| 231 | - type="text" | ||
| 232 | - v-model="formData.mawbCode" | ||
| 233 | - class="formItem" | ||
| 234 | - ></el-input> | ||
| 235 | - </el-form-item> | ||
| 236 | - </el-col> --> | ||
| 237 | - <!-- <el-col :span="6"> | ||
| 238 | <el-form-item label="配置航班类型:"> | 253 | <el-form-item label="配置航班类型:"> |
| 239 | <el-select | 254 | <el-select |
| 240 | placeholder="不限" | 255 | placeholder="不限" |
| ... | @@ -270,8 +285,17 @@ | ... | @@ -270,8 +285,17 @@ |
| 270 | </el-select> | 285 | </el-select> |
| 271 | </el-form-item> | 286 | </el-form-item> |
| 272 | </el-col> --> | 287 | </el-col> --> |
| 288 | + <!-- <el-col :span="6"> | ||
| 289 | + <el-form-item label="航班序列单号:"> | ||
| 290 | + <el-input | ||
| 291 | + type="text" | ||
| 292 | + v-model="formData.mawbCode" | ||
| 293 | + class="formItem" | ||
| 294 | + ></el-input> | ||
| 295 | + </el-form-item> | ||
| 296 | + </el-col> --> | ||
| 273 | </el-row> | 297 | </el-row> |
| 274 | - <div style="paddingleft: 10px;marginTop:20px"> | 298 | + <div style="paddingLeft: 10px;marginTop:20px"> |
| 275 | <el-button | 299 | <el-button |
| 276 | type="primary" | 300 | type="primary" |
| 277 | icon="el-icon-search" | 301 | icon="el-icon-search" |
| ... | @@ -298,12 +322,13 @@ | ... | @@ -298,12 +322,13 @@ |
| 298 | ref="cargoTable" | 322 | ref="cargoTable" |
| 299 | :data="tableData" | 323 | :data="tableData" |
| 300 | v-loading="tableLoading" | 324 | v-loading="tableLoading" |
| 301 | - border | 325 | + highlight-current-row border stripe |
| 326 | + size="mini" | ||
| 302 | @select="cheacked" | 327 | @select="cheacked" |
| 303 | @select-all="selectAll" | 328 | @select-all="selectAll" |
| 304 | > | 329 | > |
| 305 | - <el-table-column type="selection" width="55" fixed> </el-table-column> | 330 | + <el-table-column type="selection" width="55" fixed align="center"> </el-table-column> |
| 306 | - <el-table-column type="index" label="序号"> | 331 | + <el-table-column type="index" label="序号" align="center"> |
| 307 | <template slot-scope="scope">{{ scope.$index + 1 }}</template> | 332 | <template slot-scope="scope">{{ scope.$index + 1 }}</template> |
| 308 | </el-table-column> | 333 | </el-table-column> |
| 309 | <el-table-column | 334 | <el-table-column |
| ... | @@ -311,9 +336,9 @@ | ... | @@ -311,9 +336,9 @@ |
| 311 | :prop="item.value" | 336 | :prop="item.value" |
| 312 | :label="item.name" | 337 | :label="item.name" |
| 313 | :key="item.name" | 338 | :key="item.name" |
| 314 | - width="150" | ||
| 315 | header-align="center" | 339 | header-align="center" |
| 316 | align="center" | 340 | align="center" |
| 341 | + :width="item.value=='bigPretrialOpinion'?'300':'170'" | ||
| 317 | :formatter="formatter" | 342 | :formatter="formatter" |
| 318 | sortable | 343 | sortable |
| 319 | > | 344 | > |
| ... | @@ -323,7 +348,7 @@ | ... | @@ -323,7 +348,7 @@ |
| 323 | :total="totalCount" | 348 | :total="totalCount" |
| 324 | :page-size.sync="limitSize" | 349 | :page-size.sync="limitSize" |
| 325 | background | 350 | background |
| 326 | - style="margin-top: 40px; text-align: right" | 351 | + style="marginTop: 40px; textAlign: right" |
| 327 | @next-click="nextClick" | 352 | @next-click="nextClick" |
| 328 | @prev-click="prevClick" | 353 | @prev-click="prevClick" |
| 329 | @current-change="currentChange" | 354 | @current-change="currentChange" |
| ... | @@ -371,10 +396,11 @@ export default { | ... | @@ -371,10 +396,11 @@ export default { |
| 371 | { name: "取件扫描号", value: "pickUpScanNo" }, | 396 | { name: "取件扫描号", value: "pickUpScanNo" }, |
| 372 | { name: "服务类型", value: "serviceTypeName" }, | 397 | { name: "服务类型", value: "serviceTypeName" }, |
| 373 | { name: "运单号", value: "waybillNo" }, | 398 | { name: "运单号", value: "waybillNo" }, |
| 399 | + { name: "总单号", value: "totalWaybillNo" }, | ||
| 374 | { name: "货物状态", value: "statusName" }, | 400 | { name: "货物状态", value: "statusName" }, |
| 375 | - { name: "ACCS航班号", value: "fltNoAccs" }, | 401 | + { name: "ACCS原航班号", value: "fltNoAccs" }, |
| 376 | - { name: "ACCS航班日期", value: "fltDateAccs" }, | 402 | + { name: "ACCS原航班日期", value: "fltDateAccs" }, |
| 377 | - { name: "ACCS航线", value: "accsFlightRoute" }, | 403 | + { name: "ACCS原航线", value: "accsFlightRoute" }, |
| 378 | { name: "预配航班日期", value: "preplanFlightTime" }, | 404 | { name: "预配航班日期", value: "preplanFlightTime" }, |
| 379 | { name: "预配航班号", value: "preplanFlightNo" }, | 405 | { name: "预配航班号", value: "preplanFlightNo" }, |
| 380 | { name: "二配航班日期", value: "twoMatchFlightTime" }, | 406 | { name: "二配航班日期", value: "twoMatchFlightTime" }, |
| ... | @@ -470,6 +496,9 @@ export default { | ... | @@ -470,6 +496,9 @@ export default { |
| 470 | this.allQty = 0; | 496 | this.allQty = 0; |
| 471 | this.checks() | 497 | this.checks() |
| 472 | this.tableLoading = true; | 498 | this.tableLoading = true; |
| 499 | + if(this.formData.customsReceiptStatusId != null && this.formData.customsReceiptStatusId.length < 1){ | ||
| 500 | + this.formData.customsReceiptStatusId = null; | ||
| 501 | + } | ||
| 473 | if (this.createDate != null && this.createDate.length > 0) { | 502 | if (this.createDate != null && this.createDate.length > 0) { |
| 474 | this.formData.createTimeStart = this.createDate[0]; | 503 | this.formData.createTimeStart = this.createDate[0]; |
| 475 | this.formData.createTimeEnd = this.createDate[1]; | 504 | this.formData.createTimeEnd = this.createDate[1]; |
| ... | @@ -498,7 +527,6 @@ export default { | ... | @@ -498,7 +527,6 @@ export default { |
| 498 | this.formData.cargoPlaneStart = null; | 527 | this.formData.cargoPlaneStart = null; |
| 499 | this.formData.cargoPlaneEnd = null; | 528 | this.formData.cargoPlaneEnd = null; |
| 500 | } | 529 | } |
| 501 | - | ||
| 502 | this.formData.limitStart = this.limitStart; | 530 | this.formData.limitStart = this.limitStart; |
| 503 | this.formData.limitSize = this.limitSize; | 531 | this.formData.limitSize = this.limitSize; |
| 504 | findCargoData(this.formData).then((res) => { | 532 | findCargoData(this.formData).then((res) => { |
| ... | @@ -620,6 +648,9 @@ export default { | ... | @@ -620,6 +648,9 @@ export default { |
| 620 | // 导出表格 | 648 | // 导出表格 |
| 621 | xlse(page) { | 649 | xlse(page) { |
| 622 | let cargoXlse = {title:"货物导出表",cargoConditionDto:{}}; | 650 | let cargoXlse = {title:"货物导出表",cargoConditionDto:{}}; |
| 651 | + if(this.formData.customsReceiptStatusId != null && this.formData.customsReceiptStatusId.length < 1){ | ||
| 652 | + this.formData.customsReceiptStatusId = null; | ||
| 653 | + } | ||
| 623 | if (this.createDate != null && this.createDate.length > 0) { | 654 | if (this.createDate != null && this.createDate.length > 0) { |
| 624 | this.formData.createTimeStart = this.createDate[0]; | 655 | this.formData.createTimeStart = this.createDate[0]; |
| 625 | this.formData.createTimeEnd = this.createDate[1]; | 656 | this.formData.createTimeEnd = this.createDate[1]; |
| ... | @@ -697,6 +728,14 @@ export default { | ... | @@ -697,6 +728,14 @@ export default { |
| 697 | this.formData.ursa = val.toUpperCase(); | 728 | this.formData.ursa = val.toUpperCase(); |
| 698 | }, | 729 | }, |
| 699 | }, | 730 | }, |
| 731 | + cargoPlaneNo:{ | ||
| 732 | + get: function () { | ||
| 733 | + return this.formData.cargoPlaneNo; | ||
| 734 | + }, | ||
| 735 | + set: function (val) { | ||
| 736 | + this.formData.cargoPlaneNo = val.toUpperCase(); | ||
| 737 | + }, | ||
| 738 | + } | ||
| 700 | }, | 739 | }, |
| 701 | }; | 740 | }; |
| 702 | </script> | 741 | </script> |
| ... | @@ -712,5 +751,4 @@ export default { | ... | @@ -712,5 +751,4 @@ export default { |
| 712 | width:100%; | 751 | width:100%; |
| 713 | max-width: 300px; | 752 | max-width: 300px; |
| 714 | } | 753 | } |
| 715 | - | ||
| 716 | </style> | 754 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | -//version:0.5.1 | 1 | +//version:0.5.3 |
| 2 | 'use strict' | 2 | 'use strict' |
| 3 | const path = require('path') | 3 | const path = require('path') |
| 4 | const defaultSettings = require('./src/settings.js') | 4 | const defaultSettings = require('./src/settings.js') |
| ... | @@ -35,10 +35,9 @@ module.exports = { | ... | @@ -35,10 +35,9 @@ module.exports = { |
| 35 | proxy: { | 35 | proxy: { |
| 36 | // detail: https://cli.vuejs.org/config/#devserver-proxy | 36 | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| 37 | [process.env.VUE_APP_BASE_API]: { | 37 | [process.env.VUE_APP_BASE_API]: { |
| 38 | - // target: `https://imacuat.zmd.apac.fedex.com/IMAC2`, | 38 | + // target: `https://imacuat.zmd.apac.fedex.com/IMAC2`, //uat服务器 |
| 39 | - // target: `http://192.168.1.45:8080`, | 39 | + target: `http://47.103.140.98:9002`, //阿里云服务器 |
| 40 | - target: `http://47.103.140.98:9002`, | 40 | + // target: `http://192.168.1.134:18080`, //测试服务器 |
| 41 | - // target: `http://192.168.1.134:18080`, | ||
| 42 | changeOrigin: true, | 41 | changeOrigin: true, |
| 43 | pathRewrite: { | 42 | pathRewrite: { |
| 44 | ['^' + process.env.VUE_APP_BASE_API]: '' | 43 | ['^' + process.env.VUE_APP_BASE_API]: '' | ... | ... |
-
Please register or login to post a comment