This commit is contained in:
shilixia 2022-02-14 10:58:41 +08:00
parent 089a311768
commit fc558c042c
12 changed files with 131 additions and 143 deletions

View File

@ -32,7 +32,7 @@
<el-table <el-table
v-loading="listLoading" v-loading="listLoading"
:data="equipmentList.results" :data="equipmentList.results"
:cell-style="tableRowClassName"
border border
fit fit
stripe stripe
@ -325,6 +325,7 @@ import Pagination from "@/components/Pagination"; // secondary package based on
const defaultequipment = { const defaultequipment = {
name: "", name: "",
number: "", number: "",
type:null,
}; };
export default { export default {
components: { Pagination }, components: { Pagination },
@ -399,6 +400,7 @@ export default {
listQuery: { listQuery: {
page: 1, page: 1,
page_size: 20, page_size: 20,
type:null,
}, },
keeperOptions: [], keeperOptions: [],
depOptions: [], depOptions: [],
@ -408,7 +410,7 @@ export default {
rule1: { rule1: {
name: [{ required: true, message: "请输入", trigger: "blur" }], name: [{ required: true, message: "请输入", trigger: "blur" }],
number: [{ required: true, message: "请输入", trigger: "blur" }], number: [{ required: true, message: "请输入", trigger: "blur" }],
type: [{ required: true, message: "请输入", trigger: "blur" }],
model: [{ required: true, message: "请输入", trigger: "blur" }], model: [{ required: true, message: "请输入", trigger: "blur" }],
state: [{ required: true, message: "请选择", trigger: "blur" }], state: [{ required: true, message: "请选择", trigger: "blur" }],

View File

@ -2,10 +2,10 @@
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<div> <div>
<el-button type="primary" icon="el-icon-plus" @click="handlecgCreate" <el-button type="primary" icon="el-icon-plus" @click="handlecgCreate"
>新增采购入库</el-button >新增采购入库</el-button
> >
<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-input <el-input
@ -31,8 +31,7 @@
> >
</div> </div>
</el-card> </el-card>
<el-card > <el-card>
<el-table <el-table
v-loading="listLoading" v-loading="listLoading"
:data="fifoList.results" :data="fifoList.results"
@ -40,17 +39,13 @@
fit fit
stripe stripe
highlight-current-row highlight-current-row
height="100"
height="100" v-el-height-adaptive-table="{ bottomOffset: 42 }"
v-el-height-adaptive-table="{bottomOffset: 42}"
> >
<el-table-column type="index" width="50" /> <el-table-column type="index" width="50" />
<el-table-column label="记录编号"> <el-table-column label="记录编号">
<template slot-scope="scope">{{ <template slot-scope="scope">{{ scope.row.number }}</template>
scope.row.number
}}</template>
</el-table-column> </el-table-column>
<el-table-column label="操作人员"> <el-table-column label="操作人员">
<template slot-scope="scope" v-if="scope.row.create_by">{{ <template slot-scope="scope" v-if="scope.row.create_by">{{
@ -69,20 +64,20 @@
<el-tag v-else>已审核</el-tag> <el-tag v-else>已审核</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间"> <el-table-column label="创建时间">
<template slot-scope="scope">{{ scope.row.create_time }}</template> <template slot-scope="scope">{{ scope.row.create_time }}</template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="操作" width="220px"> <el-table-column align="center" label="操作" width="220px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link <el-link
v-if="checkPermission(['warehouse_update'])" v-if="checkPermission(['warehouse_update'])"
type="primary" type="primary"
@click="handleDetail(scope)" @click="handleDetail(scope)"
>查看</el-link >查看</el-link
> >
<el-link <el-link
v-if="scope.row.is_audited == false" v-if="scope.row.is_audited == false"
type="primary" type="primary"
@click="handleAudit(scope)" @click="handleAudit(scope)"
>审核</el-link >审核</el-link
> >
@ -103,10 +98,9 @@
@pagination="getList" @pagination="getList"
/> />
</el-card> </el-card>
<el-dialog <el-dialog
:visible.sync="dialogVisibles" :visible.sync="dialogVisibles"
:close-on-click-modal="false" :close-on-click-modal="false"
title="新增采购入库" title="新增采购入库"
> >
<el-form <el-form
@ -116,27 +110,25 @@
label-position="right" label-position="right"
:rules="rule1" :rules="rule1"
> >
<el-form-item <el-form-item label="采购订单" >
<el-select v-model="inpur.pu_order">
label="采购订单" <el-option
:prop="pu_order" v-for="item in puorderoptions"
> :key="item.id"
<el-select v-model="inpur.pu_order" size="small"> :value="item.id"
<el-option :label="item.number"
v-for="item in puorderoptions" >
:key="item.id" </el-option>
:value="item.id" </el-select>
:label="item.number" </el-form-item>
>
</el-option>
</el-select>
</el-form-item>
</el-form> </el-form>
<div style="text-align: right"> <div style="text-align: right">
<el-button type="danger" @click="dialogVisibles = false">取消</el-button> <el-button type="danger" @click="dialogVisibles = false"
<el-button type="primary" @click="confirminpur('Form1')">确认</el-button> >取消</el-button
>
<el-button type="primary" @click="confirminpur('Form1')"
>确认</el-button
>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
@ -152,25 +144,20 @@
label-position="right" label-position="right"
:rules="rule1" :rules="rule1"
> >
<el-form-item <el-form-item class="warehouse" label="供应商" >
class="warehouse"
label="供应商"
:prop="vendor"
>
<el-select v-model="inventory.vendor" size="small"> <el-select v-model="inventory.vendor" size="small">
<el-option <el-option
v-for="item in vendoroptions" v-for="item in vendoroptions"
:key="item.id" :key="item.id"
:value="item.id" :value="item.id"
:label="item.name" :label="item.name"
> >
</el-option> </el-option>
</el-select> </el-select>
</el-form-item>
</el-form-item>
<div v-for="(item, index) in inventory.details" :key="index"> <div v-for="(item, index) in inventory.details" :key="index">
<el-row> <el-row>
<el-col :span="5" style="margin-right: 10px"> <el-col :span="5" style="margin-right: 10px">
<el-form-item <el-form-item
class="warehouse" class="warehouse"
label="仓库:" label="仓库:"
@ -187,7 +174,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5" style="margin-right: 10px"> <el-col :span="5" style="margin-right: 10px">
<el-form-item <el-form-item
class="material" class="material"
@ -293,10 +280,7 @@ import {
deleteFifo, deleteFifo,
audit, audit,
} from "@/api/inm"; } from "@/api/inm";
import { import { getPuorderList } from "@/api/pum";
getPuorderList,
} from "@/api/pum";
import checkPermission from "@/utils/permission"; import checkPermission from "@/utils/permission";
import { getpVendorList } from "@/api/vendor"; import { getpVendorList } from "@/api/vendor";
import { getMaterialList } from "@/api/mtm"; import { getMaterialList } from "@/api/mtm";
@ -304,10 +288,10 @@ import { getUserList } from "@/api/user";
import { genTree } from "@/utils"; import { genTree } from "@/utils";
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
const defaulteinventory = { const defaulteinventory = {
vendor:null, vendor: null,
details: [ details: [
{ {
warehouse:"",//仓库 warehouse: "", //仓库
material: "", // 物料 material: "", // 物料
count: "", //数量 count: "", //数量
batch: "", //批次 batch: "", //批次
@ -329,19 +313,19 @@ export default {
4: "生产入库", 4: "生产入库",
5: "其他入库", 5: "其他入库",
}, },
inpur:{pu_order:null}, inpur: [],
listQuery: { listQuery: {
page: 1, page: 1,
page_size: 20, page_size: 20,
}, },
puorderoptions:[], puorderoptions: [],
warehouseData: [], warehouseData: [],
materialoptions: [], materialoptions: [],
vendoroptions:[], vendoroptions: [],
listLoading: true, listLoading: true,
dialogVisible: false, dialogVisible: false,
dialogType: "new", dialogType: "new",
dialogVisibles: false, dialogVisibles: false,
rule1: { rule1: {
name: [{ required: true, message: "请输入", trigger: "blur" }], name: [{ required: true, message: "请输入", trigger: "blur" }],
}, },
@ -371,32 +355,31 @@ export default {
}, },
//出入库详情 //出入库详情
handleDetail(scope) { handleDetail(scope) {
this.$router.push({ name: "fifodetail", params: { id: scope.row.id,pu_order:scope.row.pu_order, } }); this.$router.push({
name: "fifodetail",
params: { id: scope.row.id, pu_order: scope.row.pu_order },
});
}, },
//供应商列表 //供应商列表
getListgys() { getListgys() {
getpVendorList({ page: 0 }).then((response) => {
getpVendorList({page:0}).then((response) => {
if (response.data) { if (response.data) {
this.vendoroptions = response.data; this.vendoroptions = response.data;
} }
}); });
}, },
//采购订单 //采购订单
getpuorderList() { getpuorderList() {
getPuorderList({ page: 0 }).then((response) => {
getPuorderList({page:0}).then((response) => {
if (response.data) { if (response.data) {
this.puorderoptions = response.data; this.puorderoptions = response.data;
} }
}); });
}, },
//采购入库提交 //采购入库提交
confirminpur(){ confirminpur() {
createInventory(this.inpur).then((res) => { createInventory(this.inpur).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
this.getList(); this.getList();
this.dialogVisibles = false; this.dialogVisibles = false;
@ -404,7 +387,7 @@ export default {
} }
}); });
}, },
//仓库 //仓库
getlists() { getlists() {
getWarehouseList({ page: 0 }).then((response) => { getWarehouseList({ page: 0 }).then((response) => {
if (response.data) { if (response.data) {
@ -413,13 +396,13 @@ export default {
this.listLoading = false; this.listLoading = false;
}); });
}, },
handlecgCreate(){ handlecgCreate() {
this.dialogVisibles=true; this.dialogVisibles = true;
}, },
addConditions() { addConditions() {
if (this.inventory.details.length <= 10) { if (this.inventory.details.length <= 10) {
this.inventory.details.push({ this.inventory.details.push({
warehouse:"",//仓库 warehouse: "", //仓库
material: "", // 物料 material: "", // 物料
count: "", //数量 count: "", //数量
batch: "", // 批次 batch: "", // 批次
@ -444,7 +427,7 @@ export default {
handleCreate() { handleCreate() {
this.inventory.details = [ this.inventory.details = [
{ {
warehouse:"", // 仓库 warehouse: "", // 仓库
material: "", // 物料 material: "", // 物料
count: "", //数量 count: "", //数量
batch: "", //批次 batch: "", //批次
@ -462,7 +445,7 @@ export default {
this.$confirm("是否通过?", "提示", { this.$confirm("是否通过?", "提示", {
confirmButtonText: "确认", confirmButtonText: "确认",
cancelButtonText: "取消", cancelButtonText: "取消",
type: 'success', type: "success",
}) })
.then(async () => { .then(async () => {
await audit(scope.row.id); await audit(scope.row.id);
@ -496,7 +479,7 @@ export default {
} }
}); });
}, },
handleDelete(scope) { handleDelete(scope) {
this.$confirm("确认删除?", "警告", { this.$confirm("确认删除?", "警告", {
confirmButtonText: "确认", confirmButtonText: "确认",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -511,7 +494,6 @@ export default {
console.error(err); console.error(err);
}); });
}, },
}, },
}; };
</script> </script>

View File

@ -36,9 +36,9 @@
<el-table-column label="订单"> <el-table-column label="订单">
<template slot-scope="scope"> <template slot-scope="scope">
<el-span v-if="scope.row.to_order_">{{ <span v-if="scope.row.to_order_">{{
scope.row.to_order_.number scope.row.to_order_.number
}}</el-span> }}</span>
<el-tag <el-tag
v-else-if=" v-else-if="
scope.row.to_order_ == null && scope.row.need_to_order == true scope.row.to_order_ == null && scope.row.need_to_order == true
@ -46,35 +46,35 @@
> >
需要确定订单 需要确定订单
</el-tag> </el-tag>
<el-span v-else></el-span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合同"> <el-table-column label="合同">
<template slot-scope="scope"> <template slot-scope="scope">
<el-span v-if="scope.row.to_order_">{{ <span v-if="scope.row.to_order_">{{
scope.row.to_order_.contract_.name scope.row.to_order_.contract_.name
}}</el-span> }}</span>
<el-span <span
v-else-if=" v-else-if="
scope.row.to_order_ == null && scope.row.need_to_order == true scope.row.to_order_ == null && scope.row.need_to_order == true
" "
> >
</el-span> </span>
<el-span v-else></el-span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="客户"> <el-table-column label="客户">
<template slot-scope="scope"> <template slot-scope="scope">
<el-span v-if="scope.row.to_order_">{{ <span v-if="scope.row.to_order_">{{
scope.row.to_order_.customer_.name scope.row.to_order_.customer_.name
}}</el-span> }}</span>
<el-span <span
v-else-if=" v-else-if="
scope.row.to_order_ == null && scope.row.need_to_order == true scope.row.to_order_ == null && scope.row.need_to_order == true
" "
> >
</el-span> </span>
<el-span v-else></el-span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
@ -82,7 +82,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.is_mtestok == false">不合格</el-tag> <el-tag v-if="scope.row.is_mtestok == false">不合格</el-tag>
<el-tag v-else-if="scope.row.is_mtestok == true">合格</el-tag> <el-tag v-else-if="scope.row.is_mtestok == true">合格</el-tag>
<el-span v-else></el-span <span v-else></span
></template> ></template>
</el-table-column> </el-table-column>
<!-- <el-table-column align="center" label="操作" width="220px"> <!-- <el-table-column align="center" label="操作" width="220px">

View File

@ -19,7 +19,7 @@
<el-tab-pane label="批次" name="3"> <el-tab-pane label="批次" name="3">
<el-table <el-table
v-loading="listLoading"
:data="InventoryList" :data="InventoryList"
border border
fit fit
@ -63,7 +63,7 @@
<el-tab-pane label="关联的订单" name="1"> <el-tab-pane label="关联的订单" name="1">
<el-table <el-table
v-loading="listLoading"
:data="orderlist" :data="orderlist"
border border
fit fit
@ -212,10 +212,10 @@
data() { data() {
return { return {
materialdetail:"", materialdetail:"",
orderlist:"", orderlist:[],
wproductList:"", wproductList:[],
productionplanList:"", productionplanList:[],
InventoryList:"", InventoryList:[],
activeName:'3', activeName:'3',
actstate_: { actstate_: {
6: "待复检", 6: "待复检",

View File

@ -653,8 +653,8 @@
data() { data() {
return { return {
materialoptions: [], materialoptions: [],
subproducationData: "", subproducationData: [],
inputtableData: "", inputtableData: [],
editorOption: {}, editorOption: {},
processOptions: [], processOptions: [],
is_main: false, is_main: false,
@ -662,11 +662,11 @@
techdoc: defaulttechdoc, techdoc: defaulttechdoc,
subproducation: defaultsubproducation, subproducation: defaultsubproducation,
inputmaterial: defaultinputmaterial, inputmaterial: defaultinputmaterial,
techdoctableData: "", techdoctableData: [],
outputtableData: "", outputtableData: [],
othertableData: "", othertableData: [],
outputmaterial: defaultoutputmaterial, outputmaterial: defaultoutputmaterial,
usedsteptableData: "", usedsteptableData: [],
usedstep: defaultusedstep, usedstep: defaultusedstep,
materialList: { materialList: {
count: 0, count: 0,

View File

@ -81,6 +81,10 @@
<el-table-column align="center" label="出勤天数"> <el-table-column align="center" label="出勤天数">
<template slot-scope="scope">{{ scope.row.count }}</template> <template slot-scope="scope">{{ scope.row.count }}</template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="应到天数">
<template slot-scope="scope">{{ scope.row.count_workday }}</template>
</el-table-column>
</el-table> </el-table>
@ -131,7 +135,7 @@ export default {
data() { data() {
return { return {
userList: { count: 0 }, userList: { count: 0 },
atworkList: "", atworkList: [],
value3:null, value3:null,
value2:null, value2:null,
listLoading: true, listLoading: true,

View File

@ -236,7 +236,7 @@ export default {
//不合格玻璃审理单查看 //不合格玻璃审理单查看
handledetailbhg(scope) handledetailbhg(scope)
{ {
console.log(scope.row.ticket);
this.$router.push({name:"ticketDetail",params:{ticketId:scope.row.ticket}}) this.$router.push({name:"ticketDetail",params:{ticketId:scope.row.ticket}})
} }

View File

@ -8,7 +8,7 @@
>申请 >申请
</el-button> </el-button>
<el-table <el-table
v-loading="listLoading"
:data="iproductData.results" :data="iproductData.results"
ref="multipleTable" ref="multipleTable"
border border
@ -50,7 +50,7 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="军检列表" name="second"> <el-tab-pane label="军检列表" name="second">
<el-table <el-table
v-loading="listLoading2"
:data="iproductData2.results" :data="iproductData2.results"
border border
fit fit
@ -78,9 +78,9 @@
<el-table-column label="订单"> <el-table-column label="订单">
<template slot-scope="scope"> <template slot-scope="scope">
<el-span v-if="scope.row.to_order_">{{ <span v-if="scope.row.to_order_">{{
scope.row.to_order_.number scope.row.to_order_.number
}}</el-span> }}</span>
<el-tag <el-tag
v-else-if=" v-else-if="
scope.row.to_order_ == null && scope.row.need_to_order == true scope.row.to_order_ == null && scope.row.need_to_order == true
@ -88,35 +88,35 @@
> >
需要确定订单 需要确定订单
</el-tag> </el-tag>
<el-span v-else></el-span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合同"> <el-table-column label="合同">
<template slot-scope="scope"> <template slot-scope="scope">
<el-span v-if="scope.row.to_order_">{{ <span v-if="scope.row.to_order_">{{
scope.row.to_order_.contract_.name scope.row.to_order_.contract_.name
}}</el-span> }}</span>
<el-span <span
v-else-if=" v-else-if="
scope.row.to_order_ == null && scope.row.need_to_order == true scope.row.to_order_ == null && scope.row.need_to_order == true
" "
> >
</el-span> </span>
<el-span v-else></el-span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="客户"> <el-table-column label="客户">
<template slot-scope="scope"> <template slot-scope="scope">
<el-span v-if="scope.row.to_order_">{{ <span v-if="scope.row.to_order_">{{
scope.row.to_order_.customer_.name scope.row.to_order_.customer_.name
}}</el-span> }}</span>
<el-span <span
v-else-if=" v-else-if="
scope.row.to_order_ == null && scope.row.need_to_order == true scope.row.to_order_ == null && scope.row.need_to_order == true
" "
> >
</el-span> </span>
<el-span v-else></el-span> <span v-else></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="军检"> <el-table-column label="军检">
@ -125,7 +125,7 @@
<el-tag v-if="scope.row.is_mtestok == false">不合格</el-tag> <el-tag v-if="scope.row.is_mtestok == false">不合格</el-tag>
<el-tag v-else-if="scope.row.is_mtestok == true">合格</el-tag> <el-tag v-else-if="scope.row.is_mtestok == true">合格</el-tag>
<el-span v-else></el-span></template> <span v-else></span></template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column

View File

@ -31,7 +31,7 @@
</el-card> </el-card>
<el-card > <el-card >
<el-table <el-table
v-loading="listLoading"
:data="saleList.results" :data="saleList.results"
border border
fit fit
@ -108,7 +108,7 @@
label-width="80px" label-width="80px"
label-position="right" label-position="right"
:rules="rule1"
> >
<el-form-item label="关联订单" prop="name"> <el-form-item label="关联订单" prop="name">
<el-select style="width: 100%" v-model="sale.order" @change="selectorder" placeholder="请选择"> <el-select style="width: 100%" v-model="sale.order" @change="selectorder" placeholder="请选择">
@ -146,7 +146,7 @@
<el-form-item label="选择产品" prop="iproducts"> <el-form-item label="选择产品" prop="iproducts">
<el-table <el-table
v-loading="listLoading"
:data="iproductoptions" :data="iproductoptions"
border border
fit fit

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card class="box-card"> <el-card class="box-card">
<el-tabs v-model="activeName" @tab-click="handleClick" type="border-card"> <el-tabs @tab-click="handleClick" type="border-card">
<el-tab-pane <el-tab-pane
:key="item.name" :key="item.name"
v-for="item in processOption" v-for="item in processOption"
@ -16,7 +16,7 @@
fit fit
stripe stripe
style="width: 100%" style="width: 100%"
max-height="670" height="100"
highlight-current-row highlight-current-row
v-el-height-adaptive-table="{bottomOffset: 30}" v-el-height-adaptive-table="{bottomOffset: 30}"
> >

View File

@ -806,7 +806,7 @@ filediv.innerHTML=' <div id="wordView" v-html='+this.wordText+' />';
{ {
this.pdf=tab.name; this.pdf=tab.name;
var filediv = document.getElementById('file'); var filediv = document.getElementById('file');
filediv.innerHTML=' <iframe width=420 height=330 frameborder=0 scrolling=auto src='+tab.name+'></iframe>'; filediv.innerHTML=' <frame width=800 height=900 frameborder=0 scrolling=auto src='+tab.name+'></frame>';
} }

View File

@ -248,7 +248,7 @@
:visible.sync="dialogFormVisiblebcp" :visible.sync="dialogFormVisiblebcp"
> >
<el-form :model="formbcp"> <el-form :model="formbcp">
<el-form-item label="甩片原因" :label-width="formLabelWidth"> <el-form-item label="甩片原因" >
<el-select <el-select
style="width: 80%" style="width: 80%"
v-model="formbcp.scrap_reason" v-model="formbcp.scrap_reason"
@ -751,12 +751,12 @@ export default {
subproductionplanList: { subproductionplanList: {
count: 0, count: 0,
}, },
wmaterialList: "", wmaterialList: [],
listQuery: { listQuery: {
page: 1, page: 1,
page_size: 20, page_size: 20,
}, },
iproductData: "", iproductData: [],
remark: "", remark: "",
values: 0, values: 0,
active: 0, active: 0,
@ -810,7 +810,7 @@ export default {
pickData: {}, pickData: {},
steps: [], steps: [],
step: null, step: null,
processOption: "", processOption: [],
subproduction_plan: "", subproduction_plan: "",
form1: [], form1: [],
form2: [], form2: [],
@ -823,7 +823,7 @@ export default {
field1: [], field1: [],
field2: [], field2: [],
fromData: [], fromData: [],
wproductData: "", wproductData: [],
wpID: [], wpID: [],
multipleSelection: [], multipleSelection: [],
wproducts: [], wproducts: [],
@ -832,8 +832,8 @@ export default {
Operation: {}, Operation: {},
wproductdata: {}, wproductdata: {},
workData: {}, workData: {},
bcplist: "", bcplist: [],
wproductslist: "", wproductslist: [],
formbcp: {}, formbcp: {},
dialogFormVisiblebcp: false, dialogFormVisiblebcp: false,
scrapreason: [ scrapreason: [