| | |
| | | <div class="search-top"> |
| | | <div class="search"> |
| | | <el-input v-if="inputSelect" :placeholder="placeholder" v-model="searchInput" class="input-with-select" clearable> |
| | | <el-select v-model="searchSelValue" slot="prepend" placeholder="请选择" class="search-sel"> |
| | | <!-- <el-select v-model="searchSelValue" slot="prepend" placeholder="请选择" class="search-sel"> |
| | | <el-option v-for="item in searchOptions" :key="item.value" :label="item.label" :value="item"> </el-option> |
| | | </el-select> |
| | | </el-select> --> |
| | | <!-- <i slot="suffix" class="el-icon-search" style="cursor: pointer" @click="searchClick"></i> --> |
| | | </el-input> |
| | | <el-input v-else :placeholder="placeholder" v-model="searchInput" class="input-with-select" clearable> |
| | |
| | | }, |
| | | methods: { |
| | | searchClick() { |
| | | this.$emit("searchClick", this.searchSelValue, this.searchInput) |
| | | this.$emit("searchClick", this.searchInput) |
| | | }, |
| | | resetClick() { |
| | | this.searchSelValue = this.searchSel |
| | |
| | | async getProductList() { |
| | | let fn = this.sign == "purchase" ? getProductList : getProductListFromGrpc |
| | | await fn({ |
| | | productName: this.keywordType === "产品名称" ? this.keyword : "", |
| | | productNumber: this.keywordType === "产品编号" ? this.keyword : "", |
| | | keyword:this.keyword, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | |
| | | } |
| | | }, |
| | | // 搜索 |
| | | searchClick(val, content) { |
| | | console.log(val, content) |
| | | this.search_map = { |
| | | [val.value]: content |
| | | } |
| | | searchClick(content) { |
| | | console.log( content) |
| | | this.keyword = content |
| | | this.keywordType = val.label |
| | | this.getData() |
| | | }, |
| | | resetClick() { |
| | |
| | | this.formInfoList = [ |
| | | { |
| | | str: "供应商名称", |
| | | value: item.name, |
| | | value: item.supplier.name, |
| | | }, |
| | | { |
| | | str: "合计", |
| | |
| | | leftStr: "采购订单编号", |
| | | leftValue: item.number, |
| | | rightStr: "供应商名称", |
| | | rightValue: item.name, |
| | | rightValue: item.supplier.name, |
| | | }, |
| | | { |
| | | leftStr: "采购单状态", |
| | |
| | | <div class="basic-info-title" style="display: flex">产品信息</div> |
| | | <div class="product-view"> |
| | | <CommonFormTableView |
| | | :detailEnter=editCommonConfig.detailEnter |
| | | :show-summary="showSummary" |
| | | :recalculateShow="false" |
| | | :product-table-list="productTableList" |
| | |
| | | type: Object, |
| | | default: () => { |
| | | return { |
| | | detailEnter:true, |
| | | visible: false, |
| | | title: "创建", |
| | | infomation: {}, |
| | |
| | | |
| | | await getSupplierList({ |
| | | [val]: content, |
| | | status:1, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }) |
| | |
| | | visible: false, |
| | | title: "创建", |
| | | isDisabled:false, |
| | | detailEnter:false, |
| | | infomation: { |
| | | supplierList:[] |
| | | } |
| | |
| | | async getSupplierData() { |
| | | await getSupplierList({ |
| | | // [val]: content, |
| | | status:1, |
| | | page:1, |
| | | pageSize: 10 |
| | | }) |
| | |
| | | }, |
| | | // 新建 |
| | | addBtnClick() { |
| | | this.editConfig.detailEnter=false |
| | | this.editConfig.isDisabled=false |
| | | // this.editRow = {}; |
| | | // this.$refs.add.islook = true; |
| | |
| | | |
| | | // 编辑 |
| | | btnEdit(row) { |
| | | this.editConfig.detailEnter=false |
| | | this.editConfig.isDisabled=false |
| | | this.tableLoading = true |
| | | getPurchaseInfo({ id: row.ID }).then((res) => { |
| | | if (res.code == 200) { |
| | |
| | | }, |
| | | // 查看 |
| | | btnLook(row){ |
| | | this.editConfig.detailEnter=true |
| | | this.editConfig.isDisabled=true |
| | | this.tableLoading = true |
| | | getPurchaseInfo({ id: row.ID }).then((res) => { |
| | |
| | | await getSupplierList({ |
| | | name: this.searchSupplierName, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | pageSize: this.pagerOptions.pageSize, |
| | | status:1, |
| | | }).then((res) => { |
| | | console.log(res) |
| | | if (res.code === 200) { |
| | |
| | | addBtnClick() { |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.infomation = { fileId: 0 } |
| | | this.editConfig.infomation = { fileId: 0,responsiblePersonName:'admin'} |
| | | }, |
| | | // 启用供应商 |
| | | async enableClick(row, value) { |