This commit is contained in:
shilixia 2021-12-16 16:28:11 +08:00
parent cff7457b50
commit e129f7e306
33 changed files with 430 additions and 72 deletions

View File

@ -36,6 +36,12 @@ export function getContractList(query) {
params: query
})
}
export function getContract(id) {
return request({
url: `/sam/contract/${id}/`,
method: 'get'
})
}
export function createContract(data) {
return request({
url: '/sam/contract/',

View File

@ -276,13 +276,21 @@ export const asyncRoutes = [
path: 'customer',
name: 'customer',
component: () => import('@/views/sam/customer'),
meta: { title: '客户信息', icon: 'example', perms: ['index_manage'] }
meta: { title: '客户管理', icon: 'example', perms: ['index_manage'] }
},
{
path: 'contract',
name: 'contract',
component: () => import('@/views/sam/contract'),
meta: { title: '合同信息', icon: 'example', perms: ['index_manage'] }
meta: { title: '合同管理', icon: 'example', perms: ['index_manage'] }
}
,
{
path: 'contractdetail/:id',
name: 'contractdetail',
component: () => import('@/views/sam/contractdetail'),
meta: { title: '合同详情', perms: ['vendor_manage'] },
hidden: true
}
,
@ -290,9 +298,17 @@ export const asyncRoutes = [
path: 'order',
name: 'order',
component: () => import('@/views/sam/order'),
meta: { title: '订单信息', icon: 'example', perms: ['index_manage'] }
meta: { title: '订单管理', icon: 'example', perms: ['index_manage'] }
}
,
{
path: 'orderdetail/:id',
name: 'orderdetail',
component: () => import('@/views/sam/orderdetail'),
meta: { title: '订单详情', perms: ['vendor_manage'] },
hidden: true
},
{
path: 'sales',
name: 'sales',

View File

@ -29,7 +29,7 @@
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="equipmentList.results"
@ -38,7 +38,7 @@
stripe
highlight-current-row
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="设备编号">
@ -104,6 +104,7 @@
<el-link
v-if="checkPermission(['equipment_update'])"
type="primary"
@click="handleEdit(scope)"
>编辑</el-link
>

View File

@ -29,7 +29,7 @@
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="equipmentList.results"
@ -38,7 +38,7 @@
stripe
highlight-current-row
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="设备名称" width="120" show-overflow-tooltip>
@ -113,6 +113,7 @@
<el-link
v-if="checkPermission(['equipment_update'])"
type="primary"
@click="handleEdit(scope)"
>编辑</el-link
>

View File

@ -29,7 +29,7 @@
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="equipmentrecordList.results"
@ -37,7 +37,8 @@
fit
stripe
highlight-current-row
max-height="600"
height="100"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
@ -72,6 +73,7 @@
<el-link
v-if="checkPermission(['equipment_update'])"
type="primary"
@click="handleEdit(scope)"
>编辑</el-link
>

View File

@ -28,7 +28,7 @@
>
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
@ -37,9 +37,9 @@
fit
stripe
highlight-current-row
max-height="700"
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="出入记录ID">
@ -70,11 +70,13 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['warehouse_update'])"
type="primary"
@click="handleDetail(scope)"
>查看</el-link
>
<el-link
v-if="scope.row.is_audited == false"
type="primary"
@click="handleAudit(scope)"
>审核</el-link
>

View File

@ -52,6 +52,7 @@
<template slot-scope="scope">
<el-link
v-if="scope.row.is_tested == false"
type="primary"
@click="handleMaterial(scope)"
>检查</el-link
>

View File

@ -25,7 +25,7 @@
>
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
@ -34,7 +34,8 @@
fit
stripe
highlight-current-row
max-height="600"
height="100"
v-el-height-adaptive-table="{bottomOffset: 42}"
>

View File

@ -25,7 +25,7 @@
>
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="InventoryList.results"
@ -33,9 +33,9 @@
fit
stripe
highlight-current-row
max-height="700"
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="物料批次">

View File

@ -1,7 +1,7 @@
<template>
<div class="app-container">
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="iproductData.results"
@ -9,9 +9,9 @@
fit
stripe
highlight-current-row
max-height="700"
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="成品编号">

View File

@ -29,7 +29,7 @@
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="warehouseList.results"
@ -37,9 +37,9 @@
fit
stripe
highlight-current-row
max-height="700"
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="仓库名称">
@ -60,11 +60,13 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['warehouse_update'])"
type="primary"
@click="handleMaterial(scope)"
>查看物料</el-link
>
<el-link
v-if="checkPermission(['warehouse_update'])"
type="primary"
@click="handleEdit(scope)"
>编辑</el-link
>

View File

@ -1,7 +1,7 @@
<template>
<div class="app-container">
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="iproductData.results"
@ -9,9 +9,9 @@
fit
stripe
highlight-current-row
max-height="700"
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="半成品编号">

View File

@ -49,7 +49,7 @@
highlight-current-row
max-height="620"
height="100"
v-el-height-adaptive-table="{bottomOffset: 10}"
v-el-height-adaptive-table="{bottomOffset: 40}"
>
<el-table-column type="index" width="50" />
<el-table-column label="物料编号">
@ -89,17 +89,20 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handlebind(scope)"
>检查表</el-link
>
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handleEdit(scope)"
>编辑</el-link
>
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handledetail(scope)"
>详情</el-link
>
@ -391,3 +394,4 @@ export default {
},
};
</script>

View File

@ -228,3 +228,4 @@ getMaterial(){
},
};
</script>

