| | |
| | | <div> |
| | | <SearchCommonView |
| | | :add-title="'新建'" |
| | | :showAdd="true" |
| | | :placeholder="'请输入参考'" |
| | | :showAdd="false" |
| | | :placeholder="''" |
| | | :amount-view="false" |
| | | @addCommonClick="addBtnClick" |
| | | @searchClick="getList" |
| | |
| | | :table-list="tableList" |
| | | @selTableCol="selTableCol" |
| | | @tableRowClick="tableRowClick" |
| | | :showSummary="true" |
| | | > |
| | | <template slot="tableButton"> |
| | | <el-table-column label="操作" width="210" align="center"> |
| | |
| | | infomation: {} |
| | | }, |
| | | productId: this.$route.params.id, |
| | | productName: this.$route.params.name |
| | | productName: this.$route.params.name, |
| | | metaTitle: this.$route.meta.title |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | setTable() { |
| | | this.tableList = { |
| | | tableInfomation: [], |
| | | selectBox: true, |
| | | selectBox: false, |
| | | selectIndex: true, |
| | | showcol: this.showcol, |
| | | countcol: this.countcol, |
| | | allcol: [], |
| | |
| | | prop: "unit", |
| | | width: 120, |
| | | default: false, |
| | | isShowColumn: showcol.includes("价值") |
| | | isShowColumn: showcol.includes("单位") |
| | | }, |
| | | { |
| | | label: "价值", |
| | |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | | if (res.code === 200) { |
| | | console.log(res.data, "接口请求成功") |
| | | const list = res.data |
| | | this.tableList.tableInfomation = list || [] |
| | | this.pagerOptions.totalCount = res.total |
| | |
| | | return val === 1 ? "草稿" : val === 3 ? "就绪" : "完成" |
| | | }, |
| | | // 历史 |
| | | handleHistoryClick() {}, |
| | | handleHistoryClick(row) { |
| | | this.$router.push({ |
| | | name: "inboundOutboundDetail", |
| | | params: { |
| | | id: row.produceId, |
| | | name: "报表" |
| | | } |
| | | }) |
| | | }, |
| | | // 补货 |
| | | handleAddGoods() {} |
| | | } |