123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831 |
- <!--销售合同-->
- <!--2019年5月30日 20:25:16 by jlx-->
- <template>
- <div class="container">
- <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="returnsales()"
- ><img
- width="6"
- height="10"
- style="vertion-align: bottom; margin-right: 3px"
- src="../../../public/img/lujing.png"
- alt=""
- />返回</el-button
- >
- </el-col>
- </el-row>
- <div class="state">
- <h2>销售合同</h2>
- <p>【编号:{{ deptBudgetList.contractNo }}】</p>
- <div class="icon">
- <template>
- <el-popover
- placement="right"
- :width="285"
- trigger="click"
- visible-arrow="false"
- @show="history(deptBudgetList.id)"
- >
- <template>
- <div slot="reference"> {{deptBudgetList.status }}</div>
- </template>
- <div>
- <p style="margin-top: 0; padding-left: 10px">操作历史</p>
- <div v-for="(item, index) in historyList" class="flex">
- <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-popover>
- </template>
- </div>
- </div>
- <div class="center">
- <ws-form
- ref="deptBudgetList"
- :rules="mainReportAdd"
- :model="deptBudgetList"
- >
- <div class="remark">
- <h3>基本信息</h3>
- </div>
- <ws-info-table>
- <ws-form-item label="合同类型" span="1" prop="agreementType">
- <div class="unchanged">
- {{ deptBudgetList.agreementType }}
- </div>
- </ws-form-item>
- <ws-form-item label="合同编号" v-if="deptBudgetList.agreementType=='销售合同'" span="1" prop="contractNo">
- <div class="unchanged">
- {{ deptBudgetList.contractNo }}
- </div>
- </ws-form-item>
- <ws-form-item label="关联合同" v-if="deptBudgetList.agreementType=='补充协议'" span="1" prop="agreementNo">
- <div class="unchanged">
- {{ deptBudgetList.agreementNo }}
- </div>
- </ws-form-item>
- <ws-form-item label="补充协议编号" v-if="deptBudgetList.agreementType=='补充协议'" span="1" prop="contractNo">
- <div class="unchanged">
- {{ deptBudgetList.contractNo }}
- </div>
- </ws-form-item>
- <ws-form-item label="运输方式" span="1" prop="shippingType">
- <div class="unchanged">
- {{ deptBudgetList.shippingType }}
- </div>
- </ws-form-item>
- <ws-form-item label="买方" span="1" prop="buyer">
- <div class="unchanged">
- {{ deptBudgetList.buyer }}
- </div>
- </ws-form-item>
- <ws-form-item label="结算方式" span="1" prop="settlementMethod">
- <div class="unchanged">
- {{ deptBudgetList.settlementMethod }}
- </div>
- </ws-form-item>
- <ws-form-item label="卖方" span="1" prop="seller">
- <div class="unchanged">
- {{ deptBudgetList.seller }}
- </div>
- </ws-form-item>
- <ws-form-item label="交货方式" span="1" prop="deliverType">
- <div class="unchanged">
- {{ deptBudgetList.deliverType }}
- </div>
- </ws-form-item>
- <ws-form-item label="买方电话" span="1" prop="buyerPhone">
- <div class="unchanged">
- {{ deptBudgetList.buyerPhone }}
- </div>
- </ws-form-item>
- <ws-form-item label="包装方式" span="1" prop="packingMethod">
- <div class="unchanged">
- {{ deptBudgetList.packingMethod }}
- </div>
- </ws-form-item>
- <ws-form-item label="卖方电话" span="1" prop="sellerPhone">
- <div class="unchanged">
- {{ deptBudgetList.sellerPhone }}
- </div>
- </ws-form-item>
- <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
- <div class="unchanged">
- {{ deptBudgetList.acceptanceMethod }}
- </div>
- </ws-form-item>
- <ws-form-item label="重量(吨)" span="1" prop="weight">
- <div class="unchanged">
- {{ deptBudgetList.weight }}
- </div>
- </ws-form-item>
- <ws-form-item
- label="交货日期(起)"
- span="1"
- prop="deliveryDateStart"
- >
- <div class="unchanged">
- {{ deptBudgetList.deliveryDateStart }}
- </div>
- </ws-form-item>
- <ws-form-item label="溢短装(%)" span="1" prop="overShort">
- <div class="unchanged">
- {{ deptBudgetList.overShort }}
- </div>
- </ws-form-item>
- <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
- <div class="unchanged">
- {{ deptBudgetList.deliveryDateEnd }}
- </div>
- </ws-form-item>
- <ws-form-item
- label="合同单价(元/吨)"
- span="1"
- prop="unitContractPrice"
- >
- <div class="unchanged">
- {{ deptBudgetList.unitContractPrice }}
- </div>
- </ws-form-item>
- <ws-form-item
- label="合同总价(元)"
- span="1"
- prop="totalContractPrice"
- >
- <div class="unchanged">
- {{ deptBudgetList.totalContractPrice }}
- </div>
- </ws-form-item>
- <ws-form-item label="货源所在地区" span="1">
- <div class="unchanged">
- {{ deptBudgetList.sourceProvince }}
- {{ deptBudgetList.sourceCity }}
- {{ deptBudgetList.sourceArea }}
- </div>
- </ws-form-item>
- <ws-form-item label="货源详细地址" span="1" prop="sourceGoods">
- <div class="unchanged">
- {{ deptBudgetList.sourceGoods }}
- </div>
- </ws-form-item>
- <ws-form-item label="交货地所在地区" span="1">
- <div class="unchanged">
- {{ deptBudgetList.deliveryProvince }}
- {{ deptBudgetList.deliveryCity }}
- {{ deptBudgetList.deliveryArea }}
- </div>
- </ws-form-item>
- <ws-form-item label="交货地详细地址" span="1" prop="placeDelivery">
- <div class="unchanged">
- {{ deptBudgetList.placeDelivery }}
- </div>
- </ws-form-item>
- <ws-form-item label="签订日期" span="1" prop="signingDate">
- <div class="unchanged">
- {{ deptBudgetList.signingDate }}
- </div>
- </ws-form-item>
- <ws-form-item
- label="最终实际交易量 (吨)"
- span="1"
- prop="finalTradingVolume"
- >
- <div class="unchanged">
- {{ deptBudgetList.finalTradingVolume }}
- </div>
- </ws-form-item>
- </ws-info-table>
- <!--面试信息-->
- <div class="remark">
- <h3>货物信息</h3>
- </div>
- <ws-info-table>
- <ws-form-item label="货名" span="1" prop="waterContent">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.goodsName }}
- </div>
- </ws-form-item>
- <ws-form-item label="水分(%)<=" span="1" prop="intendedShipId">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.waterContent }}
- </div>
- </ws-form-item>
- <ws-form-item label="品级" span="1" prop="grade">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.grade }}
- </div>
- </ws-form-item>
- <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.impurity }}
- </div>
- </ws-form-item>
- <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.bulkDensity }}
- </div>
- </ws-form-item>
- <ws-form-item
- label="霉变粒(%)<="
- span="1"
- prop="mildewGrain"
- class="result"
- >
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.mildewGrain }}
- </div>
- </ws-form-item>
- <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.jiaorenli }}
- </div>
- </ws-form-item>
- <ws-form-item
- label="不完善粒(%)<="
- span="1"
- prop="imperfectGrain"
- class="result"
- >
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.imperfectGrain }}
- </div>
- </ws-form-item>
- </ws-info-table>
- <div class="remark">
- <h3>流程信息</h3>
- </div>
- <ws-info-table>
- <ws-form-item label="合同收入(元)" span="1" prop="goodsNameKey">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.goodsNameKey }}
- </div>
- </ws-form-item>
- <ws-form-item label="已开发票(元)" span="1" prop="goodsName">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.goodsName }}
- </div>
- </ws-form-item>
- <ws-form-item label="费用支出(元)" span="1" prop="waterContent">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.waterContent }}
- </div>
- </ws-form-item>
- <ws-form-item label="未开发票(元)" span="1" prop="impurity">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.impurity }}
- </div>
- </ws-form-item>
- <ws-form-item label="未回款(元)" span="1" prop="mildewGrain">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.mildewGrain }}
- </div>
- </ws-form-item>
- <!-- <ws-form-item
- label="已完成发运量(吨)"
- span="1"
- prop="imperfectGrain"
- class="result"
- >
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.imperfectGrain }}
- </div>
- </ws-form-item> -->
- <ws-form-item label="双章原件回收情况" span="1" prop="grade">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.grade }}
- </div>
- </ws-form-item>
- </ws-info-table>
- <div class="remark">
- <h3>备注信息</h3>
- <div class="beizhu">
- {{ deptBudgetList.remarks }}
- </div>
- </div>
- <ws-upload
- ref="upload"
- :comp-id="compId"
- :appendix-ids="deptBudgetList.addressUrl"
- :editable="false"
- accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
- />
- </ws-form>
- <el-table
- class="wenzi"
- :data="taskhistories"
- style="width: 100%"
- >
- <el-table-column prop="operatorMajorRoleName" label="审核人">
- <template scope="scope">
- {{scope.row.operatorMajorRoleName}}{{scope.row.operatorName}}
- </template>
- </el-table-column>
- <el-table-column prop="inOutTaskNo" label="审核结果">
- <template scope="scope">
- <span v-if='scope.row.approved'>通过</span>
- <span v-if='!scope.row.approved'>驳回</span>
- </template>
- </el-table-column>
- <el-table-column prop="endTime" label="审核时间"></el-table-column>
- <el-table-column prop="auditMind" label="驳回原因"></el-table-column>
- </el-table>
- <div style="text-align: right; padding: 10px">
- <el-button
- class="bg-bottom"
- type="primary"
- size="small"
- @click="returnsales()"
- >关闭</el-button
- >
- </div>
- </div>
- </div>
- </template>
- <script>
- import {
- packList,
- xiala,
- examineList,
- billoperatehis,
- } from '@/model/contarct/index'
- import {
- gettaskhistories
- } from '@/model/tasksport/index'
- import { dayjs } from 'base-core-lib'
- import WsUpload from '@/components/WsUpload'
- export default {
- name: 'viewSpareMoney',
- components: {
- WsUpload,
- },
- watch: {
- vesselId(val) {
- this.getVesselData()
- },
- isShow(val) {
- this.showType = val
- },
- },
- data() {
- return {
- //弹出框
- dialogViewSpareMoney: false,
- dialogApproveFormVisible: false,
- taskhistories:[],
- // 船舶类型
- monetaryKey: null,
- // 表格显示数据
- tableDate: [],
- // 是否显示
- showType: true,
- // 年
- year: '',
- // 提交类型
- submitType: true,
- tableData: [],
- ruleDeptBudget: [],
- deptBudgetList: {
- contractProcessInfo: {},
- contractGoodsInfo: {},
- },
- mainReportAdd: {},
- list: {},
- historyList: [],
- compId: sessionStorage.getItem('ws-pf_compId'),
- }
- },
- activated() {
- this.status = this.$route.query.status
- this.loaddata()
- this.showType = this.isShow
- // this.examineList()
- },
- methods: {
- loaddata() {
- gettaskhistories({businessKey: this.$route.query.id,workflowId: this.$route.query.workflowId}).toPromise()
- .then((response) => {
- this.taskhistories=response
- })
- // 数据
- examineList({ id: this.$route.query.id })
- .toPromise()
- .then((response) => {
- this.deptBudgetList = response
- if (this.deptBudgetList.deliverType == 1) {
- this.deptBudgetList.deliverType1 = '我方送货'
- } else if (this.deptBudgetList.deliverType == 2) {
- this.deptBudgetList.deliverType1 = '对方自提'
- }
- })
- // 包装方式
- packList({ constId: 'CON1' })
- .toPromise()
- .then((response) => {
- this.packtypeList = response
- })
- // 验收方式
- this.getUnitList()
- // 货名
- packList({ constId: 'CON2' })
- .toPromise()
- .then((response) => {
- this.goodnameList = response
- })
- // 品级
- packList({ constId: 'CON3' })
- .toPromise()
- .then((response) => {
- this.gradeList = response
- })
- // 双章
- packList({ constId: 'CON4' })
- .toPromise()
- .then((response) => {
- this.ChapterTwoList = response
- })
- },
- getUnitList() {
- xiala({
- compId: sessionStorage.getItem('ws-pf_compId'),
- constCode: 'TYPEYAN',
- })
- .toPromise()
- .then((response) => {
- this.unitList = response
- let currItem
- this.unitList.forEach((item, index, arr) => {
- item.flag = 'delete'
- if (this.vModel == item.constKey) {
- currItem = item
- }
- })
- //
- if (currItem) {
- this.selectContract(currItem.constValue)
- }
- })
- },
- // 关闭 dialog时 处理文件url 初始化upload组件
- handleClose() {
- this.dialogViewSpareMoney = false
- },
- history(id1) {
- billoperatehis({ id: id1 })
- .toPromise()
- .then((response) => {
- this.historyList = response
- })
- },
- returnsales() {
- this.$router.go(-1)
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- /deep/.ws-info-table .el-form-item .el-form-item__content {
- padding: 0 25px;
- }
- /deep/.ws-info-table .el-form-item {
- border-right: 1px solid #cdd2dc;
- border-bottom: 1px solid #cdd2dc;
- }
- .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;
- }
- .el-col {
- background: #f6f7fc;
- }
- .readonly {
- position: relative;
- }
- .readonly:after {
- content: '*';
- color: #ff2727;
- position: absolute;
- right: 8px;
- z-index: 10;
- top: 21%;
- font-size: 20px;
- }
- /deep/.ws-info-table .el-form-item .el-form-item__content {
- padding: 0 25px;
- border-left: 1px solid #cdd2dc;
- background: #fafbfc;
- }
- /deep/.ws-info-table .el-form-item .el-form-item__label {
- width: 140px;
- text-align: center;
- background: #f0f2f6;
- // border: 1px solid #cdd2dc;
- }
- .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;
- }
- }
- }
- .box-app {
- display: inline-block;
- margin-left: 30px;
- line-height: 50px;
- }
- /deep/.el-dialog {
- .el-form-item {
- margin-bottom: 0 !important;
- .el-input--medium {
- textarea {
- min-height: 100px !important;
- }
- }
- }
- }
- .collapse-bottom {
- margin-bottom: 20px;
- }
- .input-main .textarea .el-textarea__inner {
- width: 100%;
- z-index: 1;
- }
- .bg-left {
- padding-left: 30px;
- }
- .bg-right {
- padding: 10px;
- text-align: right;
- }
- .bg-bottom {
- margin: 6px 0px;
- }
- .wenzi {
- width: 900px;
- margin: 0 auto;
- }
- .wenzi h3 {
- display: inline-block;
- left: 30px;
- }
- .wenzi p {
- display: inline-block;
- }
- .center {
- width: 900px;
- margin: 0 auto;
- }
- .el-form-item {
- width: 50%;
- }
- .el-form-item__label {
- text-align: center;
- }
- /*.crt-main .textarea /deep/ .el-form-item__label {*/
- /* height: 82px;*/
- /*}*/
- // 控制select为只读的时候显示样式
- .hide-sel {
- .el-input__inner {
- border: 0px;
- }
- .el-icon-arrow-up {
- display: none;
- }
- .el-textarea__inner {
- background-color: #fff !important;
- border: 0;
- }
- .el-date-editor {
- i {
- display: none;
- }
- }
- .is-disabled {
- .el-input__inner:hover {
- background-color: #fff !important;
- border: 0;
- }
- color: #606266;
- .el-input__inner {
- background-color: #fff !important;
- border: 0;
- color: #606266;
- }
- .el-textarea__inner {
- background-color: #fff !important;
- border: 0;
- color: #606266;
- }
- }
- }
- // 控制select为只读的时候显示样式
- /deep/.ws-class-table-col {
- height: auto;
- padding: 0px 2px;
- /deep/.el-input__inner {
- padding: 0px 2px;
- }
- }
- /deep/.is-disabled {
- .el-input__prefix,
- .el-input__suffix {
- display: none;
- }
- .el-input__inner {
- background-color: #fff;
- border-color: #fff !important;
- color: #000 !important;
- font-size: 14px;
- cursor: text;
- padding: 0 !important;
- }
- }
- .winseaview-view {
- padding: 10px 0 20px;
- }
- .container {
- overflow: scroll;
- height: 93vh;
- }
- .state {
- width: 900px;
- margin: 0 auto;
- }
- .state h2,
- .state p {
- display: inline-block;
- }
- .state p {
- display: inline-block;
- margin-left: 10px;
- width: 170px;
- height: 20px;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #000000;
- line-height: 20px;
- }
- .icon {
- display: inline-block;
- width: 60px;
- height: 24px;
- background: #ecfeff;
- border-radius: 12px;
- border: 1px solid #50cad4;
- position: relative;
- font-size: 14px;
- color: #50cad4;
- line-height: 24px;
- padding: 1px 7px;
- }
- //*号
- // .unchangeable {
- // position: absolute;
- // width: 9px;
- // height: 22px;
- // font-size: 16px;
- // font-family: PingFangSC-Medium, PingFang SC;
- // font-weight: 500;
- // color: #ff2727;
- // line-height: 22px;
- // display: inline-block;
- // right: 14px;
- // }
- /deep/.el-input,
- /deep/.el-date-editor {
- font-size: 13px;
- width: 232px;
- left: 21px;
- }
- /deep/.el-textarea {
- width: 900px;
- margin: 0px;
- }
- /deep/el-date-editor--date {
- width: 200px;
- }
- /deep/.beizhu {
- margin: 0 auto;
- font-size: 14px;
- color: #afb5cb;
- margin-left: 20px;
- }
- .unchanged {
- position: absolute;
- left: 37px;
- width: 900px;
- height: 14px;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #afb5cb;
- line-height: 14px;
- }
- /deep/.ws-info-table[data-v-850a44a6] .el-form-item .el-form-item__label {
- width: 130px;
- }
- /deep/.el-input--small .el-input__inner {
- height: 32px;
- line-height: 32px;
- width: 232px;
- }
- .vertical-text-left {
- width: 62px;
- text-align: right;
- }
- .vertical-text {
- margin: 0 10px;
- color: #8890b1;
- font-size: 12px;
- margin-top: -4px;
- }
- .vertical-line {
- height: 100px;
- border-left: 2px solid #e9ecf7;
- margin-left: 4px;
- padding: 0 3px;
- }
- .vertical-circle {
- width: 10px;
- height: 10px;
- border: 2px solid #5878e8;
- background-color: #ffffff;
- -webkit-border-radius: 100px;
- }
- .vertical-circle:first-child {
- color: red;
- }
- </style>
|