Commit b256eb56 authored by Damon's avatar Damon

refactor: 备件-物料

parent ef4f9e56
<!-- ******************* 配件选择 ******************* --> <!-- ******************* 物料选择 ******************* -->
<template> <template>
<view> <view>
<view class="list u-flex u-row-between"> <view class="list u-flex u-row-between">
<image class="item-image" :src="mixingImage" v-if="item.required"></image> <image class="item-image" :src="mixingImage" v-if="item.required"></image>
<view class="u-m-r-20">{{item.fieldsTitle}}</view> <view class="u-m-r-20">{{item.fieldsTitle}}</view>
<view class="u-flex-1 add-parts" @click="toParts" v-if="!disabled && lists.length > 0"> <view class="u-flex-1 add-parts" @click="toParts" v-if="!disabled && lists.length > 0">
添加备件<u-icon name="arrow-right" color="#2979ff" size="30"></u-icon> 添加物料<u-icon name="arrow-right" color="#2979ff" size="30"></u-icon>
</view> </view>
</view> </view>
<view class="complete-part"> <view class="complete-part">
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
<image :src="noPartsImage" class="part-icon" /> <image :src="noPartsImage" class="part-icon" />
</view> </view>
<view class="u-flex content"> <view class="u-flex content">
<text class="title">暂无备件信息</text> <text class="title">暂无物料信息</text>
<text class="desc">可选择备件仓备件</text> <text class="desc">可选择物料仓物料</text>
</view> </view>
<view class="btn"> <view class="btn">
<u-button shape="circle" :custom-style="customStyle" @click="toParts"> <u-button shape="circle" :custom-style="customStyle" @click="toParts">
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
buttons: { buttons: {
type: Array, type: Array,
default () { default () {
// id: 0 主流程; 1 过程反馈;2 异常签到; 3 现场拍照; 4 配件申请 // id: 0 主流程; 1 过程反馈;2 异常签到; 3 现场拍照; 4 物料申请
// label: 按钮文字, // label: 按钮文字,
// type: 'image' 上图片下文字;'text' 纯文字, // type: 'image' 上图片下文字;'text' 纯文字,
// image: 图片名, // image: 图片名,
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
id: 3 id: 3
}, },
{ {
label: '备件申请', label: '物料申请',
type: 'image', type: 'image',
image: 'peijian.png', image: 'peijian.png',
show: false, show: false,
......
<template> <template>
<!-- 已申请配件cell --> <!-- 已申请物料cell -->
<view class="return-cell" @click="handleClick"> <view class="return-cell" @click="handleClick">
<view class="title-view"> <view class="title-view">
<text class="title-text" :style="{'color': titleColor}">{{title}}</text> <text class="title-text" :style="{'color': titleColor}">{{title}}</text>
......
<template> <template>
<!-- 申请配件按钮 --> <!-- 申请物料按钮 -->
<view class="apply-button"> <view class="apply-button">
<u-button :custom-style="customStyle" shape="circle" @click.stop="handleClick" type="primary"> <u-button :custom-style="customStyle" shape="circle" @click.stop="handleClick" type="primary">
<u-icon class="apply-icon" name="plus"></u-icon> <u-icon class="apply-icon" name="plus"></u-icon>
<text class="apply-text" v-if="showText">申请备件</text> <text class="apply-text" v-if="showText">申请物料</text>
</u-button> </u-button>
</view> </view>
</template> </template>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<view class="bottom-view"> <view class="bottom-view">
<view class="bottom-warehouse"> <view class="bottom-warehouse">
<view class="bottom-title"> <view class="bottom-title">
<text>备件订单</text> <text>物料订单</text>
<view class="order-file-right" @click="$u.throttle(handleClick, 500)"> <view class="order-file-right" @click="$u.throttle(handleClick, 500)">
<text>点击查看</text> <text>点击查看</text>
<u-icon name="arrow-right"></u-icon> <u-icon name="arrow-right"></u-icon>
......
<template> <template>
<!-- 已申请配件cell --> <!-- 已申请物料cell -->
<view class="applied-cell" @click="handleClick"> <view class="applied-cell" @click="handleClick">
<view class="title-view"> <view class="title-view">
<text class="title-text">{{title}}</text> <text class="title-text">{{title}}</text>
......
## 配件数量调整组件使用说明 ## 物料数量调整组件使用说明
``` ```
该组件用于仓库配件的数量调整 该组件用于仓库物料的数量调整
``` ```
## API ## API
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
```json ```json
{ {
"name": "正泰漏保", // 配件名称 "name": "正泰漏保", // 物料名称
"quantity": 1, // 配件数量 "quantity": 1, // 物料数量
"min": 1, // 数量最小值 "min": 1, // 数量最小值
"max": 100 // 数量最大值 "max": 100 // 数量最大值
} }
......
## 配件选择组件使用说明 ## 物料选择组件使用说明
``` ```
该组件用于备件申请,数量调整 该组件用于物料申请,数量调整
``` ```
## API ## API
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
return false return false
} }
}, },
partNum: { // 配件数量 partNum: { // 物料数量
type: Number, type: Number,
default () { default () {
return 0 return 0
......
## 提交工具栏组件使用说明 ## 提交工具栏组件使用说明
``` ```
该组件用于勾选配件,显示配件数量以及提交操作 该组件用于勾选物料,显示物料数量以及提交操作
``` ```
## API ## API
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
| showChecked | Boolean | true | true/false | 是否显示勾选 | | showChecked | Boolean | true | true/false | 是否显示勾选 |
| allChecked | Boolean | true | true/false | 是否全选 | | allChecked | Boolean | true | true/false | 是否全选 |
| btnStatus | Boolean | true | true/false | 确定按钮是否可点击 | | btnStatus | Boolean | true | true/false | 确定按钮是否可点击 |
| partNum | Number | 0 | | 配件数量 | | partNum | Number | 0 | | 物料数量 |
| num | Number | 0 | | 合计总件数 | | num | Number | 0 | | 合计总件数 |
| submitTxt | String | 确定 | | 确定按钮文字 | | submitTxt | String | 确定 | | 确定按钮文字 |
...@@ -50,7 +50,7 @@ export default { ...@@ -50,7 +50,7 @@ export default {
} }
}, },
computed: { computed: {
// 配件 // 物料
partNum() { partNum() {
return 0 return 0
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment