123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770 |
- //移库查看
- <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="vertical-align: bottom; margin-right: 3px"
- src="../../../public/img/lujing.png"
- alt=""
- />返回</el-button
- >
- </el-col>
- </el-row>
- <ws-form
- class="position"
- ref="deptBudgetList"
- :rules="rules"
- :model="deptBudgetList"
- >
- <div class="small-title" style="font-size: 16px">任务详情</div>
- <span
- >移库任务编号:
- <span style="font-weight: 600">{{ this.moveTaskNo }}</span></span
- >
- <!-- <div v-for="(item, index) in shipment" > -->
- <ws-info-table class="inout">
- <!--出货库-->
- <div class="library">
- <span style="margin-left: 14px"
- >出货库:{{ shipment1.sendWarehouse }}</span
- >
- <span class="status" v-show="shipment1.taskStatus == '待审核'">{{
- shipment1.taskStatus
- }}</span>
- <span class="status2" v-show="shipment1.taskStatus == '执行中'">{{
- shipment1.taskStatus
- }}</span>
- <span class="status1" v-show="shipment1.taskStatus == '已完成'">{{
- shipment1.taskStatus
- }}</span>
- </div>
- <!--出库经办人-->
- <ws-form-item label="出库经办人:" span="1" prop="agent">
- {{ shipment1.agent }}
- </ws-form-item>
- <el-divider direction="vertical" class="line"></el-divider>
- <!--出库重量(吨)-->
- <ws-form-item label="出库重量(吨):" span="1" prop="weight">
- {{ shipment1.weight }}
- </ws-form-item>
- <el-divider direction="vertical" class="line"></el-divider>
- <!--仓位-->
- <ws-form-item label="仓位:" span="1" prop="deliveryVolume">
- {{ shipment1.binNumber == null ? '未指定' : shipment1.binNumber }}
- </ws-form-item>
- <el-divider direction="vertical" class="line"></el-divider>
- <!--预计出库日期-->
- <ws-form-item label="预计出库日期:" span="1" prop="predictDate">
- {{ shipment1.predictDate }}
- </ws-form-item>
- </ws-info-table>
- <ws-info-table v-bind:class="classs1">
- <div class="library">
- <span style="margin-left: 14px">
- 入货库:{{ enter.warehouseName }}</span
- >
- <span class="status" v-show="enter.taskStatus == '待审核'">{{
- enter.taskStatus
- }}</span>
- <span class="status2" v-show="enter.taskStatus == '执行中'">{{
- enter.taskStatus
- }}</span>
- <span class="status1" v-show="enter.taskStatus == '已完成'">{{
- enter.taskStatus
- }}</span>
- </div>
- <!--入库经办人-->
- <ws-form-item label="入库经办人:" span="1" prop="agent">
- {{ enter.agent }}
- </ws-form-item>
- <el-divider direction="vertical" class="line"></el-divider>
- <!--入库重量(吨)-->
- <ws-form-item label="入库重量(吨):" span="1" prop="weight">
- {{ enter.weight }}
- </ws-form-item>
- <el-divider direction="vertical" class="line"></el-divider>
- <!-- 仓位 -->
- <ws-form-item label="仓位:" span="1" prop="deliveryVolume">
- {{ enter.binNumber == null ? '未指定' : enter.binNumber }}
- </ws-form-item>
- <el-divider direction="vertical" class="line"></el-divider>
- <!--预计入库日期-->
- <ws-form-item label="预计入库日期:" span="1" prop="predictDate">
- {{ enter.predictDate }}
- </ws-form-item>
- </ws-info-table>
- <div style="float: right; margin-top: -61px;color:red;" v-show="this.moveLookData.length == 1">已删除</div>
- <!-- </div> -->
- <ws-info-table class="goods">
- <!--货物信息-->
- <div class="library">
- <span style="line-height: 50px; color: #323233; margin-left: 14px"
- >货物信息</span
- >
- </div>
- <el-input
- placeholder="信息暂无"
- :disabled="true"
- v-model="this.goodsName"
- ></el-input>
- <el-divider direction="vertical" class="line1"></el-divider>
- <el-input
- placeholder="信息暂无"
- :disabled="true"
- v-model="this.grade"
- ></el-input>
- <el-divider direction="vertical" class="line1"></el-divider>
- <el-input
- placeholder="信息暂无"
- :disabled="true"
- v-model="this.bulkDensity + 'g/L(容)'"
- >
- </el-input>
- <el-divider direction="vertical" class="line1"></el-divider>
- <el-input
- placeholder="信息暂无"
- :disabled="true"
- v-model="this.waterContent + '%(水)'"
- >
- </el-input>
- <el-divider direction="vertical" class="line1"></el-divider>
- <el-input
- placeholder="信息暂无"
- :disabled="true"
- v-model="this.weight + '(吨)'"
- >
- </el-input>
- <el-divider direction="vertical" class="line1"></el-divider>
- <el-input
- placeholder="信息暂无"
- :disabled="true"
- v-model="this.unitPrice + '(元/吨)'"
- >
- </el-input>
- </ws-info-table>
- <span style="line-height: 60px; text-align: center; color: #323233"
- >业务描述:</span
- >
- <!--业务描述-->
- <ws-input
- v-model="businessDescribe"
- type="textarea"
- row="3"
- placeholder="暂无"
- maxlength="200"
- readonly
- />
- <div class="small-title" style="font-size: 16px">实际流转数量</div>
- <ws-info-table class="flow">
- <el-table :data="weights" border style="width: 100%">
- <el-table-column prop="weightOut" label="累计出库量(吨)">
- </el-table-column>
- <el-table-column prop="weightIn" label="累计入库量(吨)">
- </el-table-column>
- <el-table-column prop="transportLoss" label="累计运输损耗(吨)">
- <template scope="scope">
- {{ scope.row.weightOut - scope.row.weightIn - Number(count)}}
- </template>
- </el-table-column>
- </el-table>
- </ws-info-table>
- <ws-info-table class="flow1">
- <el-table
- :data="enter.inOutWarehouseTaskList"
- border
- style="width: 100%"
- >
- <el-table-column prop="weight" label="累计退库量(吨)">
- <el-table-column :label="count">
- <template scope="scope">
- {{ scope.row.weight
- }}<span style="margin: 0 30px; color: #8890b1">退至</span
- >{{ scope.row.warehouseName }}
- </template>
- </el-table-column>
- </el-table-column>
- </el-table>
- </ws-info-table>
- </ws-form>
- <!-- 提交 -->
- <div style="text-align: right; padding: 10px" class="center">
- <el-button
- class="bg-bottom"
- type="primary"
- size="small"
- @click="returnsales"
- >关闭</el-button
- >
- </div>
- </div>
- </template>
- <script>
- import { moveLook } from '@/model/tasksport/index'
- import WsUpload from '@/components/WsUpload'
- import mapDrag from '@/components/mapdrag/mapdrag'
- export default {
- name: 'viewSpareMoney',
- components: {
- WsUpload,
- mapDrag,
- },
- watch: {
- vesselId(val) {
- this.getVesselData()
- },
- isShow(val) {
- this.showType = val
- },
- },
- data() {
- return {
- deptBudgetList: {
- totalStorage: 0,
- },
- listDate: { country: '中国', level: 'country', city: '' },
- tranType: 2,
- rules: {
- warehouseName: [
- {
- required: true,
- message: '请输入仓库名称',
- trigger: 'blur',
- },
- {
- min: 2,
- max: 20,
- message: '仓库名长度不符合要求,请输入2-20字符之内',
- trigger: 'blur',
- },
- ],
- },
- appendixIdsAdd: '',
- size: 10,
- unitList: [],
- name: '',
- moveLookData: [],
- shipment: {},
- shipment1: {},
- enter: {
- inOutWarehouseTaskList:[],
- },
- moveTaskNo: '',
- weights: [
- {},
- ],
- weightOut: 0,
- weightIn: 0,
- transportLoss: 0,
- weightIn: 0,
- retreat: 0,
- goodsName: '',
- grade: '',
- bulkDensity: 0,
- waterContent: 0,
- weight: 0,
- unitPrice: 0,
- businessDescribe: '',
- count: '0',
- classs1:'inout',
- }
- },
- activated() {
- this.moveTaskNo = this.$route.query.moveTaskNo
- this.getList()
- },
- mounted() {
- this.moveTaskNo = this.$route.query.moveTaskNo
- this.getList()
- },
- methods: {
- marker: function (item) {
- this.deptBudgetList.warehousePositioning =
- item.lnglat.lat + ',' + item.lnglat.lng
- },
- confirmPositioncity() {
- this.listDate.level = 'city'
- this.listDate.country = this.name
- },
- // 关闭 dialog时 处理文件url 初始化upload组件
- handleClose() {
- this.dialogViewSpareMoney = false
- },
- returnsales() {
- this.moveLookData = []
- this.$router.go(-1)
- },
- // 上传附件
- uploadSuccess(data, files, url) {
- console.log(data, files, url)
- },
- resetForm(deptBudgetList) {
- this.$refs[deptBudgetList].resetFields()
- },
- getList() {
- moveLook({ moveTaskNo: this.moveTaskNo })
- .toPromise()
- .then((response) => {
- this.moveLookData = response
- for (var i = 0; i < this.moveLookData.length; i++) {
- if (this.moveLookData[i].inOutType == '移库出库') {
- this.shipment = this.moveLookData[i]
- this.shipment1 = this.moveLookData[i]
- this.weightOut = this.moveLookData[i].weight
- this.$set(
- this.weights[0],
- 'weightOut',
- this.moveLookData[i].completedQuantity
- )
- } else {
- // if (this.moveLookData[i].inOutType == '移库入库')
- this.enter = this.shipment = this.moveLookData[i]
- this.weightIn = this.moveLookData[i].weight
- this.$set(
- this.weights[0],
- 'weightIn',
- this.moveLookData[i].completedQuantity
- )
- this.businessDescribe = this.moveLookData[i].businessDescribe
- }
- this.transportLoss = this.weightOut - this.weightIn
- this.goodsName = this.moveLookData[0].goodsName
- this.grade = this.moveLookData[0].grade
- if(this.moveLookData[0].bulkDensity){
- this.bulkDensity = this.moveLookData[0].bulkDensity
- }
- if(this.moveLookData[0].waterContent){
- this.waterContent = this.moveLookData[0].waterContent
- }
- if(this.moveLookData[0].unitPrice){
- this.unitPrice = this.moveLookData[0].unitPrice
- }
- this.weight = this.moveLookData[0].weight
- }
- var num = 0
- for (var i = 0; i < this.enter.inOutWarehouseTaskList.length; i++) {
- num += this.enter.inOutWarehouseTaskList[i].weight
- }
- this.count = ""+num
- if(this.enter.inOutType == null && this.enter.agent ==null){
- this.classs1 = 'inouts'
- }
- })
- },
- selectChapterTwo(e) {
- for (var i = 0; i < this.ChapterTwoList.length; i++) {
- if (this.ChapterTwoList[i].constValue == e) {
- this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
- }
- }
- },
- selectunitList(e) {
- for (var i = 0; i < this.unitList.length; i++) {
- if (this.unitList[i].constValue == e) {
- this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
- }
- }
- },
- selectgrade(e) {
- for (var i = 0; i < this.gradeList.length; i++) {
- if (this.gradeList[i].constValue == e) {
- this.deptBudgetList.gradeKey = this.gradeList[i].constKey
- }
- }
- },
- selectgoodsName(e) {
- for (var i = 0; i < this.goodnameList.length; i++) {
- if (this.goodnameList[i].constValue == e) {
- this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
- }
- }
- },
- selectpackingMethod(e) {
- for (var i = 0; i < this.packtypeList.length; i++) {
- if (this.packtypeList[i].constValue == e) {
- this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
- }
- }
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- //蓝标
- .small-title {
- position: relative;
- padding: 10px;
- font-weight: 600;
- }
- .small-title::before {
- position: absolute;
- content: '';
- display: block;
- background: #5473e8;
- width: 4px;
- height: 14px;
- left: 0px;
- top: 13px;
- }
- .amap-page-container {
- width: 300px;
- height: 300px;
- }
- .el-form {
- padding: 0 15%;
- }
- /deep/.ws-info-table .el-form-item {
- width: 23%;
- border: none;
- height: 50px;
- }
- .readonly {
- position: relative;
- }
- .readonly:after {
- content: '*';
- color: #ff2727;
- position: absolute;
- right: 8px;
- z-index: 10;
- top: 21%;
- font-size: 20px;
- }
- .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;
- }
- /deep/.ws-info-table .el-form-item .el-form-item__content {
- border: none;
- font-size: 14px;
- // color: #8890b1;
- }
- /deep/.ws-info-table .el-form-item .el-form-item__label {
- text-align: right;
- background: #fff;
- font-size: 14px;
- font-weight: 400;
- width: 52%;
- }
- .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;
- float: left;
- 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-right: 10px;
- text-align: right;
- }
- .bg-bottom {
- margin: 15px 0px;
- }
- .center {
- width: 90%;
- margin: 0 auto;
- }
- .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-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: 0 0 20px;
- }
- .container {
- overflow: scroll;
- height: 93vh;
- }
- .readonly:after {
- display: none;
- }
- .el-form {
- margin-top: 50px;
- }
- .readonly {
- width: 16%;
- }
- //去边框
- /deep/.el-form-item {
- border-right: 0px;
- border-bottom: 0px;
- width: 50%;
- }
- /deep/.ws-info-table {
- border-left: 0px;
- border-top: 0px;
- }
- //输入框
- /deep/.el-input {
- width: 14.555%;
- margin-left: 10px;
- }
- /deep/.is-disabled .el-input__inner {
- height: 40px;
- text-align: center;
- }
- .library {
- width: 100%;
- height: 50px;
- border-bottom: 1px solid #d8dce6;
- color: #232323;
- line-height: 50px;
- }
- .line {
- height: 50px;
- // left: -80px;
- }
- .line1 {
- height: 50px;
- }
- /deep/.is-disabled .el-input__inner {
- margin-top: 4px;
- }
- //业务描述
- /deep/.el-textarea {
- width: 90%;
- // margin-left: 24px;
- margin-top: 20px;
- }
- .inout {
- width: 95%;
- border-radius: 4px;
- border: 1px solid #d8dce6;
- margin-top: 20px;
- }
- .goods {
- width: 95%;
- border-radius: 4px;
- border: 1px solid #d8dce6;
- margin-top: 20px;
- }
- .flow,
- .flow1 {
- border-radius: 5px;
- border: 1px solid #d8dce6;
- margin-top: 20px;
- // border-bottom: 0px;
- border-top: 0px;
- }
- .flow {
- height: 95px;
- }
- /deep/.flow .el-form-item {
- display: inline-grid;
- border-bottom: 1px solid #d8dce6;
- width: 30%;
- height: 50px;
- text-align: center;
- }
- .flow .el-col {
- background: #fff;
- display: contents;
- }
- .flow{
- width: 95%;
- }
- .flow1 {
- width: 32%;
- }
- /deep/.el-table th > .cell {
- text-align: center;
- border-right: 1px solid #d8dce6;
- background: #fff;
- }
- .weights {
- width: 100%;
- height: 50px;
- text-align: center;
- line-height: 50px;
- }
- /deep/.el-textarea__inner {
- border: none;
- }
- /deep/.el-table th > .cell {
- color: #000 !important;
- font-weight: 400;
- }
- /deep/.el-table td {
- text-align: center;
- }
- .status {
- margin-left: 10px;
- background: #e6eaf8;
- padding: 2px 5px;
- border-radius: 3px;
- color: #5473e8;
- }
- .status1 {
- margin-left: 10px;
- background: #e5f1f7;
- padding: 2px 5px;
- border-radius: 3px;
- color: #50cad4;
- }
- .status2 {
- margin-left: 10px;
- background: #e1e7fd;
- padding: 2px 5px;
- border-radius: 3px;
- color: #5473e8;
- }
- .inouts{
- background: #F6F7FB;
- width: 95%;
- border-radius: 4px;
- border: 1px solid #d8dce6;
- margin-top: 20px;
- }
- /deep/.inouts .el-form-item .el-form-item__content,/deep/.inouts .el-form-item .el-form-item__label{
- background: #F6F7FB;
- }
- </style>
|