|
@@ -13,20 +13,6 @@
|
|
|
label-width="165px"
|
|
|
>
|
|
|
<el-form-item label="入库方审核状态" prop="stock_go_rule">
|
|
|
- <!-- <el-cascader
|
|
|
- placeholder="请选择出库仓库"
|
|
|
- filterable
|
|
|
- clearable
|
|
|
- :size="searchSize"
|
|
|
- v-model="selectStock_go"
|
|
|
- :options="options"
|
|
|
- style="width: 30%"
|
|
|
- @change="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- stockName();
|
|
|
- "
|
|
|
- ></el-cascader> -->
|
|
|
<el-select
|
|
|
v-model="value"
|
|
|
placeholder="入库方审核"
|
|
@@ -51,7 +37,6 @@
|
|
|
:size="searchSize"
|
|
|
v-model="remark"
|
|
|
clearable
|
|
|
-
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
@@ -65,115 +50,6 @@
|
|
|
</el-button> -->
|
|
|
</el-col>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item label="审核备注" prop="stock_remark">
|
|
|
-
|
|
|
- </el-form-item> -->
|
|
|
- <!-- <el-form-item label="入库仓库" prop="stock_in_rule">
|
|
|
- <el-cascader
|
|
|
- placeholder="请选择入库仓库"
|
|
|
- filterable
|
|
|
- clearable
|
|
|
- :size="searchSize"
|
|
|
- v-model="selectStock_in"
|
|
|
- :options="options"
|
|
|
- style="width: 30%"
|
|
|
- @change="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- stockName();
|
|
|
- "
|
|
|
- ></el-cascader>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="出库商品" prop="stock_go_product">
|
|
|
- <ex-table
|
|
|
- v-loading="false"
|
|
|
- :table="table"
|
|
|
- :data="tableData"
|
|
|
- :columns="columns"
|
|
|
- :page="pageInfo"
|
|
|
- :size="size"
|
|
|
- @page-curr-change="handlePageChange"
|
|
|
- @page-size-change="handleSizeChange"
|
|
|
- @screen-reset="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- @screen-submit="
|
|
|
- pageInfo.curr = 1;
|
|
|
- parmValue.page = 1;
|
|
|
- searchList();
|
|
|
- "
|
|
|
- >
|
|
|
- <template #table-header="{}">
|
|
|
- <div style="width: 100%; height: 40px"></div>
|
|
|
- </template>
|
|
|
- <template #operation="{ scope }">
|
|
|
- <el-tooltip
|
|
|
- v-if="powers.some((item) => item == '002')"
|
|
|
- effect="dark"
|
|
|
- content="重置密码"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-refresh-left tb-icon"
|
|
|
- @click="openPasswordModal(scope.row.id, false)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
-
|
|
|
- <el-tooltip
|
|
|
- v-if="powers.some((item) => item == '007')"
|
|
|
- effect="dark"
|
|
|
- content="详情"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-view tb-icon"
|
|
|
- @click="openModal(scope.row.id, true, scope.row)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- v-if="powers.some((item) => item == '005')"
|
|
|
- effect="dark"
|
|
|
- content="修改"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-edit tb-icon"
|
|
|
- @click="openModal(scope.row.id, false, scope.row)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- v-if="
|
|
|
- powers.some((item) => item == '004') &&
|
|
|
- scope.row.status === '1'
|
|
|
- "
|
|
|
- effect="dark"
|
|
|
- content="禁用"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-video-pause tb-icon"
|
|
|
- @click="statusConfirm(scope.row.id, scope.row.status)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- v-if="
|
|
|
- powers.some((item) => item == '004') &&
|
|
|
- scope.row.status === '0'
|
|
|
- "
|
|
|
- effect="dark"
|
|
|
- content="启用"
|
|
|
- placement="top"
|
|
|
- >
|
|
|
- <i
|
|
|
- class="el-icon-video-play tb-icon"
|
|
|
- @click="statusConfirm(scope.row.id, scope.row.status)"
|
|
|
- ></i>
|
|
|
- </el-tooltip>
|
|
|
- </template>
|
|
|
- </ex-table>
|
|
|
- </el-form-item> -->
|
|
|
</el-form>
|
|
|
|
|
|
<add-edit
|
|
@@ -333,13 +209,7 @@ export default {
|
|
|
methods: {
|
|
|
restSearch() {
|
|
|
//重置入参
|
|
|
- this.parmValue = {
|
|
|
- // name: "", // 业务员名字
|
|
|
- // username: "", // 账号
|
|
|
- // status: "", //
|
|
|
- // page: 1, // 页码
|
|
|
- // size: 10, // 每页显示条数
|
|
|
- };
|
|
|
+ this.parmValue = {};
|
|
|
this.searchList();
|
|
|
},
|
|
|
|
|
@@ -423,60 +293,6 @@ export default {
|
|
|
// console.log("取消");
|
|
|
// });
|
|
|
},
|
|
|
- // async stockName() {
|
|
|
- // //获取多级仓库名称的方法
|
|
|
- // const res = await asyncRequest.listAll(this.parmValue);
|
|
|
- // // console.log(res.data);
|
|
|
- // // this.openModal("005", true);
|
|
|
- // // console.log(this.selectStock_go);
|
|
|
- // // console.log(this.selectStock_in);
|
|
|
- // // this.options = res.data;
|
|
|
- // // console.log(this.options);
|
|
|
- // let arr = res.data;
|
|
|
- // // console.log(arr);
|
|
|
- // arr.forEach((ele) => {
|
|
|
- // //重新封装后台传递来的数据,转换格式
|
|
|
- // let item = {
|
|
|
- // value: ele.id,
|
|
|
- // label: ele.name,
|
|
|
- // children: [],
|
|
|
- // };
|
|
|
- // ele.child.forEach((elem) => {
|
|
|
- // let model = {
|
|
|
- // value: elem.id,
|
|
|
- // label: elem.name,
|
|
|
- // };
|
|
|
- // item.children.push(model);
|
|
|
- // });
|
|
|
- // this.options.push(item);
|
|
|
- // });
|
|
|
- // this.options.forEach((ele) => {
|
|
|
- // //从数据表中筛选出我们要用的数据
|
|
|
- // if (ele.value === this.selectStock_go[0]) {
|
|
|
- // ele.children.forEach((elem) => {
|
|
|
- // if (elem.value === this.selectStock_go[1]) {
|
|
|
- // this.stock_go = ele.label + "/" + elem.label;
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
- // if (ele.value === this.selectStock_in[0]) {
|
|
|
- // ele.children.forEach((elem) => {
|
|
|
- // if (elem.value === this.selectStock_in[1]) {
|
|
|
- // this.stock_in = ele.label + "/" + elem.label;
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
- // });
|
|
|
- // if (this.selectStock_in != "" || this.selectStock_go != "") {
|
|
|
- // console.log("选择了一个项目");
|
|
|
- // this.openModal("005", true);
|
|
|
- // }
|
|
|
- // // console.log(this.stock_go);
|
|
|
- // // console.log(this.stock_in);
|
|
|
- // // console.log(this.pageInfo.total);
|
|
|
- // this.compareStock(); //比较出库仓库和入库仓库是否相同
|
|
|
- // },
|
|
|
-
|
|
|
compareStock() {
|
|
|
//比较出库仓库和入库仓库是否相同
|
|
|
if (
|
|
@@ -500,8 +316,5 @@ export default {
|
|
|
.el-form-item__content {
|
|
|
margin: 0 !important;
|
|
|
}
|
|
|
-.setcol-table-lie {
|
|
|
- // margin: 0 !important;
|
|
|
-}
|
|
|
</style>
|
|
|
|