| | |
| | | <el-button size="small" type="primary" @click="add">新增</el-button> |
| | | <el-button size="small" type="primary" @click="empty">清空</el-button> |
| | | |
| | | <el-button size="small" v-if="recalculateShow" type="primary" @click="recalculate" :disabled="isRecalculate ? false : true" |
| | | <el-button |
| | | size="small" |
| | | v-if="recalculateShow" |
| | | type="primary" |
| | | @click="recalculate" |
| | | :disabled="isRecalculate ? false : true" |
| | | >重算</el-button |
| | | > |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getProductList } from "@/api/common/other" |
| | | import { getProductList } from "@/api/productManage/product" |
| | | import SelectCommonDialog from "@/views/other/commonDialog/SelectCommonDialog" |
| | | export default { |
| | | name: "CommmonFormTableView", |
| | |
| | | total: false, |
| | | refundable: false, |
| | | sumProp: [], |
| | | titleProp:["#", "产品名称"], |
| | | titleProp: ["#", "产品名称"], |
| | | mergeNumber: 1 |
| | | } |
| | | } |
| | | }, |
| | | recalculateShow:{ |
| | | type:[Boolean], |
| | | defalut:true, |
| | | }, |
| | | |
| | | recalculateShow: { |
| | | type: [Boolean], |
| | | defalut: true |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | // 产品名称 |
| | | async getProductList() { |
| | | await getProductList({ |
| | | productName: "", |
| | | productNumber: "", |
| | | page: 1, |
| | | pageSize: 5 |
| | | pageSize: 100 |
| | | }).then((res) => { |
| | | console.log(res.data) |
| | | if (res.data.code === 200) { |
| | | if (res.data.data.data && res.data.data.data.length > 0) { |
| | | this.productList = res.data.data.data |
| | | if (res.data.data.list && res.data.data.list.length > 0) { |
| | | this.productList = res.data.data.list |
| | | } |
| | | } |
| | | }) |