fix:4成品库的销售发货添加客户信息&销售管理的客户信息的联系人和联系方式选填

This commit is contained in:
shijing 2024-04-02 09:37:24 +08:00
parent a4c279e3db
commit d2b03eb2f3
2 changed files with 79 additions and 108 deletions

View File

@ -18,23 +18,8 @@
</div>
<div class="retangleWrap">
<div class="retangle countRetangle">
<div
style="
display: flex;
justify-content: space-between;
padding: 0 24px;
"
>
<div
style="
color: rgb(30, 30, 30);
font-size: 16px;
font-weight: 400;
line-height: 24px;
"
>
昨日核心指标
</div>
<div class="Retangle_container">
<div class="title">昨日核心指标</div>
<!-- <div style="color: rgb(122, 121, 121);size: 12px;font-weight: 290;line-height: 22px;">时间</div> -->
</div>
<div style="padding-top: 20px; display: flex">
@ -175,31 +160,9 @@
<el-col :span="14">
<div class="retangleWrap" style="padding-right: 0">
<div class="retangle bottomRetangle">
<div
style="
display: flex;
justify-content: space-between;
padding: 0 24px;
"
>
<div
style="
color: rgb(30, 30, 30);
font-size: 16px;
font-weight: 400;
line-height: 24px;
"
>
本月生产合格趋势
</div>
<div
style="
color: rgb(122, 121, 121);
size: 12px;
font-weight: 290;
line-height: 22px;
"
>
<div class="Retangle_container">
<div class="title">本月生产合格趋势</div>
<div class="radios_group">
<el-radio-group
v-model="deptName"
@change="deptNameChange"
@ -234,32 +197,9 @@
<el-col :span="10">
<div class="retangleWrap retangleWrapTable">
<div class="retangle tableRetangle">
<div
style="
display: flex;
justify-content: space-between;
padding: 0 24px;
"
>
<div
style="
color: rgb(30, 30, 30);
font-size: 16px;
font-weight: 400;
line-height: 24px;
"
>
库存情况
</div>
<div
style="
color: rgb(122, 121, 121);
size: 12px;
font-weight: 290;
line-height: 22px;
height: 23px;
"
>
<div class="Retangle_container">
<div class="title">库存情况</div>
<div class="radios_group">
<el-radio-group
v-model="materialType"
@change="materialTypeChange"
@ -306,7 +246,7 @@
</el-col>
</el-row>
<el-row style="margin-bottom: 20px">
<el-col :span="7">
<el-col :span="8">
<div class="retangleWrap" style="padding-right: 0">
<div class="retangle bottomRetangle warningContainer">
<div class="warningHead">
@ -354,29 +294,14 @@
</div>
</div>
</el-col>
<el-col :span="10">
<el-col :span="8">
<div
class="retangleWrap retangleWrapTable"
style="padding-right: 0"
>
<div class="retangle tableRetangle">
<div
style="
display: flex;
justify-content: space-between;
padding: 0 24px;
"
>
<div
style="
color: rgb(30, 30, 30);
font-size: 16px;
font-weight: 400;
line-height: 24px;
"
>
生产设备
</div>
<div class="Retangle_container">
<div class="title">生产设备</div>
</div>
<div style="padding: 20px 24px 24px 24px">
<el-table
@ -439,29 +364,35 @@
</div>
</div>
</el-col>
<el-col :span="7">
<el-col :span="8">
<div class="retangleWrap retangleWrapTable">
<div class="retangle tableRetangle">
<div
style="
display: flex;
justify-content: space-between;
padding: 0 24px;
"
>
<div
style="
color: rgb(30, 30, 30);
font-size: 16px;
font-weight: 400;
line-height: 24px;
"
>
日历
</div>
<div class="Retangle_container">
<div class="title">半成品统计</div>
</div>
<div style="">
<el-calendar v-model="calendarValue" />
<div style="padding: 20px 24px 24px 24px">
<el-table
:data="halfProductList"
style="width: 100%; height: 285px"
>
<el-table-column
prop="name"
label="产品名称"
/>
<el-table-column
prop="number"
label="规格型号"
/>
<el-table-column
prop="belong_dept_name"
label="完成车间"
/>
<el-table-column
prop="count"
label="合计库存"
>
</el-table-column>
</el-table>
</div>
</div>
</div>
@ -491,6 +422,7 @@ export default {
chartData: [],
tableData: [],
equipList: [],
halfProductList: [],
warningMaterial: [],
calendarValue: "",
eqState_: {
@ -619,6 +551,7 @@ export default {
}
return classInfo;
},
//
getEquipList() {
this.$API.em.equipment.list
.req({ page: 0, type: 10 })
@ -626,6 +559,12 @@ export default {
this.equipList = res;
});
},
//
getHalfProductList() {
// this.$API.inm.halfProduct.list.req({ page: 0 }).then((res) => {
// this.halfProductList = res;
// });
},
materialTypeChange() {
this.getMaterialList();
},
@ -1063,7 +1002,24 @@ export default {
position: relative;
background: #ffffff;
}
.Retangle_container {
display: flex;
justify-content: space-between;
padding: 0 24px;
}
.Retangle_container > .title {
color: rgb(30, 30, 30);
font-size: 16px;
font-weight: 400;
line-height: 24px;
}
.radios_group {
color: rgb(122, 121, 121);
size: 12px;
font-weight: 290;
line-height: 22px;
height: 23px;
}
.retangleImg {
height: 188px;
color: #ffffff;

View File

@ -66,6 +66,20 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="客户名称" v-if="form.type == 'sale_out'">
<el-select
v-model="form.customer"
clearable
style="width: 100%"
>
<el-option
v-for="item in customerOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="客户" v-if="form.type == 'other_out'">
<el-select
v-model="form.customer"
@ -190,6 +204,7 @@ export default {
this.getSupplierOptions();
} else if (type == "sale_out") {
this.getOrderOptions();
this.getCustomerOptions();
} else if (type == "do_in" || type == "do_out") {
this.getDeptOptions();
this.getDeptUser();