View File

@ -311,6 +311,7 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handlefieldEdit(scope)"
>编辑
</el-link

View File

@ -55,6 +55,7 @@
>
<el-link
v-if="checkPermission(['process_update'])"
type="primary"
@click="handleEdit(scope)"
>编辑</el-link
>

View File

@ -41,7 +41,17 @@
</el-card>
<el-card >
<el-descriptions class="margin-top" title="产品信息" :column="3" border>
<el-descriptions class="margin-top" title="产品信息" :column="1" border>
<el-descriptions-item>
<template slot="label">
产品编号
</template>
{{products.number}}
</el-descriptions-item>
<el-descriptions-item>
@ -51,14 +61,6 @@
</template>
{{products.name}}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">
产品编号
</template>
{{products.number}}
</el-descriptions-item>
</el-descriptions>
</el-card>
@ -115,6 +117,7 @@
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handlesubproducationEdit(scope)"
>编辑</el-link
>
@ -213,6 +216,7 @@
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handleinputEdit(scope)"
>编辑</el-link
>
@ -314,6 +318,7 @@
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handleoutputEdit(scope)"
>编辑</el-link
>
@ -411,6 +416,7 @@
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handleotherEdit(scope)"
>编辑</el-link
>
@ -498,6 +504,7 @@
<el-link
type="primary"
@click="handlesearch(scope)"
>查看</el-link
>
<el-link
@ -576,6 +583,7 @@
<el-link
v-if="checkPermission(['process_update'])"
type="primary"
@click="handletechdocEdit(scope)"
>编辑</el-link
>

View File

@ -47,6 +47,7 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['step_update'])"
type="primary"
@click="handleEditStep(scope)"
>编辑</el-link
>
@ -160,10 +161,12 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handleLook(scope)"
>查看</el-link>
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handleEdit(scope)"
>编辑</el-link>
<el-link
@ -332,6 +335,7 @@
<el-link
v-if="checkPermission(['material_update'])"
type="primary"
@click="handlefieldEdit(scope)"
>编辑</el-link
>

View File

