Commit 8b9f31e8 authored by 周远喜's avatar 周远喜

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

parents ef666dba 669c07ff
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</Form> </Form>
<Row> <Row>
<Col span="24" style="text-align:right;height:60px;line-height:60px"> <Col span="24" style="text-align:right;height:60px;line-height:60px">
<Button type="primary" @click="handleSubmit">确定</Button> <Button type="primary" @click="handleSubmit" v-noClick>确定</Button>
<Button @click="handleClose" class="ml20">取消</Button> <Button @click="handleClose" class="ml20">取消</Button>
</Col> </Col>
</Row> </Row>
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
</Col> </Col>
</Row> </Row>
<FormItem class="click-btn"> <FormItem class="click-btn">
<Button type="primary" @click="handleSubmit">确定</Button> <Button type="primary" @click="handleSubmit" v-noClick>确定</Button>
<Button @click="handleClose" class="ml20">取消</Button> <Button @click="handleClose" class="ml20">取消</Button>
</FormItem> </FormItem>
</Form> </Form>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</Form> </Form>
<Row> <Row>
<Col span="24" style="text-align:right;height:60px;line-height:60px"> <Col span="24" style="text-align:right;height:60px;line-height:60px">
<Button type="primary" @click="handleSubmit">确定</Button> <Button type="primary" @click="handleSubmit" v-noClick>确定</Button>
<Button @click="handleClose" class="ml20">取消</Button> <Button @click="handleClose" class="ml20">取消</Button>
</Col> </Col>
</Row> </Row>
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
</Col> </Col>
</Row> </Row>
<FormItem class="click-btn"> <FormItem class="click-btn">
<Button type="primary" @click="handleSubmit">确定</Button> <Button type="primary" @click="handleSubmit" v-noClick>确定</Button>
<Button @click="handleClose" class="ml20">取消</Button> <Button @click="handleClose" class="ml20">取消</Button>
</FormItem> </FormItem>
</Form> </Form>
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
</FormItem> </FormItem>
<FormItem> <FormItem>
<Button style="margin-left: 8px" @click="closeOk">取消</Button> <Button style="margin-left: 8px" @click="closeOk">取消</Button>
<Button type="primary" @click="lowerHair">下发</Button> <Button type="primary" @click="lowerHair" v-noClick>下发</Button>
</FormItem> </FormItem>
</Form> </Form>
</div> </div>
......
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</Row> </Row>
<FormItem> <FormItem>
<Button style="margin-right: 8px" @click="cancle">取消</Button> <Button style="margin-right: 8px" @click="cancle">取消</Button>
<Button type="primary" @click="sendSheBei">派工</Button> <Button type="primary" @click="sendSheBei" v-noClick>派工</Button>
</FormItem> </FormItem>
</Form> </Form>
</Drawer> </Drawer>
......
...@@ -42,7 +42,6 @@ export default { ...@@ -42,7 +42,6 @@ export default {
name: "addAccessory", name: "addAccessory",
data() { data() {
return { return {
disabled: false,
deletelModal: false, deletelModal: false,
curId: 0, curId: 0,
editIndex: -1, editIndex: -1,
......
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
name: "detailAccessory", name: "detailAccessory",
data() { data() {
return { return {
disabled: false,
deletelModal: false, deletelModal: false,
statuList: this.$store.getters.dictionaryByKey("accessory.status") || [], statuList: this.$store.getters.dictionaryByKey("accessory.status") || [],
statuList1: this.$store.getters.dictionaryByKey("outstore.status") || [], statuList1: this.$store.getters.dictionaryByKey("outstore.status") || [],
......
...@@ -2,99 +2,104 @@ ...@@ -2,99 +2,104 @@
<Form ref="form" :model="entity" :rules="rules" :label-width="90"> <Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Row> <Row>
<Col span="12"> <Col span="12">
<FormItem :label="l('DistributeMainRouting')" prop="DistributeMainRouting"> <FormItem
<UserSelect ref="userSelected" v-model="entity.DistributeMainRouting" /> :label="l('DistributeMainRouting')"
prop="DistributeMainRouting"
>
<UserSelect
ref="userSelected"
v-model="entity.DistributeMainRouting"
/>
</FormItem> </FormItem>
</Col> </Col>
<Col span="12"> <Col span="12">
<FormItem label="完成时间" style="width:100%" prop="MainRoutingFinishDate"> <FormItem
label="完成时间"
style="width: 100%"
prop="MainRoutingFinishDate"
>
<DatePicker <DatePicker
v-model="entity.MainRoutingFinishDate" v-model="entity.MainRoutingFinishDate"
type="datetime" type="datetime"
placeholder="请选择日期" placeholder="请选择日期"
style="width:240px" style="width: 240px"
@on-change="getTimeMainRFD" @on-change="getTimeMainRFD"
></DatePicker> ></DatePicker>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
<Row > <Row> &nbsp; </Row>
&nbsp; <Row> &nbsp; </Row>
</Row>
<Row >
&nbsp;
</Row>
<FormItem> <FormItem>
<Button type="primary" @click="handleSubmit" :disabled="disabled">保存</Button> <Button type="primary" @click="handleSubmit" v-noClick>保存</Button>
<Button @click="handleClose" class="ml20">取消</Button> <Button @click="handleClose" class="ml20">取消</Button>
</FormItem> </FormItem>
</Form> </Form>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
export default { export default {
name: 'Dispatch', name: "Dispatch",
props: { props: {
ids: Array ids: Array,
}, },
data() { data() {
return { return {
disabled: false,
entity: { entity: {
DistributeMainRouting: null, DistributeMainRouting: null,
MainRoutingFinishDate: '' MainRoutingFinishDate: "",
}, },
rules: { rules: {
DistributeMainRouting: [ DistributeMainRouting: [
{ {
required: true, required: true,
message: '请选择人员', message: "请选择人员",
trigger: 'change', trigger: "change",
type: 'number' type: "number",
} },
], ],
MainRoutingFinishDate: [ MainRoutingFinishDate: [
{ {
required: true, required: true,
message: '请选择时间', message: "请选择时间",
trigger: 'change' trigger: "change",
} },
] ],
} },
} };
}, },
methods: { methods: {
handleSubmit() { handleSubmit() {
this.$refs.form.validate((v) => { this.$refs.form.validate((v) => {
if (v) { if (v) {
this.entity.ids = this.ids this.entity.ids = this.ids;
Api.routingdistribute(this.entity) Api.routingdistribute(this.entity)
.then((r) => { .then((r) => {
if (r.success) { if (r.success) {
this.$Message.success('工艺派发成功') this.$Message.success("工艺派发成功");
this.$emit('on-ok') this.$emit("on-ok");
} else { } else {
this.$Message.error('工艺派发失败') this.$Message.error("工艺派发失败");
} }
this.$emit('on-ok') this.$emit("on-ok");
}) })
.catch((err) => { .catch((err) => {
this.$Message.error('工艺派发失败') this.$Message.error("工艺派发失败");
}) });
} }
}) });
}, },
handleClose() { handleClose() {
this.$emit('on-close') this.$emit("on-close");
}, },
l(key) { l(key) {
key = 'mes_order' + '.' + key key = "mes_order" + "." + key;
return this.$t(key) return this.$t(key);
}, },
getTimeMainRFD(value) { getTimeMainRFD(value) {
this.entity.MainRoutingFinishDate = value this.entity.MainRoutingFinishDate = value;
} },
}, },
watch: {} watch: {},
} };
</script> </script>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<Col span="12"> <Col span="12">
<FormItem label="分解数量" style="width:100%" prop="splitQuantity"> <FormItem label="分解数量" style="width:100%" prop="splitQuantity">
<InputNumber :min="0" v-model="orderForm.splitQuantity" style="width:180px"></InputNumber> <InputNumber :min="0" v-model="orderForm.splitQuantity" style="width:180px"></InputNumber>
<Button type="primary" @click="addSplitOrder">确定</Button> <Button type="primary" @click="addSplitOrder" v-noClick>确定</Button>
</FormItem> </FormItem>
</Col> </Col>
</Row> </Row>
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<Col span="16">&nbsp;</Col> <Col span="16">&nbsp;</Col>
<Col span="8"> <Col span="8">
<Button @click="cancel" class="ml20">取消</Button> <Button @click="cancel" class="ml20">取消</Button>
<Button type="primary" @click="setNumOk">设置</Button> <Button type="primary" @click="setNumOk" v-noClick>设置</Button>
</Col> </Col>
</Row> </Row>
</Form> </Form>
......
<template> <template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90"> <Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Row> <Row>
<!-- <Col :span="12" <!-- <Col :span="12"
><FormItem :label="l('creationTime')" prop="creationTime"> ><FormItem :label="l('creationTime')" prop="creationTime">
<DatePicker <DatePicker
type="date" type="date"
...@@ -101,9 +101,7 @@ ...@@ -101,9 +101,7 @@
></Col> ></Col>
</Row> </Row>
<FormItem> <FormItem>
<Button type="primary" @click="handleSubmit" :disabled="disabled" <Button type="primary" @click="handleSubmit" v-noClick>保存</Button>
>保存</Button
>
<Button @click="handleClose" class="ml20">取消</Button> <Button @click="handleClose" class="ml20">取消</Button>
</FormItem> </FormItem>
</Form> </Form>
...@@ -114,7 +112,6 @@ export default { ...@@ -114,7 +112,6 @@ export default {
name: "Add", name: "Add",
data() { data() {
return { return {
disabled: false,
entity: { entity: {
// creationTime: null, // creationTime: null,
// creatorUserId: null, // creatorUserId: null,
...@@ -152,10 +149,8 @@ export default { ...@@ -152,10 +149,8 @@ export default {
handleSubmit() { handleSubmit() {
this.$refs.form.validate((v) => { this.$refs.form.validate((v) => {
if (v) { if (v) {
this.disabled = true;
Api.create(this.entity) Api.create(this.entity)
.then((r) => { .then((r) => {
this.disabled = false;
if (r.success) { if (r.success) {
this.$Message.success("保存成功"); this.$Message.success("保存成功");
this.$emit("on-ok"); this.$emit("on-ok");
...@@ -164,7 +159,6 @@ export default { ...@@ -164,7 +159,6 @@ export default {
} }
}) })
.catch((err) => { .catch((err) => {
this.disabled = false;
this.$Message.error("保存失败"); this.$Message.error("保存失败");
console.warn(err); console.warn(err);
}); });
......
This diff is collapsed.
<template> <template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90"> <Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Row> <Row>
<Col span="8"> <Col span="8" class="projct-img">
<FormItem :label="l('picture')" prop="picture"> <FormItem :label="l('picture')" prop="picture">
<inputFile <inputFile
class="tphoto" class="tphoto"
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
name: "Add", name: "Add",
data() { data() {
return { return {
disabled: false,
imgName: "", imgName: "",
avatorPath: "", avatorPath: "",
entity: { entity: {
...@@ -155,12 +155,12 @@ export default { ...@@ -155,12 +155,12 @@ export default {
picture: "", picture: "",
attachment: "", attachment: "",
phase: null, phase: null,
startDate: null, startDate: "",
endDate: null, endDate: "",
businessUnits: "", businessUnits: "",
}, },
rules: { rules: {
name: [{ required: true, message: "必填", trigger: "blur" }], title: [{ required: true, message: "必填", trigger: "blur" }],
}, },
parmsName: "app=material&eid=1&name=ProjectMain", parmsName: "app=material&eid=1&name=ProjectMain",
parms: { parms: {
...@@ -196,7 +196,7 @@ export default { ...@@ -196,7 +196,7 @@ export default {
} }
Api.create(this.entity) Api.create(this.entity)
.then((r) => { .then((r) => {
this.disabled = false;
if (r.success) { if (r.success) {
this.$Message.success("保存成功"); this.$Message.success("保存成功");
this.$emit("on-ok"); this.$emit("on-ok");
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
} }
}) })
.catch((err) => { .catch((err) => {
this.disabled = false;
this.$Message.error("保存失败"); this.$Message.error("保存失败");
console.warn(err); console.warn(err);
}); });
...@@ -221,6 +221,8 @@ export default { ...@@ -221,6 +221,8 @@ export default {
this.entity.id = 0; this.entity.id = 0;
}); });
}, },
//时间相关end
l(key) { l(key) {
key = "project_main" + "." + key; key = "project_main" + "." + key;
return this.$t(key); return this.$t(key);
...@@ -243,4 +245,19 @@ export default { ...@@ -243,4 +245,19 @@ export default {
}, },
}, },
}; };
</script> </script>
\ No newline at end of file <style lang="less">
.projct-img {
.img-touxiang {
width: 300px;
height: 300px;
margin: 0px 10px 15px 20px;
overflow: hidden;
border-radius: 5px;
.img1 {
width: 100%;
height: 100%;
}
}
}
</style>
\ No newline at end of file
<template> <template>
<div class="detail"> <div class="detail">
<Row>
<Row> <Filed :span="12" :name="l('creationTime')">{{
<Filed :span="12" :name="l('creationTime')">{{entity.creationTime}}</Filed> entity.creationTime
<Filed :span="12" :name="l('creatorUserId')">{{entity.creatorUserId}}</Filed> }}</Filed>
<Filed :span="12" :name="l('lastModificationTime')">{{entity.lastModificationTime}}</Filed> <Filed :span="12" :name="l('creatorUserId')">
<Filed :span="12" :name="l('lastModifierUserId')">{{entity.lastModifierUserId}}</Filed> <User :value="entity.creatorUserId" />
<Filed :span="12" :name="l('isDeleted')">{{entity.isDeleted}}</Filed> </Filed>
<Filed :span="12" :name="l('deletionTime')">{{entity.deletionTime}}</Filed> <!-- <Filed :span="12" :name="l('lastModificationTime')">{{
<Filed :span="12" :name="l('deleterUserId')">{{entity.deleterUserId}}</Filed> entity.lastModificationTime
<Filed :span="12" :name="l('title')">{{entity.title}}</Filed> }}</Filed>
<Filed :span="24" :name="l('note')">{{entity.note}}</Filed> <Filed :span="12" :name="l('lastModifierUserId')">{{
<Filed :span="12" :name="l('state')">{{entity.state}}</Filed> entity.lastModifierUserId
<Filed :span="12" :name="l('type')">{{entity.type}}</Filed> }}</Filed>
<Filed :span="12" :name="l('picture')">{{entity.picture}}</Filed> <Filed :span="12" :name="l('isDeleted')">{{ entity.isDeleted }}</Filed>
<Filed :span="12" :name="l('attachment')">{{entity.attachment}}</Filed> <Filed :span="12" :name="l('deletionTime')">{{
<Filed :span="12" :name="l('phase')">{{entity.phase}}</Filed> entity.deletionTime
<Filed :span="12" :name="l('startDate')">{{entity.startDate}}</Filed> }}</Filed>
<Filed :span="12" :name="l('endDate')">{{entity.endDate}}</Filed> <Filed :span="12" :name="l('deleterUserId')">{{
<Filed :span="12" :name="l('businessUnits')">{{entity.businessUnits}}</Filed> entity.deleterUserId
</Row> }}</Filed> -->
<Filed :span="12" :name="l('title')">{{ entity.title }}</Filed>
</div> <Filed :span="12" :name="l('state')">
<state code="project.main.state" :value="entity.state"
/></Filed>
<!-- <Filed :span="12" :name="l('phase')">{{ entity.phase }}</Filed> -->
<Filed :span="12" :name="l('startDate')">{{ entity.startDate }}</Filed>
<Filed :span="12" :name="l('endDate')">{{ entity.endDate }}</Filed>
<!-- <Filed :span="12" :name="l('businessUnits')">{{
entity.businessUnits
}}</Filed> -->
<Filed :span="12" :name="l('type')">
<state code="project.main.type" :value="entity.type" />
</Filed>
<Filed :span="12" :name="l('picture')"
><a @click="imgClick(entity.picture)">查看图片</a></Filed
>
<Filed :span="12" :name="l('attachment')">
<files ref="refFile" :parms="parms" fileFormat :showList="false" />
</Filed>
<Filed :span="24" :name="l('note')">{{ entity.note }}</Filed>
</Row>
</div>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
export default { export default {
name: 'Add', name: "Add",
data() { data() {
return { return {
entity: {}, entity: {},
rules: { rules: {
name: [{ required: true, message: '必填', trigger: 'blur' }], name: [{ required: true, message: "必填", trigger: "blur" }],
code: [{ required: true, message: '必填', trigger: 'blur' }] code: [{ required: true, message: "必填", trigger: "blur" }],
} },
} parms: {
}, app: "material",
props: { eid: null,
eid: Number name: "",
}, field: "",
mounted() { },
if (this.eid > 0) { };
this.load(this.eid); },
} props: ["eid"],
}, mounted() {
methods: { this.load(this.eid);
load(v) { },
Api.get({ id: v }).then(r => { methods: {
this.entity = r.result; imgClick(img) {
this.$emit('on-load') window.open(fileUrlDown + img, "_blank");
}) },
}, load(v) {
handleClose() { Api.get({ id: v }).then((r) => {
this.$emit('on-close') this.entity = r.result;
}, this.entity.type = r.result.type + "";
l(key) { this.entity.state = r.result.state + "";
key = "project_main" + "." + key;
return this.$t(key) this.parms.eid = r.result.attachment;
this.$emit("on-load");
});
},
handleClose() {
this.$emit("on-close");
},
l(key) {
key = "project_main" + "." + key;
return this.$t(key);
},
},
watch: {
eid(v) {
if (v) {
this.load(v);
} }
}, },
watch: { },
eid(v) { };
if (v > 0) {
this.load(v);
}
}
}
}
</script> </script>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
...@@ -461,7 +461,7 @@ export default { ...@@ -461,7 +461,7 @@ export default {
} }
}) })
.catch((err) => { .catch((err) => {
this.disabled = false;
this.$Message.error("保存失败"); this.$Message.error("保存失败");
console.warn(err); console.warn(err);
}); });
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
<Input <Input
placeholder="请输入文档名称/编号" placeholder="请输入文档名称/编号"
v-model="easySearch.keys.value" v-model="easySearch.keys.value"
clearable
/> />
</FormItem> </FormItem>
<FormItem> <FormItem>
...@@ -429,6 +430,7 @@ export default { ...@@ -429,6 +430,7 @@ export default {
} }
.shuo-ming { .shuo-ming {
display: -webkit-inline-box; display: -webkit-inline-box;
// display: inline-block;
} }
.a-icon { .a-icon {
text-align: right; text-align: right;
......
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