login
This commit is contained in:
parent
e40977274d
commit
df91dd18f4
|
@ -13,6 +13,30 @@
|
|||
:model="loginForm"
|
||||
:rules="loginRules"
|
||||
>
|
||||
<!--<el-form-item>
|
||||
<el-input
|
||||
v-model="loginForm.username"
|
||||
type="text" name="text"
|
||||
placeholder="账号"
|
||||
autocomplete="off">
|
||||
<i slot="prefix" class="el-input_icon el-icon-user"></i>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<input type="text"
|
||||
name="password"
|
||||
autocomplete="off"
|
||||
onfocus="passwordType=='password'"
|
||||
>
|
||||
<el-input
|
||||
v-model="loginForm.password"
|
||||
type="text" name="pwd" id="pwd"
|
||||
placeholder="密码"
|
||||
autocomplete="off"
|
||||
@input="setPassword">
|
||||
<i slot="prefix" class="el-icon-lock"></i>
|
||||
</el-input>
|
||||
</el-form-item>-->
|
||||
<el-form-item prop="username">
|
||||
<el-input
|
||||
ref="username"
|
||||
|
@ -21,15 +45,24 @@
|
|||
name="username"
|
||||
type="text"
|
||||
tabindex="1"
|
||||
auto-complete="on"
|
||||
><svg-icon
|
||||
auto-complete="off"
|
||||
>
|
||||
<svg-icon
|
||||
slot="prefix"
|
||||
icon-class="userName"
|
||||
class="el-input__icon input-icon"
|
||||
/></el-input>
|
||||
/>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item prop="password">
|
||||
<input
|
||||
type="text"
|
||||
name="password"
|
||||
autocomplete="off"
|
||||
onfocus="passwordType=='password'"
|
||||
style="display: none;height: 0;"
|
||||
>
|
||||
<el-input
|
||||
:key="passwordType"
|
||||
ref="password"
|
||||
|
@ -38,18 +71,18 @@
|
|||
placeholder="密码"
|
||||
name="password"
|
||||
tabindex="2"
|
||||
auto-complete="on"
|
||||
auto-complete="off"
|
||||
id="passwordInput"
|
||||
@keyup.enter.native="handleLogin"
|
||||
><svg-icon
|
||||
>
|
||||
<svg-icon
|
||||
slot="prefix"
|
||||
icon-class="password"
|
||||
class="el-input__icon input-icon"
|
||||
/></el-input>
|
||||
<span class="show-pwd" @click="showPwd">
|
||||
<svg-icon
|
||||
:icon-class="passwordType === 'password' ? 'eye' : 'eye-open'"
|
||||
/>
|
||||
</el-input>
|
||||
<span class="show-pwd" @click="showPwd">
|
||||
<svg-icon :icon-class="passwordType === 'password' ? 'eye' : 'eye-open'"/>
|
||||
</span>
|
||||
</el-form-item>
|
||||
<el-button
|
||||
|
@ -57,8 +90,9 @@
|
|||
type="primary"
|
||||
style="width: 100%; margin-bottom: 30px"
|
||||
@click.native.prevent="handleLogin"
|
||||
>登录</el-button
|
||||
>
|
||||
登录
|
||||
</el-button>
|
||||
</el-form>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
|
@ -75,10 +109,11 @@
|
|||
|
||||
<script>
|
||||
import faceLogin from '@/components/faceLogin/tracking.vue'
|
||||
|
||||
export default {
|
||||
name: "Login",
|
||||
inject:['reload'],
|
||||
components:{
|
||||
inject: ['reload'],
|
||||
components: {
|
||||
faceLogin
|
||||
},
|
||||
data() {
|
||||
|
@ -105,7 +140,7 @@
|
|||
password: "",
|
||||
},
|
||||
loginRules: {
|
||||
username: [{ required: true, trigger: "blur", message: "请输入账户" }],
|
||||
username: [{required: true, trigger: "blur", message: "请输入账户"}],
|
||||
password: [
|
||||
{
|
||||
required: true,
|
||||
|
@ -126,7 +161,7 @@
|
|||
},
|
||||
created() {
|
||||
this.getUP();
|
||||
localStorage.setItem('tolerance','0.36');
|
||||
localStorage.setItem('tolerance', '0.36');
|
||||
},
|
||||
watch: {
|
||||
$route: {
|
||||
|
@ -136,8 +171,12 @@
|
|||
immediate: true,
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.loginForm.username = null;
|
||||
this.loginForm.password = null;
|
||||
},
|
||||
methods: {
|
||||
toBigScreen(){
|
||||
toBigScreen() {
|
||||
this.$router.push('/index')
|
||||
},
|
||||
showPwd() {
|
||||
|
@ -159,7 +198,8 @@
|
|||
.dispatch("user/login", this.loginForm)
|
||||
.then(() => {
|
||||
this.$store.dispatch("user/getCount", {});
|
||||
this.$router.push({ path: this.redirect || "/" }, () => {});
|
||||
this.$router.push({path: this.redirect || "/"}, () => {
|
||||
});
|
||||
this.loading = false;
|
||||
localStorage.setItem("rem_username", this.loginForm.username);
|
||||
localStorage.setItem("rem_password", this.loginForm.password);
|
||||
|
@ -182,17 +222,17 @@
|
|||
this.loginForm.password = localStorage.getItem("rem_password");
|
||||
},
|
||||
//人脸登录
|
||||
takePhoto(){
|
||||
takePhoto() {
|
||||
this.limitedPhoto = true;
|
||||
},
|
||||
/*关闭相机*/
|
||||
closeCamera () {
|
||||
closeCamera() {
|
||||
debugger;
|
||||
this.reload();
|
||||
this.$refs.faceTracking.closeCamera();
|
||||
// this.thisVideo.srcObject.getTracks()[0].stop();
|
||||
},
|
||||
getMsgFormSon(data){
|
||||
getMsgFormSon(data) {
|
||||
// this.limitedPhoto = data;
|
||||
},
|
||||
},
|
||||
|
@ -208,11 +248,13 @@
|
|||
background-image: url("../../assets/bg-login.png");
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: 30px auto 30px auto;
|
||||
text-align: center;
|
||||
color: #0174d7;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 350px;
|
||||
height: 140px;
|
||||
|
@ -229,46 +271,56 @@
|
|||
|
||||
.el-input {
|
||||
height: 45px;
|
||||
|
||||
input {
|
||||
height: 45px;
|
||||
}
|
||||
}
|
||||
|
||||
.input-icon {
|
||||
height: 39px;
|
||||
width: 14px;
|
||||
margin-left: 2px;
|
||||
}
|
||||
}
|
||||
.faceLoginBtnWrap{
|
||||
|
||||
.faceLoginBtnWrap {
|
||||
width: 250px;
|
||||
border-right: 1px dashed #409EFF;
|
||||
text-align: center;
|
||||
}
|
||||
.faceLoginBtn{
|
||||
|
||||
.faceLoginBtn {
|
||||
width: 150px;
|
||||
margin-top: 90px;
|
||||
}
|
||||
#passwordInput{
|
||||
|
||||
#passwordInput {
|
||||
padding-right: 35px;
|
||||
}
|
||||
|
||||
.show-pwd {
|
||||
height: 39px;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.login-tip {
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
color: #bfbfbf;
|
||||
}
|
||||
|
||||
.login-code {
|
||||
width: 33%;
|
||||
height: 38px;
|
||||
float: right;
|
||||
|
||||
img {
|
||||
cursor: pointer;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.show-pwd {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
|
@ -277,11 +329,13 @@
|
|||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.login-code-img {
|
||||
height: 38px;
|
||||
}
|
||||
.testTracking{
|
||||
width:100%;
|
||||
|
||||
.testTracking {
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -24,15 +24,16 @@
|
|||
{{ materialdetail.count }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="文件">
|
||||
<el-link v-if="materialdetail.file_" :href="materialdetail.file_.path">{{materialdetail.file_.name}}</el-link>
|
||||
<el-link v-if="materialdetail.file_" :href="materialdetail.file_.path">{{materialdetail.file_.name}}
|
||||
</el-link>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</el-card>
|
||||
<el-tabs v-model="activeName" type="card">
|
||||
<el-tab-pane
|
||||
v-if="this.type == 3 || this.type == 4"
|
||||
label="供应商"
|
||||
name="5"
|
||||
v-if="this.type == 3 || this.type == 4"
|
||||
>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="批次" name="3">
|
||||
|
@ -44,7 +45,7 @@
|
|||
height="460"
|
||||
highlight-current-row
|
||||
>
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column type="index" width="50"/>
|
||||
<el-table-column label="物料批次">
|
||||
<template slot-scope="scope">{{ scope.row.batch }}</template>
|
||||
</el-table-column>
|
||||
|
@ -68,7 +69,6 @@
|
|||
</el-table-column>
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
|
||||
<el-tab-pane label="关联的订单" name="1">
|
||||
<el-table
|
||||
:data="orderlist"
|
||||
|
@ -78,7 +78,7 @@
|
|||
highlight-current-row
|
||||
height="460"
|
||||
>
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column type="index" width="50"/>
|
||||
|
||||
<el-table-column label="订单编号" show-overflow-tooltip>
|
||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
||||
|
@ -86,22 +86,26 @@
|
|||
<el-table-column label="客户" show-overflow-tooltip>
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.customer_.name
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="所属合同" show-overflow-tooltip>
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.contract_.name
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="产品名称" show-overflow-tooltip>
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.product_.name
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="产品型号" show-overflow-tooltip>
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.product_.specification
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="产品数量">
|
||||
<template slot-scope="scope">{{ scope.row.count }}</template>
|
||||
|
@ -109,12 +113,14 @@
|
|||
<el-table-column label="交货日期">
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.delivery_date
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建时间">
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.create_time
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
|
@ -127,7 +133,7 @@
|
|||
style="width: 100%"
|
||||
height="460"
|
||||
>
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column type="index" width="50"/>
|
||||
|
||||
<el-table-column label="任务编号">
|
||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
||||
|
@ -135,12 +141,14 @@
|
|||
<el-table-column label="订单编号">
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.order_.number
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="合同编号">
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.order_.contract_.number
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="生产数量">
|
||||
|
@ -155,7 +163,8 @@
|
|||
<el-table-column label="交付截止时间">
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.order_.delivery_date
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="是否生成子计划">
|
||||
|
@ -167,7 +176,8 @@
|
|||
<el-table-column label="创建时间">
|
||||
<template slot-scope="scope">{{
|
||||
scope.row.create_time
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
|
@ -184,7 +194,7 @@
|
|||
style="width: 100%"
|
||||
height="460"
|
||||
>
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column type="index" width="50"/>
|
||||
|
||||
<el-table-column label="玻璃编号">
|
||||
<template slot-scope="scope">{{ scope.row.number }}</template>
|
||||
|
@ -196,16 +206,17 @@
|
|||
<el-table-column label="状态">
|
||||
<template slot-scope="scope">{{
|
||||
actstate_[scope.row.act_state]
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="仓库">
|
||||
<template slot-scope="scope" v-if="scope.row.warehouse_">{{
|
||||
scope.row.warehouse_.name
|
||||
}}</template>
|
||||
}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
|
||||
<el-tab-pane label="装箱单" name="5" v-if="this.type == 1">
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate">
|
||||
新增装箱单
|
||||
|
@ -218,20 +229,15 @@
|
|||
style="width: 100%"
|
||||
height="460"
|
||||
>
|
||||
<el-table-column type="index" width="50" />
|
||||
|
||||
<el-table-column type="index" width="50"/>
|
||||
<el-table-column label="名称">
|
||||
<template slot-scope="scope">{{ scope.row.name }}</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="单位">
|
||||
<template slot-scope="scope">{{ scope.row.unit }}</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="数量">
|
||||
<template slot-scope="scope" >{{
|
||||
scope.row.count
|
||||
}}</template>
|
||||
<template slot-scope="scope">{{scope.row.count}}</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
align="center"
|
||||
|
@ -239,19 +245,17 @@
|
|||
width="220px"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
|
||||
<el-link
|
||||
|
||||
type="primary"
|
||||
@click="handleEdit(scope)"
|
||||
>编辑
|
||||
>
|
||||
编辑
|
||||
</el-link>
|
||||
|
||||
<el-link
|
||||
|
||||
type="danger"
|
||||
@click="handleDelete(scope)"
|
||||
>删除
|
||||
>
|
||||
删除
|
||||
</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -271,24 +275,25 @@
|
|||
<el-form-item label="物料"
|
||||
prop="material"
|
||||
>
|
||||
<el-select v-model="packitem.material" @change="selectmaterial" >
|
||||
<el-select v-model="packitem.material" @change="selectmaterial">
|
||||
<el-option
|
||||
v-for="item in materialoptions"
|
||||
:key="item.id"
|
||||
:value="item.id"
|
||||
:label="item.name"
|
||||
>
|
||||
:value="item.id">
|
||||
<span style="float: left">{{ item.name }}</span>
|
||||
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.specification }}</span>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="名称" prop="name">
|
||||
<el-input v-model="packitem.name" placeholder="名称" />
|
||||
<el-input v-model="packitem.name" placeholder="名称"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单位" prop="unit">
|
||||
<el-input v-model="packitem.unit" placeholder="单位" />
|
||||
<el-input v-model="packitem.unit" placeholder="单位"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="型号" prop="specification">
|
||||
<el-input v-model="packitem.specification" placeholder="型号" />
|
||||
<el-input v-model="packitem.specification" placeholder="型号"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="数量" prop="count">
|
||||
<el-input-number
|
||||
|
@ -309,9 +314,12 @@
|
|||
</el-form-item>
|
||||
</el-form>
|
||||
<div style="text-align: right">
|
||||
<el-button type="danger" @click="dialogVisible = false"
|
||||
>取消</el-button
|
||||
<el-button
|
||||
type="danger"
|
||||
@click="dialogVisible = false"
|
||||
>
|
||||
取消
|
||||
</el-button>
|
||||
<el-button type="primary" @click="confirm('Form')">确认</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
@ -322,27 +330,35 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import checkPermission from "@/utils/permission";
|
||||
import vueJsonEditor from "vue-json-editor";
|
||||
import { upUrl, upHeaders } from "@/api/file";
|
||||
import { getProductionplanList } from "@/api/pm";
|
||||
import { getmaterialbatchList } from "@/api/inm";
|
||||
import { getOrderList } from "@/api/sam";
|
||||
import { getMaterial,getpackitemList,createpackitem,updatepackitem,deletepackitem,getMaterialList } from "@/api/mtm";
|
||||
import { getwproductList } from "@/api/wpm";
|
||||
import checkPermission from "@/utils/permission";
|
||||
import vueJsonEditor from "vue-json-editor";
|
||||
import {upUrl, upHeaders} from "@/api/file";
|
||||
import {getProductionplanList} from "@/api/pm";
|
||||
import {getmaterialbatchList} from "@/api/inm";
|
||||
import {getOrderList} from "@/api/sam";
|
||||
import {
|
||||
getMaterial,
|
||||
getpackitemList,
|
||||
createpackitem,
|
||||
updatepackitem,
|
||||
deletepackitem,
|
||||
getMaterialList
|
||||
} from "@/api/mtm";
|
||||
import {getwproductList} from "@/api/wpm";
|
||||
|
||||
import { upFile } from "@/api/file";
|
||||
import { genTree } from "@/utils";
|
||||
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
const defaultpackitem = {
|
||||
name:"",
|
||||
unit:"",
|
||||
specification:"",
|
||||
import {upFile} from "@/api/file";
|
||||
import {genTree} from "@/utils";
|
||||
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
|
||||
import Treeselect from "@riophae/vue-treeselect";
|
||||
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
||||
|
||||
const defaultpackitem = {
|
||||
name: "",
|
||||
unit: "",
|
||||
specification: "",
|
||||
};
|
||||
export default {
|
||||
components: { Pagination, vueJsonEditor, Treeselect },
|
||||
export default {
|
||||
components: {Pagination, vueJsonEditor, Treeselect},
|
||||
data() {
|
||||
return {
|
||||
materialdetail: "",
|
||||
|
@ -351,11 +367,11 @@ export default {
|
|||
productionplanList: [],
|
||||
InventoryList: [],
|
||||
activeName: "3",
|
||||
packitem:defaultpackitem,
|
||||
packitem: defaultpackitem,
|
||||
dialogVisible: false,
|
||||
dialogType: "new",
|
||||
pickList:[],
|
||||
materialoptions:[],
|
||||
pickList: [],
|
||||
materialoptions: [],
|
||||
actstate_: {
|
||||
6: "待复检",
|
||||
10: "操作进行中",
|
||||
|
@ -380,7 +396,7 @@ export default {
|
|||
created() {
|
||||
this.material = this.$route.params.id;
|
||||
this.type = this.$route.params.type;
|
||||
this.getMaterialist()
|
||||
this.getMaterialist();
|
||||
this.getMaterial();
|
||||
this.getpickList();
|
||||
this.getOrderList();
|
||||
|
@ -390,32 +406,25 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
//新增装箱单
|
||||
getMaterialist()
|
||||
{
|
||||
getMaterialList({ pageoff: true,type:3 }).then((response) => {
|
||||
getMaterialist() {
|
||||
getMaterialList({pageoff: true, type: 3}).then((response) => {
|
||||
if (response.data) {
|
||||
this.materialoptions = response.data;
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
|
||||
selectmaterial(selval){
|
||||
selectmaterial(selval) {
|
||||
getMaterial(selval).then((response) => {
|
||||
if (response.data) {
|
||||
this.packitem.name = response.data.name;
|
||||
this.packitem.unit = response.data.unit;
|
||||
this.packitem.specification = response.data.specification;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
handleCreate() {
|
||||
handleCreate() {
|
||||
this.packitem = Object.assign({}, defaultpackitem);
|
||||
this.dialogType = "new";
|
||||
this.dialogVisible = true;
|
||||
|
@ -431,6 +440,7 @@ handleCreate() {
|
|||
this.$refs["Form"].clearValidate();
|
||||
});
|
||||
},
|
||||
|
||||
handleDelete(scope) {
|
||||
this.$confirm("确认删除?", "警告", {
|
||||
confirmButtonText: "确认",
|
||||
|
@ -446,6 +456,7 @@ handleCreate() {
|
|||
console.error(err);
|
||||
});
|
||||
},
|
||||
|
||||
async confirm(form) {
|
||||
this.$refs[form].validate((valid) => {
|
||||
if (valid) {
|
||||
|
@ -459,7 +470,7 @@ handleCreate() {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
this.packitem.product=this.material;
|
||||
this.packitem.product = this.material;
|
||||
createpackitem(this.packitem).then((res) => {
|
||||
if (res.code >= 200) {
|
||||
this.getpickList();
|
||||
|
@ -474,33 +485,32 @@ handleCreate() {
|
|||
});
|
||||
},
|
||||
|
||||
getpickList()
|
||||
{
|
||||
getpackitemList({ product: this.material, page: 0 }).then((response) => {
|
||||
getpickList() {
|
||||
getpackitemList({product: this.material, page: 0}).then((response) => {
|
||||
if (response.data) {
|
||||
this.pickList = response.data; //zhuangxiang信息
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
getMaterial() {
|
||||
getMaterial(this.material).then((response) => {
|
||||
if (response.data) {
|
||||
debugger;
|
||||
|
||||
// debugger;
|
||||
this.materialdetail = response.data; //物料基本信息
|
||||
}
|
||||
});
|
||||
},
|
||||
getOrderList() {
|
||||
getOrderList({ material: this.material, page: 0 }).then((response) => {
|
||||
getOrderList({material: this.material, page: 0}).then((response) => {
|
||||
if (response.data) {
|
||||
this.orderlist = response.data; //物料关联的订单
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getplanList() {
|
||||
getProductionplanList({ material: this.material, page: 0 }).then(
|
||||
getProductionplanList({material: this.material, page: 0}).then(
|
||||
(response) => {
|
||||
if (response.data) {
|
||||
this.productionplanList = response.data; //物料关联计划
|
||||
|
@ -510,7 +520,7 @@ getpickList()
|
|||
},
|
||||
|
||||
getmaterialbatchList() {
|
||||
getmaterialbatchList({ material: this.material, page: 0 }).then(
|
||||
getmaterialbatchList({material: this.material, page: 0}).then(
|
||||
(response) => {
|
||||
if (response.data) {
|
||||
this.InventoryList = response.data;
|
||||
|
@ -519,13 +529,13 @@ getpickList()
|
|||
);
|
||||
},
|
||||
getwproductList() {
|
||||
getwproductList({ material: this.material, page: 0 }).then((response) => {
|
||||
getwproductList({material: this.material, page: 0}).then((response) => {
|
||||
if (response.data) {
|
||||
this.wproductList = response.data; //半成品
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
@ -449,9 +449,9 @@
|
|||
</el-col>
|
||||
</el-row>
|
||||
</el-form-item>
|
||||
<el-form-item label="字段父级">
|
||||
<!--<el-form-item label="字段父级">
|
||||
<treeselect v-model="field.parent" :multiple="false" :options="treeDate" placeholder="字段父级"/>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="字段说明">
|
||||
<el-input v-model="field.help_text" placeholder="字段名称"/>
|
||||
</el-form-item>
|
||||
|
|
Loading…
Reference in New Issue