pad-app/pages/quality/index.vue

226 lines
4.2 KiB
Vue
Raw Normal View History

<template>
<view class="app">
2023-08-18 17:28:11 +08:00
<head-info :navIndex="3"></head-info>
<view class="container">
<view class="content">
<view class="form">
<button type="primary" class="button" @click="add">
<uni-icons type="plusempty" color="#fff" size="20"></uni-icons>
</button>
<view class="right">
<uni-easyinput suffixIcon="search" v-model="value" placeholder="船名/航次" @iconClick="iconClick">
</uni-easyinput>
<view class="select">
<uni-data-select v-model="value1" :localdata="range1" @change="change">
</uni-data-select>
</view>
<view class="select">
<uni-data-select v-model="value2" :localdata="range2" @change="change">
</uni-data-select>
</view>
<view class="select">
<uni-data-select v-model="value3" :localdata="range3" @change="change">
</uni-data-select>
</view>
</view>
</view>
<view class="itemList">
<view class="item" v-for="item in itemList" :key="item.index">
<view class="row">
<view class="col weight">
CJH290387532753799
</view>
<view class="col">
品牌特斯拉
</view>
<view class="col">
车型轿车
</view>
</view>
<view class="row">
<view class="col">
船名运程10
</view>
<view class="col">
航次HC867468096
</view>
<view class="col">
场位A2-09-08
</view>
</view>
<view class="row">
<view class="col">
货物状态已装船
</view>
<view class="col">
作业时间2023/09/08 14:00
</view>
<view class="col">
作业人张星星
</view>
</view>
<view class="row">
<view class="col">
质损发生环节收车交接
</view>
<view class="col">
质损概况碰撞
</view>
<view class="col">
处置情况带伤发运
</view>
</view>
<view class="rowFoot">
<view class="col" @click="details">
详情
</view>
<view class="col" @click="edit">
编辑
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import HeadInfo from '@/components/head-info/head-info';
export default {
data() {
return {
value: '',
value1: '',
value2: '',
value3: '',
range1: [{
value: 0,
text: "一号港"
}, ],
range2: [{
value: 0,
text: "一号港"
}, ],
range3: [{
value: 0,
text: "一号港"
}, ],
itemList: [1, 1, 1, 1, 2, 1, 1, 1, 1],
}
},
onLoad() {
},
components: {
HeadInfo
},
methods: {
iconClick(type) {
uni.showToast({
title: `点击了${type==='prefix'?'左侧':'右侧'}的图标`,
icon: 'none'
})
},
change(e) {
console.log(e);
},
// 点击新增
add() {
uni.navigateTo({
2023-08-18 17:28:11 +08:00
url: '/pages/quality/edit'
})
},
// 点击编辑
edit() {
uni.navigateTo({
2023-08-18 17:28:11 +08:00
url: '/pages/quality/edit'
})
},
// 点击详情
details() {
uni.navigateTo({
2023-08-18 17:28:11 +08:00
url: '/pages/quality/details'
})
},
}
};
</script>
<style lang="less" scoped>
.container {
display: flex;
}
.content {
flex: 1;
padding: 20px;
.form {
display: flex;
justify-content: space-between;
height: 40px;
line-height: 40px;
.button {
width: 90px;
height: 40px;
line-height: 40px;
text-align: center;
margin: 0;
}
.right {
width: 600px;
display: flex;
justify-content: space-between;
.select {
width: 130px;
margin-left: 20px;
2023-08-18 17:28:11 +08:00
}
2023-08-18 17:28:11 +08:00
/deep/.is-input-border {
height: 35px;
}
}
}
.itemList {
margin-top: 30px;
.item {
2023-08-18 17:28:11 +08:00
padding: 20px 0;
border-bottom: 2px solid #e9e9e9;
display: flex;
justify-content: space-between;
.weight {
font-weight: 900;
}
.row {
width: 22%;
flex-direction: column;
display: flex;
justify-content: space-between;
}
2023-08-18 17:28:11 +08:00
.col {
margin-bottom: 10px;
}
.rowFoot {
width: 12%;
flex-direction: column;
display: flex;
justify-content: space-around;
color: #1890ff;
}
}
}
}
</style>