| | |
| | | openTip ? "关闭提示" : "开启提示" |
| | | }}</Button> |
| | | <Input |
| | | v-model="searchForm.name" |
| | | v-model="searchForm2.name" |
| | | suffix="ios-search" |
| | | @on-change="getDataList" |
| | | @on-change="getDataList2" |
| | | placeholder="输入商户名称搜索" |
| | | clearable |
| | | style="width: 250px" |
| | |
| | | order: "desc", // 默认排序方式 |
| | | key: "", |
| | | }, |
| | | searchForm2: { |
| | | // 搜索框初始化对象 |
| | | pageNumber: 1, // 当前页数 |
| | | pageSize: 10, // 页面大小 |
| | | sort: "createTime", // 默认排序字段 |
| | | order: "desc", // 默认排序方式 |
| | | key: "", |
| | | }, |
| | | addOilForm: { |
| | | status : '0' |
| | | }, |
| | |
| | | { |
| | | title: "商户名称", |
| | | key: "customerName", |
| | | width: 100, |
| | | width: 240, |
| | | }, |
| | | { |
| | | title: "接货人", |
| | |
| | | } |
| | | }); |
| | | }, |
| | | getDataList2() { |
| | | this.loading = true; |
| | | getCustomerReceive(this.searchForm2).then((res) => { |
| | | this.loading = false; |
| | | if (res.success) { |
| | | this.data = res.result.records; |
| | | this.total = res.result.total; |
| | | } |
| | | }); |
| | | }, |
| | | getPermList() { |
| | | this.treeLoading = true; |
| | | getAllPermissionList().then((res) => { |
| | |
| | | addOil() { |
| | | this.getAllCar(); |
| | | this.modalType = 0; |
| | | this.modalTitle = "添加加油记录"; |
| | | this.modalTitle = "添加记录"; |
| | | this.$refs.addOilForm.resetFields(); |
| | | delete this.addOilForm.id; |
| | | this.roleModalVisible = true; |
| | |
| | | this.getAllCar(); |
| | | this.addDate = v.addDate; |
| | | this.modalType = 1; |
| | | this.modalTitle = "编辑加油信息"; |
| | | this.modalTitle = "编辑信息"; |
| | | this.$refs.addOilForm.resetFields(); |
| | | // 转换null为"" |
| | | for (let attr in v) { |
| | |
| | | } |
| | | let str = JSON.stringify(v); |
| | | let roleInfo = JSON.parse(str); |
| | | |
| | | this.addOilForm = roleInfo; |
| | | this.roleModalVisible = true; |
| | | }, |
| | |
| | | this.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | </script> |