| | |
| | | color: #fff; |
| | | } |
| | | /* 输入框的样式 */ |
| | | .search-header .el-form-item .el-input .el-input__inner{ |
| | | .search-header .el-form-item .el-input >>>.el-input__inner{ |
| | | width: 224px; |
| | | height: 32px ; |
| | | box-sizing: border-box; |
| | |
| | | margin-bottom: 24px; |
| | | font-size: 16px; |
| | | } |
| | | .detail-model >>>.el-form-item__label{ |
| | | color: rgb(51, 51, 51); |
| | | } |
| | | .detail-model >>>.el-input__inner{ |
| | | width: 224px; |
| | | height: 32px; |
| | | box-sizing: border-box; |
| | | background: rgb(238, 238, 238); |
| | | border: 1px solid rgb(221, 221, 221); |
| | | border-radius:4px; |
| | | } |
| | | </style> |
| | | |
| | | |
| | |
| | | <div class="search-header"> |
| | | <el-form v-model="searchData" :inline="true"> |
| | | <el-form-item label="订单号:"> |
| | | <el-input v-model="searchData.number"></el-input> |
| | | <el-input v-model="searchData.id"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="下单日期:"> |
| | | <el-date-picker |
| | | v-model="searchData.date" |
| | | value-format="yyyy-MM-dd" |
| | | type="date" |
| | | placeholder="选择日期"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button plain @click="resetBtn">重 置</el-button> |
| | | <el-button @click="filteredTableData">查 询</el-button> |
| | | <el-button @click="searchTechnical">查 询</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | width="78"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="date" |
| | | prop="id" |
| | | label="订单号" |
| | | width="124"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | prop="proname" |
| | | label="工程名称" |
| | | width="160"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="code" |
| | | label="产品编码" |
| | | width="168" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | prop="type" |
| | | label="产品大类" |
| | | width="128"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="specifications" |
| | | label="规格型号" |
| | | width="170"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | prop="unit" |
| | | label="单位" |
| | | width="100"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="number" |
| | | label="数量" |
| | | width="118" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | prop="username" |
| | | label="下单人" |
| | | width="114"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="createTime" |
| | | label="下单日期" |
| | | width="153" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="deliveryTime" |
| | | label="交货日期" |
| | | width="137"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | prop="state" |
| | | label="状态" |
| | | width="85" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{scope.state==1?'待编制':'已编制'}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | fixed="right" |
| | | label="操作" |
| | | width="194"> |
| | | <template slot-scope="scope"> |
| | |
| | | |
| | | |
| | | <el-pagination |
| | | :current-page="1" |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="pageParams.pageNo" |
| | | :page-sizes="[100, 200, 300, 400]" |
| | | :page-size="100" |
| | | :page-size="pageParams.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="400"> |
| | | :total="pageParams.total"> |
| | | </el-pagination> |
| | | <!-- 查看详情模态框 --> |
| | | <el-dialog title="文件详情" :visible.sync="showDetail" width="687px" @close="showDetail = false"> |
| | | <el-dialog title="文件详情" class="detail-model" :visible.sync="showDetail" width="687px" @close="showDetail = false"> |
| | | <el-form label-position="right" label-width="70px" :model="selectedRow"> |
| | | <span class="formtitle">基本信息</span> |
| | | <el-row :gutter="31"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="订单号"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.id" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="工程名称"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;"/> |
| | | <el-input :value="selectedRow.proname" :readonly="true" style="height: 32px; width: 224px;"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="31"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="产品编码"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.code" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="产品大类"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.type" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="31"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="规格型号"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.specifications" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="单位"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.unit" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="31"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="数量"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.number" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="下单人"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.custname" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="31"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="下单日期"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.createTime" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="交货日期"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.deliveryTime" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="31"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="状态"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.state==1?'待编制':'已编制'" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-row :gutter="31"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="客户名称"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.proname" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="省份"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.province" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="31"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="事业部"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.department" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="业务员"> |
| | | <el-input :value="selectedRow.date" readonly="true" style="height: 32px; width: 224px;" /> |
| | | <el-input :value="selectedRow.salesman" :readonly="true" style="height: 32px; width: 224px;" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | |
| | | <script> |
| | | export default { |
| | | filters:{ |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | | searchData:{ |
| | | number:'', |
| | | id:'', |
| | | date:'' |
| | | }, |
| | | technicalTable: [{ |
| | |
| | | name: '王小虎', |
| | | address: '上海市' |
| | | } |
| | | ], |
| | | showDetail: false, |
| | | selectedRow: '' |
| | | ], |
| | | showDetail: false, |
| | | selectedRow: {}, |
| | | pageParams:{ |
| | | pageNo:1, |
| | | pageSize:10, |
| | | total:0 |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.getTechnicalTableData() |
| | | }, |
| | | methods: { |
| | | showDetails(row){ |
| | | async showDetails(row){ |
| | | this.showDetail = true |
| | | this.selectedRow = row |
| | | const res = await this.$axios.get(this.$api.url.selectOrderById,{params:{id:row.id}}) |
| | | this.selectedRow = res.data |
| | | console.log(this.selectedRow) |
| | | }, |
| | | async getTechnicalTableData() { |
| | | const res = await this.$axios.get(this.$api.url.selectAllOrder,{params:{pageSize:(this.pageParams.pageNo-1),countSize:this.pageParams.pageSize,...this.searchData}}) |
| | | this.technicalTable = res.data.row |
| | | this.pageParams.total = res.data.total |
| | | }, |
| | | // 头部条件查询-重置 |
| | | resetBtn() { |
| | | this.searchData={} |
| | | }, |
| | | // 头部条件查询-查询 |
| | | searchTechnical() { |
| | | this.getTechnicalTableData() |
| | | }, |
| | | handleSizeChange(value){ |
| | | this.pageParams.pageSize = value |
| | | this.getTechnicalTableData() |
| | | }, |
| | | handleCurrentChange(value){ |
| | | this.pageParams.pageNo = value |
| | | this.getTechnicalTableData() |
| | | } |
| | | }, |
| | | } |