Showing
4 changed files
with
49 additions
and
75 deletions
| ... | @@ -3,7 +3,7 @@ import request from "@/utils/request"; | ... | @@ -3,7 +3,7 @@ import request from "@/utils/request"; |
| 3 | // POST | 3 | // POST |
| 4 | // /mockReceipt/add | 4 | // /mockReceipt/add |
| 5 | // 新增模拟回执 | 5 | // 新增模拟回执 |
| 6 | -export function add(data) { | 6 | +export function addInfo(data) { |
| 7 | return request({ | 7 | return request({ |
| 8 | url: "/bus-customer/mockReceipt/add", | 8 | url: "/bus-customer/mockReceipt/add", |
| 9 | method: "post", | 9 | method: "post", | ... | ... |
This diff is collapsed. Click to expand it.
| ... | @@ -10,46 +10,52 @@ | ... | @@ -10,46 +10,52 @@ |
| 10 | <el-row class="row-border"> | 10 | <el-row class="row-border"> |
| 11 | <!-- 角色名称 --> | 11 | <!-- 角色名称 --> |
| 12 | <el-col :span="5"> | 12 | <el-col :span="5"> |
| 13 | - <Formitem label="经营人代码" prop="operatorCode"> | 13 | + <Formitem label="回执类型" prop="receiptType"> |
| 14 | - <el-input | 14 | + <el-select |
| 15 | type="text" | 15 | type="text" |
| 16 | - class="inputShadow" | 16 | + id="inputInner--receiptType" |
| 17 | - id="inputInner--operatorCode" | 17 | + v-model="sreachFormData.receiptType" |
| 18 | - resize="none" | ||
| 19 | - v-model="sreachFormData.operatorCode" | ||
| 20 | clearable | 18 | clearable |
| 19 | + filterable | ||
| 21 | placeholder="" | 20 | placeholder="" |
| 22 | - ></el-input> | 21 | + > |
| 22 | + <el-option | ||
| 23 | + v-for="item in receiptTypeList" | ||
| 24 | + :key="item.value" | ||
| 25 | + :label="item.itemChineseName" | ||
| 26 | + :value="item.itemValue" | ||
| 27 | + ></el-option> | ||
| 28 | + </el-select> | ||
| 23 | </Formitem> | 29 | </Formitem> |
| 24 | </el-col> | 30 | </el-col> |
| 25 | <el-col :span="5"> | 31 | <el-col :span="5"> |
| 26 | - <Formitem label="经营人名称" prop="operatorName"> | 32 | + <Formitem label="订单编号" prop="orderNo"> |
| 27 | <el-input | 33 | <el-input |
| 28 | type="text" | 34 | type="text" |
| 29 | class="inputShadow" | 35 | class="inputShadow" |
| 30 | - id="inputInner--operatorName" | 36 | + id="inputInner--orderNo" |
| 31 | resize="none" | 37 | resize="none" |
| 32 | - v-model="sreachFormData.operatorName" | 38 | + v-model="sreachFormData.orderNo" |
| 33 | clearable | 39 | clearable |
| 34 | placeholder="" | 40 | placeholder="" |
| 35 | ></el-input> | 41 | ></el-input> |
| 36 | </Formitem> | 42 | </Formitem> |
| 37 | </el-col> | 43 | </el-col> |
| 38 | <el-col :span="5"> | 44 | <el-col :span="5"> |
| 39 | - <Formitem label="所属口岸" prop="portCode"> | 45 | + <Formitem label="回执状态" prop="receiptStatus"> |
| 40 | <el-select | 46 | <el-select |
| 41 | type="text" | 47 | type="text" |
| 42 | - id="inputInner--portCode" | 48 | + id="inputInner--receiptStatus" |
| 43 | - v-model="sreachFormData.portCode" | 49 | + v-model="sreachFormData.receiptStatus" |
| 44 | clearable | 50 | clearable |
| 45 | filterable | 51 | filterable |
| 46 | placeholder="" | 52 | placeholder="" |
| 47 | > | 53 | > |
| 48 | <el-option | 54 | <el-option |
| 49 | - v-for="item in portCodeList" | 55 | + v-for="item in receiptStatusList" |
| 50 | - :key="item" | 56 | + :key="item.value" |
| 51 | - :label="item" | 57 | + :label="item.itemChineseName" |
| 52 | - :value="item" | 58 | + :value="item.itemValue" |
| 53 | ></el-option> | 59 | ></el-option> |
| 54 | </el-select> | 60 | </el-select> |
| 55 | </Formitem> | 61 | </Formitem> |
| ... | @@ -109,31 +115,20 @@ | ... | @@ -109,31 +115,20 @@ |
| 109 | :selectFixed="false" | 115 | :selectFixed="false" |
| 110 | :rowSelectDataType="false" | 116 | :rowSelectDataType="false" |
| 111 | > | 117 | > |
| 112 | - <template slot="optionColumn"> | ||
| 113 | - <el-table-column align="left" label="操作"> | ||
| 114 | - <template slot-scope="scope"> | ||
| 115 | - <el-button type="text" @click="update(scope.row)"> 修改 </el-button> | ||
| 116 | - </template> | ||
| 117 | - </el-table-column> | ||
| 118 | - </template> | ||
| 119 | </Table> | 118 | </Table> |
| 120 | <DialogVue | 119 | <DialogVue |
| 121 | :outerVisible="outerVisible" | 120 | :outerVisible="outerVisible" |
| 122 | - :title="dialogTitle" | ||
| 123 | - :type="editType" | ||
| 124 | - :active="activeData" | ||
| 125 | @close="dialogClose" | 121 | @close="dialogClose" |
| 126 | - :portCodeList="portCodeList" | 122 | + :receiptStatusList="receiptStatusList" |
| 123 | + :receiptTypeList="receiptTypeList" | ||
| 127 | /> | 124 | /> |
| 128 | </div> | 125 | </div> |
| 129 | </template> | 126 | </template> |
| 130 | 127 | ||
| 131 | <script> | 128 | <script> |
| 132 | -import { | ||
| 133 | - getOperatorPlaceList, | ||
| 134 | - getPortCodeList, | ||
| 135 | -} from "@/api/supervisePlaceManage-api.js"; | ||
| 136 | import { searchList } from "@/api/receiptManagement-api.js"; | 129 | import { searchList } from "@/api/receiptManagement-api.js"; |
| 130 | +import { getDictData } from "@/api/system/dict-api.js"; | ||
| 131 | + | ||
| 137 | import DialogVue from "./dialog.vue"; | 132 | import DialogVue from "./dialog.vue"; |
| 138 | export default { | 133 | export default { |
| 139 | name: "SupervisePlaceManage", | 134 | name: "SupervisePlaceManage", |
| ... | @@ -143,16 +138,15 @@ export default { | ... | @@ -143,16 +138,15 @@ export default { |
| 143 | data() { | 138 | data() { |
| 144 | return { | 139 | return { |
| 145 | sreachFormData: { | 140 | sreachFormData: { |
| 146 | - portCode: "", | 141 | + receiptType: "", |
| 147 | - operatorCode: "", | 142 | + orderNo: "", |
| 148 | - operatorName: "", | 143 | + receiptStatus: "", |
| 149 | }, | 144 | }, |
| 150 | page: { | 145 | page: { |
| 151 | pageIndex: 1, | 146 | pageIndex: 1, |
| 152 | pageSize: 20, | 147 | pageSize: 20, |
| 153 | total: 0, | 148 | total: 0, |
| 154 | }, | 149 | }, |
| 155 | - activeData: null, | ||
| 156 | tableData: [], | 150 | tableData: [], |
| 157 | headerData: [ | 151 | headerData: [ |
| 158 | { | 152 | { |
| ... | @@ -191,32 +185,39 @@ export default { | ... | @@ -191,32 +185,39 @@ export default { |
| 191 | }, | 185 | }, |
| 192 | tableMaxheight: null, | 186 | tableMaxheight: null, |
| 193 | outerVisible: false, | 187 | outerVisible: false, |
| 194 | - dialogTitle: "", | 188 | + receiptStatusList: [], |
| 195 | - editType: "", | 189 | + receiptTypeList: [], |
| 196 | - portCodeList: [], | ||
| 197 | }; | 190 | }; |
| 198 | }, | 191 | }, |
| 199 | created() { | 192 | created() { |
| 200 | this.search(0); | 193 | this.search(0); |
| 194 | + this.fetchReceiptStatus(); | ||
| 201 | }, | 195 | }, |
| 202 | mounted() { | 196 | mounted() { |
| 203 | this.tableMaxheight = window.innerHeight - 300; | 197 | this.tableMaxheight = window.innerHeight - 300; |
| 204 | - this.fetchPortCodeList(); | ||
| 205 | }, | 198 | }, |
| 206 | methods: { | 199 | methods: { |
| 207 | - // 获取所属口岸 | 200 | + fetchReceiptStatus() { |
| 208 | - fetchPortCodeList() { | 201 | + getDictData({ doctCode: "RECEIPT_TYPE" }) |
| 209 | - getPortCodeList() | ||
| 210 | .then((res) => { | 202 | .then((res) => { |
| 211 | - if (res.code === "200") { | 203 | + if (res.code == "200") { |
| 212 | - this.portCodeList = res.data; | 204 | + this.receiptTypeList = res.data; |
| 213 | - } else { | ||
| 214 | } | 205 | } |
| 215 | }) | 206 | }) |
| 216 | .catch((err) => { | 207 | .catch((err) => { |
| 217 | - console.log(err); | 208 | + console.error(err); |
| 209 | + }); | ||
| 210 | + getDictData({ doctCode: "RECEIPT_STATUS" }) | ||
| 211 | + .then((res) => { | ||
| 212 | + if (res.code == "200") { | ||
| 213 | + this.receiptStatusList = res.data; | ||
| 214 | + } | ||
| 215 | + }) | ||
| 216 | + .catch((err) => { | ||
| 217 | + console.error(err); | ||
| 218 | }); | 218 | }); |
| 219 | }, | 219 | }, |
| 220 | + | ||
| 220 | clear() { | 221 | clear() { |
| 221 | this.$refs.sreachForm.resetFields(); | 222 | this.$refs.sreachForm.resetFields(); |
| 222 | }, | 223 | }, |
| ... | @@ -248,20 +249,11 @@ export default { | ... | @@ -248,20 +249,11 @@ export default { |
| 248 | }); | 249 | }); |
| 249 | }, | 250 | }, |
| 250 | addRole() { | 251 | addRole() { |
| 251 | - this.dialogTitle = "监管场所管理新增"; | ||
| 252 | - this.editType = "add"; | ||
| 253 | - this.outerVisible = true; | ||
| 254 | - }, | ||
| 255 | - update(val) { | ||
| 256 | - this.dialogTitle = "监管场所管理修改"; | ||
| 257 | - this.editType = "update"; | ||
| 258 | this.outerVisible = true; | 252 | this.outerVisible = true; |
| 259 | - this.activeData = JSON.parse(JSON.stringify(val)); | ||
| 260 | }, | 253 | }, |
| 261 | 254 | ||
| 262 | dialogClose() { | 255 | dialogClose() { |
| 263 | this.outerVisible = false; | 256 | this.outerVisible = false; |
| 264 | - this.activeData = null; | ||
| 265 | this.search(1); | 257 | this.search(1); |
| 266 | }, | 258 | }, |
| 267 | //分页 | 259 | //分页 | ... | ... |
| ... | @@ -274,24 +274,6 @@ export default { | ... | @@ -274,24 +274,6 @@ export default { |
| 274 | this.loadings.dialogLoading = false; | 274 | this.loadings.dialogLoading = false; |
| 275 | }); | 275 | }); |
| 276 | }, | 276 | }, |
| 277 | - //菜单权限修改 | ||
| 278 | - menuChangeapi(val) { | ||
| 279 | - updateOperatorPlace(val) | ||
| 280 | - .then((res) => { | ||
| 281 | - if (res.code === "200") { | ||
| 282 | - this.msgSuccess(res.message); | ||
| 283 | - this.close(); | ||
| 284 | - this.$store.dispatch("GenerateRoutes"); | ||
| 285 | - } else { | ||
| 286 | - this.alertWarningMsg(res.message); | ||
| 287 | - this.loadings.dialogLoading = false; | ||
| 288 | - } | ||
| 289 | - }) | ||
| 290 | - .catch((err) => { | ||
| 291 | - console.log(err); | ||
| 292 | - this.loadings.dialogLoading = false; | ||
| 293 | - }); | ||
| 294 | - }, | ||
| 295 | 277 | ||
| 296 | close() { | 278 | close() { |
| 297 | this.formData = { | 279 | this.formData = { | ... | ... |
-
Please register or login to post a comment