|
@@ -0,0 +1,1525 @@
|
|
|
+//销售详情
|
|
|
+<template>
|
|
|
+ <div class="container">
|
|
|
+ <el-scrollbar style="height:100%">
|
|
|
+ <el-scrollbar style="width:130%">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <h2 class="bg-left title"></h2>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12" class="bg-right">
|
|
|
+ <el-button class="bg-bottom" type="primary" size="small" @click="revert()">
|
|
|
+ <img
|
|
|
+ width="6"
|
|
|
+ height="10"
|
|
|
+ style="vertical-align: bottom; margin-right: 3px"
|
|
|
+ src="../../../public/img/lujing.png"
|
|
|
+ alt
|
|
|
+ />返回
|
|
|
+ </el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <!-- <div> -->
|
|
|
+ <div>
|
|
|
+ <!-- <el-button class="record" @click="dialogFormVisible = true">成交</el-button> -->
|
|
|
+ <!-- <el-dialog
|
|
|
+ width="30%"
|
|
|
+ title="客户信息"
|
|
|
+ :visible.sync="dialogFormVisible"
|
|
|
+ :append-to-body="true"
|
|
|
+ >
|
|
|
+ <el-form :model="form">-->
|
|
|
+ <!-- <el-form-item label="身份证正面" :label-width="formLabelWidth"> -->
|
|
|
+ <!-- <h4 style="margin-left: 15%;">身份证正面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo1"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>-->
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+
|
|
|
+ <!-- <el-form-item label="身份证反面" :label-width="formLabelWidth"> -->
|
|
|
+ <!-- <h4 style="margin-left: 62%; margin-top: -33.5%;">身份证反面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo2"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>-->
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+ <!-- <el-form-item label="姓名" :label-width="formLabelWidth"> -->
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ <!-- </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="身份证号" :label-width="formLabelWidth">-->
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal" ></el-input> -->
|
|
|
+ <!-- </el-form-item>
|
|
|
+ <hr />-->
|
|
|
+ <!-- <el-form-item label="身份证正面" :label-width="formLabelWidth"> -->
|
|
|
+ <!-- <h4 style="margin-left: 15%;">银行卡正面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo1"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>-->
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+ <!-- <el-form-item label="身份证反面" :label-width="formLabelWidth"> -->
|
|
|
+ <!-- <h4 style="margin-left: 61%; margin-top: -33.5%;">银行卡反面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo2"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>-->
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+ <!-- <el-form-item label="银行卡号" :label-width="formLabelWidth"> -->
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ <!-- </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="开户行" :label-width="formLabelWidth">-->
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ <!-- </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="开户支行" :label-width="formLabelWidth">-->
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ <!-- </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="收款人姓名" :label-width="formLabelWidth">-->
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ <!-- </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="收款人身份证号" :label-width="formLabelWidth">-->
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ <!-- </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="手机号" :label-width="formLabelWidth">-->
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ <!-- </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="联系地址" :label-width="formLabelWidth">-->
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ <!-- </el-form-item>
|
|
|
+ <hr />
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible = false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>-->
|
|
|
+
|
|
|
+ <ws-button type="primary" @click="dialogVisible = true">全部订单</ws-button>
|
|
|
+ <ws-button type="primary" @click="handleAdd()">待审核</ws-button>
|
|
|
+ <ws-button type="primary" @click="handleAdd()">执行中</ws-button>
|
|
|
+ <ws-button type="primary" @click="handleAdd()">已完成</ws-button>
|
|
|
+ <template slot="right">
|
|
|
+ <span style="width: 70px; display: inline-block; color: #8890b1">状态:</span>
|
|
|
+ <ws-select
|
|
|
+ v-model="searchTypeText"
|
|
|
+ class="typeselect"
|
|
|
+ @change="selecttaskType"
|
|
|
+ :value="searchType"
|
|
|
+ >
|
|
|
+ <ws-option
|
|
|
+ v-for="item in taskTypeList"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.value"
|
|
|
+ :value="item.value"
|
|
|
+ style="color: #8890b1"
|
|
|
+ />
|
|
|
+ </ws-select>
|
|
|
+ </template>
|
|
|
+ <ws-input
|
|
|
+ v-model="searchKeyWord"
|
|
|
+ placeholder="可按照合同编号和任务编号进行查找"
|
|
|
+ clearable
|
|
|
+ maxlength="500"
|
|
|
+ type="input"
|
|
|
+ class="findValue"
|
|
|
+ ></ws-input>
|
|
|
+ <ws-button class="but" type="primary" @click="find()">
|
|
|
+ <img
|
|
|
+ width="16"
|
|
|
+ height="16"
|
|
|
+ style="
|
|
|
+ vertical-align: text-top;
|
|
|
+ position: relative;
|
|
|
+ top: 0px;
|
|
|
+ left: -8px;
|
|
|
+ "
|
|
|
+ src="../../../public/img/sousuo.png"
|
|
|
+ alt
|
|
|
+ />
|
|
|
+ </ws-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-table
|
|
|
+ class="wenzi"
|
|
|
+ :data="warehouseList.records"
|
|
|
+ style="width: 100%; margin-top: 20px"
|
|
|
+ height="780"
|
|
|
+ >
|
|
|
+ <el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="contractNo" label="合同编号"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="procurementPlan" label="销售计划"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="customer" label="客户">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button class="record" @click="dialogFormVisible8 = true">{{scope.row.customer}}</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="unitPrice" label="单价(元/吨)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.unitPrice}}
|
|
|
+ <img
|
|
|
+ width="17"
|
|
|
+ height="18"
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
+ src="../../../public/img/edit.png"
|
|
|
+ @click="dialogFormVisible5 = true "
|
|
|
+ alt
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="basis" label="基差(元/吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="freezingDeposit" label="冻结定金(元)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="defaultDeposit" label="拖欠定金(元)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="unloadingCharge" label="卸车费(元/吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="invoiceFee" label="发票费(元/吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="send" label="合同重量(吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="stockInQuantity" label="已入库量(吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="openPosition" label="可平仓量(吨)"></el-table-column>
|
|
|
+ <el-table-column class="table_td" prop="closedPosition" label="已平仓量(吨)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.closedPosition}}
|
|
|
+ <img
|
|
|
+ width="17"
|
|
|
+ height="18"
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
+ src="../../../public/img/edit.png"
|
|
|
+ @click="dialogFormVisible7 = true "
|
|
|
+ alt
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column class="table_td" prop=" cumulativeTurnover" label="已交易量(吨)">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.cumulativeTurnover}}
|
|
|
+ <img
|
|
|
+ width="17"
|
|
|
+ height="18"
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
+ src="../../../public/img/edit.png"
|
|
|
+ @click="dialogFormVisible6 = true "
|
|
|
+ alt
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column class="table_td" label="发票类型" prop="type"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="包装方式"></el-table-column>
|
|
|
+ <el-table-column prop="status" label="状态">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-popover
|
|
|
+ placement="left"
|
|
|
+ :width="285"
|
|
|
+ trigger="click"
|
|
|
+ visible-arrow="false"
|
|
|
+ @show="history(scope.row)"
|
|
|
+ >
|
|
|
+ <template>
|
|
|
+ <span slot="reference">
|
|
|
+ <span v-if="scope.row.status == '待审核'" class="executory"></span>
|
|
|
+ <span v-if="scope.row.status == '执行中'" class="inExecution"></span>
|
|
|
+ <span v-if="scope.row.status == '已完成'" class="done"></span>
|
|
|
+ {{ scope.row.status }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ <!-- <div> -->
|
|
|
+ <!-- <p style="margin-top: 0; padding-left: 10px">历史记录</p> -->
|
|
|
+ <!-- <div v-for="(item, index) in historyList" class="flex" :key="index">
|
|
|
+ <div class="vertical-text vertical-text-left">{{ item.updateDate }}</div>
|
|
|
+ <div>
|
|
|
+ <div class="vertical-circle"></div>
|
|
|
+ <div v-if="index != historyList.length - 1" class="vertical-line"></div>
|
|
|
+ </div>
|
|
|
+ <div class="vertical-text">
|
|
|
+ {{ item.operateUser }}
|
|
|
+ <br />
|
|
|
+ {{ item.dealMsg }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>-->
|
|
|
+
|
|
|
+ <!-- 客户信息 -->
|
|
|
+ <el-dialog
|
|
|
+ width="30%"
|
|
|
+ title="客户信息"
|
|
|
+ :visible.sync="dialogFormVisible8"
|
|
|
+ :append-to-body="true"
|
|
|
+ >
|
|
|
+ <el-form :model="form">
|
|
|
+ <h4 style=" margin-left: 42%;">营业执照</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="50%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <el-form-item label="公司名称" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="纳税人识别号" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal" ></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+
|
|
|
+ <!-- <el-form-item label="身份证正面" :label-width="formLabelWidth"> -->
|
|
|
+ <h4 style="margin-left: 15%;">身份证正面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo1"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+
|
|
|
+ <!-- <el-form-item label="身份证反面" :label-width="formLabelWidth"> -->
|
|
|
+ <h4 style="margin-left: 61%; margin-top: -33.5%;">身份证反面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo2"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+ <el-form-item label="姓名" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="身份证号" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal" ></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <!-- <el-form-item label="身份证正面" :label-width="formLabelWidth"> -->
|
|
|
+ <h4 style="margin-left: 15%;">银行卡正面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo1"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+ <!-- <el-form-item label="身份证反面" :label-width="formLabelWidth"> -->
|
|
|
+ <h4 style="margin-left: 61%; margin-top: -33.5%;">银行卡反面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo2"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <!-- <el-dialog :visible.sync="dialogVisible"> -->
|
|
|
+ <!-- <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>
|
|
|
+ <!-- </el-form-item>-->
|
|
|
+ <el-form-item label="银行卡号" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="开户行" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="开户支行" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="手机号" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="公司地址" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible8 = false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <!-- 客户信息1 -->
|
|
|
+ <el-dialog
|
|
|
+ width="30%"
|
|
|
+ title="客户信息"
|
|
|
+ :visible.sync="dialogFormVisible"
|
|
|
+ :append-to-body="true"
|
|
|
+ >
|
|
|
+ <el-form :model="form">
|
|
|
+ <!-- <el-form-item label="身份证正面" :label-width="formLabelWidth"> -->
|
|
|
+ <h4 style="margin-left: 15%;">身份证正面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo1"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <!-- <img width="100%" :src="dialogImageUrl" alt /> -->
|
|
|
+ </el-dialog>
|
|
|
+ <!-- </el-form-item>
|
|
|
+
|
|
|
+ <!-- <el-form-item label="身份证反面" :label-width="formLabelWidth">-->
|
|
|
+ <h4 style="margin-left: 62%; margin-top: -33.5%;">身份证反面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo2"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+ <el-form-item label="姓名" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="身份证号" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal" ></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <!-- <el-form-item label="身份证正面" :label-width="formLabelWidth"> -->
|
|
|
+ <h4 style="margin-left: 15%;">银行卡正面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo1"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <!-- <img width="100%" :src="dialogImageUrl" alt /> -->
|
|
|
+ </el-dialog>
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+ <!-- <el-form-item label="身份证反面" :label-width="formLabelWidth"> -->
|
|
|
+ <h4 style="margin-left: 61%; margin-top: -33.5%;">银行卡反面</h4>
|
|
|
+ <el-upload
|
|
|
+ action="https://www.zthymaoyi.com/upload/admin"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-preview="handlePictureCardPreview"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ class="photo2"
|
|
|
+ >
|
|
|
+ <i class="el-icon-plus"></i>
|
|
|
+ </el-upload>
|
|
|
+ <el-dialog :visible.sync="dialogVisible">
|
|
|
+ <img width="100%" :src="dialogImageUrl" alt />
|
|
|
+ </el-dialog>
|
|
|
+ <!-- </el-form-item> -->
|
|
|
+ <el-form-item label="银行卡号" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="开户行" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="开户支行" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="收款人姓名" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="收款人身份证号" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="手机号" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ <el-form-item label="联系地址" :label-width="formLabelWidth">
|
|
|
+ <!-- <el-input v-model="form.region" autocomplete="off" class="deal"></el-input> -->
|
|
|
+ </el-form-item>
|
|
|
+ <hr />
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible8 = false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <!-- 成交记录 -->
|
|
|
+ <el-dialog
|
|
|
+ width="40%"
|
|
|
+ title="成交记录"
|
|
|
+ :visible.sync="dialogFormVisible6"
|
|
|
+ :append-to-body="true"
|
|
|
+ >
|
|
|
+ <el-table :model="form">
|
|
|
+ <el-table-column label="成交价" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.name" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="基差" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="成交量" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="成交日期" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible6 = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="dialogFormVisible6 = false">确认</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <!-- 平仓记录 -->
|
|
|
+ <el-dialog
|
|
|
+ width="40%"
|
|
|
+ title="平仓记录"
|
|
|
+ :visible.sync="dialogFormVisible7"
|
|
|
+ :append-to-body="true"
|
|
|
+ >
|
|
|
+ <el-table :model="form">
|
|
|
+ <el-table-column label="成交价" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.name" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="基差" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="成交量" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="成交日期" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible7 = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="dialogFormVisible7 = false">确认</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <!-- 改价记录 -->
|
|
|
+ <el-dialog
|
|
|
+ width="30%"
|
|
|
+ title="改价记录"
|
|
|
+ :visible.sync="dialogFormVisible5"
|
|
|
+ :append-to-body="true"
|
|
|
+ >
|
|
|
+ <el-form :model="form">
|
|
|
+ <el-form-item label="成交价" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.name" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="点价" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="成交价" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="点价" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="审核单价" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="预期单价" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible5 = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="dialogFormVisible5 = false">确认</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column class="table_td" label="更新时间" prop="establishDate"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="入库结算"></el-table-column>
|
|
|
+ <el-table-column class="table_td" label="平仓结算"></el-table-column>
|
|
|
+ <el-table-column prop="seller" label="操作" width="300">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button class="record" @click="dialogFormVisible1 = true">成交</el-button>
|
|
|
+ <el-dialog
|
|
|
+ width="30%"
|
|
|
+ title="成交"
|
|
|
+ :visible.sync="dialogFormVisible1"
|
|
|
+ :append-to-body="true"
|
|
|
+ >
|
|
|
+ <el-form :model="warehouseList">
|
|
|
+ <el-form-item
|
|
|
+ label="成交价(元/吨)"
|
|
|
+ prop="transactionPrice"
|
|
|
+ :label-width="formLabelWidth"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model="warehouseList.transactionPrice"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入成交价"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="成交量(吨)"
|
|
|
+ prop="transactionsNumber"
|
|
|
+ :label-width="formLabelWidth"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model="warehouseList.transactionsNumber"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入活动区域"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="基差(元/吨)" prop="basis" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="warehouseList.basis"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入基差"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="成交日期" prop="submissionDate" :label-width="formLabelWidth" class="deal">
|
|
|
+ <ws-date-picker
|
|
|
+ v-model="deptBudgetList.submissionDate"
|
|
|
+ type="date"
|
|
|
+ placeholder="请选择成交日期"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ class="deal"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible1 = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="dialogFormVisible11()">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <!-- 补充定金 -->
|
|
|
+ <el-button class="record" @click="dialogFormVisible3 = true">补充定金</el-button>
|
|
|
+ <el-dialog
|
|
|
+ width="40%"
|
|
|
+ title="补充定金"
|
|
|
+ :visible.sync="dialogFormVisible3"
|
|
|
+ :append-to-body="true"
|
|
|
+ >
|
|
|
+ <el-form :model="form">
|
|
|
+ <h5>我是客户名</h5>
|
|
|
+ <el-form-item label="拖欠定金" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="form.name"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入成交价"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="可用定金" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="补充金额" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="form.region"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入补充金额"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible3 = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="dialogFormVisible3 = false">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <el-button class="record">解冻定金</el-button>
|
|
|
+ <!-- 平仓 -->
|
|
|
+ <el-button class="record" @click="dialogFormVisible2 = true">平仓</el-button>
|
|
|
+ <el-dialog
|
|
|
+ width="40%"
|
|
|
+ title="平仓"
|
|
|
+ :visible.sync="dialogFormVisible2"
|
|
|
+ :append-to-body="true"
|
|
|
+ >
|
|
|
+ <el-form :model="warehouseList">
|
|
|
+ <el-form-item label="成交价格(元/吨)" prop="transactionPrice" :label-width="formLabelWidth">
|
|
|
+ <el-select
|
|
|
+ v-model="warehouseList.transactionPrice"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入成交价"
|
|
|
+ class="deal"
|
|
|
+ ></el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="可平仓数量(吨)" prop="openPosition" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="warehouseList.openPosition" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="平仓数量(吨)" prop="closingQuantity" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="warehouseList.closingQuantity"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入平仓数量"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="平仓价格(元/吨)" prop="closeRate" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="warehouseList.closeRate"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入平仓价格"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="平仓基差(元/吨)" prop="closingBasis" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="warehouseList.closingBasis"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入平仓基差"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="平仓应付(元)" prop="closingPositionPayable" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="warehouseList.closingPositionPayable"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入平仓价格"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="平仓日期" prop="closePositionDate" :label-width="formLabelWidth">
|
|
|
+ <el-select
|
|
|
+ v-model="warehouseList.closePositionDate"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请选择平仓日期"
|
|
|
+ class="deal"
|
|
|
+ ></el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible2 = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="dialogFormVisible22()">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <el-button class="record" @click="handle(scope.row)">完成</el-button>
|
|
|
+ <!-- 审核 -->
|
|
|
+ <el-button type="text" class="record" @click="dialogFormVisible4 = true">审核</el-button>
|
|
|
+ <el-dialog
|
|
|
+ width="40%"
|
|
|
+ title="审核"
|
|
|
+ :visible.sync="dialogFormVisible4"
|
|
|
+ :append-to-body="true"
|
|
|
+ >
|
|
|
+ <el-form :model="form">
|
|
|
+ <el-form-item label="交易类型" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.name" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="交易目标" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="卖方" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="交易数量(吨)" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="提交时间" :label-width="formLabelWidth">
|
|
|
+ <el-input v-model="form.region" autocomplete="off" class="deal"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="包装方式" :label-width="formLabelWidth">
|
|
|
+ <el-select v-model="form.region" autocomplete="off" class="deal"></el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="袋装备注" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="form.region"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="最大30字"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="发票类型" :label-width="formLabelWidth">
|
|
|
+ <el-select
|
|
|
+ v-model="form.region"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请选择类型"
|
|
|
+ class="deal"
|
|
|
+ ></el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="单价(元/吨)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="form.region"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入单价"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="基差(元/吨)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="form.region"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入基差"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="发票费用(元/吨)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="form.region"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入发票费用"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="卸车费用(元/吨)" :label-width="formLabelWidth">
|
|
|
+ <el-input
|
|
|
+ v-model="form.region"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入卸车费用"
|
|
|
+ class="deal"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="合同编号" :label-width="formLabelWidth">
|
|
|
+ <el-select
|
|
|
+ v-model="form.region"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请选择合同编号"
|
|
|
+ class="deal"
|
|
|
+ ></el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogFormVisible4 = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="dialogFormVisible4 = false">通过</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ <el-button class="record" @click="handle(scope.row)">删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <!-- 页数 -->
|
|
|
+ <el-pagination
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="currentPage"
|
|
|
+ :page-size="pageSize"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="deptBudgetTotal"
|
|
|
+ ></el-pagination>
|
|
|
+ </el-scrollbar>
|
|
|
+ </el-scrollbar>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- </div> -->
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import { detailsList, chengList ,closePositionList} from '@/model/purchasingManagement/index'
|
|
|
+import { downloadFile } from '@/utils/batchDown'
|
|
|
+import Pagination from '@/components/Pagination'
|
|
|
+import WsUpload from '@/components/WsUpload'
|
|
|
+import { dayjs, fmoney, EventBus } from 'base-core-lib'
|
|
|
+export default {
|
|
|
+ name: 'viewSpareMoney',
|
|
|
+ components: {
|
|
|
+ WsUpload,
|
|
|
+ Pagination
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ vesselId(val) {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ isShow(val) {
|
|
|
+ this.showType = val
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ dialogFormVisible1: false,
|
|
|
+ dialogFormVisible2: false,
|
|
|
+ dialogFormVisible3: false,
|
|
|
+ dialogFormVisible4: false,
|
|
|
+ dialogFormVisible5: false,
|
|
|
+ dialogFormVisible6: false,
|
|
|
+ dialogFormVisible7: false,
|
|
|
+ dialogFormVisible8: false,
|
|
|
+ dialogVisible: false,
|
|
|
+
|
|
|
+ form: {
|
|
|
+ transactionPrice: '',
|
|
|
+ transactionsNumber: '',
|
|
|
+ basis: '',
|
|
|
+ submissionDate: ''
|
|
|
+ // delivery: false,
|
|
|
+ // type: [],
|
|
|
+ // resource: '',
|
|
|
+ // desc: ''
|
|
|
+ },
|
|
|
+ formLabelWidth: '120px',
|
|
|
+
|
|
|
+ barWidth: 0,
|
|
|
+ barHeight: 0,
|
|
|
+ retioX: 1,
|
|
|
+ ratioY: 1,
|
|
|
+ isTaped: false,
|
|
|
+ isHover: false,
|
|
|
+ isShow: !this.autohide,
|
|
|
+ //弹出框
|
|
|
+ dialogViewSpareMoney: false,
|
|
|
+ dialogApproveFormVisible: false,
|
|
|
+ // 船舶类型
|
|
|
+ monetaryKey: null,
|
|
|
+ // 表格显示数据
|
|
|
+ tableDate: [],
|
|
|
+
|
|
|
+ // 是否显示
|
|
|
+ showType: true,
|
|
|
+ // 年
|
|
|
+ year: '',
|
|
|
+ pickerOptions: {},
|
|
|
+ value2: '',
|
|
|
+ deptBudgetTotal: 0,
|
|
|
+ currentPage: 1,
|
|
|
+ tranTypeKey: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ searchType: 1,
|
|
|
+ searchTypeText: '未完成',
|
|
|
+ searchKeyWord: '',
|
|
|
+ contractType: 2,
|
|
|
+ enter: {
|
|
|
+ closePositionList:[],
|
|
|
+ },
|
|
|
+ // taskTypeList:[
|
|
|
+ // {value:'待审核',type:1},
|
|
|
+ // {value:'已完成',type:2},
|
|
|
+ // {value:'已通过',type:3},
|
|
|
+ // {value:'已成交',type:4},
|
|
|
+ // ],
|
|
|
+
|
|
|
+ // 提交类型
|
|
|
+ submitType: true,
|
|
|
+ size: 10,
|
|
|
+ spanArr: [],
|
|
|
+ contractNo: '',
|
|
|
+ inOutTaskNo: '',
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ deptCircularPage: {},
|
|
|
+ warehouseList: [],
|
|
|
+ deptBudgetList: {},
|
|
|
+ pcFlag:1,
|
|
|
+ historyList: [],
|
|
|
+ pickerBeginDateBefore: {
|
|
|
+ disabledDate: time => {
|
|
|
+ return time.getTime() > Date.now()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ accessoryTFs: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ // this.loaddata()
|
|
|
+ this.getList()
|
|
|
+ this.showType = this.isShow
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ //成交
|
|
|
+ dialogFormVisible11(row) {
|
|
|
+ if (!this.warehouseList.transactionPrice) {
|
|
|
+ this.$message({
|
|
|
+ message: '成交价不能为空',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$confirm(`确定提交成交信息`, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ chengList({
|
|
|
+ id: row.id,
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ transactionPrice: row.transactionPrice,
|
|
|
+ transactionsNumber: row.transactionsNumber,
|
|
|
+ basis: row.basis,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message.success('添加成功')
|
|
|
+ this.warehouseList = response
|
|
|
+ // this.$router.go(-1)
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ console.log(1111111111)
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ //平仓
|
|
|
+ dialogFormVisible22(row){
|
|
|
+ this.$confirm(`确定提交成交信息`, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ closePositionList({
|
|
|
+ id: row.id,
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ transactionPrice: row.transactionPrice,
|
|
|
+ transactionsNumber: row.transactionsNumber,
|
|
|
+ basis: row.basis,
|
|
|
+ })
|
|
|
+ // chengList(this.warehouseList)
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.$message.success('添加成功')
|
|
|
+ this.getList()
|
|
|
+ // this.$router.go(-1)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ getList() {
|
|
|
+ console.log(123456)
|
|
|
+ detailsList({
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ id :this.id,
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ pcFlag: this.pcFlag,
|
|
|
+ contractNo: this.contractNo
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.warehouseList = response
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // loaddata(){
|
|
|
+ // chengList({
|
|
|
+ // compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ // })
|
|
|
+ // .toPromise()
|
|
|
+ // .then(response => {
|
|
|
+ // this.warehouseList = response
|
|
|
+ // })
|
|
|
+ // },
|
|
|
+ handleRemove(file) {
|
|
|
+ console.log(file)
|
|
|
+ },
|
|
|
+ handlePictureCardPreview(file) {
|
|
|
+ this.dialogImageUrl = file.url
|
|
|
+ this.dialogVisible = true
|
|
|
+ },
|
|
|
+ handleDownload(file) {
|
|
|
+ console.log(file)
|
|
|
+ },
|
|
|
+
|
|
|
+ // statusquery(state) {
|
|
|
+ // this.searchType = state
|
|
|
+ // this.getList()
|
|
|
+ // },
|
|
|
+ // delivery(item) {
|
|
|
+ // this.$router.push({
|
|
|
+ // path: 'warehouseManagementDelivery',
|
|
|
+ // query: {
|
|
|
+ // baseId: item.warehouseId,
|
|
|
+ // positionId: item.binNumberId,
|
|
|
+ // warehouseName: item.warehouseName,
|
|
|
+ // binNumber: item.binNumber,
|
|
|
+ // capacity: item.capacity
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // },
|
|
|
+ getSpanArr(data) {
|
|
|
+ let that = this
|
|
|
+
|
|
|
+ //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
|
|
|
+
|
|
|
+ that.spanArr = []
|
|
|
+
|
|
|
+ that.pos = 0
|
|
|
+
|
|
|
+ // //遍历数据
|
|
|
+
|
|
|
+ data.forEach((item, index) => {
|
|
|
+ //判断是否是第一项
|
|
|
+
|
|
|
+ if (index === 0) {
|
|
|
+ this.spanArr.push(1)
|
|
|
+ this.pos = 0
|
|
|
+ } else {
|
|
|
+ //不是第一项时,就根据标识去存储
|
|
|
+ if (data[index].warehouseNumViewList.length > 1) {
|
|
|
+ 查找到符合条件的数据时每次要把之前存储的数据 + 1
|
|
|
+ this.spanArr[this.pos] = data[index].warehouseNumViewList.length
|
|
|
+ this.spanArr.push(0)
|
|
|
+ } else {
|
|
|
+ // 没有符合的数据时,要记住当前的index
|
|
|
+ this.spanArr.push(1)
|
|
|
+ this.pos = index
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //查看
|
|
|
+ handleLook(row) {
|
|
|
+ this.$router.push({
|
|
|
+ path: 'warehouseManagementPutOutLook',
|
|
|
+ query: {
|
|
|
+ relevanceId: row.relevanceId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //返回
|
|
|
+ revert() {
|
|
|
+ this.$router.push({ path: 'warehouseManagementList' })
|
|
|
+ },
|
|
|
+ dateFormat(fmt, date) {
|
|
|
+ let ret
|
|
|
+ const opt = {
|
|
|
+ 'Y+': date.getFullYear().toString(), // 年
|
|
|
+ 'm+': (date.getMonth() + 1).toString(), // 月
|
|
|
+ 'd+': date.getDate().toString(), // 日
|
|
|
+ 'H+': date.getHours().toString() // 时
|
|
|
+ // "M+": date.getMinutes().toString(), // 分
|
|
|
+ // "S+": date.getSeconds().toString() // 秒
|
|
|
+ // 有其他格式化字符需求可以继续添加,必须转化成字符串
|
|
|
+ }
|
|
|
+ for (let k in opt) {
|
|
|
+ ret = new RegExp('(' + k + ')').exec(fmt)
|
|
|
+ if (ret) {
|
|
|
+ fmt = fmt.replace(
|
|
|
+ ret[1],
|
|
|
+ ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return fmt
|
|
|
+ },
|
|
|
+ handleClose() {
|
|
|
+ this.accessoryTFs = false
|
|
|
+ },
|
|
|
+ handleSizeChange(val) {
|
|
|
+ console.log(`每页 ${val} 条`)
|
|
|
+ this.pageSize = val
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ this.currentPage = val
|
|
|
+ console.log(`当前页: ${val}`)
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ editClick(row) {
|
|
|
+ var status = ''
|
|
|
+ if (row.status == '待审核' || row.status == '已完成') {
|
|
|
+ status = '执行中'
|
|
|
+ } else if (row.status == '执行中') {
|
|
|
+ status = '已完成'
|
|
|
+ }
|
|
|
+ //cancelButtonClass: "btn-custom-cancel"
|
|
|
+ this.$confirm(`是否将状态改为${status}`, {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ alsostate({ id: row.id })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '状态修改成功'
|
|
|
+ })
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ .catch(response => {
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ selecttaskType(e) {
|
|
|
+ for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
|
+ if (this.taskTypeList[i].value == e) {
|
|
|
+ this.searchType = this.taskTypeList[i].type
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // fujian(row) {
|
|
|
+ // if (
|
|
|
+ // row.receiveAttachmentPath === null ||
|
|
|
+ // row.receiveAttachmentPath === ''
|
|
|
+ // ) {
|
|
|
+ // EventBus.$emit(
|
|
|
+ // 'warning',
|
|
|
+ // this.$t('system.noticeCircular.NoInformation')
|
|
|
+ // )
|
|
|
+ // } else {
|
|
|
+ // this.accessoryTFs = true
|
|
|
+ // }
|
|
|
+ // this.appendixIdss = row.receiveAttachmentPath
|
|
|
+ // },
|
|
|
+ handleExamine(row) {
|
|
|
+ this.$router.push({
|
|
|
+ name: 'salesContractExamine',
|
|
|
+ query: { id: row.id }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 关闭 dialog时 处理文件url 初始化upload组件
|
|
|
+ handleCloe() {
|
|
|
+ this.dialogViewSpareMoney = false
|
|
|
+ },
|
|
|
+ history(row) {
|
|
|
+ billoperatehis({ id: row.id })
|
|
|
+ .toPromise()
|
|
|
+ .then(response => {
|
|
|
+ this.historyList = response
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //查找
|
|
|
+ find() {
|
|
|
+ this.currentPage = 1
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ async exportlist() {
|
|
|
+ const { data } = await export1(
|
|
|
+ {
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
+ contractType: this.contractType,
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ searchType: this.searchType,
|
|
|
+ searchKeyWord: this.searchKeyWord,
|
|
|
+ startDate: this.startDate,
|
|
|
+ endDate: this.endDate
|
|
|
+ },
|
|
|
+ {},
|
|
|
+ { responseType: 'blob' }
|
|
|
+ ).toPromise()
|
|
|
+ downloadFile({
|
|
|
+ res: data,
|
|
|
+ fileName: `${this.date.year +
|
|
|
+ (this.date.month ? `-${this.date.month}` : '')}_销售合同`,
|
|
|
+ type: 'xls'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ total() {}
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.connert {
|
|
|
+ width: 90%;
|
|
|
+ margin: 0 auto;
|
|
|
+}
|
|
|
+.vertical-text-left {
|
|
|
+ width: 62px;
|
|
|
+ text-align: right;
|
|
|
+}
|
|
|
+//分页
|
|
|
+.el-pagination {
|
|
|
+ padding: 10px 15px;
|
|
|
+ margin-bottom: 0;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+/deep/.el-pager li.active {
|
|
|
+ color: #5878e8;
|
|
|
+ cursor: default;
|
|
|
+}
|
|
|
+/deep/.el-pager li:hover {
|
|
|
+ color: #5878e8;
|
|
|
+ cursor: default;
|
|
|
+}
|
|
|
+.el-button--primary {
|
|
|
+ background-color: #5878e8;
|
|
|
+ border-color: #5878e8;
|
|
|
+}
|
|
|
+.el-button--default {
|
|
|
+ color: #8890b1;
|
|
|
+ border-color: #e8eaf1;
|
|
|
+}
|
|
|
+/deep/.base_header_layout .grid-content.right .find.el-button--primary {
|
|
|
+ width: 30px;
|
|
|
+ margin-left: 0;
|
|
|
+ border-top-left-radius: 0px;
|
|
|
+ border-bottom-left-radius: 0px;
|
|
|
+}
|
|
|
+/deep/.findValue .el-input__inner {
|
|
|
+ border-top-right-radius: 0px;
|
|
|
+ border-bottom-right-radius: 0px;
|
|
|
+ width: 385px;
|
|
|
+}
|
|
|
+.completed.el-button--default {
|
|
|
+ border-color: #5878e8;
|
|
|
+ background-color: #f6f7fc;
|
|
|
+ color: #5878e8;
|
|
|
+}
|
|
|
+.putstorage.el-button--default,
|
|
|
+.deliverystorage.el-button--default {
|
|
|
+ border-color: #8890b1;
|
|
|
+ background-color: #fff;
|
|
|
+ color: #8890b1;
|
|
|
+}
|
|
|
+/deep/.el-table td,
|
|
|
+/deep/.el-table th.is-leaf {
|
|
|
+ border-right: 1px solid #e9ecf7;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+/deep/.el-table tr td:first-child,
|
|
|
+/deep/.el-table tr th.is-leaf:first-child {
|
|
|
+ border-left: 1px solid #e9ecf7;
|
|
|
+}
|
|
|
+.record,
|
|
|
+.adjustment {
|
|
|
+ display: inline-block;
|
|
|
+ color: #5878e8;
|
|
|
+ padding: 0 4px !important;
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.record:after {
|
|
|
+ position: absolute;
|
|
|
+ content: '';
|
|
|
+ display: block;
|
|
|
+ top: 5px;
|
|
|
+ right: -2px;
|
|
|
+ width: 1px;
|
|
|
+ height: 12px;
|
|
|
+ background: #e9ecf7;
|
|
|
+}
|
|
|
+// .el-row{
|
|
|
+// height: 150px;
|
|
|
+// }
|
|
|
+.base_header_layout .grid-content {
|
|
|
+ margin-top: 80px;
|
|
|
+}
|
|
|
+.el-input--small .el-input__inner {
|
|
|
+ margin-left: 20px;
|
|
|
+}
|
|
|
+.el-range-editor--small.el-input__inner {
|
|
|
+ height: 32px;
|
|
|
+ margin-left: -20%;
|
|
|
+}
|
|
|
+//执行样式
|
|
|
+.executory,
|
|
|
+.inExecution,
|
|
|
+.done {
|
|
|
+ width: 6px;
|
|
|
+ height: 6px;
|
|
|
+ display: inline-block;
|
|
|
+ border-radius: 50%;
|
|
|
+ position: relative;
|
|
|
+ top: -1px;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+.executory {
|
|
|
+ background: #ff9f24;
|
|
|
+}
|
|
|
+.inExecution {
|
|
|
+ background: #5878e8;
|
|
|
+}
|
|
|
+.done {
|
|
|
+ background: #50cad4;
|
|
|
+}
|
|
|
+.record,
|
|
|
+.adjustment {
|
|
|
+ display: inline-block;
|
|
|
+ color: #5878e8;
|
|
|
+ padding: 0 4px !important;
|
|
|
+ position: relative;
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
+.container {
|
|
|
+ overflow: scroll;
|
|
|
+ height: 93vh;
|
|
|
+}
|
|
|
+.button-container {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ background-color: #fff;
|
|
|
+ width: 100%;
|
|
|
+ height: 50px;
|
|
|
+ padding: 0 10px;
|
|
|
+ & > div {
|
|
|
+ margin-left: 10px;
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ flex-direction: row;
|
|
|
+ & > span {
|
|
|
+ line-height: 50px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.auditFlow-box {
|
|
|
+ position: unset;
|
|
|
+ margin-left: 10px;
|
|
|
+ &/deep/.auditFlow-icon {
|
|
|
+ width: auto;
|
|
|
+ padding-right: 30px;
|
|
|
+ }
|
|
|
+ &/deep/.auditFlow-main {
|
|
|
+ position: absolute;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.bg-left {
|
|
|
+ padding-left: 30px;
|
|
|
+}
|
|
|
+.title {
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.title::before {
|
|
|
+ content: '';
|
|
|
+ display: inline-block;
|
|
|
+ width: 5px;
|
|
|
+ height: 30px;
|
|
|
+ background: #5473e8;
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+}
|
|
|
+.el-button--primary {
|
|
|
+ background-color: #5878e8;
|
|
|
+ border-color: #5878e8;
|
|
|
+ // margin-left: 85%;
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
+//导航条样式
|
|
|
+.el-col-12 {
|
|
|
+ width: 50%;
|
|
|
+ height: 60px;
|
|
|
+ background: #f6f7fc;
|
|
|
+ border-radius: 4px 4px 1px 1px;
|
|
|
+}
|
|
|
+.el-input--small .el-input__inner {
|
|
|
+ height: 32px;
|
|
|
+ line-height: 32px;
|
|
|
+ width: 385px;
|
|
|
+ margin-top: 10px;
|
|
|
+}
|
|
|
+.bg-bottom {
|
|
|
+ margin-left: 85%;
|
|
|
+}
|
|
|
+.but {
|
|
|
+ margin-left: 30%;
|
|
|
+ /* margin-top: -32px; */
|
|
|
+ overflow: auto;
|
|
|
+ /* float: left; */
|
|
|
+ /* margin-left: 1px; */
|
|
|
+ margin-left: -10px;
|
|
|
+}
|
|
|
+.el-input--small {
|
|
|
+ font-size: 13px;
|
|
|
+ width: 390px;
|
|
|
+ margin-left: 74%;
|
|
|
+}
|
|
|
+/deep/.el-table .el-table__header .cell,
|
|
|
+.el-table .el-table__body .cell {
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+.el-scrollbar__wrap {
|
|
|
+ overflow-y: hidden;
|
|
|
+}
|
|
|
+.deal {
|
|
|
+ margin-left: 9%;
|
|
|
+ width: 66%;
|
|
|
+}
|
|
|
+.photo {
|
|
|
+ padding: 0% 34%;
|
|
|
+}
|
|
|
+.photo1 {
|
|
|
+ padding: 0 10%;
|
|
|
+}
|
|
|
+.photo2 {
|
|
|
+ padding: 0 55%;
|
|
|
+}
|
|
|
+/deep/.el-form-item--small .el-form-item__label,
|
|
|
+.el-form-item--small .el-form-item__content {
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+hr {
|
|
|
+ width: 91%;
|
|
|
+}
|
|
|
+/deep/.deaal{
|
|
|
+ width: 66%;
|
|
|
+ margin-left: 9%;
|
|
|
+}
|
|
|
+// .danjia{
|
|
|
+// width: 9px;
|
|
|
+// height: 9px;
|
|
|
+// margin-left: 40px;
|
|
|
+// }
|
|
|
+</style>
|