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
|
||||
v-if="checkPermission(['warehouse_update'])"
|
||||
@click="handleInspection(scope)"
|
||||
>检验</el-link
|
||||
>检验
|
||||
</el-link
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
@ -100,7 +101,8 @@
|
|||
<el-tab-pane label="已合格半成品">
|
||||
<el-card style="margin-top: 2px">
|
||||
<el-button type="primary" icon="el-icon-plus" @click="handleCreate"
|
||||
>批量入库</el-button
|
||||
>批量入库
|
||||
</el-button
|
||||
>
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
|
@ -158,14 +160,12 @@
|
|||
</el-tabs>
|
||||
|
||||
<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
|
||||
v-for="item in recordformList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"
|
||||
@change="recordformChange(item)"
|
||||
@select="recordformChange(item)"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
|
@ -281,6 +281,8 @@ export default {
|
|||
page: 1,
|
||||
page_size: 20,
|
||||
},
|
||||
formLabelWidth:'',
|
||||
formLabelWidthL:'',
|
||||
actstate_: {
|
||||
6: "待复检",
|
||||
10: "生产中",
|
||||
|
@ -312,12 +314,15 @@ export default {
|
|||
page: 0,
|
||||
},
|
||||
mutipID: [],
|
||||
wproduct:null,
|
||||
hasPicture: false,
|
||||
outerVisible: false,
|
||||
innerVisible: false,
|
||||
dialogFormVisible: false,
|
||||
dialogFormVisibles: false,
|
||||
testrecord: {},
|
||||
WarehouseData: "",
|
||||
formName:'项目检查表',
|
||||
};
|
||||
},
|
||||
computed: {},
|
||||
|
@ -326,7 +331,7 @@ export default {
|
|||
this.getList();
|
||||
this.getList2();
|
||||
this.getList1();
|
||||
this.getLists();
|
||||
// this.getLists();
|
||||
},
|
||||
methods: {
|
||||
checkPermission,
|
||||
|
@ -382,7 +387,11 @@ export default {
|
|||
});
|
||||
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) {
|
||||
this.$message.success("批量入库成功!");
|
||||
this.dialogFormVisibles = false;
|
||||
|
@ -392,12 +401,10 @@ export default {
|
|||
},
|
||||
//仓库列表
|
||||
getWarehouseLists() {
|
||||
|
||||
getWarehouseList({page: 0}).then((response) => {
|
||||
if (response.data) {
|
||||
this.WarehouseData = response.data;
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
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() {
|
||||
let that = this;
|
||||
|
|
Loading…
Reference in New Issue