Commit 1bf8eb3f by jiawei.su
parents 6faa999e 6faa48d5
...@@ -370,11 +370,12 @@ export default { ...@@ -370,11 +370,12 @@ export default {
this.b = index; this.b = index;
let status = this.stationList[index].status; let status = this.stationList[index].status;
this.sectionid = this.stationList[index].section; this.sectionid = this.stationList[index].section;
// if (status == 3) { if (status == 3) {
// this.attr1 = true; // this.attr1 = true;
// this.tabindex = "2"; // this.tabindex = "2";
// this.getRunningDetail(index); this.getRunningDetail(index);
// } else { }
// else {
// this.attr2 = true; // this.attr2 = true;
// } // }
if (status == 2) { if (status == 2) {
......
...@@ -352,10 +352,10 @@ export default { ...@@ -352,10 +352,10 @@ export default {
bgc = "#ff9900"; bgc = "#ff9900";
} }
if (ele.status == 2) { if (ele.status == 2) {
bgc = "#2db7f5"; bgc = "#19be6b";
} }
if (ele.status == 3) { if (ele.status == 3) {
bgc = "#19be6b"; bgc = "#2db7f5";
} }
ele.bgc = bgc; ele.bgc = bgc;
}); });
......
...@@ -124,20 +124,22 @@ ...@@ -124,20 +124,22 @@
>{{ $t("1001") }}</Button >{{ $t("1001") }}</Button
> >
<!-- --> <!-- -->
<Button <!-- <Button
type="warning" type="warning"
class="twoWord" class="twoWord"
icon="ios-search" icon="ios-search"
@click="cancel()" @click="cancel()"
>取消</Button >取消</Button
><!--只有状态是待执行的可以改成取消--> > -->
<Button <!--只有状态是待执行的可以改成取消-->
<!-- <Button
type="primary" type="primary"
class="twoWord" class="twoWord"
icon="ios-search" icon="ios-search"
@click="manual()" @click="manual()"
>手动</Button >手动</Button
><!--当生产线的模式是手动是才可以进行手动任务执行--> > -->
<!--当生产线的模式是手动是才可以进行手动任务执行-->
<Button <Button
type="primary" type="primary"
class="twoWord" class="twoWord"
...@@ -197,6 +199,7 @@ export default { ...@@ -197,6 +199,7 @@ export default {
{ {
title: "任务编号", title: "任务编号",
key: "taskno", key: "taskno",
width:300
}, },
{ {
title: "产线层级", title: "产线层级",
...@@ -302,6 +305,7 @@ export default { ...@@ -302,6 +305,7 @@ export default {
this.columns1 = this.$time.initTableTitle(this.columns1); this.columns1 = this.$time.initTableTitle(this.columns1);
this.initlevel(); this.initlevel();
this.iniproducts(); this.iniproducts();
this.search(1,10);
}, },
methods: { methods: {
search(page, pagesize) { search(page, pagesize) {
......
<template> <template>
<div class="testdiv"> <div class="testdiv">
<div class="divborder"> <div class="divborder">
<h2>基本信息</h2>
<div class="newSearchDiv"> <div class="newSearchDiv">
<div class="filter"> <div class="filter">
<label>工装类别:</label> <label>工装类别:</label>
...@@ -206,6 +205,13 @@ ...@@ -206,6 +205,13 @@
<label>备注:</label> <label>备注:</label>
<Input type="text" class="searchInput" v-model="remark" /> <Input type="text" class="searchInput" v-model="remark" />
</div> </div>
<div class="filter">
<label><i>*</i>状态:</label>
<RadioGroup v-model="addstatus">
<Radio label="1"><span>可用</span></Radio>
<Radio label="0"><span>停用</span></Radio>
</RadioGroup>
</div>
<div> <div>
<label>上传文件:</label> <label>上传文件:</label>
<div class="accountInfoUploadFile"> <div class="accountInfoUploadFile">
...@@ -412,6 +418,56 @@ export default { ...@@ -412,6 +418,56 @@ export default {
title: "子工装编号", title: "子工装编号",
key: "code", key: "code",
}, },
{
title: "状态",
key: "status",
render: (h, params) => {
let str = "";
if (params.row.status === 1) {
str = "可用";
} else {
str = "停用";
}
return h("span", str);
},
},
{
title: "备注",
key: "remark",
},
{
title: "附件",
key: "filename",
render: (h, params) => {
return h(
"span",
{
style: {
color: "#2b85e4",
cursor: "pointer",
},
on: {
click: () => {
let name = params.row.filename;
let url = params.row.fileurl;
if (url) {
this.downFile(url, name);
}
},
},
},
params.row.filename
);
},
},
{
title: "维护人",
key: "updator",
},
{
title: "维护时间",
key: "updatetime",
},
], ],
modal: false, modal: false,
type: 0, type: 0,
...@@ -436,6 +492,7 @@ export default { ...@@ -436,6 +492,7 @@ export default {
UploadAction: this.axios.publicPath + "config/upload/UploadImage", UploadAction: this.axios.publicPath + "config/upload/UploadImage",
detailobj: {}, detailobj: {},
childObj: {}, childObj: {},
addstatus:'1',//状态 1可用 0停用
}; };
}, },
created() { created() {
...@@ -506,6 +563,7 @@ export default { ...@@ -506,6 +563,7 @@ export default {
}); });
} }
this.type = 1; this.type = 1;
this.addstatus = '1';//状态 1可用 0停用
}, },
addPost() { addPost() {
let url = ""; let url = "";
...@@ -516,6 +574,7 @@ export default { ...@@ -516,6 +574,7 @@ export default {
filename: this.filename, //附件名称 filename: this.filename, //附件名称
status: 1, status: 1,
remark: this.remark, remark: this.remark,
status:this.addstatus,
}; };
if (this.type == 1) { if (this.type == 1) {
url = "/acc/FixtureToolsAssembly/Add"; url = "/acc/FixtureToolsAssembly/Add";
...@@ -559,6 +618,7 @@ export default { ...@@ -559,6 +618,7 @@ export default {
this.remark = this.childObj.remark; this.remark = this.childObj.remark;
this.disabled = true; this.disabled = true;
this.type = 2; this.type = 2;
this.addstatus = this.childObj.status+'';//状态 1可用 0停用
this.modal = true; this.modal = true;
}, },
dele() { dele() {
......
...@@ -39,9 +39,9 @@ namespace Siger.ApiACC.Controllers ...@@ -39,9 +39,9 @@ namespace Siger.ApiACC.Controllers
} }
[HttpGet] [HttpGet]
public IActionResult GetPageList(string category, string code, string name, int page, int pagesize, string toexcel = "") public IActionResult GetPageList(string category, string code, string name, string state, int page, int pagesize, string toexcel = "")
{ {
var data = _toolsAssemblyRepository.GetPagedList(category.ToInt(), code, name, ProjectId, page, pagesize, toexcel); var data = _toolsAssemblyRepository.GetPagedList(category.ToInt(), code, name,state.ToInt(), ProjectId, page, pagesize, toexcel);
var categorys = _toolsCategoryRepository.GetList(q => q.projectId == ProjectId && q.status == (int)RowState.Valid).ToList(); var categorys = _toolsCategoryRepository.GetList(q => q.projectId == ProjectId && q.status == (int)RowState.Valid).ToList();
var list = new List<ResponseAumationFixtureToolsAssembly>(); var list = new List<ResponseAumationFixtureToolsAssembly>();
foreach(var item in data.Data) foreach(var item in data.Data)
......
...@@ -24,7 +24,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories ...@@ -24,7 +24,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories
_context = context; _context = context;
} }
public IPagedCollectionResult<ResponseAumationFixtureToolsAssembly> GetPagedList(int category, string code, string name, int projectid, int page, int pagesize, string toexcel = "") public IPagedCollectionResult<ResponseAumationFixtureToolsAssembly> GetPagedList(int category, string code, string name, int state, int projectid, int page, int pagesize, string toexcel = "")
{ {
var query = from q in _context.siger_automation_fixture_tools_assembly var query = from q in _context.siger_automation_fixture_tools_assembly
join t1 in _context.siger_automation_fixture_tools on q.parent equals t1.guid into tt1 join t1 in _context.siger_automation_fixture_tools on q.parent equals t1.guid into tt1
...@@ -78,7 +78,12 @@ namespace Siger.Middlelayer.AccRepository.Repositories ...@@ -78,7 +78,12 @@ namespace Siger.Middlelayer.AccRepository.Repositories
{ {
nameExpression = q => q.name.Contains(name); nameExpression = q => q.name.Contains(name);
} }
var expression = categoryExpression.And(codeExpression).And(nameExpression); Expression<Func<ResponseAumationFixtureToolsAssembly, bool>> stateExpression = f => true;
if (state > 0)
{
stateExpression = q => q.status == state;
}
var expression = categoryExpression.And(codeExpression).And(nameExpression).And(stateExpression);
if (toexcel.ToInt() == 1) if (toexcel.ToInt() == 1)
{ {
var entities = query.Where(expression).OrderByDescending(q => q.id).AsNoTracking().ToList(); var entities = query.Where(expression).OrderByDescending(q => q.id).AsNoTracking().ToList();
......
...@@ -9,7 +9,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories.Interface ...@@ -9,7 +9,7 @@ namespace Siger.Middlelayer.AccRepository.Repositories.Interface
{ {
public interface IAutomationFixtureToolsAssemblyRepository : IAccRepositoryBase<siger_automation_fixture_tools_assembly> public interface IAutomationFixtureToolsAssemblyRepository : IAccRepositoryBase<siger_automation_fixture_tools_assembly>
{ {
IPagedCollectionResult<ResponseAumationFixtureToolsAssembly> GetPagedList(int category, string code, string name, int projectid, int page, int pagesize, string toexcel = ""); IPagedCollectionResult<ResponseAumationFixtureToolsAssembly> GetPagedList(int category, string code, string name, int state, int projectid, int page, int pagesize, string toexcel = "");
IEnumerable<ResponseAumationFixtureToolsAssembly> GetDetailList(string parent, int projectid); IEnumerable<ResponseAumationFixtureToolsAssembly> GetDetailList(string parent, int projectid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment