Commit 03f162f1 authored by renjintao's avatar renjintao

technology

parent 5344bfc1
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('version')" prop="version"> <FormItem :label="l('version')" prop="versionid">
<Input v-model="entity.version"></Input> <Dictionary code="Process.Routing.version" v-model="entity.versionid"></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<Filed :span="6" :name="l('name')">{{info.name}}</Filed> <Filed :span="6" :name="l('name')">{{info.name}}</Filed>
<Filed :span="5" :name="l('code')">{{info.code}}</Filed> <Filed :span="5" :name="l('code')">{{info.code}}</Filed>
<Filed :span="5" :name="l('routingType')"><state code="Process.Routing.routingType" :value="info.routingType" type="text"></state></Filed> <Filed :span="5" :name="l('routingType')"><state code="Process.Routing.routingType" :value="info.routingType" type="text"></state></Filed>
<Filed :span="3" :name="l('version')">{{info.version}}</Filed> <Filed :span="3" :name="l('version')"><state code="Process.Routing.version" :value="info.versionid" type="text"></state></Filed>
</Row> </Row>
</div> </div>
</template> </template>
......
...@@ -12,15 +12,16 @@ ...@@ -12,15 +12,16 @@
</FormItem> </FormItem>
</Col>--> </Col>-->
<Col :span="8"> <Col :span="8">
<FormItem :label="l('name')" prop="name"> <FormItem :label="l('code')" prop="code">
<Input v-model="entity.name"></Input> <Input v-model="entity.code" disabled></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('code')" prop="code"> <FormItem :label="l('name')" prop="name">
<Input v-model="entity.code"></Input> <Input v-model="entity.name"></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('routingType')" prop="routingType"> <FormItem :label="l('routingType')" prop="routingType">
<Dictionary code="Process.Routing.routingType" v-model="entity.routingType"></Dictionary> <Dictionary code="Process.Routing.routingType" v-model="entity.routingType"></Dictionary>
...@@ -42,8 +43,8 @@ ...@@ -42,8 +43,8 @@
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('version')" prop="version"> <FormItem :label="l('version')" prop="versionid">
<Input v-model="entity.version"></Input> <Dictionary code="Process.Routing.version" v-model="entity.versionid"></Dictionary>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8"> <Col :span="8">
...@@ -51,11 +52,7 @@ ...@@ -51,11 +52,7 @@
<departmentSelect v-model="entity.departmentId" @on-change="departChange"></departmentSelect> <departmentSelect v-model="entity.departmentId" @on-change="departChange"></departmentSelect>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="8">
<FormItem :label="l('isSendPpm')" prop="isSendPpm">
<Dictionary code="Process.Status" v-model="entity.isSendPpm" type="radio"></Dictionary>
</FormItem>
</Col>
<Col :span="8"> <Col :span="8">
<FormItem :label="l('isEffect')" prop="isEffect"> <FormItem :label="l('isEffect')" prop="isEffect">
<Dictionary code="Process.Status" v-model="entity.isEffect" type="radio"></Dictionary> <Dictionary code="Process.Status" v-model="entity.isEffect" type="radio"></Dictionary>
...@@ -63,6 +60,11 @@ ...@@ -63,6 +60,11 @@
</Col> </Col>
<!-- <!--
<Col :span="8"> <Col :span="8">
<FormItem :label="l('isSendPpm')" prop="isSendPpm">
<Dictionary code="Process.Status" v-model="entity.isSendPpm" type="radio"></Dictionary>
</FormItem>
</Col>
<Col :span="8">
<FormItem :label="l('isMain')" prop="isMain"> <FormItem :label="l('isMain')" prop="isMain">
<Dictionary code="Process.state" v-model="entity.isMain" type="radio"></Dictionary> <Dictionary code="Process.state" v-model="entity.isMain" type="radio"></Dictionary>
</FormItem> </FormItem>
......
...@@ -116,14 +116,20 @@ ...@@ -116,14 +116,20 @@
<script> <script>
import Api from "./api"; import Api from "./api";
import service from '@/plugins/request' import service from "@/plugins/request";
import Search from "./search"; import Search from "./search";
import ProductTree from "@/components/page/productTree.vue"; import ProductTree from "@/components/page/productTree.vue";
import sendAudit from "./sendAudit.vue"; import sendAudit from "./sendAudit.vue";
import routingchangeorder from '../processDesign/Process/routingchangeorder.vue' import routingchangeorder from "../processDesign/Process/routingchangeorder.vue";
import changelist from '../processDesign/Process/changelist.vue' import changelist from "../processDesign/Process/changelist.vue";
export default { export default {
components: { ProductTree, Search, sendAudit,routingchangeorder,changelist }, components: {
ProductTree,
Search,
sendAudit,
routingchangeorder,
changelist
},
head: { head: {
title: "工艺规程", title: "工艺规程",
author: "henq", author: "henq",
...@@ -147,7 +153,6 @@ export default { ...@@ -147,7 +153,6 @@ export default {
uId: "", uId: "",
documentShow: false, documentShow: false,
columns: [ columns: [
{ {
key: "code", key: "code",
title: this.l("code"), title: this.l("code"),
...@@ -171,7 +176,21 @@ export default { ...@@ -171,7 +176,21 @@ export default {
width: 100, width: 100,
code: "Process.Routing.phase" code: "Process.Routing.phase"
}, },
{ key: "version", title: this.l("version"), align: "left", high: true,width: 100, }, {
key: "versionid",
title: this.l("version"),
align: "center",
high: true,
width: 100,
code:"Process.Routing.version"
},
{
title: this.l("approvalStatus"),
key: "approvalStatus",
align: "center",
width: "120",
code:"process.RoutingStatus"
},
{ {
key: "routingType", key: "routingType",
title: this.l("routingType"), title: this.l("routingType"),
...@@ -212,7 +231,7 @@ export default { ...@@ -212,7 +231,7 @@ export default {
// { key:"upDetailId",title:this.l("upDetailId") ,hide:true ,align:"left" ,high:true }, // { key:"upDetailId",title:this.l("upDetailId") ,hide:true ,align:"left" ,high:true },
//{ key: "classId", title: this.l("classId"), align: "left", hide: true }, //{ key: "classId", title: this.l("classId"), align: "left", hide: true },
//{ key: "unicode", title: this.l("unicode"),align: "left",easy: false,hide: true}, //{ key: "unicode", title: this.l("unicode"),align: "left",easy: false,hide: true},
// { key:"status",title:this.l("status") ,align:"left" ,high:true ,code:'Process.Status' },
// { key:"approvalStatus",title:this.l("approvalStatus") ,align:"left" ,high:true ,code:'process.RoutingStatus' }, // { key:"approvalStatus",title:this.l("approvalStatus") ,align:"left" ,high:true ,code:'process.RoutingStatus' },
// { key:"approvalStatusRemark",title:this.l("approvalStatusRemark") ,align:"left" ,high:true }, // { key:"approvalStatusRemark",title:this.l("approvalStatusRemark") ,align:"left" ,high:true },
// { key:"auditUserId1",title:this.l("auditUserId1") ,align:"left" ,high:true }, // { key:"auditUserId1",title:this.l("auditUserId1") ,align:"left" ,high:true },
...@@ -232,7 +251,8 @@ export default { ...@@ -232,7 +251,8 @@ export default {
key: "creatorUserId", key: "creatorUserId",
title: this.$t("creatorUserId"), title: this.$t("creatorUserId"),
align: "left", align: "left",
hide: true hide: true,
type: "user"
}, },
{ {
key: "lastModificationTime", key: "lastModificationTime",
...@@ -244,7 +264,8 @@ export default { ...@@ -244,7 +264,8 @@ export default {
key: "lastModifierUserId", key: "lastModifierUserId",
title: this.$t("lastModifierUserId"), title: this.$t("lastModifierUserId"),
align: "left", align: "left",
hide: true hide: true,
type: "user"
}, },
{ {
title: "操作", title: "操作",
...@@ -283,7 +304,7 @@ export default { ...@@ -283,7 +304,7 @@ export default {
attrs: { oprate: "edit" }, attrs: { oprate: "edit" },
on: { click: () => this.edit(params.row) } on: { click: () => this.edit(params.row) }
}, },
"编辑" params.row.approvalStatus == 4||params.row.approvalStatus == 0 ? "编辑" : ""
), ),
h( h(
"op", "op",
...@@ -291,15 +312,15 @@ export default { ...@@ -291,15 +312,15 @@ export default {
attrs: { oprate: "delete" }, attrs: { oprate: "delete" },
on: { click: () => this.remove(params.row.id) } on: { click: () => this.remove(params.row.id) }
}, },
"删除" params.row.approvalStatus == 4||params.row.approvalStatus == 0 ? "删除" : ""
), ),
h( h(
"op", "op",
{ {
attrs: { oprate: "detail" }, attrs: { oprate: "detail" }
// on: { click: () => this.TechnologyChange(params.row) } // on: { click: () => this.TechnologyChange(params.row) }
}, },
"新增更改单" params.row.approvalStatus == 1 ? "新增更改单" : ""
), ),
h( h(
"op", "op",
...@@ -460,48 +481,46 @@ export default { ...@@ -460,48 +481,46 @@ export default {
}, },
//工艺更改 //工艺更改
TechnologyChange(row) { TechnologyChange(row) {
this.$refs.routingchangeorder.flag = 0 this.$refs.routingchangeorder.flag = 0;
this.$refs.routingchangeorder.routing_header_Id = row.id this.$refs.routingchangeorder.routing_header_Id = row.id;
var userId =this.$store.state.userInfo.userId var userId = this.$store.state.userInfo.userId;
let parma = { let parma = {
Id: userId Id: userId
} };
this.$refs.routingchangeorder.changeorder_code = '' this.$refs.routingchangeorder.changeorder_code = "";
this.$http.sysUser.getuserinfo(parma).then((res) => { this.$http.sysUser.getuserinfo(parma).then(res => {
if (res.result) { if (res.result) {
this.$refs.routingchangeorder.formValidate = { this.$refs.routingchangeorder.formValidate = {
technical_name: row.name, technical_name: row.name,
technical_code: row.code, technical_code: row.code,
department_name: res.result.departmentTitle, department_name: res.result.departmentTitle,
propose_user_name: res.result.userName propose_user_name: res.result.userName
};
} }
} });
}) var url1 = `${designUrl}/routingheader/GetCodeByType?code=JSWJGGD`;
var url1 = `${designUrl}/routingheader/GetCodeByType?code=JSWJGGD` service.get(`${url1}`).then(response => {
service.get(`${url1}`).then((response) => { this.$refs.routingchangeorder.changeorder_code = response.result;
this.$refs.routingchangeorder.changeorder_code = response.result });
}) this.$refs.routingchangeorder.modelChange = true;
this.$refs.routingchangeorder.modelChange = true
}, },
Main(data) { Main(data) {
// this.eid1 = '' // this.eid1 = ''
this.seleId = data.row.id this.seleId = data.row.id;
this.$refs.changelist.seleId = data.row.id this.$refs.changelist.seleId = data.row.id;
let url = `${designUrl}/routingheaderchangeorder/getpaged` let url = `${designUrl}/routingheaderchangeorder/getpaged`;
service service.get(`${url}`, { routing_header_id: this.seleId }).then(res => {
.get(`${url}`, { routing_header_id: this.seleId })
.then((res) => {
//console.log(res) //console.log(res)
this.$refs.changelist.data2 = res.result.items this.$refs.changelist.data2 = res.result.items;
this.$refs.changelist.myloading = false this.$refs.changelist.myloading = false;
if (this.$refs.changelist.data2.length == 0) { if (this.$refs.changelist.data2.length == 0) {
this.$Message.error('该工艺规程没有更改单!') this.$Message.error("该工艺规程没有更改单!");
this.$refs.changelist.show3 = false this.$refs.changelist.show3 = false;
return return;
} }
this.$refs.changelist.show3 = true this.$refs.changelist.show3 = true;
}) });
} }
} }
}; };
......
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