报表优化
This commit is contained in:
@@ -6,9 +6,9 @@ import java.util.List;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class KcDto {
|
public class KcDto {
|
||||||
private String sum;
|
// private String sum;
|
||||||
private String weight;
|
// private String weight;
|
||||||
private String pendSum;
|
// private String pendSum;
|
||||||
private String pendWeight;
|
// private String pendWeight;
|
||||||
private List<WuliaoDto> list;
|
private List<WuliaoDto> list;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import java.util.List;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class SckbDto {
|
public class SckbDto {
|
||||||
|
private Integer ptNumber;
|
||||||
private List<ScDto> pt;
|
private List<ScDto> pt;
|
||||||
|
private Integer ksNumber;
|
||||||
private List<ScDto> ks;
|
private List<ScDto> ks;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,10 @@ import lombok.Data;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class WuliaoDto {
|
public class WuliaoDto {
|
||||||
String name;
|
String productDescription;
|
||||||
String number;
|
String specification;
|
||||||
|
Double count1;
|
||||||
String percentage;
|
Double count2;
|
||||||
|
Double count3;
|
||||||
|
Double count4;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package org.nl.wms.board.service.dao.mapper;
|
package org.nl.wms.board.service.dao.mapper;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
import org.nl.wms.board.service.dao.dto.*;
|
import org.nl.wms.board.service.dao.dto.*;
|
||||||
import org.nl.wms.pdm.service.dao.PointDetail;
|
import org.nl.wms.pdm.service.dao.PointDetail;
|
||||||
|
|
||||||
@@ -22,4 +23,10 @@ public interface BoardMapper {
|
|||||||
KcDto kc();
|
KcDto kc();
|
||||||
|
|
||||||
List<WuliaoDto> wuliao();
|
List<WuliaoDto> wuliao();
|
||||||
|
|
||||||
|
@Select("select count(*) from sch_base_point where region_code ='HW' and (vehicle_code2='' OR vehicle_code2 is null)")
|
||||||
|
Integer ptNumber();
|
||||||
|
|
||||||
|
@Select("select count(*) from sch_base_point where region_code ='HWK' and (vehicle_code2='' OR vehicle_code2 is null)")
|
||||||
|
Integer ksNumber();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,6 +63,8 @@ public class BoardServiceImpl implements BoardService {
|
|||||||
SckbDto sckbDto = new SckbDto();
|
SckbDto sckbDto = new SckbDto();
|
||||||
sckbDto.setPt(boardMapper.sc("HW"));
|
sckbDto.setPt(boardMapper.sc("HW"));
|
||||||
sckbDto.setKs(boardMapper.sc("HWK"));
|
sckbDto.setKs(boardMapper.sc("HWK"));
|
||||||
|
sckbDto.setPtNumber(boardMapper.ptNumber());
|
||||||
|
sckbDto.setKsNumber(boardMapper.ksNumber());
|
||||||
return JSONObject.parseObject(JSON.toJSONString(sckbDto, SerializerFeature.WriteNullStringAsEmpty));
|
return JSONObject.parseObject(JSON.toJSONString(sckbDto, SerializerFeature.WriteNullStringAsEmpty));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ public class QPMES060RequestBody {
|
|||||||
private double incomingLength;
|
private double incomingLength;
|
||||||
private double incomingWeight;
|
private double incomingWeight;
|
||||||
private double incomingchipping;
|
private double incomingchipping;
|
||||||
|
private String planZBNum;
|
||||||
private String ingotBatch;
|
private String ingotBatch;
|
||||||
private String siliconGrade;
|
private String siliconGrade;
|
||||||
private String siliconPolarity;
|
private String siliconPolarity;
|
||||||
|
|||||||
@@ -33,9 +33,6 @@ public class MaterialDataDto implements Serializable {
|
|||||||
/** 来料批次 */
|
/** 来料批次 */
|
||||||
private String batch;
|
private String batch;
|
||||||
|
|
||||||
/** 棒源等级 */
|
|
||||||
private String barLevel;
|
|
||||||
|
|
||||||
/** 领料批次 */
|
/** 领料批次 */
|
||||||
private String pickingBatch;
|
private String pickingBatch;
|
||||||
|
|
||||||
|
|||||||
@@ -56,17 +56,17 @@ public class Material implements Serializable {
|
|||||||
private String incomingchipping;
|
private String incomingchipping;
|
||||||
@ApiModelProperty(value = "绑定状态")
|
@ApiModelProperty(value = "绑定状态")
|
||||||
private String group_bind_material_status;
|
private String group_bind_material_status;
|
||||||
@ApiModelProperty(value = "棒源等级")
|
@ApiModelProperty(value = "拼棒类型")
|
||||||
private String barLevel;
|
private String planZBNum;
|
||||||
@ApiModelProperty(value = "客户来料批次号")
|
@ApiModelProperty(value = "客户来料批次号")
|
||||||
private String ingotBatch;
|
private String ingotBatch;
|
||||||
@ApiModelProperty(value = "晶棒等级")
|
@ApiModelProperty(value = "晶棒等级")
|
||||||
private String siliconGrade;
|
private String siliconGrade;
|
||||||
@ApiModelProperty(value = "晶棒等级")
|
@ApiModelProperty(value = "极性")
|
||||||
private String siliconPolarity;
|
private String siliconPolarity;
|
||||||
@ApiModelProperty(value = "重量")
|
@ApiModelProperty(value = "重量折算系数")
|
||||||
private String weightCoefficientValue;
|
private String weightCoefficientValue;
|
||||||
@ApiModelProperty(value = "线直径")
|
@ApiModelProperty(value = "线径")
|
||||||
private String lineDiameter;
|
private String lineDiameter;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -91,4 +91,12 @@ public class ReportController {
|
|||||||
return new ResponseEntity<>(TableDataInfo.build(reportService.getLotSNList()),HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(reportService.getLotSNList()),HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getIngotBatchList")
|
||||||
|
@Log("查询批次号列表")
|
||||||
|
@ApiOperation("查询批次号列表")
|
||||||
|
//@SaCheckPermission("@el.check('material:list')")
|
||||||
|
public ResponseEntity<Object> getIngotBatchList(){
|
||||||
|
return new ResponseEntity<>(TableDataInfo.build(reportService.getIngotBatchList()),HttpStatus.OK);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,4 +37,6 @@ public interface IReportService extends IService<ReportDto> {
|
|||||||
|
|
||||||
List<String> getLotSNList();
|
List<String> getLotSNList();
|
||||||
|
|
||||||
|
List<String> getIngotBatchList();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,4 +38,7 @@ public interface ReportMapper extends BaseMapper<ReportDto> {
|
|||||||
|
|
||||||
@Select("select lotSN from sch_base_material")
|
@Select("select lotSN from sch_base_material")
|
||||||
List<String> getLotSNList();
|
List<String> getLotSNList();
|
||||||
|
|
||||||
|
@Select("select ingotBatch from sch_base_material group by ingotBatch")
|
||||||
|
List<String> getIngotBatchList();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,8 @@
|
|||||||
p.vehicle_code2 as subTray,
|
p.vehicle_code2 as subTray,
|
||||||
p.vehicle_code as motherTray,
|
p.vehicle_code as motherTray,
|
||||||
m.productDescription,
|
m.productDescription,
|
||||||
m.supplierName
|
m.supplierName,
|
||||||
|
m.ingotBatch
|
||||||
FROM
|
FROM
|
||||||
sch_base_point p
|
sch_base_point p
|
||||||
LEFT JOIN sch_base_material m ON p.vehicle_code2 = m.PalletSN
|
LEFT JOIN sch_base_material m ON p.vehicle_code2 = m.PalletSN
|
||||||
@@ -30,6 +31,9 @@
|
|||||||
<if test="query.region_code != null">
|
<if test="query.region_code != null">
|
||||||
and p.region_code = #{query.region_code}
|
and p.region_code = #{query.region_code}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="query.ingotBatch != null">
|
||||||
|
and m.ingotBatch like CONCAT('%', #{query.ingotBatch}, '%')
|
||||||
|
</if>
|
||||||
ORDER BY point_code ASC
|
ORDER BY point_code ASC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -43,12 +47,7 @@
|
|||||||
p.vehicle_code2 as subTray,
|
p.vehicle_code2 as subTray,
|
||||||
p.vehicle_code as motherTray,
|
p.vehicle_code as motherTray,
|
||||||
p.update_time as updateTime,
|
p.update_time as updateTime,
|
||||||
m.siliconGrade,
|
m.*
|
||||||
m.productDescription,
|
|
||||||
m.supplierName,
|
|
||||||
m.ingotBatch,
|
|
||||||
m.incomingLength,
|
|
||||||
m.incomingWeight
|
|
||||||
FROM
|
FROM
|
||||||
sch_base_point p,sch_base_material m
|
sch_base_point p,sch_base_material m
|
||||||
WHERE
|
WHERE
|
||||||
@@ -70,6 +69,9 @@
|
|||||||
<if test="query.lotSN != null">
|
<if test="query.lotSN != null">
|
||||||
and m.lotSN like CONCAT('%', #{query.lotSN}, '%')
|
and m.lotSN like CONCAT('%', #{query.lotSN}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="query.ingotBatch != null">
|
||||||
|
and m.ingotBatch like CONCAT('%', #{query.ingotBatch}, '%')
|
||||||
|
</if>
|
||||||
ORDER BY point_code ASC
|
ORDER BY point_code ASC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -116,6 +118,9 @@
|
|||||||
<if test="query.lotSN != null">
|
<if test="query.lotSN != null">
|
||||||
and m.lotSN like CONCAT('%', #{query.lotSN}, '%')
|
and m.lotSN like CONCAT('%', #{query.lotSN}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="query.ingotBatch != null">
|
||||||
|
and m.ingotBatch like CONCAT('%', #{query.ingotBatch}, '%')
|
||||||
|
</if>
|
||||||
GROUP BY
|
GROUP BY
|
||||||
pointCode
|
pointCode
|
||||||
ORDER BY pointCode ASC
|
ORDER BY pointCode ASC
|
||||||
|
|||||||
@@ -22,4 +22,8 @@ public class ReportDto implements Serializable {
|
|||||||
private String productDescription;
|
private String productDescription;
|
||||||
/** 供应商名称 */
|
/** 供应商名称 */
|
||||||
private String supplierName;
|
private String supplierName;
|
||||||
|
/**
|
||||||
|
* 客户来料批次号
|
||||||
|
*/
|
||||||
|
private String ingotBatch;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,4 +24,9 @@ public class ReportQuery implements Serializable {
|
|||||||
private String point_code;
|
private String point_code;
|
||||||
|
|
||||||
private String region_code;
|
private String region_code;
|
||||||
|
|
||||||
|
private String ingotBatch;
|
||||||
|
|
||||||
|
private String start_point;
|
||||||
|
private String end_point;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,32 +7,84 @@ import java.io.Serializable;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class YlDto implements Serializable {
|
public class YlDto implements Serializable {
|
||||||
/** 点位编码 */
|
/**
|
||||||
|
* 点位编码
|
||||||
|
*/
|
||||||
private String pointCode;
|
private String pointCode;
|
||||||
/** 点位名称 */
|
/**
|
||||||
|
* 点位名称
|
||||||
|
*/
|
||||||
private String pointName;
|
private String pointName;
|
||||||
/** 区域编码 */
|
/**
|
||||||
|
* 区域编码
|
||||||
|
*/
|
||||||
private String regionCode;
|
private String regionCode;
|
||||||
/** 区域名称 */
|
/**
|
||||||
|
* 区域名称
|
||||||
|
*/
|
||||||
private String regionName;
|
private String regionName;
|
||||||
/** 子托号 */
|
/**
|
||||||
|
* 子托号
|
||||||
|
*/
|
||||||
private String subTray;
|
private String subTray;
|
||||||
/** 母拖号 */
|
/**
|
||||||
|
* 母拖号
|
||||||
|
*/
|
||||||
private String motherTray;
|
private String motherTray;
|
||||||
/** 物料名称 */
|
/**
|
||||||
|
* 物料名称
|
||||||
|
*/
|
||||||
private String productDescription;
|
private String productDescription;
|
||||||
/** 供应商名称 */
|
/**
|
||||||
|
* 供应商名称
|
||||||
|
*/
|
||||||
private String supplierName;
|
private String supplierName;
|
||||||
/** 入库时间 */
|
/**
|
||||||
|
* 入库时间
|
||||||
|
*/
|
||||||
private String updateTime;
|
private String updateTime;
|
||||||
/** 棒源等级 */
|
/**
|
||||||
|
* 棒源等级
|
||||||
|
*/
|
||||||
private String siliconGrade;
|
private String siliconGrade;
|
||||||
/** 客户来料批次号 */
|
/**
|
||||||
|
* 客户来料批次号
|
||||||
|
*/
|
||||||
private String ingotBatch;
|
private String ingotBatch;
|
||||||
/** 晶棒号 */
|
/**
|
||||||
|
* 晶棒号
|
||||||
|
*/
|
||||||
private String lotSN;
|
private String lotSN;
|
||||||
/** 来料长度 */
|
/**
|
||||||
|
* 来料长度
|
||||||
|
*/
|
||||||
private String incomingLength;
|
private String incomingLength;
|
||||||
/** 来料重量 */
|
/**
|
||||||
|
* 来料重量
|
||||||
|
*/
|
||||||
private String incomingWeight;
|
private String incomingWeight;
|
||||||
|
/**
|
||||||
|
* 物料编码
|
||||||
|
*/
|
||||||
|
private String productName;
|
||||||
|
/**
|
||||||
|
* 来料缺陷长度
|
||||||
|
*/
|
||||||
|
private String incomingchipping;
|
||||||
|
/**
|
||||||
|
* 拼棒类型
|
||||||
|
*/
|
||||||
|
private String planZBNum;
|
||||||
|
/**
|
||||||
|
* 极性
|
||||||
|
*/
|
||||||
|
private String siliconPolarity;
|
||||||
|
/**
|
||||||
|
* 重量折算系数
|
||||||
|
*/
|
||||||
|
private String weightCoefficientValue;
|
||||||
|
/**
|
||||||
|
* 线径
|
||||||
|
*/
|
||||||
|
private String lineDiameter;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -122,5 +122,11 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, ReportDto> impl
|
|||||||
return reportMapper.getLotSNList();
|
return reportMapper.getLotSNList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<String> getIngotBatchList(){
|
||||||
|
return reportMapper.getIngotBatchList();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -291,7 +291,6 @@ public class YCLCKTask extends AbstractTask {
|
|||||||
materialDataDto.setProductName(material.getProductName());
|
materialDataDto.setProductName(material.getProductName());
|
||||||
materialDataDto.setSpecification(material.getSpecification());
|
materialDataDto.setSpecification(material.getSpecification());
|
||||||
materialDataDto.setPickingBatch(extGroupData.getString("batch"));
|
materialDataDto.setPickingBatch(extGroupData.getString("batch"));
|
||||||
materialDataDto.setBarLevel(material.getBarLevel());
|
|
||||||
materialDataDto.setLength(BigDecimal.valueOf(length));
|
materialDataDto.setLength(BigDecimal.valueOf(length));
|
||||||
materialDataDto.setWeight(BigDecimal.valueOf(weight));
|
materialDataDto.setWeight(BigDecimal.valueOf(weight));
|
||||||
materialDataDto.setCreateTime(new DateTime().toTimestamp());
|
materialDataDto.setCreateTime(new DateTime().toTimestamp());
|
||||||
|
|||||||
@@ -268,7 +268,6 @@ public class YCLRKTask extends AbstractTask {
|
|||||||
materialDataDto.setProductName(material.getProductName());
|
materialDataDto.setProductName(material.getProductName());
|
||||||
materialDataDto.setSpecification(material.getSpecification());
|
materialDataDto.setSpecification(material.getSpecification());
|
||||||
materialDataDto.setBatch(material.getBatch());
|
materialDataDto.setBatch(material.getBatch());
|
||||||
materialDataDto.setBarLevel(material.getBarLevel());
|
|
||||||
materialDataDto.setLength(BigDecimal.valueOf(length));
|
materialDataDto.setLength(BigDecimal.valueOf(length));
|
||||||
materialDataDto.setWeight(BigDecimal.valueOf(weight));
|
materialDataDto.setWeight(BigDecimal.valueOf(weight));
|
||||||
materialDataDto.setCreateTime(new DateTime().toTimestamp());
|
materialDataDto.setCreateTime(new DateTime().toTimestamp());
|
||||||
|
|||||||
@@ -55,5 +55,13 @@ export function getLotSNList(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getIngotBatchList(data) {
|
||||||
|
return request({
|
||||||
|
url: 'api/report/getIngotBatchList',
|
||||||
|
method: 'get',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export default { add, edit, del, getGroup, getSupplierNameList, getProductDescriptionList, getLotSNList }
|
export default { add, edit, del, getGroup, getSupplierNameList, getProductDescriptionList, getLotSNList }
|
||||||
|
|
||||||
|
|||||||
@@ -70,6 +70,23 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="批次">
|
||||||
|
<el-select
|
||||||
|
v-model="query.ingotBatch"
|
||||||
|
clearable
|
||||||
|
size="mini"
|
||||||
|
placeholder="批次"
|
||||||
|
class="filter-item"
|
||||||
|
filterable
|
||||||
|
@remote-method="getIngotBatchList"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in ingotBatchList"
|
||||||
|
:label="item"
|
||||||
|
:value="item"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<rrOperation />
|
<rrOperation />
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -228,7 +245,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler" height="300">
|
||||||
|
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-add"
|
||||||
|
@click="handleButtonClick(scope.row)"
|
||||||
|
>回温出库</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="pointCode" label="点位编码" :min-width="flexWidth('pointCode',crud.data,'点位编码')" />
|
<el-table-column prop="pointCode" label="点位编码" :min-width="flexWidth('pointCode',crud.data,'点位编码')" />
|
||||||
<el-table-column prop="pointName" label="点位名称" :min-width="flexWidth('pointName',crud.data,'点位名称')" />
|
<el-table-column prop="pointName" label="点位名称" :min-width="flexWidth('pointName',crud.data,'点位名称')" />
|
||||||
<el-table-column prop="regionCode" label="区域编码" :min-width="flexWidth('regionCode',crud.data,'区域编码')" />
|
<el-table-column prop="regionCode" label="区域编码" :min-width="flexWidth('regionCode',crud.data,'区域编码')" />
|
||||||
@@ -237,7 +263,7 @@
|
|||||||
<el-table-column prop="motherTray" label="母托编码" :min-width="flexWidth('motherTray',crud.data,'母托编码')" />
|
<el-table-column prop="motherTray" label="母托编码" :min-width="flexWidth('motherTray',crud.data,'母托编码')" />
|
||||||
<el-table-column prop="supplierName" label="供应商名称" :min-width="flexWidth('supplierName',crud.data,'供应商名称')" />
|
<el-table-column prop="supplierName" label="供应商名称" :min-width="flexWidth('supplierName',crud.data,'供应商名称')" />
|
||||||
<el-table-column prop="productDescription" label="物料名称" :min-width="flexWidth('productDescription',crud.data,'物料名称')" />
|
<el-table-column prop="productDescription" label="物料名称" :min-width="flexWidth('productDescription',crud.data,'物料名称')" />
|
||||||
<el-table-column prop="batch" label="批次" :min-width="flexWidth('batch',crud.data,'批次')" />
|
<el-table-column prop="ingotBatch" label="批次" :min-width="flexWidth('ingotBatch',crud.data,'批次')" />
|
||||||
<el-table-column prop="siliconGrade" label="棒源等级" :min-width="flexWidth('siliconGrade',crud.data,'棒源等级')" />
|
<el-table-column prop="siliconGrade" label="棒源等级" :min-width="flexWidth('siliconGrade',crud.data,'棒源等级')" />
|
||||||
<el-table-column prop="number" label="每托数量(根)" :min-width="flexWidth('number',crud.data,'每托数量(根)')" />
|
<el-table-column prop="number" label="每托数量(根)" :min-width="flexWidth('number',crud.data,'每托数量(根)')" />
|
||||||
<el-table-column prop="updateTime" label="入库时间" :min-width="170" />
|
<el-table-column prop="updateTime" label="入库时间" :min-width="170" />
|
||||||
@@ -249,6 +275,28 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
:visible.sync="dialogVisible"
|
||||||
|
title="选择点位"
|
||||||
|
>
|
||||||
|
<el-form ref="form" :model="form">
|
||||||
|
<el-form-item label="点位列表">
|
||||||
|
<el-select v-model="form.selectedPoint" placeholder="请选择点位">
|
||||||
|
<el-option
|
||||||
|
v-for="item in points"
|
||||||
|
:key="item.point_code"
|
||||||
|
:label="item.point_code"
|
||||||
|
:value="item.point_code"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="dialogVisible = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="submitSelectedPoint">确认</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination />
|
||||||
</div>
|
</div>
|
||||||
@@ -335,8 +383,14 @@ export default {
|
|||||||
regionList: [],
|
regionList: [],
|
||||||
supplierNameList: [],
|
supplierNameList: [],
|
||||||
lotSNList: [],
|
lotSNList: [],
|
||||||
|
ingotBatchList: [],
|
||||||
productDescriptionList: [],
|
productDescriptionList: [],
|
||||||
choose: '物料'
|
choose: '物料',
|
||||||
|
dialogVisible: false,
|
||||||
|
form: {
|
||||||
|
selectedPoint: null
|
||||||
|
},
|
||||||
|
points: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -345,6 +399,8 @@ export default {
|
|||||||
this.getRegionList()
|
this.getRegionList()
|
||||||
this.getSupplierNameList()
|
this.getSupplierNameList()
|
||||||
// this.getLotSNList()
|
// this.getLotSNList()
|
||||||
|
this.getIngotBatchList()
|
||||||
|
this.fetchPoints()
|
||||||
this.getProductDescriptionList()
|
this.getProductDescriptionList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -382,6 +438,11 @@ export default {
|
|||||||
this.productDescriptionList = res.content
|
this.productDescriptionList = res.content
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getIngotBatchList() {
|
||||||
|
crudMaterial.getIngotBatchList().then(res => {
|
||||||
|
this.ingotBatchList = res.content
|
||||||
|
})
|
||||||
|
},
|
||||||
tableChanged(row) {
|
tableChanged(row) {
|
||||||
this.form.material_name = row.material_name
|
this.form.material_name = row.material_name
|
||||||
this.form.material_id = row.material_id
|
this.form.material_id = row.material_id
|
||||||
@@ -403,6 +464,34 @@ export default {
|
|||||||
},
|
},
|
||||||
hand(value) {
|
hand(value) {
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
},handleButtonClick(row) {
|
||||||
|
this.selectedRow = row;
|
||||||
|
this.dialogVisible = true;
|
||||||
|
this.fetchPoints();
|
||||||
|
},
|
||||||
|
fetchPoints() {
|
||||||
|
crudSchBasePoint.getCBPointList().then(res => {
|
||||||
|
this.points = res;
|
||||||
|
alert(points);
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
submitSelectedPoint() {
|
||||||
|
const selectedPoint = this.form.selectedPoint;
|
||||||
|
if (!selectedPoint) {
|
||||||
|
this.$message.warning('请选择一个点位');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// Submit the selected point to the backend
|
||||||
|
this.$axios.post('/api/pda/task', {
|
||||||
|
start_point: this.selectedRow.pointCode,
|
||||||
|
next_point: selectedPoint
|
||||||
|
}).then(response => {
|
||||||
|
this.$message.success('提交成功');
|
||||||
|
this.dialogVisible = false;
|
||||||
|
}).catch(error => {
|
||||||
|
this.$message.error('提交失败');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,13 @@ export function getPointList(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function getCBPointList(data) {
|
||||||
|
data ={ region_code: 'CB' }
|
||||||
|
return request({
|
||||||
|
url: 'api/schBasePoint/getPointList',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export default { add, edit, del, changeUsed, getPointList }
|
export default { add, edit, del, changeUsed, getPointList,getCBPointList }
|
||||||
|
|||||||
@@ -78,6 +78,23 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="批次">
|
||||||
|
<el-select
|
||||||
|
v-model="query.ingotBatch"
|
||||||
|
clearable
|
||||||
|
size="mini"
|
||||||
|
placeholder="批次"
|
||||||
|
class="filter-item"
|
||||||
|
filterable
|
||||||
|
@remote-method="getIngotBatchList"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in ingotBatchList"
|
||||||
|
:label="item"
|
||||||
|
:value="item"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<rrOperation />
|
<rrOperation />
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -245,6 +262,7 @@
|
|||||||
<el-table-column prop="motherTray" label="母托编码" :min-width="flexWidth('motherTray',crud.data,'母托编码')" />
|
<el-table-column prop="motherTray" label="母托编码" :min-width="flexWidth('motherTray',crud.data,'母托编码')" />
|
||||||
<el-table-column prop="supplierName" label="供应商名称" :min-width="flexWidth('supplierName',crud.data,'供应商名称')" />
|
<el-table-column prop="supplierName" label="供应商名称" :min-width="flexWidth('supplierName',crud.data,'供应商名称')" />
|
||||||
<el-table-column prop="productDescription" label="物料名称" :min-width="flexWidth('productDescription',crud.data,'物料名称')" />
|
<el-table-column prop="productDescription" label="物料名称" :min-width="flexWidth('productDescription',crud.data,'物料名称')" />
|
||||||
|
<el-table-column prop="ingotBatch" label="批次" :min-width="flexWidth('ingotBatch',crud.data,'客户来料批次号')" />
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination />
|
||||||
@@ -330,6 +348,7 @@ export default {
|
|||||||
pointList: [],
|
pointList: [],
|
||||||
regionList: [],
|
regionList: [],
|
||||||
supplierNameList: [],
|
supplierNameList: [],
|
||||||
|
ingotBatchList: [],
|
||||||
productDescriptionList: [],
|
productDescriptionList: [],
|
||||||
choose: '物料'
|
choose: '物料'
|
||||||
}
|
}
|
||||||
@@ -339,6 +358,7 @@ export default {
|
|||||||
this.getPointList()
|
this.getPointList()
|
||||||
this.getRegionList()
|
this.getRegionList()
|
||||||
this.getSupplierNameList()
|
this.getSupplierNameList()
|
||||||
|
this.getIngotBatchList()
|
||||||
this.getProductDescriptionList()
|
this.getProductDescriptionList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -371,6 +391,11 @@ export default {
|
|||||||
this.productDescriptionList = res.content
|
this.productDescriptionList = res.content
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getIngotBatchList() {
|
||||||
|
crudMaterial.getIngotBatchList().then(res => {
|
||||||
|
this.ingotBatchList = res.content
|
||||||
|
})
|
||||||
|
},
|
||||||
tableChanged(row) {
|
tableChanged(row) {
|
||||||
this.form.material_name = row.material_name
|
this.form.material_name = row.material_name
|
||||||
this.form.material_id = row.material_id
|
this.form.material_id = row.material_id
|
||||||
@@ -392,6 +417,9 @@ export default {
|
|||||||
},
|
},
|
||||||
hand(value) {
|
hand(value) {
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
},
|
||||||
|
getEffectiveLength(row) {
|
||||||
|
return (row.incomingLength - row.incomingchipping).toFixed(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,4 +48,12 @@ export function getProductDescriptionList(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default { add, edit, del, getGroup,getSupplierNameList,getProductDescriptionList }
|
export function getIngotBatchList(data) {
|
||||||
|
return request({
|
||||||
|
url: 'api/report/getIngotBatchList',
|
||||||
|
method: 'get',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default { add, edit, del, getGroup,getSupplierNameList,getProductDescriptionList,getIngotBatchList }
|
||||||
|
|||||||
@@ -56,4 +56,12 @@ export function getLotSNList(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default { add, edit, del, getGroup, getSupplierNameList, getProductDescriptionList, getLotSNList }
|
export function getIngotBatchList(data) {
|
||||||
|
return request({
|
||||||
|
url: 'api/report/getIngotBatchList',
|
||||||
|
method: 'get',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default { add, edit, del, getGroup, getSupplierNameList, getProductDescriptionList, getLotSNList,getIngotBatchList }
|
||||||
|
|||||||
@@ -70,6 +70,23 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="批次">
|
||||||
|
<el-select
|
||||||
|
v-model="query.ingotBatch"
|
||||||
|
clearable
|
||||||
|
size="mini"
|
||||||
|
placeholder="批次"
|
||||||
|
class="filter-item"
|
||||||
|
filterable
|
||||||
|
@remote-method="getIngotBatchList"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in ingotBatchList"
|
||||||
|
:label="item"
|
||||||
|
:value="item"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
<rrOperation />
|
<rrOperation />
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
@@ -228,7 +245,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!--表格渲染-->
|
<!--表格渲染-->
|
||||||
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler" height="550">
|
||||||
<el-table-column prop="pointCode" label="点位编码" :min-width="flexWidth('pointCode',crud.data,'点位编码')" />
|
<el-table-column prop="pointCode" label="点位编码" :min-width="flexWidth('pointCode',crud.data,'点位编码')" />
|
||||||
<el-table-column prop="pointName" label="点位名称" :min-width="flexWidth('pointName',crud.data,'点位名称')" />
|
<el-table-column prop="pointName" label="点位名称" :min-width="flexWidth('pointName',crud.data,'点位名称')" />
|
||||||
<el-table-column prop="regionCode" label="区域编码" :min-width="flexWidth('regionCode',crud.data,'区域编码')" />
|
<el-table-column prop="regionCode" label="区域编码" :min-width="flexWidth('regionCode',crud.data,'区域编码')" />
|
||||||
@@ -237,12 +254,20 @@
|
|||||||
<el-table-column prop="motherTray" label="母托编码" :min-width="flexWidth('motherTray',crud.data,'母托编码')" />
|
<el-table-column prop="motherTray" label="母托编码" :min-width="flexWidth('motherTray',crud.data,'母托编码')" />
|
||||||
<el-table-column prop="supplierName" label="供应商名称" :min-width="flexWidth('supplierName',crud.data,'供应商名称')" />
|
<el-table-column prop="supplierName" label="供应商名称" :min-width="flexWidth('supplierName',crud.data,'供应商名称')" />
|
||||||
<el-table-column prop="productDescription" label="物料名称" :min-width="flexWidth('productDescription',crud.data,'物料名称')" />
|
<el-table-column prop="productDescription" label="物料名称" :min-width="flexWidth('productDescription',crud.data,'物料名称')" />
|
||||||
|
<el-table-column prop="productName" label="物料名称" :min-width="flexWidth('productName',crud.data,'物料名称')" />
|
||||||
<el-table-column prop="lotSN" label="晶体编号" :min-width="flexWidth('lotSN',crud.data,'晶体编号')" />
|
<el-table-column prop="lotSN" label="晶体编号" :min-width="flexWidth('lotSN',crud.data,'晶体编号')" />
|
||||||
<el-table-column prop="ingotBatch" label="批次" :min-width="flexWidth('ingotBatch',crud.data,'客户来料批次号')" />
|
<el-table-column prop="ingotBatch" label="批次" :min-width="flexWidth('ingotBatch',crud.data,'客户来料批次号')" />
|
||||||
<el-table-column prop="siliconGrade" label="棒源等级" :min-width="flexWidth('siliconGrade',crud.data,'棒源等级')" />
|
<el-table-column prop="siliconGrade" label="棒源等级" :min-width="flexWidth('siliconGrade',crud.data,'棒源等级')" />
|
||||||
<el-table-column prop="updateTime" label="入库时间" :min-width="70" />
|
<el-table-column prop="updateTime" label="入库时间" :min-width="70" />
|
||||||
<el-table-column prop="incomingWeight" label="重量KG" :min-width="70" />
|
<el-table-column prop="incomingWeight" label="重量KG" :min-width="70" />
|
||||||
<el-table-column prop="incomingLength" label="长度mm" :min-width="flexWidth('incomingLength',crud.data,'长度mm')" />
|
<el-table-column prop="weightCoefficientValue" label="折算系数" :min-width="flexWidth('weightCoefficientValue',crud.data,'折算系数')" />
|
||||||
|
<el-table-column prop="incomingLength" label="来料长度mm" :min-width="flexWidth('incomingLength',crud.data,'来料长度mm')" />
|
||||||
|
<el-table-column prop="incomingchipping" label="来料缺陷长度mm" :min-width="flexWidth('incomingchipping',crud.data,'来料缺陷长度mm')" />
|
||||||
|
<el-table-column label="有效长度mm" :min-width="flexWidth('effectiveLength', crud.data, '有效长度mm')" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ getEffectiveLength(scope.row) }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<pagination />
|
<pagination />
|
||||||
@@ -330,6 +355,7 @@ export default {
|
|||||||
regionList: [],
|
regionList: [],
|
||||||
supplierNameList: [],
|
supplierNameList: [],
|
||||||
lotSNList: [],
|
lotSNList: [],
|
||||||
|
ingotBatchList: [],
|
||||||
productDescriptionList: [],
|
productDescriptionList: [],
|
||||||
choose: '物料'
|
choose: '物料'
|
||||||
}
|
}
|
||||||
@@ -340,6 +366,7 @@ export default {
|
|||||||
this.getRegionList()
|
this.getRegionList()
|
||||||
this.getSupplierNameList()
|
this.getSupplierNameList()
|
||||||
// this.getLotSNList()
|
// this.getLotSNList()
|
||||||
|
this.getIngotBatchList()
|
||||||
this.getProductDescriptionList()
|
this.getProductDescriptionList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -377,6 +404,11 @@ export default {
|
|||||||
this.productDescriptionList = res.content
|
this.productDescriptionList = res.content
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getIngotBatchList() {
|
||||||
|
crudMaterial.getIngotBatchList().then(res => {
|
||||||
|
this.ingotBatchList = res.content
|
||||||
|
})
|
||||||
|
},
|
||||||
tableChanged(row) {
|
tableChanged(row) {
|
||||||
this.form.material_name = row.material_name
|
this.form.material_name = row.material_name
|
||||||
this.form.material_id = row.material_id
|
this.form.material_id = row.material_id
|
||||||
@@ -398,6 +430,9 @@ export default {
|
|||||||
},
|
},
|
||||||
hand(value) {
|
hand(value) {
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
|
},
|
||||||
|
getEffectiveLength(row) {
|
||||||
|
return (row.incomingLength - row.incomingchipping).toFixed(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user