Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
8592abb9b4
|
|
@ -203,6 +203,12 @@ public class MaType extends BaseEntity {
|
||||||
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
||||||
private List<MaType> children = new ArrayList<>();
|
private List<MaType> children = new ArrayList<>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 厂家规格型号
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "厂家规格型号")
|
||||||
|
private String facModel;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Long getTypeId() {
|
public Long getTypeId() {
|
||||||
|
|
@ -550,4 +556,12 @@ public class MaType extends BaseEntity {
|
||||||
public void setFinalPrice(String finalPrice) {
|
public void setFinalPrice(String finalPrice) {
|
||||||
this.finalPrice = finalPrice;
|
this.finalPrice = finalPrice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getFacModel() {
|
||||||
|
return facModel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFacModel(String facModel) {
|
||||||
|
this.facModel = facModel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="isPlan != null">is_plan,</if>
|
<if test="isPlan != null">is_plan,</if>
|
||||||
<if test="isAncuo != null">is_ancuo,</if>
|
<if test="isAncuo != null">is_ancuo,</if>
|
||||||
<if test="remark != null">remark,</if>
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="facModel != null">fac_model,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="typeName != null and typeName != ''">#{typeName},</if>
|
<if test="typeName != null and typeName != ''">#{typeName},</if>
|
||||||
|
|
@ -98,6 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="isPlan != null">#{isPlan},</if>
|
<if test="isPlan != null">#{isPlan},</if>
|
||||||
<if test="isAncuo != null">#{isAncuo},</if>
|
<if test="isAncuo != null">#{isAncuo},</if>
|
||||||
<if test="remark != null">#{remark},</if>
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="facModel != null">#{facModel},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
@ -154,6 +156,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="isAncuo != null">is_ancuo = #{isAncuo},</if>
|
<if test="isAncuo != null">is_ancuo = #{isAncuo},</if>
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
<if test="companyId != null">company_id = #{companyId},</if>
|
<if test="companyId != null">company_id = #{companyId},</if>
|
||||||
|
<if test="facModel != null">fac_model = #{facModel},</if>
|
||||||
</trim>
|
</trim>
|
||||||
where type_id = #{typeId}
|
where type_id = #{typeId}
|
||||||
</update>
|
</update>
|
||||||
|
|
@ -273,13 +276,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<select id="selectMaTypeByTypeId" resultMap="MaTypeResult">
|
<select id="selectMaTypeByTypeId" resultMap="MaTypeResult">
|
||||||
select m.type_id, m.type_name, m.parent_id, m.status, m.num, m.unit_id, m.manage_type,
|
select m.type_id, m.type_name, m.parent_id, m.status, m.num, m.unit_id,m.unit_name, m.manage_type,
|
||||||
m.lease_price, m.eff_time, m.rent_price, m.buy_price, m.pay_price, m.level, m.rated_load, m.test_load,
|
m.lease_price, m.eff_time, m.rent_price, m.buy_price, m.pay_price, m.level, m.rated_load, m.test_load,
|
||||||
m.holding_time, m.warn_num, mtf.file_name photoName, mtf.file_url photoUrl,
|
m.holding_time, m.warn_num, mtf.file_name photoName, mtf.file_url photoUrl,
|
||||||
mtf2.file_name documentName, mtf2.file_url documentUrl, mtk.user_id keeperUserId,
|
mtf2.file_name documentName, mtf2.file_url documentUrl, mtk.user_id keeperUserId,
|
||||||
su.nick_name keeperUserName, mtr.user_id repairUserId, su1.nick_name repairUserName, mpi.prop_name,
|
su.nick_name keeperUserName, mtr.user_id repairUserId, su1.nick_name repairUserName,mpi.prop_id as propId, mpi.prop_name as propName,
|
||||||
m.del_flag, m.create_by, m.create_time,
|
m.del_flag, m.create_by, m.create_time,
|
||||||
m.remark, m.company_id
|
m.remark, m.company_id,m.fac_model as facModel
|
||||||
from ma_type m
|
from ma_type m
|
||||||
left join ma_prop_set mps on m.type_id = mps.type_id
|
left join ma_prop_set mps on m.type_id = mps.type_id
|
||||||
left join ma_prop_info mpi on mps.prop_id = mpi.prop_id
|
left join ma_prop_info mpi on mps.prop_id = mpi.prop_id
|
||||||
|
|
@ -334,7 +337,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
m.holding_time, m.warn_num, mtf.file_name photoName, mtf.file_url photoUrl,
|
m.holding_time, m.warn_num, mtf.file_name photoName, mtf.file_url photoUrl,
|
||||||
mtf2.file_name documentName, mtf2.file_url documentUrl, mtk.user_id keeperUserId,
|
mtf2.file_name documentName, mtf2.file_url documentUrl, mtk.user_id keeperUserId,
|
||||||
su.nick_name keeperUserName, mpi.prop_name, m.del_flag, m.create_by, m.create_time,
|
su.nick_name keeperUserName, mpi.prop_name, m.del_flag, m.create_by, m.create_time,
|
||||||
m.remark, m.company_id
|
m.remark, m.company_id,m.fac_model as facModel
|
||||||
from ma_type m
|
from ma_type m
|
||||||
left join ma_prop_set mps on m.type_id = mps.type_id
|
left join ma_prop_set mps on m.type_id = mps.type_id
|
||||||
left join ma_prop_info mpi on mps.prop_id = mpi.prop_id
|
left join ma_prop_info mpi on mps.prop_id = mpi.prop_id
|
||||||
|
|
|
||||||
|
|
@ -60,13 +60,11 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int res = 0;
|
int res;
|
||||||
try {
|
try {
|
||||||
//1. 判断是数量还是编号入库,保存到不同表
|
//1. 判断是数量还是编号入库,保存到不同表
|
||||||
//1.1 如果是编号入库
|
//1.1 如果是编号入库
|
||||||
if (dto.getIsCode()) {
|
if (dto.getIsCode()) {
|
||||||
/*插入ma_machine、ma_machine_label和ma_label_bind以及
|
|
||||||
ma_type_put_in_storage_info表和ma_type_put_in_storage_details表*/
|
|
||||||
res = insertMaMachineInfo(dto, codeList);
|
res = insertMaMachineInfo(dto, codeList);
|
||||||
if (res == 0) {
|
if (res == 0) {
|
||||||
log.error("insertMaMachineInfo方法插入异常");
|
log.error("insertMaMachineInfo方法插入异常");
|
||||||
|
|
@ -87,11 +85,9 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(e.getMessage());
|
log.error("保存入库盘点异常:{}",e.getMessage());
|
||||||
// 添加事务回滚逻辑
|
// 添加事务回滚逻辑
|
||||||
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
|
||||||
}
|
|
||||||
if (res == 0) {
|
|
||||||
return AjaxResult.error(ExceptionEnum.SAVE_TO_DATABASE.getCode(), ExceptionEnum.SAVE_TO_DATABASE.getMsg());
|
return AjaxResult.error(ExceptionEnum.SAVE_TO_DATABASE.getCode(), ExceptionEnum.SAVE_TO_DATABASE.getMsg());
|
||||||
}
|
}
|
||||||
return AjaxResult.success(res);
|
return AjaxResult.success(res);
|
||||||
|
|
@ -113,7 +109,7 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private int insertMaMachineInfo(SavePutInfoDto dto, List<String> codeList) {
|
private int insertMaMachineInfo(SavePutInfoDto dto, List<String> codeList) {
|
||||||
int num = 0;
|
int res = 0;
|
||||||
for (int i = 0; i < dto.getMachIneDtoList().size(); i++) {
|
for (int i = 0; i < dto.getMachIneDtoList().size(); i++) {
|
||||||
MachIneDto machIneDto = dto.getMachIneDtoList().get(i);
|
MachIneDto machIneDto = dto.getMachIneDtoList().get(i);
|
||||||
String code = codeList.get(i);
|
String code = codeList.get(i);
|
||||||
|
|
@ -125,21 +121,22 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
|
||||||
machIneDto.setPutInType(dto.getPutInType());
|
machIneDto.setPutInType(dto.getPutInType());
|
||||||
machIneDto.setNum(dto.getNum());
|
machIneDto.setNum(dto.getNum());
|
||||||
machIneDto.setCheckMan(dto.getCheckMan());
|
machIneDto.setCheckMan(dto.getCheckMan());
|
||||||
num = inventoryAndWarehousingMapper.insertMachine(machIneDto);
|
res += insertMachineInfo(machIneDto);
|
||||||
if (num == 0) {
|
|
||||||
throw new RuntimeException("新增到ma_machine表失败");
|
|
||||||
}
|
|
||||||
num = inventoryAndWarehousingMapper.insertMachineLabel(machIneDto);
|
|
||||||
if (num == 0) {
|
|
||||||
throw new RuntimeException("新增到ma_machine_label表失败");
|
|
||||||
}
|
|
||||||
num = inventoryAndWarehousingMapper.insertLabelBind(machIneDto);
|
|
||||||
if (num == 0) {
|
|
||||||
throw new RuntimeException("新增到ma_label_bind表失败");
|
|
||||||
}
|
|
||||||
num = getAnInt(machIneDto);
|
|
||||||
}
|
}
|
||||||
return num;
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 方法抽取,保持到ma_machine、ma_machine_label和ma_label_bind
|
||||||
|
* @param machIneDto
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
private int insertMachineInfo(MachIneDto machIneDto) {
|
||||||
|
int res = inventoryAndWarehousingMapper.insertMachine(machIneDto);
|
||||||
|
res += inventoryAndWarehousingMapper.insertMachineLabel(machIneDto);
|
||||||
|
res += inventoryAndWarehousingMapper.insertLabelBind(machIneDto);
|
||||||
|
res += insertTypePutInStorageInfo(machIneDto);
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -147,19 +144,12 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
|
||||||
* @param machIneDto
|
* @param machIneDto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private int getAnInt(MachIneDto machIneDto) {
|
private int insertTypePutInStorageInfo(MachIneDto machIneDto) {
|
||||||
int num;
|
|
||||||
//插入ma_type_put_in_storage_info表,返回主键id
|
//插入ma_type_put_in_storage_info表,返回主键id
|
||||||
num = inventoryAndWarehousingMapper.saveInfo(machIneDto);
|
int res = inventoryAndWarehousingMapper.saveInfo(machIneDto);
|
||||||
if (num == 0) {
|
|
||||||
throw new RuntimeException("新增到ma_type_put_in_storage_info表失败");
|
|
||||||
}
|
|
||||||
//ma_type_put_in_storage_details表
|
//ma_type_put_in_storage_details表
|
||||||
num = inventoryAndWarehousingMapper.saveDetails(machIneDto);
|
res += inventoryAndWarehousingMapper.saveDetails(machIneDto);
|
||||||
if (num == 0) {
|
return res;
|
||||||
throw new RuntimeException("新增到ma_type_put_in_storage_details表失败");
|
|
||||||
}
|
|
||||||
return num;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -180,16 +170,16 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private int insertPutInfo(SavePutInfoDto dto) {
|
private int insertPutInfo(SavePutInfoDto dto) {
|
||||||
int num = 0;
|
int res = 0;
|
||||||
for (int i = 0; i < dto.getMachIneDtoList().size(); i++) {
|
for (int i = 0; i < dto.getMachIneDtoList().size(); i++) {
|
||||||
MachIneDto machIneDto = dto.getMachIneDtoList().get(i);
|
MachIneDto machIneDto = dto.getMachIneDtoList().get(i);
|
||||||
machIneDto.setCreator(dto.getCreator());
|
machIneDto.setCreator(dto.getCreator());
|
||||||
machIneDto.setPutInType(dto.getPutInType());
|
machIneDto.setPutInType(dto.getPutInType());
|
||||||
machIneDto.setRemarks(dto.getRemarks());
|
machIneDto.setRemarks(dto.getRemarks());
|
||||||
getAnInt(machIneDto);
|
res += insertTypePutInStorageInfo(machIneDto);
|
||||||
//根据类型追加ma_type表里面的num
|
//根据类型追加ma_type表里面的num
|
||||||
num = updateMaTypeInfo(machIneDto.getTypeId(), machIneDto.getPutInStoreNum());
|
res += updateMaTypeInfo(machIneDto.getTypeId(), machIneDto.getPutInStoreNum());
|
||||||
}
|
}
|
||||||
return num;
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
GROUP BY mt.type_id) AS subquery4 ON subquery4.type_id = mt.type_id
|
GROUP BY mt.type_id) AS subquery4 ON subquery4.type_id = mt.type_id
|
||||||
LEFT JOIN ma_type mt2 on mt2.type_id = mt.parent_id
|
LEFT JOIN ma_type mt2 on mt2.type_id = mt.parent_id
|
||||||
WHERE mt.`level` = 4
|
WHERE mt.`level` = 4
|
||||||
|
and mt.del_flag = '0'
|
||||||
<if test="typeName != null and typeName != ''">
|
<if test="typeName != null and typeName != ''">
|
||||||
and mt2.type_name like concat('%',#{typeName},'%')
|
and mt2.type_name like concat('%',#{typeName},'%')
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,6 @@ var testUrl = '192.168.0.14:21626' //线上
|
||||||
module.exports = merge(prodEnv, {
|
module.exports = merge(prodEnv, {
|
||||||
NODE_ENV: '"development"',
|
NODE_ENV: '"development"',
|
||||||
//API调用地址
|
//API调用地址
|
||||||
API_ROOT: '"http://' + testUrl + '"',
|
// API_ROOT: '"http://' + testUrl + '"',
|
||||||
BASE_URL: '/cockpit-screen/'
|
// BASE_URL: '/cockpit-screen/'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ module.exports = {
|
||||||
cssSourceMap: true,
|
cssSourceMap: true,
|
||||||
proxyTable: {
|
proxyTable: {
|
||||||
'/screen': {
|
'/screen': {
|
||||||
target: 'http://112.29.103.165:21626',
|
target: 'http://112.29.103.165:21624',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
// secure: true, //如果是https接口,需要配置这个参数
|
// secure: true, //如果是https接口,需要配置这个参数
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|
|
||||||
|
|
@ -75,43 +75,30 @@
|
||||||
<el-table v-loading="loading" :data="typeList" height="600" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="typeList" height="600" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="50" align="center"/>
|
<el-table-column type="selection" width="50" align="center"/>
|
||||||
<el-table-column label="名称" align="center" key="typeName" prop="typeName" />
|
<el-table-column label="名称" align="center" key="typeName" prop="typeName" />
|
||||||
<el-table-column label="计量单位" align="center" key="unitName" prop="unitName"
|
<el-table-column label="计量单位" align="center" key="unitName" prop="unitName" :show-overflow-tooltip="true"/>
|
||||||
:show-overflow-tooltip="true"/>
|
<el-table-column label="内部租赁价" align="center" key="leasePrice" prop="leasePrice" :show-overflow-tooltip="true" width="100"/>
|
||||||
<el-table-column label="内部租赁价" align="center" key="leasePrice" prop="leasePrice"
|
<el-table-column label="原值" align="center" key="buyPrice" prop="buyPrice" :show-overflow-tooltip="true"/>
|
||||||
:show-overflow-tooltip="true"/>
|
<el-table-column label="丢失赔偿" align="center" key="payPrice" prop="payPrice" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column label="原值" align="center" key="buyPrice" prop="buyPrice"
|
<el-table-column label="库管员" align="center" key="keeperUserName" prop="keeperUserName" :show-overflow-tooltip="true"/>
|
||||||
:show-overflow-tooltip="true"/>
|
<el-table-column label="管理模式" align="center" key="manageType" prop="manageType" :show-overflow-tooltip="true">
|
||||||
<el-table-column label="丢失赔偿" align="center" key="payPrice" prop="payPrice"
|
<template slot-scope="scope">
|
||||||
width="120"/>
|
<span v-if="scope.row.manageType=='0'">编码管理</span>
|
||||||
<el-table-column label="库管员" align="center" key="keeperUserName" prop="keeperUserName"
|
<span v-if="scope.row.manageType=='1'">数量管理</span>
|
||||||
:show-overflow-tooltip="true"/>
|
</template>
|
||||||
<el-table-column label="管理模式" align="center" key="manageType" prop="manageType"
|
</el-table-column>
|
||||||
:show-overflow-tooltip="true">
|
<el-table-column label="图片" align="center" key="photoName" prop="photoName" :show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span v-if="scope.row.manageType=='0'">编码管理</span>
|
<span @click="openImg(scope.row.photoUrl)" style="color: #02A7F0;"> {{ scope.row.photoName }} </span>
|
||||||
<span v-if="scope.row.manageType=='1'">数量管理</span>
|
</template>
|
||||||
</template>
|
</el-table-column>
|
||||||
</el-table-column>
|
<el-table-column label="文档资料" align="center" key="documentName" prop="documentName" :show-overflow-tooltip="true">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<a :href="uploadUrl+scope.row.documentUrl" style="color: #02A7F0;" :download="scope.row.documentName">{{ scope.row.documentName }}</a>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="图片" align="center" key="photoName" prop="photoName"
|
<el-table-column label="资产属性" align="center" key="propName" prop="propName" :show-overflow-tooltip="true"/>
|
||||||
:show-overflow-tooltip="true">
|
<el-table-column label="厂家规格型号" align="center" key="facModel" prop="facModel" :show-overflow-tooltip="true" width="120"/>
|
||||||
<template slot-scope="scope">
|
<el-table-column label="备注信息" align="center" key="remark" prop="remark" :show-overflow-tooltip="true"/>
|
||||||
<span @click="openImg(scope.row.photoUrl)" style="color: #02A7F0;"> {{ scope.row.photoName }} </span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="文档资料" align="center" key="documentName" prop="documentName"
|
|
||||||
:show-overflow-tooltip="true">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<a :href="uploadUrl+scope.row.documentUrl" style="color: #02A7F0;" :download="scope.row.documentName">{{ scope.row.documentName }}</a>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="资产属性" align="center" key="propName" prop="propName"
|
|
||||||
:show-overflow-tooltip="true"/>
|
|
||||||
<el-table-column label="备注信息" align="center" key="remark" prop="remark"
|
|
||||||
:show-overflow-tooltip="true"/>
|
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
|
|
@ -250,6 +237,18 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="厂家规格型号" prop="facModel">
|
||||||
|
<el-input v-model="form.facModel" placeholder="请输入厂家规格型号" maxlength="100"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="备注" prop="remark">
|
||||||
|
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注内容" maxlength="150"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="文档资料" prop="field101">
|
<el-form-item label="文档资料" prop="field101">
|
||||||
|
|
@ -285,13 +284,7 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item label="备注" prop="remark">
|
|
||||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注内容" maxlength="150"></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">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@
|
||||||
placeholder="请选择物品类型"
|
placeholder="请选择物品类型"
|
||||||
:options="deviceTypeTree"
|
:options="deviceTypeTree"
|
||||||
:props="deviceTypeTreeProps"
|
:props="deviceTypeTreeProps"
|
||||||
v-model="deviceType"
|
v-model="codeForm.typeId"
|
||||||
@change="deviceTypeChange"
|
@change="deviceTypeChange"
|
||||||
ref="deviceTypeCascader"
|
ref="deviceTypeCascader"
|
||||||
style="width: 400px;"
|
style="width: 400px;"
|
||||||
|
|
@ -206,7 +206,6 @@
|
||||||
:max="99"
|
:max="99"
|
||||||
:controls="false"
|
:controls="false"
|
||||||
style="width: 13vw;"
|
style="width: 13vw;"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|
@ -221,7 +220,6 @@
|
||||||
placeholder="请输入前缀"
|
placeholder="请输入前缀"
|
||||||
clearable
|
clearable
|
||||||
style="width: 220px"
|
style="width: 220px"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -233,7 +231,6 @@
|
||||||
clearable
|
clearable
|
||||||
placeholder="请输入后缀范围"
|
placeholder="请输入后缀范围"
|
||||||
style="width: 185px"
|
style="width: 185px"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
@input="changeInput(codeForm.codeSuffixStart)"
|
@input="changeInput(codeForm.codeSuffixStart)"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -243,7 +240,6 @@
|
||||||
clearable
|
clearable
|
||||||
placeholder="请输入后缀范围"
|
placeholder="请输入后缀范围"
|
||||||
style="width: 185px"
|
style="width: 185px"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
@input="changeInput(codeForm.codeSuffixEnd)"
|
@input="changeInput(codeForm.codeSuffixEnd)"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -258,7 +254,6 @@
|
||||||
:min="0"
|
:min="0"
|
||||||
:controls="false"
|
:controls="false"
|
||||||
style="width: 13vw;"
|
style="width: 13vw;"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -289,8 +284,7 @@
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请输入检验时间"
|
placeholder="请输入检验时间"
|
||||||
style="width: 400px"
|
style="width: 400px"
|
||||||
@keyup.enter.native="handleQuery">
|
/>
|
||||||
</el-date-picker>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="7">
|
<el-col :span="7">
|
||||||
|
|
@ -300,7 +294,6 @@
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请输入检验时间"
|
placeholder="请输入检验时间"
|
||||||
style="width: 13vw;"
|
style="width: 13vw;"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -323,7 +316,6 @@
|
||||||
rows="4"
|
rows="4"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
:style="{ width: isNumCheck ? '220px' : '400px' }"
|
:style="{ width: isNumCheck ? '220px' : '400px' }"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -398,7 +390,6 @@
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请输入检验时间"
|
placeholder="请输入检验时间"
|
||||||
style="width: 170px"
|
style="width: 170px"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -409,7 +400,6 @@
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请输入下次检验时间"
|
placeholder="请输入下次检验时间"
|
||||||
style="width: 170px"
|
style="width: 170px"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -423,7 +413,6 @@
|
||||||
:controls="false"
|
:controls="false"
|
||||||
clearable
|
clearable
|
||||||
style="width: 160px"
|
style="width: 160px"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
@ -630,10 +619,10 @@ export default {
|
||||||
},
|
},
|
||||||
codeFormRules: {
|
codeFormRules: {
|
||||||
putInType: [
|
putInType: [
|
||||||
{ required: true, message: "入库来源不能为空", trigger: "blur" }
|
{ required: true, message: "入库来源不能为空", trigger: "change" }
|
||||||
],
|
],
|
||||||
typeId: [
|
typeId: [
|
||||||
{ required: true, message: "设备/物资类型不能为空", trigger: "blur" }
|
{ required: true, message: "设备/物资类型不能为空", trigger: "change" }
|
||||||
],
|
],
|
||||||
num: [
|
num: [
|
||||||
{ required: true, message: "待入库总数不能为空", trigger: "blur" }
|
{ required: true, message: "待入库总数不能为空", trigger: "blur" }
|
||||||
|
|
@ -679,7 +668,6 @@ export default {
|
||||||
},
|
},
|
||||||
// 取消编码盘点按钮
|
// 取消编码盘点按钮
|
||||||
cancelCode() {
|
cancelCode() {
|
||||||
this.codeOpen = false;
|
|
||||||
this.cascaderDisabled = false
|
this.cascaderDisabled = false
|
||||||
this.resetCodeForm();
|
this.resetCodeForm();
|
||||||
this.deviceType = {}
|
this.deviceType = {}
|
||||||
|
|
@ -687,7 +675,7 @@ export default {
|
||||||
this.codeTableList = []
|
this.codeTableList = []
|
||||||
this.numTableList = []
|
this.numTableList = []
|
||||||
this.$refs['codeForm'].clearValidate()
|
this.$refs['codeForm'].clearValidate()
|
||||||
this.isNumCheck = false;
|
this.codeOpen = false;
|
||||||
},
|
},
|
||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
|
|
@ -704,9 +692,9 @@ export default {
|
||||||
resetCodeForm() {
|
resetCodeForm() {
|
||||||
this.codeForm = {
|
this.codeForm = {
|
||||||
checkMan: undefined,
|
checkMan: undefined,
|
||||||
putInType: undefined,
|
putInType: null,
|
||||||
remarks: undefined,
|
remarks: undefined,
|
||||||
typeId: undefined,
|
typeId: null,
|
||||||
num: undefined,
|
num: undefined,
|
||||||
codePrefix: undefined,
|
codePrefix: undefined,
|
||||||
codeSuffixStart: undefined,
|
codeSuffixStart: undefined,
|
||||||
|
|
@ -803,6 +791,7 @@ export default {
|
||||||
this.reset();
|
this.reset();
|
||||||
this.codeOpen = true;
|
this.codeOpen = true;
|
||||||
this.title = "数量盘点入库";
|
this.title = "数量盘点入库";
|
||||||
|
this.resetCodeForm()
|
||||||
},
|
},
|
||||||
/** 新增编号盘点按钮操作 */
|
/** 新增编号盘点按钮操作 */
|
||||||
handleCodeAdd() {
|
handleCodeAdd() {
|
||||||
|
|
@ -810,6 +799,7 @@ export default {
|
||||||
this.reset();
|
this.reset();
|
||||||
this.codeOpen = true;
|
this.codeOpen = true;
|
||||||
this.title = "编码盘点入库";
|
this.title = "编码盘点入库";
|
||||||
|
this.resetCodeForm()
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
|
|
@ -847,12 +837,11 @@ export default {
|
||||||
// 发送请求
|
// 发送请求
|
||||||
inputByCode(SavePutInfoDto).then(response => {
|
inputByCode(SavePutInfoDto).then(response => {
|
||||||
this.$message.success('入库成功')
|
this.$message.success('入库成功')
|
||||||
this.codeOpen = false
|
|
||||||
this.getList()
|
|
||||||
this.resetCodeForm()
|
this.resetCodeForm()
|
||||||
this.reset()
|
|
||||||
this.numTableList = []
|
this.numTableList = []
|
||||||
this.deviceType = {}
|
this.codeOpen = false
|
||||||
|
this.reset()
|
||||||
|
this.getList()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// 提交数据
|
// 提交数据
|
||||||
|
|
@ -875,12 +864,11 @@ export default {
|
||||||
// 发送请求
|
// 发送请求
|
||||||
inputByCode(SavePutInfoDto).then(response => {
|
inputByCode(SavePutInfoDto).then(response => {
|
||||||
this.$message.success('入库成功')
|
this.$message.success('入库成功')
|
||||||
this.codeOpen = false
|
|
||||||
this.getList()
|
|
||||||
this.resetCodeForm()
|
this.resetCodeForm()
|
||||||
this.reset()
|
|
||||||
this.codeTableList = []
|
this.codeTableList = []
|
||||||
this.deviceType = {}
|
this.codeOpen = false
|
||||||
|
this.reset()
|
||||||
|
this.getList()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue