Merge branch 'develop' of https://e.coding.net/ctcdevteam/hberp/hberp into develop
This commit is contained in:
commit
16aa96e305
|
@ -83,7 +83,8 @@
|
||||||
<el-link
|
<el-link
|
||||||
v-if="checkPermission(['warehouse_update'])"
|
v-if="checkPermission(['warehouse_update'])"
|
||||||
@click="handleInspection(scope)"
|
@click="handleInspection(scope)"
|
||||||
>检验</el-link
|
>检验
|
||||||
|
</el-link
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -100,7 +101,8 @@
|
||||||
<el-tab-pane label="已合格半成品">
|
<el-tab-pane label="已合格半成品">
|
||||||
<el-card style="margin-top: 2px">
|
<el-card style="margin-top: 2px">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||||
>批量入库</el-button
|
>批量入库
|
||||||
|
</el-button
|
||||||
>
|
>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
|
@ -158,14 +160,12 @@
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|
||||||
<el-dialog title="物料检查表" :close-on-click-modal="false" :visible.sync="outerVisible">
|
<el-dialog title="物料检查表" :close-on-click-modal="false" :visible.sync="outerVisible">
|
||||||
<el-select style="width: 100%" v-model="recordform" placeholder="请选择">
|
<el-select style="width: 100%" v-model="recordform" placeholder="请选择" @change="recordformChange">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in recordformList"
|
v-for="item in recordformList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
@change="recordformChange(item)"
|
|
||||||
@select="recordformChange(item)"
|
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -281,6 +281,8 @@ export default {
|
||||||
page: 1,
|
page: 1,
|
||||||
page_size: 20,
|
page_size: 20,
|
||||||
},
|
},
|
||||||
|
formLabelWidth:'',
|
||||||
|
formLabelWidthL:'',
|
||||||
actstate_: {
|
actstate_: {
|
||||||
6: "待复检",
|
6: "待复检",
|
||||||
10: "生产中",
|
10: "生产中",
|
||||||
|
@ -312,12 +314,15 @@ export default {
|
||||||
page: 0,
|
page: 0,
|
||||||
},
|
},
|
||||||
mutipID: [],
|
mutipID: [],
|
||||||
|
wproduct:null,
|
||||||
|
hasPicture: false,
|
||||||
outerVisible: false,
|
outerVisible: false,
|
||||||
innerVisible: false,
|
innerVisible: false,
|
||||||
dialogFormVisible: false,
|
dialogFormVisible: false,
|
||||||
dialogFormVisibles: false,
|
dialogFormVisibles: false,
|
||||||
testrecord: {},
|
testrecord: {},
|
||||||
WarehouseData: "",
|
WarehouseData: "",
|
||||||
|
formName:'项目检查表',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
|
@ -326,7 +331,7 @@ export default {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getList2();
|
this.getList2();
|
||||||
this.getList1();
|
this.getList1();
|
||||||
this.getLists();
|
// this.getLists();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkPermission,
|
checkPermission,
|
||||||
|
@ -382,7 +387,11 @@ export default {
|
||||||
});
|
});
|
||||||
console.log(_this.mutipID);
|
console.log(_this.mutipID);
|
||||||
|
|
||||||
createputins({warehouse: this.form.warehouse, wproducts: _this.mutipID, remark: this.form.remark}).then((res) => {
|
createputins({
|
||||||
|
warehouse: this.form.warehouse,
|
||||||
|
wproducts: _this.mutipID,
|
||||||
|
remark: this.form.remark
|
||||||
|
}).then((res) => {
|
||||||
if (res.code >= 200) {
|
if (res.code >= 200) {
|
||||||
this.$message.success("批量入库成功!");
|
this.$message.success("批量入库成功!");
|
||||||
this.dialogFormVisibles = false;
|
this.dialogFormVisibles = false;
|
||||||
|
@ -392,12 +401,10 @@ export default {
|
||||||
},
|
},
|
||||||
//仓库列表
|
//仓库列表
|
||||||
getWarehouseLists() {
|
getWarehouseLists() {
|
||||||
|
|
||||||
getWarehouseList({page: 0}).then((response) => {
|
getWarehouseList({page: 0}).then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
this.WarehouseData = response.data;
|
this.WarehouseData = response.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleInspection(scope) {
|
handleInspection(scope) {
|
||||||
|
@ -414,6 +421,13 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
recordformChange(){
|
||||||
|
let that = this;
|
||||||
|
let arr = this.recordformList.filter(item=>{
|
||||||
|
return item.id=that.recordform;
|
||||||
|
})
|
||||||
|
that.formName = arr[0].name;
|
||||||
|
},
|
||||||
//根据选择的表,渲染检查项目
|
//根据选择的表,渲染检查项目
|
||||||
submitrecordform() {
|
submitrecordform() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
Loading…
Reference in New Issue