9 changed files with 528 additions and 263 deletions
-
4src/api/base/site.js
-
1src/views/modules/base/maintainProductRouting.vue
-
54src/views/modules/base/referencePartInfo.vue
-
219src/views/modules/base/searchPart.vue
-
149src/views/modules/base/searchPartNo.vue
-
26src/views/modules/base/unitMeasure.vue
-
1src/views/modules/common/updateProductRouting.vue
-
309src/views/modules/common/updateRoutingRev.vue
-
28src/views/modules/schedule/order_schedule.vue
@ -1,219 +0,0 @@ |
|||
<template> |
|||
<!-- //暂时不用的页面--> |
|||
<div class="mod-config"> |
|||
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -5px;"> |
|||
<el-form-item :label="'工厂编号:'"> |
|||
<el-input v-model="searchData.site" style="width: 130px"></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'物料编码:'"> |
|||
<el-input v-model="searchData.site" style="width: 130px"></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'物料名称:'"> |
|||
<el-input v-model="searchData.site" style="width: 130px"></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'规格型号:'"> |
|||
<el-input v-model="searchData.site" style="width: 130px"></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'版本号:'"> |
|||
<el-input v-model="searchData.site" style="width: 130px"></el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|||
<el-form-item :label="'工艺路线类型:'"> |
|||
<el-select filterable v-model="searchData.status" style="width: 130px"> |
|||
<el-option label="全部" value=""></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item :label="'加工中心编码:'"> |
|||
<el-input v-model="searchData.site" style="width: 130px"></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'加工中心名称:'"> |
|||
<el-input v-model="searchData.site" style="width: 417px"></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'默认:'"> |
|||
<el-select filterable v-model="searchData.status" style="width: 130px"> |
|||
<el-option label="全部" value=""></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|||
<el-form-item :label="'状态:'"> |
|||
<el-select filterable v-model="searchData.status" style="width: 130px"> |
|||
<el-option label="全部" value=""></el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
<el-form-item :label="'启用日期:'"> |
|||
<el-date-picker |
|||
style="width: 130px" |
|||
v-model="searchData.date1" |
|||
value-format="yyyy-MM-dd" |
|||
placeholder="选择日期"> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item :label="'至:'"> |
|||
<el-date-picker |
|||
style="width: 130px" |
|||
v-model="searchData.date1" |
|||
value-format="yyyy-MM-dd" |
|||
placeholder="选择日期"> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item :label="'停用日期:'"> |
|||
<el-date-picker |
|||
style="width: 130px" |
|||
v-model="searchData.date1" |
|||
value-format="yyyy-MM-dd" |
|||
placeholder="选择日期"> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
<el-form-item :label="'至:'"> |
|||
<el-date-picker |
|||
style="width: 130px" |
|||
v-model="searchData.date1" |
|||
value-format="yyyy-MM-dd" |
|||
placeholder="选择日期"> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-table |
|||
:height="height" |
|||
:data="dataList" |
|||
border |
|||
style="width: 100%;"> |
|||
<el-table-column |
|||
v-for="(item,index) in columnList" :key="index" |
|||
:prop="item.columnProp" |
|||
:header-align="item.headerAlign" |
|||
:align="item.align" |
|||
:min-width="item.width" |
|||
:label="item.columnLabel"> |
|||
</el-table-column> |
|||
<el-table-column |
|||
header-align="center" |
|||
align="center" |
|||
min-width="70" |
|||
label="操作"> |
|||
<template slot-scope="scope"> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
import {} from "@/api/sysLanguage.js" |
|||
export default { |
|||
name: "searchPartNo", |
|||
data() { |
|||
return { |
|||
height: 300, |
|||
searchData:{ |
|||
site:'', |
|||
status:'', |
|||
date1:'', |
|||
}, |
|||
dataList: [], |
|||
columnList: [ |
|||
{ |
|||
columnProp:'datetype', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'50', |
|||
columnLabel:'物料编码', |
|||
}, |
|||
{ |
|||
columnProp:'exceptexacttime1', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'100', |
|||
columnLabel:'物料名称', |
|||
}, |
|||
{ |
|||
columnProp:'exceptduration1', |
|||
headerAlign:'center', |
|||
align:'right', |
|||
width:'40', |
|||
columnLabel:'计量单位', |
|||
}, |
|||
{ |
|||
columnProp:'exceptexacttime2', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'35', |
|||
columnLabel:'版本号', |
|||
}, |
|||
{ |
|||
columnProp:'exceptduration2', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'50', |
|||
columnLabel:'启动日期', |
|||
}, |
|||
{ |
|||
columnProp:'exceptexacttime3', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'50', |
|||
columnLabel:'停用日期', |
|||
}, |
|||
{ |
|||
columnProp:'exceptduration3', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'50', |
|||
columnLabel:'工艺路线类型', |
|||
}, |
|||
{ |
|||
columnProp:'exceptexacttime4', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'40', |
|||
columnLabel:'状态', |
|||
}, |
|||
{ |
|||
columnProp:'exceptduration4', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'100', |
|||
columnLabel:'备注', |
|||
}, |
|||
{ |
|||
columnProp:'exceptexacttime5', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'30', |
|||
columnLabel:'默认', |
|||
}, |
|||
{ |
|||
columnProp:'exceptduration5', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'40', |
|||
columnLabel:'工序号', |
|||
}, |
|||
{ |
|||
columnProp:'exceptexacttime6', |
|||
headerAlign:'center', |
|||
align:'left', |
|||
width:'100', |
|||
columnLabel:'工序名称', |
|||
} |
|||
], |
|||
} |
|||
}, |
|||
mounted() { |
|||
this.$nextTick(() => { |
|||
this.height = window.innerHeight - 320; |
|||
}) |
|||
}, |
|||
methods: {}, |
|||
created() { |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
|
|||
</style> |
|||
@ -0,0 +1,309 @@ |
|||
<template> |
|||
<div class="customer-css"> |
|||
<el-dialog title="更改工艺路线版本" v-drag v-bind="$attrs" v-on="$listeners" width="490px" class="customer-dialog" > |
|||
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -5px;margin-left:10px"> |
|||
<el-form-item :label="'物料编码:'"> |
|||
<el-input v-model="mainData.partNo" class="customer-input-color-red" readonly style="width: 130px"></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'名称/规格型号:'"> |
|||
<el-input v-model="mainData.partDesc" class="customer-input-color-red" readonly style="width: 300px"></el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<fieldset style="margin-left: 10px; margin-top: 0px; width: 446px;"> |
|||
<legend>产品结构</legend> |
|||
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -8px;"> |
|||
<el-form-item > |
|||
<span slot="label" style="" @click="revNoModal"><a herf="#">版本号:</a></span> |
|||
<el-input v-model="mainData.revNo" class="customer-input-color-red" readonly style="width: 120px;text-align: right" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'状态:'"> |
|||
<el-input v-model="mainData.status" class="customer-input-color-red" readonly style="width: 120px;text-align: right" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'启用日期:'"> |
|||
<el-input v-model="mainData.phaseInDate" class="customer-input-color-red" readonly style="width: 120px;text-align: right" ></el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -0px;"> |
|||
<el-form-item :label="'备注:'"> |
|||
<el-input v-model="mainData.remark" class="customer-input-color-red" readonly style="width: 255px;text-align: right" ></el-input> |
|||
</el-form-item> |
|||
<el-form-item :label="'停用日期:'"> |
|||
<el-input v-model="mainData.phaseOutDate" class="customer-input-color-red" readonly style="width: 120px;text-align: right" ></el-input> |
|||
</el-form-item> |
|||
</el-form> |
|||
</fieldset> |
|||
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|||
<el-button type="primary" @click="updateRevNo">确定</el-button> |
|||
<el-button type="primary" @click="closeDialog">关闭</el-button> |
|||
</el-footer> |
|||
</el-dialog> |
|||
<el-dialog title="数据表" :close-on-click-modal="false" v-drag :visible.sync="modelFlag" width="480px" > |
|||
<el-table |
|||
height="180" |
|||
:data="dataList" |
|||
border |
|||
@row-dblclick="tableHanddle" |
|||
v-loading="dataListLoading" |
|||
style="width: 100%;"> |
|||
<el-table-column |
|||
v-for="(item,index) in columnList" :key="index" |
|||
:sortable="item.columnSortable" |
|||
:prop="item.columnProp" |
|||
:header-align="item.headerAlign" |
|||
:show-overflow-tooltip="item.showOverflowTooltip" |
|||
:align="item.align" |
|||
:fixed="item.fixed" |
|||
:min-width="item.columnWidth" |
|||
:label="item.columnLabel"> |
|||
<template slot-scope="scope"> |
|||
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span> |
|||
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" |
|||
style="width: 100px; height: 80px"/></span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<el-footer style="height:40px;margin-top: 5px;text-align:center"> |
|||
<el-button type="primary" @click="modelFlag = false">关闭</el-button> |
|||
</el-footer> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { |
|||
getSORoutingRevNo, |
|||
updateRevNoData, |
|||
}from "@/api/base/site.js" |
|||
export default { |
|||
name: "updateRoutingRev", |
|||
data () { |
|||
return { |
|||
dataListLoading:false, |
|||
modelFlag:false, |
|||
mainData:{ |
|||
partNo:'', |
|||
partDesc:'', |
|||
revNo:'', |
|||
status:'', |
|||
phaseInDate:'', |
|||
remark:'', |
|||
phaseOutDate:'', |
|||
site:'', |
|||
orderNo:'', |
|||
routingTypeDb:'', |
|||
routingType:'', |
|||
repairFlag:'', |
|||
}, |
|||
dataList:[], |
|||
columnList:[ |
|||
{ |
|||
userId: this.$store.state.user.name, |
|||
functionId: 6099, |
|||
serialNumber: '6099TableRevNo', |
|||
tableId: "6099Table", |
|||
tableName: "工艺路线版本数据表", |
|||
columnProp: "revNo", |
|||
headerAlign: "center", |
|||
align: "left", |
|||
columnLabel: "版本号", |
|||
columnHidden: false, |
|||
columnImage: false, |
|||
columnSortable: false, |
|||
sortLv: 0, |
|||
status: true, |
|||
fixed: false, |
|||
columnWidth: 100 |
|||
}, |
|||
{ |
|||
userId: this.$store.state.user.name, |
|||
functionId: 6099, |
|||
serialNumber: '6099TablePhaseInDate', |
|||
tableId: "6099Table", |
|||
tableName: "工艺路线版本数据表", |
|||
columnProp: "phaseInDate", |
|||
headerAlign: "center", |
|||
align: "left", |
|||
columnLabel: "启用日期", |
|||
columnHidden: false, |
|||
columnImage: false, |
|||
columnSortable: false, |
|||
sortLv: 0, |
|||
status: true, |
|||
fixed: false, |
|||
columnWidth: 100 |
|||
}, |
|||
{ |
|||
userId: this.$store.state.user.name, |
|||
functionId: 6099, |
|||
serialNumber: '6099TableStatus', |
|||
tableId: "6099Table", |
|||
tableName: "工艺路线版本数据表", |
|||
columnProp: "status", |
|||
headerAlign: "center", |
|||
align: "left", |
|||
columnLabel: "状态", |
|||
columnHidden: false, |
|||
columnImage: false, |
|||
columnSortable: false, |
|||
sortLv: 0, |
|||
status: true, |
|||
fixed: false, |
|||
columnWidth: 80 |
|||
}, |
|||
{ |
|||
userId: this.$store.state.user.name, |
|||
functionId: 6099, |
|||
serialNumber: '6099TableRoutingType', |
|||
tableId: "6099Table", |
|||
tableName: "工艺路线版本数据表", |
|||
columnProp: "routingType", |
|||
headerAlign: "center", |
|||
align: "left", |
|||
columnLabel: "工艺路线类型", |
|||
columnHidden: false, |
|||
columnImage: false, |
|||
columnSortable: false, |
|||
sortLv: 0, |
|||
status: true, |
|||
fixed: false, |
|||
columnWidth: 100 |
|||
}, |
|||
{ |
|||
userId: this.$store.state.user.name, |
|||
functionId: 6099, |
|||
serialNumber: '6099TablePhaseOutDate', |
|||
tableId: "6099Table", |
|||
tableName: "工艺路线版本数据表", |
|||
columnProp: "phaseOutDate", |
|||
headerAlign: "center", |
|||
align: "left", |
|||
columnLabel: "结束日期", |
|||
columnHidden: false, |
|||
columnImage: false, |
|||
columnSortable: false, |
|||
sortLv: 0, |
|||
status: true, |
|||
fixed: false, |
|||
columnWidth: 100 |
|||
}, |
|||
{ |
|||
userId: this.$store.state.user.name, |
|||
functionId: 6099, |
|||
serialNumber: '6099TableRemark', |
|||
tableId: "6099Table", |
|||
tableName: "工艺路线版本数据表", |
|||
columnProp: "remark", |
|||
headerAlign: "center", |
|||
align: "left", |
|||
columnLabel: "备注", |
|||
columnHidden: false, |
|||
columnImage: false, |
|||
columnSortable: false, |
|||
sortLv: 0, |
|||
status: true, |
|||
fixed: false, |
|||
columnWidth: 160 |
|||
}, |
|||
{ |
|||
userId: this.$store.state.user.name, |
|||
functionId: 6099, |
|||
serialNumber: '6099TableRepairFlag', |
|||
tableId: "6099Table", |
|||
tableName: "工艺路线版本数据表", |
|||
columnProp: "repairFlag", |
|||
headerAlign: "center", |
|||
align: "left", |
|||
columnLabel: "修复版本", |
|||
columnHidden: false, |
|||
columnImage: false, |
|||
columnSortable: false, |
|||
sortLv: 0, |
|||
status: true, |
|||
fixed: false, |
|||
columnWidth: 60 |
|||
} |
|||
], |
|||
} |
|||
}, |
|||
mounted(){}, |
|||
watch: { |
|||
'$route' (to, from) { |
|||
// if(localStorage.getItem('calendar')!=undefined){ |
|||
// this.jump(); |
|||
// } |
|||
} |
|||
|
|||
}, |
|||
methods: { |
|||
init(searchData){ |
|||
//调用方法 需要site orderNo partNo 3个参数 |
|||
getSORoutingRevNo(searchData).then(({data}) => { |
|||
if(data.rows.length>0){ |
|||
this.mainData=data.rows[0]; |
|||
this.dataList=data.rows; |
|||
} |
|||
}) |
|||
}, |
|||
/*关闭modal*/ |
|||
closeDialog(){ |
|||
//关闭当前的页面 |
|||
this.$emit('update:visible', false); |
|||
}, |
|||
updateRevNo(){ |
|||
|
|||
if(this.mainData.revNo==''){ |
|||
this.$alert("版本号不能为空,请输入!",'错误',{ |
|||
confirmButtonText:'确定' |
|||
}) |
|||
return false; |
|||
} |
|||
let inData={ |
|||
orderNo:this.mainData.orderNo, |
|||
site:this.mainData.site, |
|||
partNo:this.mainData.partNo, |
|||
revNo:this.mainData.revNo, |
|||
user:this.$store.state.user.name, |
|||
} |
|||
this.$confirm(`确实要更新产品工艺路线吗?`, '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
|
|||
}).then(() => { |
|||
updateRevNoData(inData).then(({data}) => { |
|||
if (data && data.code == 200) { |
|||
this.$emit('update:visible', false); |
|||
this.$emit('updateRoutingRevClosed'); |
|||
this.$message({ |
|||
message: '操作成功', |
|||
type: 'success', |
|||
duration: 1500, |
|||
onClose: () => { |
|||
} |
|||
}) |
|||
} else { |
|||
this.$alert(data.msg, '错误', { |
|||
confirmButtonText: '确定' |
|||
}) |
|||
} |
|||
}) |
|||
}) |
|||
}, |
|||
revNoModal(){ |
|||
this.modelFlag=true; |
|||
}, |
|||
tableHanddle(row){ |
|||
this.mainData=row; |
|||
this.modelFlag=false; |
|||
} |
|||
}, |
|||
|
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
/*统一的input内容颜色样式*/ |
|||
.customer-input-color-red /deep/ .el-input__inner { |
|||
color: red; |
|||
} |
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue