| | |
| | | <div class="right-label">BOM</div> |
| | | </div> |
| | | </div> --> |
| | | <div v-if="!showProduct && !showWarehouse && !showPosition" class="sub-number no-cursor"> |
| | | <div |
| | | v-if="!showProduct && !showWarehouse && !showPosition" |
| | | class="sub-number yes-cursor" |
| | | @click="reorderRulesClick" |
| | | > |
| | | <div class="left"><i class="el-icon-refresh"></i></div> |
| | | <div class="right"> |
| | | <div class="right-label">{{ countObject?.reorderRule ?? 0 }}</div> |
| | |
| | | // 上架规则 |
| | | listingRulesClick() { |
| | | this.$emit("listingRulesClick") |
| | | }, |
| | | // 重订货规则 |
| | | reorderRulesClick() { |
| | | this.$emit("reorderRulesClick") |
| | | } |
| | | } |
| | | } |
| | |
| | | :countObject="statisticsMap" |
| | | :show-sale="showSale" |
| | | @listingRulesClick="listingRulesClick" |
| | | @reorderRulesClick="reorderRulesClick" |
| | | /> |
| | | <div class="bottom"> |
| | | <el-tabs v-model="activeName" type="card"> |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // 重订购规则 |
| | | reorderRulesClick() { |
| | | this.$refs.form.validate((valid) => { |
| | | if (valid) { |
| | | this.$router.push({ |
| | | path: "/productManage/reorderRules", |
| | | query: { |
| | | productName: this.editConfig.infomation.name, |
| | | productId: this.editConfig.title === "新建" ? "" : this.editConfig.infomation.id |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | // 可销售/可采购 |
| | | checkboxChange(val, param) { |
| | | if (val === "采购") { |
| | |
| | | :show-apply="false" |
| | | :placeholder="'请输入位置/产品'" |
| | | :amount-view="false" |
| | | :search-task-map="searchTaskMap" |
| | | @addCommonClick="addProductClick" |
| | | @searchClick="getList" |
| | | @discardBtnClick="discardBtnClick" |
| | | @delSelectClick="delSelectClick" |
| | | /> |
| | | </div> |
| | | <div class="list-view"> |
| | |
| | | maxInventory: 0, |
| | | orderNumber: 0, |
| | | unit: "", |
| | | reorderId: 0 |
| | | reorderId: 0, |
| | | queryProductId: null, |
| | | searchTaskMap: [] |
| | | } |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | let query = this.$route.query |
| | | if (query) { |
| | | this.queryProductId = query.productId?.length ? query.productId : null |
| | | this.pagerOptions.currPage = 1 |
| | | this.searchTaskMap = |
| | | query.productId?.length > 0 ? [{ productId: this.queryProductId, title: query.productName }] : [] |
| | | console.log(this.searchTaskMap) |
| | | } |
| | | this.getData() |
| | | }, |
| | | methods: { |
| | |
| | | // 请求数据 |
| | | async getData() { |
| | | await getReorderRuleList({ |
| | | productId: this.queryProductId ? this.queryProductId : null, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | }).then((res) => { |
| | |
| | | // 获取当前时间 |
| | | currentTime() { |
| | | return currentTime() |
| | | }, |
| | | // 删除产品 |
| | | delSelectClick() { |
| | | this.queryProductId = "" |
| | | this.getData() |
| | | } |
| | | } |
| | | } |