This commit is contained in:
JIAL 2024-02-18 09:42:08 +08:00
parent afa3731d4e
commit 1232bdad89
11 changed files with 8876 additions and 8735 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,46 @@
server:
port: 3333
spring:
application:
#应用的名称,可选
name: JNDemo
datasource:
dynamic:
primary: master #设置默认的数据源或者数据源组,默认值即为master
strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
datasource:
master:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://10.1.2.11:1433;databaseName=zm_erp2;Encrypt=false;TrustServerCertificate=true;
username: sa
password: Itcenter110-
druid:
initial-size: 1
max-active: 20
min-idle: 1
max-wait: 60000
autoconfigure:
exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration #去除Druid自动配置
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
logging:
level:
root: warn
com.JN: info
file:
name: logs/JIAL-ss.log
mybatis-plus:
configuration:
#在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
id-type: ASSIGN_ID

View File

@ -2,4 +2,4 @@ spring:
thymeleaf: thymeleaf:
mode: HTML mode: HTML
profiles: profiles:
active: ss active: JN

View File

@ -120,28 +120,28 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="净重合计" title="净重合计"> <el-form-item label="净重合计" title="净重合计">
<el-input v-model="formLabelAlign.manufAmount" placeholder="净重合计"> <el-input v-model="formLabelAlign.netWeightTotal" placeholder="净重合计">
<template slot="append"></template> <template slot="append">KG</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col > </el-col >
<el-col :span="6"> <el-col :span="6">
<el-form-item label="重量合计" title="重量合计"> <el-form-item label="重量合计" title="重量合计">
<el-input v-model="formLabelAlign.laborCost" placeholder="重量合计"> <el-input v-model="formLabelAlign.weightTotal" placeholder="重量合计">
<template slot="append">%</template> <template slot="append">KG</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" > <el-col :span="6" >
<el-form-item label="厂价金额合计" title="厂价金额合计"> <el-form-item label="厂价金额合计" title="厂价金额合计">
<el-input v-model="formLabelAlign.freight" placeholder="厂价金额合计"> <el-input v-model="formLabelAlign.totalFactoryAmount" placeholder="厂价金额合计">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" > <el-col :span="6" >
<el-form-item label="实际金额合计" title="实际金额合计"> <el-form-item label="实际金额合计" title="实际金额合计">
<el-input v-model="formLabelAlign.freight" placeholder="实际金额合计"> <el-input v-model="formLabelAlign.totalActualAmount" placeholder="实际金额合计">
<template slot="append"></template> <template slot="append"></template>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -150,7 +150,7 @@
</el-form> </el-form>
</div> </div>
<div class="button-box"> <div class="button-box">
<el-button type="text">选择地区</el-button> <el-button type="text" @click="selectedRegion">选择地区</el-button>
<el-button type="text">添加物料</el-button> <el-button type="text">添加物料</el-button>
<el-button type="text">刷新界面</el-button> <el-button type="text">刷新界面</el-button>
<el-button type="text"></el-button> <el-button type="text"></el-button>
@ -177,15 +177,15 @@
width="180" width="180"
prop="kunnr2" prop="kunnr2"
label="数量"> label="数量">
<template slot-scope="scope">
<el-input v-model="scope.row.kunnr2" >
</el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" width="180"
prop="kunnr3" prop="kunnr3"
label="电压"> label="电压">
<template slot-scope="scope">
<el-input v-model="scope.row.kunnr3" >
</el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" width="180"
@ -216,6 +216,10 @@
width="180" width="180"
prop="kunnr8" prop="kunnr8"
label="盘具"> label="盘具">
<template slot-scope="scope">
<el-input v-model="scope.row.kunnr2" >
</el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" width="180"
@ -223,17 +227,25 @@
label="盘重"> label="盘重">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" width="180"
prop="kunnr8"
label="总重">
</el-table-column>
<el-table-column
fixed="right"
width="120"
prop="kunnr8" prop="kunnr8"
label="总成本"> label="总成本">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" fixed="right"
width="120"
prop="kunnr8" prop="kunnr8"
label="总厂价"> label="总厂价">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" fixed="right"
width="120"
prop="kunnr8" prop="kunnr8"
label="总净重"> label="总净重">
</el-table-column> </el-table-column>
@ -248,6 +260,9 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<el-dialog title="选择地区" :visible.sync="dialogRegionVisible">
</el-dialog>
</div> </div>
@ -277,14 +292,12 @@
city: '', /*市*/ city: '', /*市*/
district: '', /*区*/ district: '', /*区*/
freight: '', /*运费*/ freight: '', /*运费*/
cumulativeCost: '', /*成本累计*/ canFloat: '', /*可下浮点数*/
floorPrice: '', /*底价*/
canFloat: '', /*可下浮*/
actualCostRatio: '', /*实际材料成本占厂价比例*/
manufAmount: '', /*厂家金额*/
laborCost: '', /*人工费*/
inventoryCost: '', /*盘具*/
kilometers: '', /*公里数*/ kilometers: '', /*公里数*/
netWeightTotal: '', /*净重合计*/
weightTotal: '', /*重量合计*/
totalFactoryAmount: '', /*厂价金额合计*/
totalActualAmount: '', /*实际金额合计*/
}, },
tableData: [ tableData: [
{ kunnr1: '001', kunnr2: '002', kunnr3: '003', kunnr4: '004', kunnr5: '005', kunnr6: '006', kunnr7: '007', kunnr8: '008' }, { kunnr1: '001', kunnr2: '002', kunnr3: '003', kunnr4: '004', kunnr5: '005', kunnr6: '006', kunnr7: '007', kunnr8: '008' },
@ -319,6 +332,10 @@
handleDeleteClick(index){ handleDeleteClick(index){
this.tableData.splice(index, 1) this.tableData.splice(index, 1)
},
selectedRegion(){
} }

View File

@ -0,0 +1,46 @@
server:
port: 3333
spring:
application:
#应用的名称,可选
name: JNDemo
datasource:
dynamic:
primary: master #设置默认的数据源或者数据源组,默认值即为master
strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
datasource:
master:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://10.1.2.11:1433;databaseName=zm_erp2;Encrypt=false;TrustServerCertificate=true;
username: sa
password: Itcenter110-
druid:
initial-size: 1
max-active: 20
min-idle: 1
max-wait: 60000
autoconfigure:
exclude: org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration #去除Druid自动配置
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
logging:
level:
root: warn
com.JN: info
file:
name: logs/JIAL-ss.log
mybatis-plus:
configuration:
#在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
id-type: ASSIGN_ID

View File

@ -2,4 +2,4 @@ spring:
thymeleaf: thymeleaf:
mode: HTML mode: HTML
profiles: profiles:
active: ss active: JN

View File

@ -1,22 +1,18 @@
.container { .container {
display: flex;
width: 100%; /* 设置页面宽度为视口宽度的100% */
} }
.center-container { .center-container {
text-align: center; text-align: center;
margin: auto; margin: auto;
width: 95%;
padding: 10px; padding: 10px;
min-width: 1100px;
} }
.el-input { .el-input {
} }
.el-input__inner { .el-input__inner {
height: 30px; height: 30px;
/*font-family: Roboto, serif;*/ /*font-family: Roboto, serif;*/
@ -41,6 +37,7 @@
.el-form-item__label { .el-form-item__label {
min-width: 100px;
text-align: justify; text-align: justify;
font-size: 12px; font-size: 12px;
} }

View File

@ -16,7 +16,7 @@
<div class="container" id="index-app"> <div class="container" id="index-app">
<div class="center-container"> <div class="center-container">
<div class="form-box"> <div class="form-box">
<el-form label-width="45%" :model="formLabelAlign"> <el-form label-width="45%" :model="formLabelAlign">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="加工费" title="蒸汽费/钢丝铠装材料及加工费"> <el-form-item label="加工费" title="蒸汽费/钢丝铠装材料及加工费">
@ -33,7 +33,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="账期" title="账期"> <el-form-item label="额外账期" title="额外账期">
<el-input v-model="formLabelAlign.accountPeriod" placeholder="账期"> <el-input v-model="formLabelAlign.accountPeriod" placeholder="账期">
<template slot="append">%</template> <template slot="append">%</template>
</el-input> </el-input>
@ -103,56 +103,12 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="成本累计" title="成本累计"> <el-form-item label="可下浮点数" title="可下浮点数">
<el-input v-model="formLabelAlign.cumulativeCost" placeholder="成本累计">
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col >
<el-col :span="6">
<el-form-item label="底价" title="底价">
<el-input v-model="formLabelAlign.floorPrice" placeholder="底价">
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="可下浮" title="可下浮">
<el-input v-model="formLabelAlign.canFloat" placeholder="可下浮"> <el-input v-model="formLabelAlign.canFloat" placeholder="可下浮">
<template slot="append">%</template> <template slot="append">%</template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-form-item label="实际成本比例" title="实际材料成本占厂价比例">
<el-input v-model="formLabelAlign.actualCostRatio" placeholder="实际材料成本占厂价比例">
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item label="厂家金额" title="厂家金额">
<el-input v-model="formLabelAlign.manufAmount" placeholder="厂家金额">
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col >
<el-col :span="6">
<el-form-item label="人工费" title="人工费">
<el-input v-model="formLabelAlign.laborCost" placeholder="人工费">
<template slot="append">%</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="盘具" title="盘具">
<el-input v-model="formLabelAlign.inventoryCost" placeholder="盘具">
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6" > <el-col :span="6" >
<el-form-item label="运费"> <el-form-item label="运费">
<el-input v-model="formLabelAlign.freight" placeholder="运费"> <el-input v-model="formLabelAlign.freight" placeholder="运费">
@ -161,6 +117,36 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="6">
<el-form-item label="净重合计" title="净重合计">
<el-input v-model="formLabelAlign.netWeightTotal" placeholder="净重合计">
<template slot="append">KG</template>
</el-input>
</el-form-item>
</el-col >
<el-col :span="6">
<el-form-item label="重量合计" title="重量合计">
<el-input v-model="formLabelAlign.weightTotal" placeholder="重量合计">
<template slot="append">KG</template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6" >
<el-form-item label="厂价金额合计" title="厂价金额合计">
<el-input v-model="formLabelAlign.totalFactoryAmount" placeholder="厂价金额合计">
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6" >
<el-form-item label="实际金额合计" title="实际金额合计">
<el-input v-model="formLabelAlign.totalActualAmount" placeholder="实际金额合计">
<template slot="append"></template>
</el-input>
</el-form-item>
</el-col>
</el-row>
</el-form> </el-form>
</div> </div>
<div class="button-box"> <div class="button-box">
@ -171,64 +157,106 @@
</div> </div>
<div class="table-box"> <div class="table-box">
<el-table <el-table
:data="tableData" :data="tableData"
border border
:cell-style="cellStyle" :cell-style="cellStyle"
:header-cell-style="{ background: '#eef1f6', color: '#606266', 'text-align': 'center' }"> :header-cell-style="{ background: '#eef1f6', color: '#606266', 'text-align': 'center' }">
<el-table-column <el-table-column
fixed
label="编号"
type="index"
width="50">
</el-table-column>
<el-table-column
fixed fixed
width="180" width="180"
prop="kunnr1" prop="kunnr1"
label="物料编码"> label="品名">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" width="180"
prop="kunnr2" prop="kunnr2"
label="物料描述"> label="数量">
</el-table-column> <template slot-scope="scope">
<el-table-column <el-input v-model="scope.row.kunnr2" >
</el-input>
</template>
</el-table-column>
<el-table-column
width="180" width="180"
prop="kunnr3" prop="kunnr3"
label="销售单位"> label="电压">
<template slot-scope="scope"> </el-table-column>
<el-input v-model="scope.row.kunnr3" > <el-table-column
</el-input>
</template>
</el-table-column>
<el-table-column
width="180" width="180"
prop="kunnr4" prop="kunnr4"
label="厂价"> label="标准">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" width="180"
prop="kunnr5" prop="kunnr5"
label="基准成本" label="纤芯">
style="color: red"> </el-table-column>
</el-table-column> <el-table-column
<el-table-column
width="180" width="180"
prop="kunnr6" prop="kunnr6"
label="现行采购成本"> label="成本">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" width="180"
prop="kunnr7" prop="kunnr7"
label="保留字段1"> label="厂价">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" width="180"
prop="kunnr8" prop="kunnr8"
label="保留字段2"> label="净量">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180"
prop="kunnr8"
label="盘具">
<template slot-scope="scope">
<el-input v-model="scope.row.kunnr2" >
</el-input>
</template>
</el-table-column>
<el-table-column
width="180"
prop="kunnr8"
label="盘重">
</el-table-column>
<el-table-column
width="180"
prop="kunnr8"
label="总重">
</el-table-column>
<el-table-column
fixed="right"
width="120"
prop="kunnr8"
label="总成本">
</el-table-column>
<el-table-column
fixed="right"
width="120"
prop="kunnr8"
label="总厂价">
</el-table-column>
<el-table-column
fixed="right"
width="120"
prop="kunnr8"
label="总净重">
</el-table-column>
<el-table-column
fixed="right" fixed="right"
width="80" width="80"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="handleDeleteClick(scope.row)" style="color: red;" type="text">删除</el-button> <el-button @click="handleDeleteClick(scope.row)" style="color: red;" type="text">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
@ -248,7 +276,6 @@
el: '#index-app', el: '#index-app',
data() { data() {
return { return {
labelPosition: 'right',
formLabelAlign: { formLabelAlign: {
processingFee: '0.60', /*蒸汽费/钢丝铠装材料及加工费*/ processingFee: '0.60', /*蒸汽费/钢丝铠装材料及加工费*/
prodFinancialCost: '0.40', /*生产财务成本*/ prodFinancialCost: '0.40', /*生产财务成本*/
@ -262,14 +289,14 @@
city: '', /*市*/ city: '', /*市*/
district: '', /*区*/ district: '', /*区*/
freight: '', /*运费*/ freight: '', /*运费*/
cumulativeCost: '', /*成本累计*/ canFloat: '', /*可下浮点数*/
floorPrice: '', /*底价*/
canFloat: '', /*可下浮*/
actualCostRatio: '', /*实际材料成本占厂价比例*/
manufAmount: '', /*厂家金额*/
laborCost: '', /*人工费*/
inventoryCost: '', /*盘具*/
kilometers: '', /*公里数*/ kilometers: '', /*公里数*/
netWeightTotal: '', /*净重合计*/
weightTotal: '', /*重量合计*/
totalFactoryAmount: '', /*厂价金额合计*/
totalActualAmount: '', /*实际金额合计*/
}, },
tableData: [ tableData: [
{ kunnr1: '001', kunnr2: '002', kunnr3: '003', kunnr4: '004', kunnr5: '005', kunnr6: '006', kunnr7: '007', kunnr8: '008' }, { kunnr1: '001', kunnr2: '002', kunnr3: '003', kunnr4: '004', kunnr5: '005', kunnr6: '006', kunnr7: '007', kunnr8: '008' },