@ -254,6 +254,7 @@ export default {
},
methods: {
checkPermission,
//订单列表
getorderList() {
this.listLoading = true;
@ -346,3 +347,14 @@ export default {
};
</script>
<style>
.el-table .warning-row {
background: oldlace;
}
.el-table .success-row {
background: #f0f9eb;
}
</style>

View File

@ -17,7 +17,7 @@
stripe
highlight-current-row
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 40}"
>
<el-table-column
type="selection"
@ -93,7 +93,7 @@
fit
stripe
style="width: 100%"
height="320"
height="310"
>
<el-table-column type="index" width="50" />
@ -134,7 +134,7 @@
fit
stripe
style="width: 100%"
height="300"
height="320"
>
<el-table-column type="index" width="50" />

View File

@ -17,7 +17,9 @@
>
<el-table-column type="index" width="50" />
<el-table-column label="子计划编号">
<template slot-scope="scope">{{scope.row.id}}</template>
</el-table-column>
<el-table-column label="产品名称">
<template slot-scope="scope">{{ scope.row.product_.name }}</template>
</el-table-column>

View File

@ -1,7 +1,7 @@
<template>
<div class="app-container">
<el-card style="margin-top: 2px">
<el-card>
<el-table
v-loading="listLoading"
:data="iproductData.results"
@ -11,7 +11,7 @@
highlight-current-row
max-height="700"
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="成品编号">

View File

@ -29,7 +29,7 @@
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="contractList.results"
@ -38,27 +38,27 @@
stripe
highlight-current-row
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="合同名称" width="130" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.name }}</template>
</el-table-column>
<el-table-column label="合同编号" width="130">
<el-table-column label="合同编号" >
<template slot-scope="scope">{{ scope.row.number }}</template>
</el-table-column>
<el-table-column label="合同金额(元)" width="130">
<el-table-column label="合同金额(元)">
<template slot-scope="scope">{{ scope.row.amount }}</template>
</el-table-column>
<el-table-column label="开票金额(元)" width="130">
<el-table-column label="开票金额(元)" >
<template slot-scope="scope">{{ scope.row.invoice }}</template>
</el-table-column>
<el-table-column label="客户名称" width="130" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.customer_.name }}</template>
</el-table-column>
<el-table-column label="签订日期" width="130">
<el-table-column label="签订日期" >
<template slot-scope="scope">{{ scope.row.sign_date }}</template>
</el-table-column>
<el-table-column label="描述" width="130" show-overflow-tooltip>
@ -76,6 +76,7 @@
<el-link
v-if="checkPermission(['warehouse_update'])"
type="primary"
@click="handleEdit(scope)"
>编辑</el-link
>
@ -85,6 +86,14 @@
@click="handleDelete(scope)"
>删除</el-link
>
<el-link
v-if="checkPermission(['warehouse_delete'])"
type="primary"
@click="handleDetail(scope)"
>详情</el-link
>
</template>
</el-table-column>
</el-table>
@ -279,6 +288,10 @@ export default {
}
});
},
//合同详情
handleDetail(scope){
this.$router.push({name: "contractdetail", params: { id: scope.row.id }, })
}
},
};
</script>

View File

@ -0,0 +1,129 @@
<template>
<div class="app-container">
<el-card style="margin-top: 2px">
<el-descriptions title="基本信息" direction="vertical" :column="8" border>
<el-descriptions-item label="合同名称"> {{contractdetail.name}}</el-descriptions-item>
<el-descriptions-item label="编号" > {{contractdetail.number}}</el-descriptions-item>
<el-descriptions-item label="金额" :span="2" > {{contractdetail.amount}}</el-descriptions-item>
<el-descriptions-item label="客户名称" v-if="contractdetail.customer"> {{contractdetail.customer_.name}} </el-descriptions-item>
</el-descriptions>
</el-card>
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>关联订单</span>
</div>
<el-table
v-loading="listLoading"
:data="OrderList"
border
fit
stripe
highlight-current-row
>
<el-table-column type="index" width="50" />
<el-table-column label="订单编号" width="160" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.number }}</template>
</el-table-column>
<el-table-column label="客户" width="200" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.customer_.name }}</template>
</el-table-column>
<el-table-column label="产品名称" width="200" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.product_.name }}</template>
</el-table-column>
<el-table-column label="产品型号" width="120" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.product_.specification }}</template>
</el-table-column>
<el-table-column label="产品数量" >
<template slot-scope="scope">{{ scope.row.count }}</template>
</el-table-column>
<el-table-column label="交货日期" >
<template slot-scope="scope">{{ scope.row.delivery_date }}</template>
</el-table-column>
<el-table-column label="已交货数量" >
<template slot-scope="scope">{{ scope.row.delivered_count }}</template>
</el-table-column>
<el-table-column label="创建时间" width="160" >
<template slot-scope="scope">{{ scope.row.create_time }}</template>
</el-table-column>
<el-table-column
align="center"
label="操作"
width="220px"
>
<template slot-scope="scope">
<el-link
v-if="checkPermission(['warehouse_delete'])"
type="primary"
@click="handleDetail(scope)"
>详情</el-link
>
</template>
</el-table-column>
</el-table>
</el-card>
</div>
</template>
<script>
import {getContract,getOrderList} from "@/api/sam";
import checkPermission from "@/utils/permission";
import { genTree } from "@/utils";
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
export default {
components: { Pagination },
data() {
return {
contractdetail:"",
OrderList:"",
};
},
computed: {},
watch: {},
created() {
this.id = this.$route.params.id;
this.getdetail();
this.getList();
},
methods: {
checkPermission,
getList() {
getOrderList({contract:this.id,page:0}).then((response) => {
if (response.data) {
this.OrderList = response.data;
}
})
},
//详情
getdetail() {
getContract(this.id).then((response) => {
if (response.data) {
this.contractdetail = response.data;
}
})
},
//订单详情
handleDetail(scope){
this.$router.push({name: "orderdetail", params: { id: scope.row.id }, })
}
},
};
</script>

