|
@@ -1,53 +1,242 @@
|
|
|
|
|
|
<template>
|
|
<template>
|
|
- <div class="bg" id="index">
|
|
|
|
- 1发
|
|
|
|
|
|
+ <div class="bg" id="index">
|
|
|
|
+ <el-row class="row_top">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12" class="bg-right">
|
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">保存</el-button>
|
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">新增</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <div class="enterTextWrap">
|
|
|
|
+ <div class="flex-1">
|
|
|
|
+ <div class="weign">
|
|
|
|
+ <BalanceAlert ref="weightChild" :deptBudgetList="form" :information="information"
|
|
|
|
+ v-on:balanceListen="setVal" class="zujian">
|
|
|
|
+ </BalanceAlert>
|
|
|
|
+ <!-- <div>{{weigntext?'':''}}</div>
|
|
|
|
+ <div></div>
|
|
|
|
+ <div></div> -->
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="flex-2 flex-justify-space-between">
|
|
|
|
+ <div class="form">
|
|
|
|
+ <el-form ref="form" :model="form" label-position="left" label-width="120px">
|
|
|
|
+ <div class="form-title">称重信息
|
|
|
|
+ <el-checkbox v-model="checked">手动编辑重量</el-checkbox>
|
|
|
|
+ </div>
|
|
|
|
+ <el-form-item label="毛重(公斤)">
|
|
|
|
+ <el-input :disabled="!checked" placeholder="输入毛重" v-model="form.name"></el-input>
|
|
|
|
+ <el-button type="text">获取</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="皮重(公斤)">
|
|
|
|
+ <el-input :disabled="!checked" placeholder="输入皮重" v-model="form.name"></el-input>
|
|
|
|
+ <el-button type="text">获取</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="净重(公斤)">
|
|
|
|
+ <el-input placeholder="自动计算" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <div class="form-title">基本信息</div>
|
|
|
|
+ <el-form-item label="客户姓名">
|
|
|
|
+ <el-select placeholder="输入客户姓名" v-model="form.region" >
|
|
|
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
|
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="车牌号">
|
|
|
|
+ <el-input placeholder="输入毛重车牌号" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="仓位号">
|
|
|
|
+ <el-input placeholder="输入仓位号" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <div class="form-title">定价信息</div>
|
|
|
|
+ <el-form-item label="单价(元/吨)">
|
|
|
|
+ <el-input placeholder="输入单价" v-model="form.desc"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="粮款(元)">
|
|
|
|
+ <el-input placeholder="自动计算" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form">
|
|
|
|
+ <el-form ref="form" :model="form" label-position="left" label-width="120px">
|
|
|
|
+ <el-form-item label="货名">
|
|
|
|
+ <el-select placeholder="选择货名" v-model="form.region" >
|
|
|
|
+ <el-option label="区域一" value="shanghai"></el-option>
|
|
|
|
+ <el-option label="区域二" value="beijing"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="容重(克/升)">
|
|
|
|
+ <el-input placeholder="输入容重" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="水分(%)">
|
|
|
|
+ <el-input placeholder="输入水分占比" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="蛋白(%)">
|
|
|
|
+ <el-input placeholder="输入蛋白占比" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="杂质(%)">
|
|
|
|
+ <el-input placeholder="输入杂质占比" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="霉变粒(%)">
|
|
|
|
+ <el-input placeholder="输入霉变粒占比" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="热损伤(%)">
|
|
|
|
+ <el-input placeholder="输入热损伤占比" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="不完善粒(%)">
|
|
|
|
+ <el-input placeholder="输入不完善粒占比" v-model="form.name"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="备注">
|
|
|
|
+ <el-input placeholder="输入备注,0-150个字" type="textarea" v-model="form.desc"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
-
|
|
|
|
- <script>
|
|
|
|
- import {
|
|
|
|
- gChartsData,
|
|
|
|
- } from '@/model/home/index'
|
|
|
|
- // import CenterMap from "./center-map.vue";
|
|
|
|
- export default {
|
|
|
|
- components: {
|
|
|
|
- },
|
|
|
|
- data() {
|
|
|
|
- return {
|
|
|
|
-
|
|
|
|
- };
|
|
|
|
- },
|
|
|
|
- filters: {
|
|
|
|
- numsFilter(msg) {
|
|
|
|
- return msg || 0;
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- created() {
|
|
|
|
- },
|
|
|
|
- mounted() {
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ <div class="tableWrap">
|
|
|
|
+ <el-row class="row_top">
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <el-date-picker value-format='yyyy-MM-dd' v-model="value" type="daterange" unlink-panels range-separator="至"
|
|
|
|
+ start-placeholder="开始日期" end-placeholder="结束日期" class="data_css" @change="changeDate" ></el-date-picker>
|
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">全部</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="12" class="bg-right">
|
|
|
|
+ <el-input placeholder="可按客户、车牌号查找" class="input_css" v-model="searchKeyWord"></el-input>
|
|
|
|
+ <el-button class="find" type="primary" @click="find()"><img width="16" height="16" style="left: -8px;"
|
|
|
|
+ src="../../../public/img/sousuo.png" alt="" /></el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-table :data="tableData" stripe style="width: 100%" @selection-change="handleSelectionChange">
|
|
|
|
+ <el-table-column width="40">
|
|
|
|
+ <template scope="scope">
|
|
|
|
+ <img v-if="!scope.row.select" style='width:15px;vertical-align: text-top;' @click='radiochange1(index,scope.row,item)' src="../../../public/img/wxz.png" alt="">
|
|
|
|
+ <img v-if="scope.row.select" style='width:15px;vertical-align: text-top;' @click='radiochange(index,scope.row,item)' src="../../../public/img/xz.png" alt="">
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column type="index" label="序号">
|
|
|
|
+ <template scope="scope">
|
|
|
|
+ <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
|
+ <span v-else>{{ scope.$index + 1 }}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="contractNo" label="日期"></el-table-column>
|
|
|
|
+ <el-table-column prop="receivingCompany" label="仓位"></el-table-column>
|
|
|
|
+ <el-table-column prop="cumulativeTransfer" label="车牌号"></el-table-column>
|
|
|
|
+ <el-table-column prop="expectedRedemption" label="客户"></el-table-column>
|
|
|
|
+ <el-table-column width="120" prop="redeemed" label="货名"></el-table-column>
|
|
|
|
+ <el-table-column width="120" prop="settlementPrice" label="毛重(吨)"></el-table-column>
|
|
|
|
+ <el-table-column width="120" prop="settlementPrice" label="皮重(吨)"></el-table-column>
|
|
|
|
+ <el-table-column width="120" prop="settlementPrice" label="净重(吨)"></el-table-column>
|
|
|
|
+ <el-table-column width="120" prop="settlementPrice" label="容重(克/升)"></el-table-column>
|
|
|
|
+ <el-table-column width="120" prop="settlementPrice" label="水分(%)"></el-table-column>
|
|
|
|
+ <el-table-column width="120" prop="settlementPrice" label="单价(元/吨)"></el-table-column>
|
|
|
|
+ <el-table-column width="120" prop="settlementPrice" label="粮款(元)"></el-table-column>
|
|
|
|
+ <el-table-column width="120" prop="settlementPrice" label="付款状态"></el-table-column>
|
|
|
|
+ <el-table-column prop="address" label="操作" width="200">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button type="text">删除</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
|
+ style="text-align:center" :page-size="pageSize"
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal">
|
|
|
|
+ </el-pagination>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+import {
|
|
|
|
+ gChartsData,
|
|
|
|
+} from '@/model/home/index'
|
|
|
|
+import BalanceAlert from '@/components/balanceAlert'
|
|
|
|
+// import CenterMap from "./center-map.vue";
|
|
|
|
+export default {
|
|
|
|
+ components: {
|
|
|
|
+ BalanceAlert,
|
|
|
|
+ },
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ tableData:[],
|
|
|
|
+ form:{},
|
|
|
|
+ information:'',
|
|
|
|
+ checked:false
|
|
|
|
+ };
|
|
|
|
+ },
|
|
|
|
+ filters: {
|
|
|
|
+ numsFilter(msg) {
|
|
|
|
+ return msg || 0;
|
|
},
|
|
},
|
|
- beforeDestroy() {
|
|
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ beforeDestroy() {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ changeDate(){
|
|
|
|
+ if(this.value){
|
|
|
|
+ this.startDate = this.value[0]
|
|
|
|
+ this.endDate = this.value[1]
|
|
|
|
+ }else{
|
|
|
|
+ this.startDate = ''
|
|
|
|
+ this.endDate = ''
|
|
|
|
+ }
|
|
|
|
+ this.getList()
|
|
},
|
|
},
|
|
- methods: {
|
|
|
|
|
|
+ setVal(data) {
|
|
|
|
+ if (this.information == '毛重') {
|
|
|
|
+ this.form.grossWeight = data
|
|
|
|
+ } else {
|
|
|
|
+ this.form.tare = data
|
|
|
|
+ }
|
|
},
|
|
},
|
|
- };
|
|
|
|
- </script>
|
|
|
|
- <style lang="scss" scoped>
|
|
|
|
-
|
|
|
|
- .bg {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 100%;
|
|
|
|
- padding: 16px 16px 10px 16px;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- // background-image: url("../../assets/images/pageBg.png");
|
|
|
|
- background-size: cover;
|
|
|
|
- background-position: center center;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- </style>
|
|
|
|
-
|
|
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+</script>
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
+
|
|
|
|
+.bg {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ padding: 16px 16px 10px 16px;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ // background-image: url("../../assets/images/pageBg.png");
|
|
|
|
+ background-size: cover;
|
|
|
|
+ background-position: center center;
|
|
|
|
+}
|
|
|
|
+.enterTextWrap{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+}
|
|
|
|
+.form-title{
|
|
|
|
+ font-weight:600;
|
|
|
|
+ margin-bottom:10px;
|
|
|
|
+}
|
|
|
|
+.enterTextWrap .el-form .el-form-item__content .el-input,
|
|
|
|
+.enterTextWrap .el-form .el-form-item__content .el-select,
|
|
|
|
+/deep/.enterTextWrap .el-form .el-form-item__content .el-textarea .el-textarea__inner{
|
|
|
|
+ width:80%;
|
|
|
|
+}
|
|
|
|
+/deep/.form .el-form .el-form-item .el-form-item__label{
|
|
|
|
+ color:#8890b1;
|
|
|
|
+}
|
|
|
|
+.form{
|
|
|
|
+ flex:50%;
|
|
|
|
+}
|
|
|
|
+.row_top{
|
|
|
|
+ margin:10px 0;
|
|
|
|
+}
|
|
|
|
+.row_top .el-input,.row_top .el-date-editor{
|
|
|
|
+ width:50% !important;
|
|
|
|
+}
|
|
|
|
+</style>
|