Commit c6a38f8d authored by 周远喜's avatar 周远喜

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

parents fdc3e4bc fe898a56
...@@ -84,6 +84,14 @@ export default { ...@@ -84,6 +84,14 @@ export default {
getEquiptypeList(params) { getEquiptypeList(params) {
return Api.get(`${apsUrl}/mes_equip_info/getequiptypelist`, params); return Api.get(`${apsUrl}/mes_equip_info/getequiptypelist`, params);
}, },
// 行内编辑保存 /mes_op_task_plan_simulate/updatesetuptimeandfirstequip
subupdate(params) {
return Api.post(`${apsUrl}/mes_op_task_plan_simulate/updatesetuptimeandfirstequip`, params);
},
// 选中是否同步到原始工艺 保存
apsupdate(params) {
return Api.post(`${designUrl}/routingdetail/apsupdate`, params);
},
//获取任务工单相关设备 //获取任务工单相关设备
gettaskequips(params) { gettaskequips(params) {
return Api.get(`${apsUrl}/ser/gettaskequips`, params); return Api.get(`${apsUrl}/ser/gettaskequips`, params);
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<Row> <Row>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('tASKSEQ')" prop="tASKSEQ"> <FormItem :label="l('tASKSEQ')" prop="tASKSEQ">
<Input></Input> <span>{{entity.task_seq}}</span>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('tASKNAME')" prop="tASKNAME"> <FormItem :label="l('tASKNAME')" prop="tASKNAME">
<Input></Input> <span>{{entity.task_name}}</span>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12"> <Col :span="12">
...@@ -83,22 +83,24 @@ export default { ...@@ -83,22 +83,24 @@ export default {
}, },
props: { props: {
eid: Number, eid: Number,
parmse: String,
}, },
created() { created() {
// this.getUserDepart() // this.getUserDepart()
}, },
methods: { methods: {
load() { // load(v) {
// Api.get({ id: v }).then((r) => { // Api.get({ id: v }).then((r) => {
// this.entity = r.result // console.log(r)
// this.$emit('on-load') // // this.entity = r.result
// }) // // this.$emit('on-load')
}, // })
// },
handleSubmit() { handleSubmit() {
this.$refs.form.validate((v) => { this.$refs.form.validate((v) => {
if (v) { if (v) {
this.disabled = true this.disabled = true
Api.update(this.entity) Api.subupdate(this.entity)
.then((r) => { .then((r) => {
this.disabled = false this.disabled = false
if (r.success) { if (r.success) {
...@@ -164,6 +166,12 @@ export default { ...@@ -164,6 +166,12 @@ export default {
if (v != 0) { if (v != 0) {
this.load(v) this.load(v)
} }
},
parmse(u){
console.log(u)
if(u){
this.entity = u
}
} }
} }
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
></DataGrid> ></DataGrid>
<Modal v-model="editModal" title="编辑" footer-hide width="800"> <Modal v-model="editModal" title="编辑" footer-hide width="800">
<Edit ref="editPart" :eid="curId" @on-close="cancel" /> <Edit ref="editPart" :eid="curId" :parmse="formData" @on-close="cancel" />
</Modal> </Modal>
<Modal v-model="insertlModal" title="插单" @on-ok="insertOk" @on-cancel="cancel"> <Modal v-model="insertlModal" title="插单" @on-ok="insertOk" @on-cancel="cancel">
<p>确定进行 {{insertTItle}} 操作?</p> <p>确定进行 {{insertTItle}} 操作?</p>
...@@ -52,6 +52,7 @@ export default { ...@@ -52,6 +52,7 @@ export default {
detailModal: false, detailModal: false,
insertlModal: false, insertlModal: false,
rowIndex: null, rowIndex: null,
formData: {},//编辑行数据
curId: 0, curId: 0,
gridHeight: 50, gridHeight: 50,
columns: [ columns: [
...@@ -316,7 +317,7 @@ export default { ...@@ -316,7 +317,7 @@ export default {
msg: "确认要移出排产吗?" msg: "确认要移出排产吗?"
}, },
class: "icons-h", class: "icons-h",
on: { click: () => this.edit(params.row.id) } on: { click: () => this.edit(params.row) }
}), }),
h("op", { h("op", {
attrs: { attrs: {
...@@ -393,25 +394,26 @@ export default { ...@@ -393,25 +394,26 @@ export default {
//单个工序进行参数设置end---- //单个工序进行参数设置end----
//编辑工序start---- //编辑工序start----
edit(id) { edit(dataForm) {
this.editModal = true; this.editModal = true;
this.curId = Number(id); this.formData = dataForm
this.getUserDepart(); // this.curId = Number(id);
this.getEquiptypeList(); this.getUserDepart()
this.getEquiptypeList()
}, },
// 获取班组 // 获取班组
getUserDepart() { getUserDepart(){
Api.getUserDepart().then(res => { Api.getUserDepart().then(res=>{
console.log(res.result); // console.log(res.result)
this.$refs.editPart.orderCatList = res.result; this.$refs.editPart.orderCatList = res.result
}); })
}, },
// 获取设备 // 获取设备
getEquiptypeList() { getEquiptypeList(){
Api.getEquiptypeList().then(res => { Api.getEquiptypeList().then(res=>{
console.log("设备", res.result); // console.log("设备",res.result)
this.$refs.editPart.equiptypeList = res.result; this.$refs.editPart.equiptypeList = res.result
}); })
}, },
//编辑工序end---- //编辑工序end----
......
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