View File

@ -29,7 +29,7 @@
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="customerList.results"
@ -38,7 +38,7 @@
stripe
highlight-current-row
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="客户名称" width="200" show-overflow-tooltip>
@ -70,6 +70,7 @@
<el-link
v-if="checkPermission(['warehouse_update'])"
@click="handleEdit(scope)"
type="primary"
>编辑</el-link
>
<el-link

View File

@ -29,7 +29,7 @@
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="orderList.results"
@ -38,7 +38,7 @@
stripe
highlight-current-row
height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
@ -79,8 +79,9 @@
<template slot-scope="scope">
<el-link
v-if="scope.row.planed_count==0&&checkPermission(['warehouse_update'])"
v-if="checkPermission(['warehouse_update'])"
@click="handleEdit(scope)"
type="primary"
>编辑</el-link
>
<el-link
@ -89,6 +90,12 @@
@click="handleDelete(scope)"
>删除</el-link
>
<el-link
v-if="checkPermission(['warehouse_delete'])"
type="primary"
@click="handleDetail(scope)"
>详情</el-link
>
</template>
</el-table-column>
</el-table>
@ -128,7 +135,7 @@
</el-form-item>
<el-form-item label="所需数量" prop="count" >
<el-input type="number" v-model="order.count"></el-input>
<el-input-number type="number" v-model="order.count" :min="0"></el-input-number>
</el-form-item>
<el-form-item label="交货日期" prop="delivery_date">
<el-date-picker
@ -322,6 +329,10 @@ export default {
}
});
},
//订单详情
handleDetail(scope){
this.$router.push({name: "orderdetail", params: { id: scope.row.id }, })
}
},
};
</script>

View File

@ -0,0 +1,127 @@
<template>
<div class="app-container">
<el-card style="margin-top: 2px">
<el-descriptions title="基本信息" :column="4" border>
<el-descriptions-item label="订单编号"> {{orderdetail.number}}</el-descriptions-item>
<el-descriptions-item label="产品名称" > {{orderdetail.product_.name}}</el-descriptions-item>
<el-descriptions-item label="产品型号" > {{orderdetail.product_.specification}}</el-descriptions-item>
<el-descriptions-item label="产品数量" > {{orderdetail.count}} </el-descriptions-item>
<el-descriptions-item label="已交货数量" > {{orderdetail.delivered_count}}</el-descriptions-item>
<el-descriptions-item label="已排产数量"> {{orderdetail.planed_count}}</el-descriptions-item>
<el-descriptions-item label="交货日期" > {{orderdetail.delivery_date}}</el-descriptions-item>
</el-descriptions>
</el-card>
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>关联生产任务</span>
</div>
<el-table
:data="productionplan"
border
fit
stripe
style="width: 100%"
height="300"
>
<el-table-column type="index" width="50" />
<el-table-column label="任务编号">
<template slot-scope="scope">{{ scope.row.number }}</template>
</el-table-column>
<el-table-column label="合同编号" >
<template slot-scope="scope">{{ scope.row.order_.contract_.number }}</template>
</el-table-column>
<el-table-column label="产品名称" width="150" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.product_.name }}</template>
</el-table-column>
<el-table-column label="产品型号" >
<template slot-scope="scope">{{ scope.row.product_.specification }}</template>
</el-table-column>
<el-table-column label="产品单位">
<template slot-scope="scope">{{ scope.row.product_.unit }}</template>
</el-table-column>
<el-table-column label="生产数量" >
<template slot-scope="scope">{{ scope.row.count }}</template>
</el-table-column>
<el-table-column label="计划开工时间" >
<template slot-scope="scope">{{ scope.row.start_date }}</template>
</el-table-column>
<el-table-column label="计划完工时间" >
<template slot-scope="scope">{{ scope.row.end_date }}</template>
</el-table-column>
<el-table-column label="是否生成子计划">
<template slot-scope="scope" >
<el-tag v-if="scope.row.is_planed==false"></el-tag>
<el-tag v-if="scope.row.is_planed==true"></el-tag>
</template>
</el-table-column>
<el-table-column label="创建时间" width="160">
<template slot-scope="scope">{{ scope.row.create_time }}</template>
</el-table-column>
</el-table>
</el-card>
</div>
</template>
<script>
import {getOrder} from "@/api/sam";
import {getProductionplanList} from "@/api/pm";
import checkPermission from "@/utils/permission";
import { genTree } from "@/utils";
import Pagination from "@/components/Pagination"; // secondary package based on el-pagination
export default {
components: { Pagination },
data() {
return {
productionplan:"",
orderdetail:"",
};
},
computed: {},
watch: {},
created() {
this.id = this.$route.params.id;
this.getdetail();
this.getList();
},
methods: {
checkPermission,
getList() {
getProductionplanList({order:this.id,page:0}).then((response) => {
if (response.data) {
this.productionplan = response.data;
}
})
},
//详情
getdetail() {
getOrder(this.id).then((response) => {
if (response.data) {
this.orderdetail = response.data;
}
})
},
},
};
</script>

