Commit 8adc8d73 authored by 仇晓婷's avatar 仇晓婷

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents 7937e1c8 db899f30
...@@ -233,6 +233,12 @@ div::-webkit-scrollbar-corner { ...@@ -233,6 +233,12 @@ div::-webkit-scrollbar-corner {
.mb50 { .mb50 {
margin-bottom: 50px; margin-bottom: 50px;
} }
.mb60 {
margin-bottom: 60px;
}
.mb70 {
margin-bottom: 70px;
}
.ml0 { .ml0 {
margin-left: 0; margin-left: 0;
......
...@@ -1573,9 +1573,9 @@ export default { ...@@ -1573,9 +1573,9 @@ export default {
creationTime1: '入库时间', creationTime1: '入库时间',
creator1: '入库人', creator1: '入库人',
total1: '库存', total1: '库存',
count:'出库数', count: '出库数',
code:'物料序号', code: '物料序号',
nowTotal:'库存' nowTotal: '库存'
}, },
stock_item: { stock_item: {
creationTime: '创建时间', creationTime: '创建时间',
...@@ -1622,38 +1622,39 @@ export default { ...@@ -1622,38 +1622,39 @@ export default {
finishDate: '齐套时间', finishDate: '齐套时间',
orderCode: '订单编号', orderCode: '订单编号',
code: '申请单号', code: '申请单号',
materialName:'物料名称', materialName: '物料名称',
materialNumber:'物料编号', materialNumber: '物料编号',
remark:'备注', remark: '备注',
count1: '申请数量', count1: '申请数量',
outCount:'出库数', outCount: '出库数',
}, },
support_item:{ support_item: {
creationTime:'出库时间', creationTime: '出库时间',
creatorUserId:'出库人', creatorUserId: '出库人',
lastModificationTime:'更新时间', lastModificationTime: '更新时间',
lastModifierUserId:'更新人', lastModifierUserId: '更新人',
isDeleted:'删除人', isDeleted: '删除人',
deletionTime:'删除时间', deletionTime: '删除时间',
deleterUserId:'删除人', deleterUserId: '删除人',
supportMainId:'主表id', supportMainId: '主表id',
routingHeaderId:'工艺id', routingHeaderId: '工艺id',
routingDeatilId:'工序id', routingDeatilId: '工序id',
routingDetailName:'工序', routingDetailName: '工序',
routingDetailSeq:'工序号', routingDetailSeq: '工序号',
routingDetailNo:'工序号', routingDetailNo: '工序号',
count:'出库数', count: '出库数',
status:'状态', status: '状态',
materialId:'物料id', materialId: '物料id',
materialName:'物料名称', materialName: '物料名称',
nameMaterial:'物料名称', nameMaterial: '物料名称',
materialNumber:'物料编号', materialNumber: '物料编号',
needCount:'需要数量', needCount: '需要数量',
totalCount:'需要数量', totalCount: '需要数量',
outStockNumber:'出库数量', outStockNumber: '出库数量',
orderId:'', orderId: '',
remark:'备注', remark: '备注',
storeId: '库位id', storeId: '库位id',
storeTitle: '库位名称', storeTitle: '库位名称',
} stockCode: '物料序号'
}
} }
...@@ -26,11 +26,11 @@ ...@@ -26,11 +26,11 @@
:max="row.totalCount" :max="row.totalCount"
:min="0" :min="0"
v-model="row.count" v-model="row.count"
@on-blur="inputChange1(i,row,index)" @on-change="inputChange1(i,row,index)"
/> />
</template> </template>
<template slot-scope="{ row, index }" slot="remarks"> <template slot-scope="{ row, index }" slot="remarks">
<Input type="text" v-model="row.remark" @on-blur="inputChange1(i,row,index)" /> <Input type="text" v-model="row.remark" @on-change="inputChange1(i,row,index)" />
</template> </template>
</Table> </Table>
</div> </div>
......
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
return Api.get(`${PlanUrl}/messchedule/getpoolordercount`); return Api.get(`${PlanUrl}/messchedule/getpoolordercount`);
}, },
listbyuser(params) {//获取当前登录用户可操作的排产 listbyuser(params) {//获取当前登录用户可操作的排产
return Api.post(`${authUrl}/api/services/app/setschedulecompany/listbyuser`, params); return Api.post(`${Platform}/setschedulecompany/listbyuser`, params);
}, },
moveintoai(){////跳转进入智能排产池前判断 moveintoai(){////跳转进入智能排产池前判断
return Api.post(`${PlanUrl}/messchedule/moveintoai`); return Api.post(`${PlanUrl}/messchedule/moveintoai`);
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
<Content> <Content>
<div class="mb20" v-for="(item,index) in datas" :key="index"> <div class="mb20" v-for="(item,index) in datas" :key="index">
<p class="fwBold" :id="'item'+index"> <p class="fwBold" :id="'item'+index">
齐套日期:{{item.finishDate}} <span >申请编号:{{item.code}}</span>
<span class="ml20">齐套日期:{{item.finishDate}}</span>
<span class="ml20">申请人:{{item.creator}}</span> <span class="ml20">申请人:{{item.creator}}</span>
<span class="ml20">申请时间:{{item.applyTime}}</span> <span class="ml20">申请时间:{{item.applyTime}}</span>
</p> </p>
...@@ -44,6 +45,8 @@ export default { ...@@ -44,6 +45,8 @@ export default {
return { return {
disabled: false, disabled: false,
deletelModal: false, deletelModal: false,
statuList: this.$store.getters.dictionaryByKey("accessory.status") || [],
statuList1: this.$store.getters.dictionaryByKey("outstore.status") || [],
curId: 0, curId: 0,
editIndex: -1, editIndex: -1,
editNum: "", editNum: "",
...@@ -74,6 +77,17 @@ export default { ...@@ -74,6 +77,17 @@ export default {
title: this.l("status"), title: this.l("status"),
align: "center", align: "center",
width: 120, width: 120,
render: (h, params) => {
return h(
"span",
{
style: {
color: this.setName(this.statuList1, params.row.status).color,
},
},
this.setName(this.statuList1, params.row.status).name
);
},
}, },
{ {
key: "remark", key: "remark",
...@@ -135,7 +149,8 @@ export default { ...@@ -135,7 +149,8 @@ export default {
} }
}); });
}, },
application(type, arr) {//撤回配套申请 type:0 单条 1 全部 application(type, arr) {
//撤回配套申请 type:0 单条 1 全部
let parms = []; let parms = [];
if (type == 0) { if (type == 0) {
parms.push(arr.id); parms.push(arr.id);
...@@ -144,16 +159,38 @@ export default { ...@@ -144,16 +159,38 @@ export default {
parms.push(ele.id); parms.push(ele.id);
}); });
} }
Api.batchdelete(parms).then(res=>{ Api.batchdelete(parms).then((res) => {
if(res.success&&res.result) if (res.success && res.result) {
{
this.$Message.success("撤销成功"); this.$Message.success("撤销成功");
this.load(this.eid); this.load(this.eid);
this.$emit('on-ok') this.$emit("on-ok");
} }
}) });
},
//配套申请
setName(list, v) {
let outPar = {
name: "",
color: "",
};
if ((v + "").indexOf(",") == -1) {
var item;
list.map((u) => {
if (u.code == v) {
item = u;
}
});
if (item) {
//this.items = item;
outPar = {
name: item.name,
color: item.color,
};
}
}
return outPar;
}, },
l(key) { l(key) {
let vkey = "support_item" + "." + key; let vkey = "support_item" + "." + key;
return this.$t(vkey) || key; return this.$t(vkey) || key;
}, },
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
订单编号:{{mesCodes}} 订单编号:{{mesCodes}}
<span class="ml20">产品名称:{{productNames}}</span> <span class="ml20">产品名称:{{productNames}}</span>
<span class="ml20">生产数量:{{counts}}</span> <span class="ml20">生产数量:{{counts}}</span>
<span class="fr mr20"> <span class="fr mr20" v-if="false">
<a href="javascript:;">出库单</a> <a href="javascript:;">出库单</a>
</span> </span>
<span class="fr mr20"> <span class="fr mr20">
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
:max="row.totalCount-row.applicationNumber" :max="row.totalCount-row.applicationNumber"
:min="0" :min="0"
v-model="row.count" v-model="row.count"
@on-blur="inputChange1(i,row,index)" @on-change="inputChange1(i,row,index)"
:disabled="row._disabled" :disabled="row._disabled"
/> />
</template> </template>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<Input <Input
type="text" type="text"
v-model="row.remark" v-model="row.remark"
@on-blur="inputChange1(i,row,index)" @on-change="inputChange1(i,row,index)"
:disabled="row._disabled" :disabled="row._disabled"
/> />
</template> </template>
......
...@@ -12,41 +12,48 @@ ...@@ -12,41 +12,48 @@
</p> </p>
<Split v-model="split" mode="vertical" @on-move-end="moveEnd"> <Split v-model="split" mode="vertical" @on-move-end="moveEnd">
<div slot="top" class="demo-split-pane" style="background:#fff;height:100%"> <div slot="top" class="demo-split-pane" style="background:#fff;height:100%">
<Table <Card :padding="0">
:columns="cols" <p slot="title">申请单物料列表</p>
:data="datas" <Table
class="tableCommon" :columns="cols"
border :data="datas"
highlight-row class="tableCommon"
@on-current-change="curChange" border
:height="tableHeight1" highlight-row
></Table> @on-current-change="curChange"
:height="tableHeight1"
></Table>
</Card>
</div> </div>
<div slot="bottom" class="demo-split-pane" style="background:#fff;height:100%"> <div slot="bottom" class="demo-split-pane" style="background:#fff;height:100%">
<p class="mt10 mb10" v-show="showBottom"> <Card :padding="0" v-show="showBottom">
<Button type="primary" @click="getMetaiAll">出库</Button> <p slot="title">出库物料库房库位列表</p>
</p> <div slot="extra">
<Table <Button type="primary" @click="getMetaiAll" shape="circle" >出库
:columns="colsOut" <Icon type="md-arrow-dropright" />
:data="datasOut" </Button>
class="tableCommon" </div>
border <Table
highlight-row :columns="colsOut"
:height="tableHeight2-40" :data="datasOut"
v-show="showBottom" class="tableCommon"
> border
<template slot-scope="{ row, index }" slot="counts"> highlight-row
<InputNumber :height="tableHeight2-40"
:max="row.nowTotal" >
:min="0" <template slot-scope="{ row, index }" slot="counts">
v-model="row.count" <InputNumber
@on-blur="inputChange(row,index)" :max="row.nowTotal"
/> :min="0"
</template> v-model="row.count"
</Table> @on-change="inputChange(row,index)"
/>
</template>
</Table>
</Card>
</div> </div>
</Split> </Split>
<Modal v-model="ModalAccList" title="出库记录" width="1000" footer-hide> <Modal v-model="ModalAccList" title="出库记录" width="1180" footer-hide>
<DataGrid <DataGrid
:action="action" :action="action"
:columns="colsList" :columns="colsList"
...@@ -92,20 +99,23 @@ export default { ...@@ -92,20 +99,23 @@ export default {
key: "count", key: "count",
title: this.l("count1"), title: this.l("count1"),
align: "right", align: "right",
width:150, width: 150,
}, },
{ {
key: "outCount", key: "outCount",
title: "出库数", title: "出库数",
align: "right", align: "right",
width:150, width: 150,
render: (h, params) => { render: (h, params) => {
return h( return h(
"op", "op",
{ {
attrs: { attrs: {
oprate: "detail", oprate: "detail",
title: params.row.outCount&&params.row.outCount>0?"出库明细":"", title:
params.row.outCount && params.row.outCount > 0
? "出库明细"
: "",
}, },
style: { style: {
color: "blue", color: "blue",
...@@ -122,14 +132,11 @@ export default { ...@@ -122,14 +132,11 @@ export default {
key: "status", key: "status",
title: "状态", title: "状态",
align: "center", align: "center",
width:150, width: 150,
render: (h, params) => { render: (h, params) => {
return h( return h(
"op", "span",
{ {
attrs: {
oprate: "detail",
},
style: { style: {
color: this.setName(this.statuList1, params.row.status).color, color: this.setName(this.statuList1, params.row.status).color,
}, },
...@@ -178,7 +185,7 @@ export default { ...@@ -178,7 +185,7 @@ export default {
key: "creationTime", key: "creationTime",
title: this.l1("creationTime1"), title: this.l1("creationTime1"),
align: "center", align: "center",
width:220, width: 220,
}, },
{ {
key: "creator", key: "creator",
...@@ -189,14 +196,14 @@ export default { ...@@ -189,14 +196,14 @@ export default {
key: "nowTotal", key: "nowTotal",
title: this.l1("nowTotal"), title: this.l1("nowTotal"),
align: "right", align: "right",
width:150, width: 150,
}, },
{ {
key: "count", key: "count",
title: this.l1("count"), title: this.l1("count"),
align: "right", align: "right",
slot: "counts", slot: "counts",
width:150, width: 150,
}, },
], ],
datasOut: [], datasOut: [],
...@@ -208,6 +215,11 @@ export default { ...@@ -208,6 +215,11 @@ export default {
title: this.l2("materialName"), title: this.l2("materialName"),
align: "left", align: "left",
}, },
{
key: "stockCode",
title: this.l2("stockCode"),
align: "left",
},
{ {
key: "materialNumber", key: "materialNumber",
title: this.l2("materialNumber"), title: this.l2("materialNumber"),
...@@ -223,7 +235,7 @@ export default { ...@@ -223,7 +235,7 @@ export default {
key: "creationTime", key: "creationTime",
title: this.l2("creationTime"), title: this.l2("creationTime"),
align: "center", align: "center",
width:220, width: 220,
}, },
{ {
key: "creatorUserId", key: "creatorUserId",
...@@ -234,7 +246,7 @@ export default { ...@@ -234,7 +246,7 @@ export default {
key: "count", key: "count",
title: this.l2("count"), title: this.l2("count"),
align: "right", align: "right",
width:150, width: 100,
}, },
], ],
}; };
...@@ -244,7 +256,7 @@ export default { ...@@ -244,7 +256,7 @@ export default {
row: Object, row: Object,
}, },
mounted() { mounted() {
this.splitHeight = window.innerHeight - 150; this.splitHeight = window.innerHeight - 260;
this.tableHeight1 = this.splitHeight * this.split; this.tableHeight1 = this.splitHeight * this.split;
this.tableHeight2 = this.splitHeight * (1 - this.split); this.tableHeight2 = this.splitHeight * (1 - this.split);
window.onresize = () => { window.onresize = () => {
...@@ -350,7 +362,7 @@ export default { ...@@ -350,7 +362,7 @@ export default {
temItems.forEach((el) => { temItems.forEach((el) => {
if (el.count > 0) { if (el.count > 0) {
let temObj = { let temObj = {
stockItemId:el.id, stockItemId: el.id,
count: el.count, count: el.count,
storeId: el.storeId, storeId: el.storeId,
storeTitle: el.storeTitle, storeTitle: el.storeTitle,
...@@ -360,6 +372,7 @@ export default { ...@@ -360,6 +372,7 @@ export default {
materialNumber: this.tempOut.materialNumber, materialNumber: this.tempOut.materialNumber,
orderId: this.row.orderId, orderId: this.row.orderId,
supportItemId: this.tempOut.id, supportItemId: this.tempOut.id,
stockCode: el.code,
}; };
total = total + el.count; total = total + el.count;
temArray.push(temObj); temArray.push(temObj);
...@@ -368,6 +381,10 @@ export default { ...@@ -368,6 +381,10 @@ export default {
let surplus = let surplus =
Number(this.tempOut.count) - Number(this.tempOut.count) -
Number(this.tempOut.outCount ? this.tempOut.outCount : 0); Number(this.tempOut.outCount ? this.tempOut.outCount : 0);
if (total == 0) {
this.$Message.error("请输入出库数");
return;
}
if (total <= surplus) { if (total <= surplus) {
let parms = { let parms = {
main: { main: {
...@@ -392,8 +409,19 @@ export default { ...@@ -392,8 +409,19 @@ export default {
} }
}, },
moveEnd() { moveEnd() {
this.tableHeight1 = this.splitHeight * this.split; //alert(this.split.toFixed(2))
this.tableHeight2 = this.splitHeight * (1 - this.split);
if (this.split.toFixed(2) <= 0.3) {
this.tableHeight1 = this.splitHeight * this.split.toFixed(2) - 30;
} else if (this.split.toFixed(2) <= 0.4) {
this.tableHeight1 = this.splitHeight * this.split.toFixed(2) - 15;
} else if (this.split.toFixed(2) <= 0.5) {
this.tableHeight1 = this.splitHeight * this.split.toFixed(2) - 5;
} else {
this.tableHeight1 = this.splitHeight * this.split.toFixed(2) + 30;
}
//this.tableHeight1 = this.splitHeight * (this.split.toFixed(2));
this.tableHeight2 = this.splitHeight * (1 - this.split.toFixed(2));
}, },
inputChange(row, index) { inputChange(row, index) {
//输入数量 //输入数量
......
...@@ -42,4 +42,8 @@ export default { ...@@ -42,4 +42,8 @@ export default {
listbysupportitem(params) {//查询所有或单个表单出库信息 listbysupportitem(params) {//查询所有或单个表单出库信息
return Api.post(`${resourceUrl}/outitem/listbysupportitem`, params); return Api.post(`${resourceUrl}/outitem/listbysupportitem`, params);
}, },
deleteitem(params) {//撤销出库单
return Api.post(`${resourceUrl}/outmain/deleteitem`, params);
},
} }
...@@ -75,11 +75,8 @@ export default { ...@@ -75,11 +75,8 @@ export default {
width:150, width:150,
render: (h, params) => { render: (h, params) => {
return h( return h(
"op", "span",
{ {
attrs: {
oprate: "detail",
},
style: { style: {
color: this.setName(this.statuList,params.row.status).color, color: this.setName(this.statuList,params.row.status).color,
}, },
...@@ -88,7 +85,6 @@ export default { ...@@ -88,7 +85,6 @@ export default {
); );
}, },
}, },
{ key: "status1", title: this.l("status1"), align: "center",width:150, },
{ {
title: "操作", title: "操作",
key: "action", key: "action",
......
...@@ -9,35 +9,42 @@ ...@@ -9,35 +9,42 @@
状态: 状态:
<state code="outstore.status" :value="row.status+''" type="text"></state> <state code="outstore.status" :value="row.status+''" type="text"></state>
</span> </span>
<Button
type="primary"
shape="circle"
:icon="iconLabel"
class="fr"
size="small"
@click="openMore"
>{{butTxt}}</Button>
</p> </p>
<Table <Card :padding="0">
:columns="cols" <p slot="title">申请单物料列表</p>
:data="datas" <div slot="extra">
class="tableCommon" <Button
ref="gridTable" type="primary"
border shape="circle"
highlight-row :icon="iconLabel"
@on-current-change="curChange" class="fr"
:height="tableHeight1" size="small"
></Table> @click="openMore"
>{{butTxt}}</Button>
<div class="mt20 mb50"> </div>
<Table <Table
:columns="colsList" :columns="cols"
:data="dataList" :data="datas"
class="tableCommon" class="tableCommon"
ref="gridTable1" ref="gridTable"
border border
@on-selection-change="selectChange" highlight-row
@on-current-change="curChange"
:height="tableHeight1"
></Table> ></Table>
</Card>
<div class="mt20 mb60">
<Card :padding="0">
<p slot="title">出库物料库房库位列表</p>
<Table
:columns="colsList"
:data="dataList"
class="tableCommon"
ref="gridTable1"
border
@on-selection-change="selectChange"
></Table>
</Card>
</div> </div>
<div> <div>
<FooterToolbar v-show="footerToolbar" class="ftball"> <FooterToolbar v-show="footerToolbar" class="ftball">
...@@ -46,6 +53,9 @@ ...@@ -46,6 +53,9 @@
<Button @click="cancelBatch">取消</Button> <Button @click="cancelBatch">取消</Button>
</FooterToolbar> </FooterToolbar>
</div> </div>
<Modal v-model="msgInfo" :title="title" @on-ok="applicationOk">
<p>确定撤回出库物料?</p>
</Modal>
</div> </div>
</template> </template>
<script> <script>
...@@ -88,11 +98,8 @@ export default { ...@@ -88,11 +98,8 @@ export default {
width: 150, width: 150,
render: (h, params) => { render: (h, params) => {
return h( return h(
"op", "span",
{ {
attrs: {
oprate: "detail",
},
style: { style: {
color: this.setName(this.statuList1, params.row.status).color, color: this.setName(this.statuList1, params.row.status).color,
}, },
...@@ -121,6 +128,11 @@ export default { ...@@ -121,6 +128,11 @@ export default {
title: this.l2("materialName"), title: this.l2("materialName"),
align: "left", align: "left",
}, },
{
key: "stockCode",
title: this.l2("stockCode"),
align: "left",
},
{ {
key: "materialNumber", key: "materialNumber",
title: this.l2("materialNumber"), title: this.l2("materialNumber"),
...@@ -185,6 +197,11 @@ export default { ...@@ -185,6 +197,11 @@ export default {
iconLabel: "md-arrow-dropdown", iconLabel: "md-arrow-dropdown",
tempList: [], tempList: [],
tempID: null, tempID: null,
msgInfo: false,
title: "",
outBoldArr: [],
orderId: 0,
curRowId: 0,
}; };
}, },
props: { props: {
...@@ -220,7 +237,13 @@ export default { ...@@ -220,7 +237,13 @@ export default {
//this.datas = r.result.children; //this.datas = r.result.children;
this.tempList = r.result.children; this.tempList = r.result.children;
this.datas = this.tempList.slice(0, 1); this.datas = this.tempList.slice(0, 1);
this.tableHeight1 = "96";
this.butTxt = "更多";
this.iconLabel = "md-arrow-dropdown";
let parm = { orderId: r.result.orderId }; let parm = { orderId: r.result.orderId };
this.orderId = r.result.orderId;
this.curRowId = 0;
Api.listbysupportitem(parm).then((res) => { Api.listbysupportitem(parm).then((res) => {
if (res.success) { if (res.success) {
this.dataList = res.result; this.dataList = res.result;
...@@ -255,7 +278,8 @@ export default { ...@@ -255,7 +278,8 @@ export default {
curChange(curRow, oldRow) { curChange(curRow, oldRow) {
//当前物料过滤 //当前物料过滤
//点击物料行 //点击物料行
this.getList(curRow.id) this.curRowId = curRow.id;
this.getList(curRow.id);
}, },
getList(id) { getList(id) {
let parm = { supportItemId: id }; let parm = { supportItemId: id };
...@@ -264,7 +288,7 @@ export default { ...@@ -264,7 +288,7 @@ export default {
this.dataList = res.result; this.dataList = res.result;
} }
}); });
this.footerToolbar = false; this.footerToolbar = false;
}, },
openMore() { openMore() {
//展开收起按钮 //展开收起按钮
...@@ -302,12 +326,33 @@ export default { ...@@ -302,12 +326,33 @@ export default {
}, },
application(type, row) { application(type, row) {
//撤销出库(批量type 1 ,单挑type 2) //撤销出库(批量type 1 ,单挑type 2)
this.outBoldArr = [];
let outArr = [];
if (type == 1) { if (type == 1) {
alert(JSON.stringify(this.tempOut)); //alert(JSON.stringify(this.tempOut));
this.tempOut.forEach((el) => {
outArr.push(el.id);
});
} else { } else {
alert(JSON.stringify(this.row)); //alert(JSON.stringify(row));
outArr.push(row.id);
} }
this.load(this.eid);
this.title = "提示信息";
this.msgInfo = true;
this.outBoldArr = outArr;
},
applicationOk() {
Api.deleteitem(this.outBoldArr).then((res) => {
if (res.success) {
if (this.curRowId != 0) {
this.getList(this.curRowId);
} else {
this.load(this.eid);
}
}
});
this.msgInfo = false;
}, },
l(key) { l(key) {
key = "support_main" + "." + key; key = "support_main" + "." + key;
......
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem label="能力值" prop="capabilityValue"> <FormItem label="能力值" prop="capabilityValue">
<Input v-model="formItem.capabilityValue" placeholder="请输入能力值"></Input> <!-- <Input v-model="formItem.capabilityValue" placeholder="请输入能力值"></Input> -->
<InputNumber v-model="formItem.capabilityValue" :max="100" :min="1"></InputNumber>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
...@@ -61,7 +62,7 @@ export default { ...@@ -61,7 +62,7 @@ export default {
formItem: { formItem: {
equip_name: "", equip_name: "",
equip_id: "", equip_id: "",
isimportant: 1, isimportant: "1",
capabilityValue: "" capabilityValue: ""
}, },
formItem1: { formItem1: {
...@@ -113,11 +114,16 @@ export default { ...@@ -113,11 +114,16 @@ export default {
this.formItem.equip_name = r.result.title; this.formItem.equip_name = r.result.title;
this.formItem.equip_id = r.result.code; this.formItem.equip_id = r.result.code;
this.formItem.capabilityValue = r.result.capabilityValue; this.formItem.capabilityValue = r.result.capabilityValue;
this.formItem.isimportant = r.result.isimportant || "1";
this.formItem1.calendarwork_pk = r.result.calKey; this.formItem1.calendarwork_pk = r.result.calKey;
this.formItem2.calendarovertime_pk = r.result.holidayKey; this.formItem2.calendarovertime_pk = r.result.holidayKey;
this.formItem1.equip_pk = r.result.id; this.formItem1.equip_pk = r.result.id;
this.formItem2.equip_pk = r.result.id; this.formItem2.equip_pk = r.result.id;
if(r.result.isimportant){
this.formItem.isimportant = r.result.isimportant+"";
}else{
this.formItem.isimportant = "1";
}
}); });
}, },
handleSubmit() { handleSubmit() {
......
...@@ -181,6 +181,12 @@ div::-webkit-scrollbar-corner { ...@@ -181,6 +181,12 @@ div::-webkit-scrollbar-corner {
.mb50 { .mb50 {
margin-bottom: 50px; margin-bottom: 50px;
} }
.mb60 {
margin-bottom: 60px;
}
.mb70 {
margin-bottom: 70px;
}
.ml0 { .ml0 {
margin-left: 0; margin-left: 0;
} }
......
...@@ -28,6 +28,7 @@ window.technologyUrl =`http://${address}:10000/technology/`;//新工艺规程接 ...@@ -28,6 +28,7 @@ window.technologyUrl =`http://${address}:10000/technology/`;//新工艺规程接
window.iconImg = `/imgicon/`; window.iconImg = `/imgicon/`;
window.mncImg = `/images/mnc/`;//mnc图片 window.mncImg = `/images/mnc/`;//mnc图片
window.material = `http://${address}:10000/material`; //物料管理 window.material = `http://${address}:10000/material`; //物料管理
window.Platform = `http://${address}:10000/platform`; //计划管理10131
/* window.systemUrl = `http://${address}:10020/api/services/app`; //System-api 系统管理(基础数据) /* window.systemUrl = `http://${address}:10020/api/services/app`; //System-api 系统管理(基础数据)
window.authUrl = `http://${address}:10010`; //Authentication-api //统一登录认证 window.authUrl = `http://${address}:10010`; //Authentication-api //统一登录认证
......
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