fix:工艺路线添加参考文献
This commit is contained in:
parent
71f7715b9e
commit
c0c83a91c9
|
@ -59,6 +59,19 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :md="24" :sm="12" :xs="24">
|
||||||
|
<el-form-item label="附件">
|
||||||
|
<sc-upload-file
|
||||||
|
v-model="fileList"
|
||||||
|
:multiple="false"
|
||||||
|
:limit="1"
|
||||||
|
:accept="['.pdf']"
|
||||||
|
@success = "fileUPSuccess"
|
||||||
|
>
|
||||||
|
<el-button type="primary" icon="el-icon-upload"> </el-button>
|
||||||
|
</sc-upload-file>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :md="24" :sm="12" :xs="24">
|
<el-col :md="24" :sm="12" :xs="24">
|
||||||
|
@ -196,6 +209,7 @@ export default {
|
||||||
dialog: {
|
dialog: {
|
||||||
save: false,
|
save: false,
|
||||||
},
|
},
|
||||||
|
fileList:[],
|
||||||
form: {
|
form: {
|
||||||
name: "",
|
name: "",
|
||||||
material: "",
|
material: "",
|
||||||
|
@ -227,7 +241,17 @@ export default {
|
||||||
},
|
},
|
||||||
setData(data) {
|
setData(data) {
|
||||||
Object.assign(this.form, data);
|
Object.assign(this.form, data);
|
||||||
console.log("setData this.form", this.form);
|
let obj = {};
|
||||||
|
obj.name=data.document_.name;
|
||||||
|
obj.url=data.document_.file;
|
||||||
|
this.fileList.push(obj);
|
||||||
|
// console.log("setData this.form", this.form);
|
||||||
|
},
|
||||||
|
fileUPSuccess(res) {
|
||||||
|
let that = this;
|
||||||
|
// console.log('res',res);
|
||||||
|
// console.log('that.fileList',that.fileList);
|
||||||
|
that.form.document = res.id;
|
||||||
},
|
},
|
||||||
getMaterials() {
|
getMaterials() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
@ -253,14 +277,14 @@ export default {
|
||||||
let form = {};
|
let form = {};
|
||||||
form.name = that.form.name;
|
form.name = that.form.name;
|
||||||
form.material = that.form.material;
|
form.material = that.form.material;
|
||||||
console.log("that.form",that.form)
|
// console.log("that.form",that.form)
|
||||||
if (that.form.id) {
|
if (that.form.id) {
|
||||||
that.$API.mtm.routepack.update
|
that.$API.mtm.routepack.update
|
||||||
.req(that.form.id, that.form)
|
.req(that.form.id, that.form)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
that.routepack = res.id;
|
that.routepack = res.id;
|
||||||
that.query.routepack = res.id;
|
that.query.routepack = res.id;
|
||||||
console.log("that.query", that.query);
|
// console.log("that.query", that.query);
|
||||||
that.apiObj = that.$API.mtm.route.list;
|
that.apiObj = that.$API.mtm.route.list;
|
||||||
that.active = 1;
|
that.active = 1;
|
||||||
// that.$refs.tables.refresh();
|
// that.$refs.tables.refresh();
|
||||||
|
@ -270,7 +294,7 @@ export default {
|
||||||
this.active = 1;
|
this.active = 1;
|
||||||
that.form.id = res.id;
|
that.form.id = res.id;
|
||||||
that.routepack = res.id;
|
that.routepack = res.id;
|
||||||
console.log("that.form",that.form)
|
// console.log("that.form",that.form)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue