作者 liyongchun

121212

... ... @@ -28,7 +28,7 @@
/>
</div>
<div class="chaxun">
<img src="../../assets/chaxun.png" class="cha-imgs" alt="">
<img src="../../assets/chaxun.png" class="cha-imgs" alt="" />
</div>
</div>
</div>
... ... @@ -49,28 +49,20 @@
<span
v-if="scope.row.province == '审核中'"
style="color: #e6a23c"
>待装车</span
>未确认</span
>
<span
v-if="scope.row.province == '审核通过'"
style="color: #67c23a"
>已封车</span
>已确认</span
>
</template>
</el-table-column>
<el-table-column prop="city" label="到货确认时间" width="127">
<el-table-column prop="time" label="到货确认时间" width="127">
</el-table-column>
<el-table-column prop="address" label="到货确认地点" width="127">
</el-table-column>
<el-table-column prop="zip" label="卸车登记" width="127">
<template>
<el-button
type="text"
size="small"
@click="dialogVisibleg = true"
>查看详情</el-button
>
</template>
</el-table-column>
<el-table-column prop="zip" label="仪表记录" width="127">
<template>
... ... @@ -109,9 +101,11 @@
<el-button
type="text"
size="small"
@click="dialogVisibleg = true"
v-if="isSure"
@click="sendSrue(scope.$index)"
>到货确认</el-button
>
<el-button type="text" size="small" v-else>编制调度</el-button>
<el-button
type="text"
size="small"
... ... @@ -133,13 +127,15 @@
</div>
<div class="tiaoshu">
<div class="left-io"></div>
<div class="gon">共400条</div>
<div class="gon" v-if="tableData.length != 0">
共{{ tableData.length }}条
</div>
<div class="kls">
<el-pagination
:page-size="20"
:pager-count="11"
layout="prev, pager, next"
:total="1000"
:total="tableData.length"
>
</el-pagination>
</div>
... ... @@ -180,8 +176,9 @@
</el-table>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisible = false">确认</el-button>
<el-button type="primary" round @click="dialogVisible = false"
>确认</el-button
>
</div>
</div>
</el-dialog>
... ... @@ -190,13 +187,17 @@
title="仪表记录详情"
:visible.sync="dialogVisibleyi"
width="60%"
style='margin-top: 10%'
style="margin-top: 10%"
:append-to-body="true"
@close="closeDialog"
>
<div class="liebiao">
<div class="jisudu">
<el-tabs v-model="activeName" @tab-click="handleClicks" style='width: 100%'>
<el-tabs
v-model="activeName"
@tab-click="handleClicks"
style="width: 100%"
>
<el-tab-pane label="加速度的加速数据" name="first"
><el-table
:data="tablelist"
... ... @@ -264,9 +265,9 @@
style="width: 25%"
>
</el-table-column> </el-table
></el-tab-pane
>
<el-tab-pane label="四元素" name="third"><el-table
></el-tab-pane>
<el-tab-pane label="四元素" name="third"
><el-table
:data="tablelist"
border
style="width: 100%; margin-top: 15px"
... ... @@ -280,37 +281,22 @@
style="width: 20%"
>
</el-table-column>
<el-table-column
prop="name"
label="Q1"
style="width: 20%"
>
<el-table-column prop="name" label="Q1" style="width: 20%">
</el-table-column>
<el-table-column
prop="province"
label="Q2"
style="width: 20%"
>
<el-table-column prop="province" label="Q2" style="width: 20%">
</el-table-column>
<el-table-column
prop="city"
label="Q3 "
style="width: 20%"
>
<el-table-column prop="city" label="Q3 " style="width: 20%">
</el-table-column>
<el-table-column
prop="city"
label="Q5 "
style="width: 20%"
>
<el-table-column prop="city" label="Q5 " style="width: 20%">
</el-table-column> </el-table
></el-tab-pane>
</el-tabs>
</div>
<div class="queren">
<el-button type="primary" round @click='dialogVisibleyi = false'>确认</el-button>
<el-button round @click='dialogVisibleyi = false'>取消</el-button>
<el-button type="primary" round @click="dialogVisibleyi = false"
>确认</el-button
>
<el-button round @click="dialogVisibleyi = false">取消</el-button>
</div>
</div>
</el-dialog>
... ... @@ -319,16 +305,26 @@
title="到货确认"
:visible.sync="dialogVisibleg"
width="40%"
style="margin-top: 13%;"
style="margin-top: 13%"
:append-to-body="true"
>
<div class="liebiao">
<el-form :rules="rules" class="liebiao">
<div class="fahuo-li">
<div class="a" style="margin-right: 160px">
<div class="sd">
<div class="fa-ji">到货时间</div>
<div class="inputt" style="padding-left: 15px;padding-right: 15px;">
<input type="text" placeholder="请输入到货时间" class="ss" />
<div
class="inputt"
style="padding-left: 15px; padding-right: 15px"
>
<el-date-picker
v-model="value1"
type="date"
placeholder="选择日期"
:change="changData"
ref="datas"
>
</el-date-picker>
<img src="../../assets/xiala.png" class="xial" alt="" />
</div>
</div>
... ... @@ -337,18 +333,26 @@
<div class="a">
<div class="sd">
<div class="fa-ji">到货地点</div>
<div class="inputt" style="padding-left: 15px;padding-right: 15px;">
<input type="text" placeholder="请输入到货地点" class="ss" />
<div
class="inputt"
style="padding-left: 15px; padding-right: 15px"
>
<input
type="text"
placeholder="请输入到货地点"
required="required"
class="ss"
/>
<img src="../../assets/xiala.png" class="xial" alt="" />
</div>
</div>
</div>
</div>
<div class="queren">
<el-button type="primary" round @click="dialogVisibleg = false">确认到货</el-button>
<el-button type="primary" round @click="sureShip">确认到货</el-button>
<el-button round @click="dialogVisibleg = false">取消</el-button>
</div>
</div>
</el-form>
</el-dialog>
<!-- 仪表记录 -->
<el-dialog
... ... @@ -457,7 +461,7 @@
title="卸车预检"
:visible.sync="dialogVisibleyu"
width="40%"
style='margin-top: 14%'
style="margin-top: 14%"
:append-to-body="true"
>
<div class="fengs">
... ... @@ -478,20 +482,24 @@
</div>
</div>
</div>
<div class="queren" style='margin-bottom: 30px'>
<el-button type="primary" round @click='dialogVisibleyu = false'>确认到货</el-button>
<el-button round @click='dialogVisibleyu = false'>取消</el-button>
<div class="queren" style="margin-bottom: 30px">
<el-button type="primary" round @click="dialogVisibleyu = false"
>确认到货</el-button
>
<el-button round @click="dialogVisibleyu = false">取消</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { regionData, CodeToText } from "element-china-area-data";
export default {
data() {
return {
value1: '',
isSure: true,
tablelistIndex: '',
activeName: "first",
tableData: [
{
... ... @@ -499,98 +507,38 @@ export default {
name: "P2112020092300",
province: "审核中",
city: "赵吾光",
address: "178 2038 0191",
zip: "已装车",
time: '-',
address: "重庆市南岸区",
zip: "未处置",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
province: "审核",
city: "审核通过",
address: "178 2038 0191",
zip: "未装车",
time: '-',
address: "重庆市南岸区",
zip: "未处置",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核中",
time: '-',
city: "审核中",
address: "178 2038 0191",
zip: "已装车",
address: "重庆市南岸区",
zip: "未处置",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核通过",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "审核失败",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
{
date: "P2112020092300",
name: "P2112020092300",
province: "北京电站",
city: "赵吾光",
address: "178 2038 0191",
zip: "重庆市南岸区长生桥镇长生路46号附1号",
},
],
tablelist: [
{
date: "请输入产品型号",
name: "请输入产品编号",
province: "请输入产品数量",
city: "请输入到货时间",
},
],
tablelists: [
{
date: "请输入产品型号",
name: "请输入产品编号",
province: "请输入产品数量",
city: "请输入到货时间",
zhuan: "已完成",
time: '2020/12/1',
address: "北京丰台区",
zip: "未处置",
},
],
dialogVisible: false,
dialogVisibleg: false,
... ... @@ -603,6 +551,32 @@ export default {
};
},
methods: {
//到货确认
sendSrue(idx) {
this.dialogVisibleg = true;
this.tablelistIndex = idx
},
//确认收货按钮
sureShip() {
if (this.value1 == '') {
this.$message({
type: 'warn',
message: '缺少时间',
showClose: true,
})
return;
}
let times = this.value1.toLocaleDateString();
let idx = this.tablelistIndex
this.tableData[idx].time = times
this.tableData[idx].province = '审核通过'
this.dialogVisibleg = false;
this.isSure = false
},
// changData() {
// console.log(this.$refs.datas)
// },
//编辑发货申请
handleClick(row) {
console.log(row);
... ... @@ -652,7 +626,6 @@ export default {
};
</script>
<style>
.el-dialog__title {
font-size: 29px !important;
color: #000000 !important;
... ...