ll
liukangdong
2024-09-06 d39cce94b1e2ac194fbf8c76b4925c7dcb41160e
admin/src/views/platform/LogisticsRecord/waybill.vue
@@ -84,7 +84,13 @@
      width="480px"
    >
      <el-form :model="param" :rules="rules" ref="ruleForm" label-width="100px">
        <el-form-item label="运输单号" prop="name">
        <el-form-item label="入园原因" prop="name">
          <el-input v-model="param.aaa" placeholder="请输入"></el-input>
        </el-form-item>
        <el-form-item label="合同号" prop="name">
          <el-input v-model="param.aaa" placeholder="请输入"></el-input>
        </el-form-item>
        <el-form-item label="到场时间" prop="name">
          <el-input v-model="param.aaa" placeholder="请输入"></el-input>
        </el-form-item>
        <el-form-item label="车前牌照号" prop="name">
@@ -115,6 +121,7 @@
<script>
import Pagination from '@/components/common/Pagination'
import QueryForm from '@/components/common/QueryForm'
import { platformJobPage } from '@/api'
export default {
  components: {
    Pagination,
@@ -124,29 +131,29 @@
    return {
      loading: false,
      pagination: {
        capacity: 10,
        page: 1
        pageSize: 10,
        page: 1,
        total: 0
      },
      filters: {},
      list: [],
      total: 0,
      isShowEdit: false,
      param: {},
      rules: {},
      queryFormConfig: {
        formItems: [
          {
            filed: 'aaaa',
            filed: 'carCodeFront',
            type: 'input',
            label: '车牌号'
          },
          {
            filed: 'bbb',
            filed: 'driverName',
            type: 'input',
            label: '驾驶员'
          },
          {
            filed: 'cc',
            filed: 'code',
            type: 'input',
            label: '运输单号'
          },
@@ -160,6 +167,9 @@
      },
    }
  },
  created() {
    this.getList()
  },
  methods: {
    handleSub () {
      this.$refs.ruleForm.validate((valid) => {
@@ -168,18 +178,33 @@
        }
      })
    },
    getList (page) { },
    clear () { },
    getList (page) {
      const { pagination, filters } = this
      this.loading = true
      platformJobPage({
        model: { ...filters, jobType: 0 },
        capacity: pagination.pageSize,
        page: pagination.page,
      }).then(res => {
        this.loading = false
        this.list = res.records || []
        this.pagination.total = res.total || 0
      }, () => {
        this.loading = false
      })
    },
    clear () {
      this.pagination.page = 1
      this.filters = {}
      this.getList()
    },
    handleEdit (row) {
      this.isShowEdit = true
    },
    handleDel () { },
    handleSizeChange (capacity) {
      this.pagination.capacity = capacity
      this.pagination.pageSize = capacity
    }
  }
}
</script>
<style>
</style>