View File

@ -29,7 +29,7 @@
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="contractList.results"
@ -37,7 +37,8 @@
fit
stripe
highlight-current-row
max-height="600"
height="100"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="合同名称">
@ -75,6 +76,7 @@
<el-link
v-if="checkPermission(['warehouse_update'])"
type="primary"
@click="handleEdit(scope)"
>编辑</el-link
>

View File

@ -29,7 +29,7 @@
</div>
</el-card>
<el-card style="margin-top: 2px">
<el-card >
<el-table
v-loading="listLoading"
:data="saleList.results"
@ -37,7 +37,8 @@
fit
stripe
highlight-current-row
height="100"
v-el-height-adaptive-table="{bottomOffset: 42}"
>
<el-table-column type="index" width="50" />
<el-table-column label="产品名称" show-overflow-tooltip>
@ -66,14 +67,14 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['warehouse_delete'])"
type="primary"
@click="handleDetail(scope)"
>详情</el-link
>
<el-link
v-if="scope.row.is_audited==false"
type="primary"
@click="handleAudit(scope)"
>审核</el-link
>
@ -152,6 +153,7 @@
stripe
highlight-current-row
ref="multipleTable"
>
<el-table-column
type="selection"

View File

@ -10,7 +10,8 @@
fit
stripe
highlight-current-row
max-height="600"
max-height="700"
>
<el-table-column type="index" width="50"/>
<el-table-column label="半成品名称">

View File

@ -11,7 +11,7 @@
style="width: 100%"
max-height="670"
highlight-current-row
v-el-height-adaptive-table="{bottomOffset: 50}"
v-el-height-adaptive-table="{bottomOffset: 30}"
>
<el-table-column type="index" width="50" />
@ -70,11 +70,13 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['warehouse_update'])"
type="primary"
@click="handleoperation(scope)"
>前往操作</el-link>
<el-link
v-if="checkPermission(['warehouse_update'])"
type="danger"
@click="handleDelete(scope)"
>删除</el-link>

View File

@ -97,6 +97,7 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['warehouse_update'])"
type="danger"
@click="handleDeletewproduct(scope)"
>删除</el-link
>
@ -129,6 +130,7 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['warehouse_update'])"
type="danger"
@click="handleDeletequip(scope)"
>删除</el-link
>
@ -165,6 +167,7 @@
<template slot-scope="scope">
<el-link
v-if="checkPermission(['warehouse_update'])"
type="primary"
@click="handlerecord(scope)"
>填写表单</el-link
>

View File

@ -18,7 +18,9 @@
@current-change="handleCurrentChange"
>
<el-table-column type="index" width="50" />
<el-table-column label="子计划编号">
<template slot-scope="scope">{{scope.row.id}}</template>
</el-table-column>
<el-table-column label="任务编号">
<template slot-scope="scope">{{
scope.row.number