|
@@ -7,16 +7,27 @@
|
|
|
:rules="rulesThis"
|
|
|
ref="ruleForm"
|
|
|
:size="'mini'"
|
|
|
- label-width="60px"
|
|
|
+ label-width="85px"
|
|
|
class="demo-ruleForm"
|
|
|
>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<div class="label-title-model">出库仓库信息:</div>
|
|
|
+ <el-form-item label="业务公司" prop="out_companyNo">
|
|
|
+ <search-work-company
|
|
|
+ :value="parmValue.out_companyNo"
|
|
|
+ :names="''"
|
|
|
+ :size="'mini'"
|
|
|
+ :is-detail="id !== 'add'"
|
|
|
+ :placeholder="'业务公司'"
|
|
|
+ @searchChange="supplierChange($event,'out_companyNo')"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="公司" prop="supplier_code">
|
|
|
<search-supplier
|
|
|
:value="ruleForm.supplier_code"
|
|
|
:placeholder="'请选择公司'"
|
|
|
+ :size="'mini'"
|
|
|
:is-detail="id !== 'add'"
|
|
|
:disabled="!(id === 'add')"
|
|
|
:names="supplier_name"
|
|
@@ -28,6 +39,7 @@
|
|
|
:value="ruleForm.stock_code"
|
|
|
:isDetail="id !== 'add'"
|
|
|
:disabled="!(id === 'add')"
|
|
|
+ :size="'mini'"
|
|
|
:placeholder="'请选择仓库'"
|
|
|
:isRelation="true"
|
|
|
:companyCode="supplier_code"
|
|
@@ -38,6 +50,17 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<div class="label-title-model">入库仓库信息:</div>
|
|
|
+ <el-form-item label="业务公司" prop="supplier_code">
|
|
|
+ <search-supplier
|
|
|
+ style="width: 100%"
|
|
|
+ :value="ruleForm.supplier_code"
|
|
|
+ :placeholder="'请选择业务公司'"
|
|
|
+ :is-detail="id !== 'add'"
|
|
|
+ :disabled="!(id === 'add')"
|
|
|
+ :names="supplier_name"
|
|
|
+ @searchChange="selectSupplierOut"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="公司" prop="supplier_in_code">
|
|
|
<search-supplier
|
|
|
:value="ruleForm.supplier_in_code"
|
|
@@ -174,22 +197,22 @@
|
|
|
v-if="status === '0' && powers.some((item) => item == '005')"
|
|
|
width="80"
|
|
|
>
|
|
|
- <template slot="header" slot-scope="scope">
|
|
|
- <span>操作</span>
|
|
|
- <el-tooltip
|
|
|
- style="margin: 3px 0 0 0"
|
|
|
- effect="dark"
|
|
|
- class="fr"
|
|
|
- content="添加"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-circle-plus-outline tb-icon"
|
|
|
- style="color: #63cbe7; magin: 0 0 0 10px"
|
|
|
- @click="openGoodsModel"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
+ <template slot="header" slot-scope="scope">
|
|
|
+ <span>操作</span>
|
|
|
+ <el-tooltip
|
|
|
+ style="margin: 3px 0 0 0"
|
|
|
+ effect="dark"
|
|
|
+ class="fr"
|
|
|
+ content="添加"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i
|
|
|
+ class="el-icon-circle-plus-outline tb-icon"
|
|
|
+ style="color: #63cbe7; magin: 0 0 0 10px"
|
|
|
+ @click="openGoodsModel"
|
|
|
+ ></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
<template slot-scope="scope">
|
|
|
<el-tooltip
|
|
|
effect="dark"
|
|
@@ -250,7 +273,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import asyncRequest from "@/apis/service/stock/allot/detail";
|
|
|
-import searchStockGoodModal from "@/components/search-stock-good-modal";
|
|
|
+import searchStockGoodModal from "@/components/search-stock-good-modal";
|
|
|
import resToken from "@/mixins/resToken";
|
|
|
import { isnumber } from "@/utils/validate";
|
|
|
import config from "./columns"; //表格列参数
|
|
@@ -258,7 +281,7 @@ export default {
|
|
|
name: "allot",
|
|
|
props: ["showModel", "id", "sitem", "newTime"],
|
|
|
mixins: [resToken],
|
|
|
- components: { searchStockGoodModal },
|
|
|
+ components: { searchStockGoodModal },
|
|
|
computed: {
|
|
|
powers() {
|
|
|
let tran =
|
|
@@ -359,6 +382,20 @@ export default {
|
|
|
closeModel() {
|
|
|
this.$emit("closeModel");
|
|
|
},
|
|
|
+
|
|
|
+ //业务公司选择
|
|
|
+ async supplierChange(e,key) {
|
|
|
+ const { code } = e;
|
|
|
+ this.ruleForm[key] = code || ""; //业务公司编码
|
|
|
+ this.parmValue.supplier_code = [];
|
|
|
+ this.supplier_code = "";
|
|
|
+ this.parmValue.stock_code = [];
|
|
|
+ this.stock_code = "";
|
|
|
+ this.parmValue.page = 1;
|
|
|
+ this.pageInfo.curr = 1;
|
|
|
+ await this.searchList();
|
|
|
+ },
|
|
|
+
|
|
|
openGoodsModel() {
|
|
|
if (this.ruleForm.stock_code.length === 0) {
|
|
|
this.$message.warning("请选择出库仓库!");
|