修改库存调整路由跳转,重订货规则数量设置默认值,样式调整
| | |
| | | prod: `//${window.location.hostname}:9080`, |
| | | test: `//192.168.20.119:9080`, |
| | | // 想跳到本地启动的登录页的话需要把dev改成你本地项目路径 |
| | | dev: `//192.168.20.102:8080` |
| | | dev: `//192.168.8.107:8080` |
| | | } |
| | | return loginPathMap[this.environmentType()] |
| | | }, |
| | |
| | | :controls="false" |
| | | size="mini" |
| | | style="width: 100%; margin-right: 5px" |
| | | :min="item.prop==='minInventory'?0:1" |
| | | @change=" |
| | | (val) => { |
| | | commonInputChange(val, item.prop, scope.row) |
| | |
| | | >{{ timeAgo(scope.row[item.prop]) }}</span |
| | | > |
| | | <div v-else-if="item.conversion"> |
| | | <span>{{ item.getStatus(scope.row[item.prop]) }}</span> |
| | | <p class="exceed_width">{{ item.getStatus(scope.row[item.prop]) }}</p> |
| | | </div> |
| | | <span |
| | | v-else-if="item.isClick && scope.row[item.prop]" |
| | |
| | | border-top-left-radius: 12px; |
| | | border-top-right-radius: 12px; |
| | | overflow: auto; |
| | | .exceed_width{ |
| | | width: 100%; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | console.log(result,"result") |
| | | next(); |
| | | if (!isSkip) { |
| | | console.log(to,"看看to") |
| | | if(to.path==="/overview/overviewList"){ |
| | | if(to.path==="/overview/overviewList"||to.path==="/overview/previewExcel"||to.path==="/operate/inventoryAdjustmentHistory"){ |
| | | next(); |
| | | }else{ |
| | | next('/noData') |
| | |
| | | amount: 0, |
| | | operationId: 0, |
| | | minInventory: 0, |
| | | maxInventory: 0, |
| | | orderNumber: 0, |
| | | maxInventory: 1, |
| | | orderNumber: 1, |
| | | unit: "", |
| | | reorderId: 0, |
| | | searchTaskMap: [], |
| | |
| | | pageSize: 15, |
| | | page: 1 |
| | | }) |
| | | } else { |
| | | }else if(this.$route.params.locationId){ |
| | | this.searchTaskMap=[] |
| | | this.getData({ |
| | | id: this.$route.params.locationId, |
| | | jointName:this.$route.params.locationName, |
| | | // type:"", |
| | | pageSize: 15, |
| | | page: 1 |
| | | }) |
| | | }else { |
| | | this.getData() |
| | | } |
| | | this.setTable() |
| | |
| | | }, |
| | | // 操作输入 |
| | | inputContent(val, prop, row) { |
| | | console.log(val, prop, row) |
| | | console.log(row) |
| | | if (prop === "minInventory") { |
| | | this.minInventory = val |
| | | if (parseFloat(this.minInventory) - parseFloat(this.prediction) > 0) { |
| | |
| | | this.showDiscard = false |
| | | let requestUrl = this.currentRowId === 0 ? addReorderRule : updateReorderRule |
| | | let params = this.saveParams() |
| | | requestUrl(params) |
| | | if(params.productId===0){ |
| | | this.$message.warning("请填写产品信息!") |
| | | }else{ |
| | | requestUrl(params) |
| | | .then((res) => { |
| | | console.log(res) |
| | | if (res.code === 200) { |
| | |
| | | console.log(err) |
| | | this.getData() |
| | | }) |
| | | } |
| | | // } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | created() { |
| | | this.setTable() |
| | | console.log(this.$route.params) |
| | | var paramsList = sessionStorage.getItem("paramsList") |
| | | let params = {} |
| | | if (paramsList) { |
| | |
| | | }, |
| | | { |
| | | label: "业务类型", |
| | | prop: "baseOperationType", |
| | | prop: "operationTypeName", |
| | | isShowColumn: true, |
| | | default: true, |
| | | conversion: true, |
| | | getStatus: this.getBaseOperationTypeList |
| | | // conversion: true, |
| | | // getStatus: this.getBaseOperationTypeList |
| | | }, |
| | | { |
| | | label: "从", |
| | |
| | | async getData() { |
| | | if (this.params.name === "报表") { |
| | | await listByCondition({ |
| | | // condition:"", |
| | | keyWord:this.params.keyWord, |
| | | produceId:this.params.produceId, |
| | | unit:this.params.unit, |
| | |
| | | this.getData() |
| | | }, |
| | | tableRowClick(row,val) { |
| | | console.log(row,"看看") |
| | | this.workType=row.baseOperationType |
| | | this.editConfig.title = val |
| | | getOperationInfo(row.operationId).then((res)=>{ |
| | |
| | | setTableColumn(showcol) { |
| | | let tableColumn = [ |
| | | { |
| | | label: "产品编码", |
| | | prop: "id", |
| | | isShowColumn: true, |
| | | default: true |
| | | }, |
| | | { |
| | | label: "产品名称", |
| | | prop: "name", |
| | | isShowColumn: true, |
| | |
| | | }, |
| | | { |
| | | label: "产品规格", |
| | | prop: "spex", |
| | | prop: "specs", |
| | | isShowColumn: showcol.includes("产品规格"), |
| | | default: false |
| | | }, |
| | |
| | | }, |
| | | { |
| | | label: "业务类型", |
| | | prop: "baseOperationType", |
| | | prop: "operationTypeName", |
| | | isShowColumn: true, |
| | | default: true, |
| | | conversion: true, |
| | | getStatus: this.getBaseOperationTypeList |
| | | // conversion: true, |
| | | // getStatus: this.getBaseOperationTypeList |
| | | }, |
| | | { |
| | | label: "从", |
| | |
| | | <i class="el-icon-refresh-left"></i> |
| | | <span>历史</span> |
| | | </span> |
| | | <span @click="handleAddGoods(scope)" class="margin_left_5px no-cursor"> |
| | | <span @click="handleAddGoods(scope.row)" class="margin_left_5px"> |
| | | <i class="el-icon-refresh"></i> |
| | | <span>补货</span> |
| | | </span> |
| | |
| | | }, |
| | | { |
| | | label: "在库数量", |
| | | width:100, |
| | | prop: "amount", |
| | | isShowColumn: true, |
| | | default: true, |
| | |
| | | handleHistoryClick(row) { |
| | | console.log(row) |
| | | this.$router.push({ |
| | | name: "inboundOutboundDetail", |
| | | name: "outEnterLibrary", |
| | | params: { |
| | | keyWord:row.productTypeName, |
| | | produceId:row.produceId, |
| | |
| | | }) |
| | | }, |
| | | // 补货 |
| | | handleAddGoods() {} |
| | | handleAddGoods(row) { |
| | | this.$router.push({ |
| | | name: 'orderPoint', |
| | | params:{ |
| | | locationId:row.locationId, |
| | | locationName:row.locationName |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | }, |
| | | { |
| | | label: "业务类型", |
| | | prop: "baseOperationType", |
| | | prop: "operationTypeName", |
| | | isShowColumn: true, |
| | | default: true, |
| | | conversion: true, |
| | | getStatus: this.getBaseOperationTypeList |
| | | // conversion: true, |
| | | // getStatus: this.getBaseOperationTypeList |
| | | }, |
| | | { |
| | | label: "从", |