fix:成品检验coding#465
This commit is contained in:
parent
ca9b281834
commit
3cda314ad4
|
@ -31,6 +31,11 @@
|
||||||
<el-descriptions-item label="抽检数">{{
|
<el-descriptions-item label="抽检数">{{
|
||||||
workObj.count_sampling
|
workObj.count_sampling
|
||||||
}}</el-descriptions-item>
|
}}</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="配帮管批次号">
|
||||||
|
<div v-if=" workObj.mb_&&workObj.mb_.assemb">
|
||||||
|
<span v-for="item in workObj.mb_.assemb">{{item.batch}}、</span>
|
||||||
|
</div>
|
||||||
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary" @click="table_edit(workObj)">编辑</el-button>
|
type="primary" @click="table_edit(workObj)">编辑</el-button>
|
||||||
|
|
|
@ -81,7 +81,24 @@
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="检验人" prop="test_user">
|
||||||
|
<el-select
|
||||||
|
v-model="form.test_user"
|
||||||
|
placeholder="检验人"
|
||||||
|
clearable
|
||||||
|
filterable
|
||||||
|
style="width: 100%"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in userList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-main>
|
</el-main>
|
||||||
|
@ -100,7 +117,10 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
form: {},
|
form: {
|
||||||
|
type:'prod',
|
||||||
|
type2:10
|
||||||
|
},
|
||||||
rules: {
|
rules: {
|
||||||
test_date: [
|
test_date: [
|
||||||
{
|
{
|
||||||
|
@ -120,11 +140,13 @@ export default {
|
||||||
visible: false,
|
visible: false,
|
||||||
isSaveing: false,
|
isSaveing: false,
|
||||||
options: [],
|
options: [],
|
||||||
|
userList:[],
|
||||||
selectionFilters: [],
|
selectionFilters: [],
|
||||||
setFiltersVisible: false,
|
setFiltersVisible: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.getUsers();
|
||||||
this.getMaterialBatch();
|
this.getMaterialBatch();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -141,6 +163,15 @@ export default {
|
||||||
this.form.count_ok = this.form.count - this.form.count_notok
|
this.form.count_ok = this.form.count - this.form.count_notok
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
getUsers(){
|
||||||
|
let that = this;
|
||||||
|
let userList = [];
|
||||||
|
that.$API.system.user.list
|
||||||
|
.req({ page: 0, posts__code__contains: "check" })
|
||||||
|
.then((res) => {
|
||||||
|
that.userList = res;
|
||||||
|
});
|
||||||
|
},
|
||||||
//获取物料批次
|
//获取物料批次
|
||||||
getMaterialBatch() {
|
getMaterialBatch() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
@ -158,6 +189,7 @@ export default {
|
||||||
that.form.count = item.count;
|
that.form.count = item.count;
|
||||||
that.form.batch = item.batch;
|
that.form.batch = item.batch;
|
||||||
that.form.material = item.material;
|
that.form.material = item.material;
|
||||||
|
that.form.mb = item.id;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue