|
|
@ -128,7 +128,7 @@
|
|
|
|
<el-table-column label="库存预警数" prop="invRemindNumber" width="90"></el-table-column>
|
|
|
|
<el-table-column label="库存预警数" prop="invRemindNumber" width="90"></el-table-column>
|
|
|
|
<el-table-column label="创建时间" prop="createTime" width="140"></el-table-column>
|
|
|
|
<el-table-column label="创建时间" prop="createTime" width="140"></el-table-column>
|
|
|
|
<el-table-column label="备注" prop="remake" width="140"></el-table-column>
|
|
|
|
<el-table-column label="备注" prop="remake" width="140"></el-table-column>
|
|
|
|
<el-table-column label="操作" fixed="right" width="120">
|
|
|
|
<el-table-column label="操作" fixed="right" width="160">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
@ -331,7 +331,7 @@
|
|
|
|
<el-form :model="formData" style="width: 100%;" ref="dataForm" :rules="formRules"
|
|
|
|
<el-form :model="formData" style="width: 100%;" ref="dataForm" :rules="formRules"
|
|
|
|
label-width="auto"
|
|
|
|
label-width="auto"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-row :gutter="24" class="el-row">
|
|
|
|
<el-row :gutter="24">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="工位编码:" prop="workplaceId" class="query-form-item">
|
|
|
|
<el-form-item label="工位编码:" prop="workplaceId" class="query-form-item">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
@ -350,45 +350,28 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
<el-row :gutter="24" class="el-row">
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="作业方式:" prop="operationType" class="query-form-item">
|
|
|
|
<el-form-item label="工位状态:" prop="workplaceStatus" class="query-form-item">
|
|
|
|
<el-select v-model="formData.operationType" style="width: 80%" placeholder="选择扫码方式" clearable
|
|
|
|
<el-select v-model="formData.workplaceStatus" style="width: 80%" placeholder="工位状态">
|
|
|
|
@change="changeCheckInsert"
|
|
|
|
<el-option label="暂停" :value="0"></el-option>
|
|
|
|
>
|
|
|
|
<el-option label="启用" :value="1"></el-option>
|
|
|
|
<el-option label="扫码生成业务单" :value="1"></el-option>
|
|
|
|
|
|
|
|
<el-option label="按单校验三期" :value="2"></el-option>
|
|
|
|
|
|
|
|
<el-option label="按单不校验三期" :value="3"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="结果处理:" prop="checkInsert" class="query-form-item">
|
|
|
|
<el-form-item label="工位类型:" prop="workplaceType" class="query-form-item">
|
|
|
|
<el-select v-model="formData.checkInsert" style="width: 80%" placeholder="选择扫码方式" clearable
|
|
|
|
<el-select v-model="formData.workplaceType" style="width: 80%" placeholder="工位类型">
|
|
|
|
:disabled="formData.operationType == 1"
|
|
|
|
<el-option label="全部" :value="3"></el-option>
|
|
|
|
>
|
|
|
|
<el-option label="拆零" :value="1"></el-option>
|
|
|
|
<el-option label="自动添加" :value="1"></el-option>
|
|
|
|
<el-option label="取整" :value="2"></el-option>
|
|
|
|
<el-option label="自动不添加" :value="2"></el-option>
|
|
|
|
|
|
|
|
<el-option label="根据提醒决定" :value="3"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="异常提醒方式:" prop="warnType" class="query-form-item">
|
|
|
|
|
|
|
|
<el-select v-model="formData.warnType" style="width: 80%" placeholder="选择扫码方式" clearable>
|
|
|
|
|
|
|
|
<el-option label="信息提醒" :value="1"></el-option>
|
|
|
|
|
|
|
|
<el-option label="信息弹框提醒" :value="2"></el-option>
|
|
|
|
|
|
|
|
<el-option label="不提醒" :value="3"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-row :gutter="24">
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item prop="deptCode" label="所属部门:">
|
|
|
|
<el-form-item prop="deptCode" label="所属部门:">
|
|
|
|
<el-select v-model="formData.deptCode" placeholder="请选择部门" clearable
|
|
|
|
<el-select v-model="formData.deptCode" placeholder="请选择部门" clearable
|
|
|
|
style="width: 80%"
|
|
|
|
style="width: 80%"
|
|
|
@ -405,25 +388,6 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<!--<el-col :span="12" class="el-col">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="默认仓库:" prop="invCode" class="query-form-item">-->
|
|
|
|
|
|
|
|
<!-- <el-select v-model="formData.invCode" placeholder="请选择仓库"-->
|
|
|
|
|
|
|
|
<!-- style="width: 80%"-->
|
|
|
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
|
|
|
<!-- @change="handleInvChange"-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
|
|
|
<!-- v-for="item in invList"-->
|
|
|
|
|
|
|
|
<!-- :key="item.name"-->
|
|
|
|
|
|
|
|
<!-- :label="item.name"-->
|
|
|
|
|
|
|
|
<!-- :value="item.code"-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <span style="float: left">{{ item.name }}</span>-->
|
|
|
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="工位负责人:" prop="chargeUser" class="query-form-item">
|
|
|
|
<el-form-item label="工位负责人:" prop="chargeUser" class="query-form-item">
|
|
|
|
<el-select v-model="formData.chargeUser" placeholder="请选择负责人"
|
|
|
|
<el-select v-model="formData.chargeUser" placeholder="请选择负责人"
|
|
|
@ -439,20 +403,20 @@
|
|
|
|
<span style="float: left">{{ item.employeeName }}</span>
|
|
|
|
<span style="float: left">{{ item.employeeName }}</span>
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
<!--<el-input-->
|
|
|
|
|
|
|
|
<!-- v-model="formData.chargeUser" style="width: 80%"-->
|
|
|
|
|
|
|
|
<!-- auto-complete="off"-->
|
|
|
|
|
|
|
|
<!--></el-input>-->
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--<el-col :span="12" class="el-col">-->
|
|
|
|
<!--<el-col :span="12" class="el-col">-->
|
|
|
|
<!-- <el-form-item label="单据类型:" prop="orderId" class="query-form-item">-->
|
|
|
|
<!-- <el-form-item label="默认仓库:" prop="invCode" class="query-form-item">-->
|
|
|
|
<!-- <el-select v-model="formData.orderId" placeholder="请选择单据类型"-->
|
|
|
|
<!-- <el-select v-model="formData.invCode" placeholder="请选择仓库"-->
|
|
|
|
<!-- style="width: 80%"-->
|
|
|
|
<!-- style="width: 80%"-->
|
|
|
|
<!-- clearable-->
|
|
|
|
<!-- clearable-->
|
|
|
|
|
|
|
|
<!-- @change="handleInvChange"-->
|
|
|
|
<!-- >-->
|
|
|
|
<!-- >-->
|
|
|
|
<!-- <el-option-->
|
|
|
|
<!-- <el-option-->
|
|
|
|
<!-- v-for="item in busTypes"-->
|
|
|
|
<!-- v-for="item in invList"-->
|
|
|
|
<!-- :key="item.name"-->
|
|
|
|
<!-- :key="item.name"-->
|
|
|
|
<!-- :label="item.name"-->
|
|
|
|
<!-- :label="item.name"-->
|
|
|
|
<!-- :value="item.code"-->
|
|
|
|
<!-- :value="item.code"-->
|
|
|
@ -462,6 +426,7 @@
|
|
|
|
<!-- </el-select>-->
|
|
|
|
<!-- </el-select>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!--</el-col>-->
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
|
|
|
<el-row :gutter="24">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-form-item label="所属组别:" prop="constituencies" class="query-form-item">
|
|
|
|
<el-form-item label="所属组别:" prop="constituencies" class="query-form-item">
|
|
|
|
<el-select v-model="formData.constituencies" placeholder="请选择所属组别"
|
|
|
|
<el-select v-model="formData.constituencies" placeholder="请选择所属组别"
|
|
|
@ -479,6 +444,48 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="库存预警数:" prop="invRemindNumber" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input-number
|
|
|
|
|
|
|
|
:min="0"
|
|
|
|
|
|
|
|
:precision="0" :step="1"
|
|
|
|
|
|
|
|
placeholder="请输入库存预警数"
|
|
|
|
|
|
|
|
v-model="formData.invRemindNumber" style="width: 80%"
|
|
|
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
|
|
|
></el-input-number>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="24" class="el-row">
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="备注:" prop="remake" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="formData.remake" style="width: 100%"
|
|
|
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--<el-col :span="12" class="el-col">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="单据类型:" prop="orderId" class="query-form-item">-->
|
|
|
|
|
|
|
|
<!-- <el-select v-model="formData.orderId" placeholder="请选择单据类型"-->
|
|
|
|
|
|
|
|
<!-- style="width: 80%"-->
|
|
|
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
|
|
|
<!-- v-for="item in busTypes"-->
|
|
|
|
|
|
|
|
<!-- :key="item.name"-->
|
|
|
|
|
|
|
|
<!-- :label="item.name"-->
|
|
|
|
|
|
|
|
<!-- :value="item.code"-->
|
|
|
|
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <span style="float: left">{{ item.name }}</span>-->
|
|
|
|
|
|
|
|
<!-- </el-option>-->
|
|
|
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!--</el-col>-->
|
|
|
|
|
|
|
|
|
|
|
|
<!--<el-col :span="12" class="el-col">-->
|
|
|
|
<!--<el-col :span="12" class="el-col">-->
|
|
|
|
<!-- <el-form-item label="往来单位类型:" prop="corpType" class="query-form-item">-->
|
|
|
|
<!-- <el-form-item label="往来单位类型:" prop="corpType" class="query-form-item">-->
|
|
|
|
<!-- <el-select v-model="formData.corpType" style="width: 80%" placeholder="选择往来单位类型" clearable>-->
|
|
|
|
<!-- <el-select v-model="formData.corpType" style="width: 80%" placeholder="选择往来单位类型" clearable>-->
|
|
|
@ -499,35 +506,7 @@
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!--</el-col>-->
|
|
|
|
<!--</el-col>-->
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="库存预警数:" prop="invRemindNumber" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input-number
|
|
|
|
|
|
|
|
:min="0"
|
|
|
|
|
|
|
|
:precision="0" :step="1"
|
|
|
|
|
|
|
|
placeholder="请输入库存预警数"
|
|
|
|
|
|
|
|
v-model="formData.invRemindNumber" style="width: 80%"
|
|
|
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
|
|
|
></el-input-number>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="工位状态:" prop="workplaceStatus" class="query-form-item">
|
|
|
|
|
|
|
|
<el-select v-model="formData.workplaceStatus" style="width: 80%" placeholder="工位状态" clearable>
|
|
|
|
|
|
|
|
<el-option label="暂停" :value="0"></el-option>
|
|
|
|
|
|
|
|
<el-option label="启用" :value="1"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="工位类型:" prop="workplaceType" class="query-form-item">
|
|
|
|
|
|
|
|
<el-select v-model="formData.workplaceType" style="width: 80%" placeholder="工位状态" clearable>
|
|
|
|
|
|
|
|
<el-option label="拆零" :value="1"></el-option>
|
|
|
|
|
|
|
|
<el-option label="取整" :value="2"></el-option>
|
|
|
|
|
|
|
|
<el-option label="全部" :value="3"></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--<el-col :span="12" class="el-col">-->
|
|
|
|
<!--<el-col :span="12" class="el-col">-->
|
|
|
|
<!-- <el-form-item label="往来单位类型:" prop="corpType" class="query-form-item">-->
|
|
|
|
<!-- <el-form-item label="往来单位类型:" prop="corpType" class="query-form-item">-->
|
|
|
@ -539,16 +518,7 @@
|
|
|
|
<!-- </el-select>-->
|
|
|
|
<!-- </el-select>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
<!--</el-col>-->
|
|
|
|
<!--</el-col>-->
|
|
|
|
<el-row :gutter="24" class="el-row">
|
|
|
|
|
|
|
|
<el-col :span="22" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="备注:" prop="remake" class="query-form-item">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="formData.remake" style="width: 100%"
|
|
|
|
|
|
|
|
auto-complete="off"
|
|
|
|
|
|
|
|
></el-input>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
@ -562,19 +532,18 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
:title="formMap[formName]"
|
|
|
|
:title="formMap[formName]"
|
|
|
|
append-to-body
|
|
|
|
append-to-body
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:visible.sync="subFormVisible"
|
|
|
|
:visible.sync="subFormVisible"
|
|
|
|
width="60%"
|
|
|
|
width="45%"
|
|
|
|
top="5vh"
|
|
|
|
top="5vh"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-form :model="subData" ref="dataForm" label-width="80px">
|
|
|
|
<el-form :model="subData" ref="dataForm" label-width="80px">
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
<el-col class="el-col">
|
|
|
|
<el-form-item label="上级菜单" prop="parentCode">
|
|
|
|
<el-form-item label="上级菜单" prop="parentCode">
|
|
|
|
<el-select v-model="subData.parentCode" placeholder="选择上级菜单"
|
|
|
|
<el-select v-model="subData.parentCode" placeholder="选择上级菜单"
|
|
|
|
style="width: 80%"
|
|
|
|
style="width: 80%"
|
|
|
@ -593,7 +562,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12" class="el-col">
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex">
|
|
|
|
|
|
|
|
<el-col class="el-col">
|
|
|
|
<el-form-item label="名称" prop="name" class="query-form-item">
|
|
|
|
<el-form-item label="名称" prop="name" class="query-form-item">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="subData.name" style="width: 80%"
|
|
|
|
v-model="subData.name" style="width: 80%"
|
|
|
@ -609,7 +581,7 @@
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="subData.remark"
|
|
|
|
v-model="subData.remark"
|
|
|
|
type="textarea"
|
|
|
|
type="textarea"
|
|
|
|
style="width: 90%"
|
|
|
|
style="width: 80%"
|
|
|
|
auto-complete="off"
|
|
|
|
auto-complete="off"
|
|
|
|
></el-input>
|
|
|
|
></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -709,8 +681,15 @@ export default {
|
|
|
|
'edit': '编辑业务类型'
|
|
|
|
'edit': '编辑业务类型'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
formData: {
|
|
|
|
formData: {
|
|
|
|
operationType: 1,
|
|
|
|
workplaceId: null,
|
|
|
|
deptCode: null
|
|
|
|
workplaceName: null,
|
|
|
|
|
|
|
|
workplaceStatus: 1,
|
|
|
|
|
|
|
|
workplaceType: 3,
|
|
|
|
|
|
|
|
deptCode: null,
|
|
|
|
|
|
|
|
chargeUser: null,
|
|
|
|
|
|
|
|
constituencies: null,
|
|
|
|
|
|
|
|
invRemindNumber: 0,
|
|
|
|
|
|
|
|
remake: null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
workplaceCode: '6001',
|
|
|
|
workplaceCode: '6001',
|
|
|
|
unitStorageList: [],
|
|
|
|
unitStorageList: [],
|
|
|
@ -727,9 +706,9 @@ export default {
|
|
|
|
checkInsert: [
|
|
|
|
checkInsert: [
|
|
|
|
{required: true, message: '处理结果不能为空', trigger: 'blur'}
|
|
|
|
{required: true, message: '处理结果不能为空', trigger: 'blur'}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
invRemindNumber: [
|
|
|
|
// invRemindNumber: [
|
|
|
|
{ required: true, message: '请输入工位存量提醒数', trigger: 'blur' }
|
|
|
|
// { required: true, message: '请输入工位存量提醒数', trigger: 'blur' }
|
|
|
|
],
|
|
|
|
// ],
|
|
|
|
warnType: [
|
|
|
|
warnType: [
|
|
|
|
{required: true, message: '请选择提醒方式', trigger: 'blur'}
|
|
|
|
{required: true, message: '请选择提醒方式', trigger: 'blur'}
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -865,22 +844,25 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addWorkplace() {
|
|
|
|
addWorkplace() {
|
|
|
|
this.fromName = 'add'
|
|
|
|
this.fromName = 'add'
|
|
|
|
|
|
|
|
this.formData = {
|
|
|
|
|
|
|
|
workplaceId: null,
|
|
|
|
|
|
|
|
workplaceName: null,
|
|
|
|
|
|
|
|
workplaceStatus: 1,
|
|
|
|
|
|
|
|
workplaceType: 3,
|
|
|
|
|
|
|
|
deptCode: null,
|
|
|
|
|
|
|
|
chargeUser: null,
|
|
|
|
|
|
|
|
constituencies: null,
|
|
|
|
|
|
|
|
invRemindNumber: 0,
|
|
|
|
|
|
|
|
remake: null,
|
|
|
|
|
|
|
|
};
|
|
|
|
this.getDeptList()
|
|
|
|
this.getDeptList()
|
|
|
|
createWorkplaceId().then(res => {
|
|
|
|
createWorkplaceId().then(res => {
|
|
|
|
if (res.code == 20000) {
|
|
|
|
if (res.code == 20000) {
|
|
|
|
if (res.data == null) {
|
|
|
|
if (res.data == null) {
|
|
|
|
this.formData.workplaceId = this.workplaceCode + 1001
|
|
|
|
this.formData.workplaceId = this.workplaceCode + 1001
|
|
|
|
this.formData.operationType = 1
|
|
|
|
|
|
|
|
this.formData.checkInsert = 1
|
|
|
|
|
|
|
|
this.formData.workplaceStatus = 1
|
|
|
|
|
|
|
|
this.addWorkplaceDialogVisible = true
|
|
|
|
this.addWorkplaceDialogVisible = true
|
|
|
|
this.getTree()
|
|
|
|
this.getTree()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.formData = {
|
|
|
|
|
|
|
|
operationType: 1,
|
|
|
|
|
|
|
|
checkInsert: 1,
|
|
|
|
|
|
|
|
workplaceStatus: 1
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getTree()
|
|
|
|
this.getTree()
|
|
|
|
this.formData.workplaceId = res.data
|
|
|
|
this.formData.workplaceId = res.data
|
|
|
|
this.addWorkplaceDialogVisible = true
|
|
|
|
this.addWorkplaceDialogVisible = true
|
|
|
@ -1171,7 +1153,7 @@ export default {
|
|
|
|
this.$message.success('删除成功')
|
|
|
|
this.$message.success('删除成功')
|
|
|
|
this.getLstTree()
|
|
|
|
this.getLstTree()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error('删除失败')
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|