Commit 6b5d59b5 by wangzhihui

添加库存

1 parent a2b3c672
Showing 34 changed files with 1524 additions and 944 deletions
......@@ -14,7 +14,7 @@
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[wxml]": {
"editor.defaultFormatter": "1251208555.wxml-pretty"
"editor.defaultFormatter": "wechat.miniprogram.wxml-language-features"
},
"[wxss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
......
......@@ -296,7 +296,8 @@
"van-uploader": "@vant/weapp/uploader/index",
"glsx-privacy": "glsk-applet-component/GlsxPrivacy/index",
"empty-data": "/components/EmptyData/EmptyData",
"van-switch": "@vant/weapp/switch/index"
"van-switch": "@vant/weapp/switch/index",
"inventory-info":"components/InventoryInfo/InventoryInfo"
},
"preloadRule": {
"pages/tabWorkOrder/pages/index/index": {
......
// components/InventoryInfo/InventoryInfo.js
Component({
/**
* 组件的属性列表
*/
properties: {
// 是否显示弹窗
show: {
type: Boolean,
value: false,
observer: 'onShowChange'
},
// 库存信息数据
inventoryData: {
type: Object,
value: {},
observer: 'onDataChange'
},
// 自定义标题
title: {
type: String,
value: '库存信息'
}
},
/**
* 组件的初始数据
*/
data: {
// 弹窗显示状态
isShowing: false,
// 缓存的数据
dataList:[]
},
/**
* 组件的方法列表
*/
methods: {
/**
* 显示弹窗
*/
showPopup() {
this.setData({
isShowing: true
});
},
/**
* 隐藏弹窗
*/
hidePopup() {
this.setData({
isShowing: false
});
},
/**
* 关闭弹窗事件处理
*/
onClose() {
this.hidePopup();
// 触发关闭事件
this.triggerEvent('close');
},
/**
* 复制文本到剪贴板
*/
copyText(e) {
const { text } = e.currentTarget.dataset;
wx.setClipboardData({
data: text,
success: () => {
wx.showToast({
title: '复制成功',
icon: 'success',
duration: 1500
});
},
fail: () => {
wx.showToast({
title: '复制失败',
icon: 'none',
duration: 1500
});
}
});
},
/**
* 监听show属性变化
*/
onShowChange(newVal, oldVal) {
if (newVal !== oldVal) {
this.setData({
isShowing: newVal
});
}
},
/**
* 监听数据变化
*/
onDataChange(newVal, oldVal) {
if (newVal && typeof newVal === 'object') {
const dataList = Object.keys(newVal).map(key => ({
key: key,
value: newVal[key],
label: this.getFieldLabel(key)
}));
this.setData({
dataList: dataList
},()=>{
console.log(this.data.dataList)
});
}
},
/**
* 获取字段值(支持格式化)
*/
getFieldLabel(field) {
const fieldMap = {
upgradeGoodsCommodityCode: 'UID',
upgradeGoodsCode: '商品编码',
specification: '规格值',
stock: '库存总数'
};
return fieldMap[field] || field;
},
/**
* 获取字段值
*/
getFieldValue(field) {
const data = this.data.cachedData;
return data ? data[field] : '';
}
},
/**
* 组件生命周期函数
*/
lifetimes: {
attached() {
// 组件创建完成后执行
},
detached() {
// 组件销毁时执行
}
},
/**
* 外部样式类
*/
externalClasses: [
'custom-class'
]
});
\ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* components/InventoryInfo/InventoryInfo.wxss */
.inventory-info-container {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999999;
}
.overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
}
.popup {
padding: 48rpx 0 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
max-width: 622rpx;
background-color: white;
border-radius: 16rpx;
overflow: hidden;
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.1);
}
.popup-header {
font-size: 32rpx;
font-style: normal;
font-weight: 500;
text-align: center;
margin-bottom: 48rpx;
}
.popup-title {
font-size: 32rpx;
font-weight: 500;
color: #333;
}
.popup-content {
padding: 0 48rpx;
}
.info-item {
padding: 24rpx 0;
color: #292d33;
font-size: 28rpx;
position: relative;
.item {
display: flex;
align-items: flex-start;
width: calc(100% - 48rpx);
.key {
max-width: 130rpx;
white-space: nowrap;
}
.value {
white-space: wrap;
word-break: break-word;
word-wrap: break-word;
}
}
}
.copy-btn {
margin-left: 16rpx;
padding: 8rpx;
width: 32rpx;
height: 32rpx;
cursor: pointer;
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
image {
width: 100%;
}
}
.popup-footer {
padding: 30rpx;
text-align: center;
border-top: 1rpx solid #EBEDF0;
}
.close-btn {
width: 100%;
font-size: 32rpx;
color: #333;
}
<!-- components/InventoryInfo/InventoryInfo.wxml -->
<view class="inventory-info-container" wx:if="{{isShowing}}">
<view class="overlay" bindtap="onClose"></view>
<view class="popup">
<view class="popup-header">
<text class="popup-title">{{title}}</text>
</view>
<view class="popup-content">
<view wx:for="{{dataList}}" wx:key="key" class="info-item">
<view class="item">
<view class="key">{{item.label}}:</view>
<view class="value">{{item.value||'-'}}</view>
</view>
<view class="copy-btn" data-text="{{item.value}}" bindtap="copyText">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/equity/copy.png" class="image"></image>
</view>
</view>
</view>
<view class="popup-footer">
<view class="close-btn" bindtap="onClose">关闭</view>
</view>
</view>
</view>
<!--components/InventoryInfo/InventoryInfo.wxml-->
\ No newline at end of file
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2024-08-12 17:25:55
* @LastEditors: 'wangzhihui' '1733904062@qq.com'
* @LastEditTime: 2026-03-19 16:54:44
* @FilePath: \dj-car-boutique-work-wechat\packageEquity\pages\aiInspection\components\contentItem\contentItem.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
// packageEquity/pages/aiInspection/components/contentItem/contentItem.js
Component({
......
......@@ -159,6 +159,21 @@ Component({
}
}
this.triggerEvent('confirm', infoData)
}
},
openInventoryPopup(e){
let {inventory:{
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}} = e.target.dataset
const inventoryData ={
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}
this.triggerEvent('openInventory', inventoryData)
}
}
})
\ No newline at end of file
/* tabRepairOrder/components/outboundPopup/index.wxss */
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.outbound-popup-box {
height: calc(100% - var(--fontSize120));
.sub-title {
height: var(--fontSize112);
line-height: var(--fontSize112);
border-bottom: var(--fontSize1) solid #EBEDF0;
margin-bottom: var(--fontSize20);
.text-center {
text-align: center;
font-weight: 500;
color: #222222;
}
}
.outbound-box {
height: calc(100% - var(--fontSize114));
.scroll-box {
height: 100%;
}
.qrcode-box {
margin: 0 var(--fontSize32);
background: #F4F5F7;
border-radius: var(--fontSize11);
padding: var(--fontSize24);
display: flex;
flex-flow: column;
align-items: center;
image {
width: var(--fontSize256);
height: var(--fontSize256);
}
.tips {
margin-top: var(--fontSize16);
font-size: var(--fontSize24);
color: #757980;
}
}
.box {
padding: var(--fontSize40) var(--fontSize32) var(--fontSize2) var(--fontSize40);
position: relative;
margin: var(--fontSize20) 0 0;
.title {
font-size: var(--fontSize28);
color: #292D33;
margin-bottom: var(--fontSize20);
position: relative;
font-weight: 500;
&::after {
position: absolute;
content: '';
width: var(--fontSize8);
height: var(--fontSize44);
background: #347BFF;
left: calc(-1 * var(--fontSize40));
top: 50%;
transform: translateY(-50%);
}
.text-name {
max-width: calc(100% - var(--fontSize100));
}
}
.box-item {
display: flex;
align-items: center;
justify-content: space-between;
height: var(--fontSize104);
font-size: var(--fontSize28);
.label {
color: #292D33;
flex-shrink: 0;
width: var(--fontSize180);
.required {
color: #f00;
margin-left: var(--fontSize8);
}
}
.value-box {
width: calc(100% - var(--fontSize190));
display: flex;
align-items: center;
justify-content: flex-end;
}
.value {
text-align: right;
width: calc(100% - var(--fontSize32));
.placeholder {
color: #BEC1C7;
}
}
.pickerArrow {
width: var(--fontSize32);
height: var(--fontSize32);
}
}
.input-box {
.label {
width: var(--fontSize330);
}
.value {
width: var(--fontSize240);
.input {
width: 100%;
height: var(--fontSize68);
min-height: var(--fontSize68);
border: var(--fontSize2) solid #DEE0E3;
overflow: hidden;
border-radius: var(--fontSize8);
text-align: right;
box-sizing: border-box;
padding: 0 var(--fontSize20);
display: flex;
align-items: center;
justify-content: flex-end;
-webkit-appearance: none;
appearance: none;
&::placeholder {
position: relative;
top: 0;
transform: none;
}
}
.disabled {
background: #DEE0E3;
}
}
}
.time-box {
padding-bottom: var(--fontSize48);
}
}
}
height: calc(100% - var(--fontSize120));
.sub-title {
height: var(--fontSize112);
line-height: var(--fontSize112);
border-bottom: var(--fontSize1) solid #EBEDF0;
margin-bottom: var(--fontSize20);
.text-center {
text-align: center;
font-weight: 500;
color: #222222;
}
}
.outbound-box {
height: calc(100% - var(--fontSize114));
.scroll-box {
height: 100%;
}
.qrcode-box {
margin: 0 var(--fontSize32);
background: #F4F5F7;
border-radius: var(--fontSize11);
padding: var(--fontSize24);
display: flex;
flex-flow: column;
align-items: center;
image {
width: var(--fontSize256);
height: var(--fontSize256);
}
.tips {
margin-top: var(--fontSize16);
font-size: var(--fontSize24);
color: #757980;
}
}
.box {
padding: var(--fontSize40) var(--fontSize32) var(--fontSize2) var(--fontSize40);
position: relative;
margin: var(--fontSize20) 0 0;
.title {
font-size: var(--fontSize28);
color: #292D33;
margin-bottom: var(--fontSize20);
position: relative;
font-weight: 500;
&::after {
position: absolute;
content: '';
width: var(--fontSize8);
height: var(--fontSize44);
background: #347BFF;
left: calc(-1 * var(--fontSize40));
top: 50%;
transform: translateY(-50%);
}
.title-name {
display: flex;
align-items: center;
.inventory {
font-size: 24rpx;
color: #347bff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-left: 14rpx;
}
}
.text-name {
max-width: calc(100% - var(--fontSize250));
}
}
.box-item {
display: flex;
align-items: center;
justify-content: space-between;
height: var(--fontSize104);
font-size: var(--fontSize28);
.label {
color: #292D33;
flex-shrink: 0;
width: var(--fontSize180);
.required {
color: #f00;
margin-left: var(--fontSize8);
}
}
.value-box {
width: calc(100% - var(--fontSize190));
display: flex;
align-items: center;
justify-content: flex-end;
}
.value {
text-align: right;
width: calc(100% - var(--fontSize32));
.placeholder {
color: #BEC1C7;
}
}
.pickerArrow {
width: var(--fontSize32);
height: var(--fontSize32);
}
}
.input-box {
.label {
width: var(--fontSize330);
}
.value {
width: var(--fontSize240);
.input {
width: 100%;
height: var(--fontSize68);
min-height: var(--fontSize68);
border: var(--fontSize2) solid #DEE0E3;
overflow: hidden;
border-radius: var(--fontSize8);
text-align: right;
box-sizing: border-box;
padding: 0 var(--fontSize20);
display: flex;
align-items: center;
justify-content: flex-end;
-webkit-appearance: none;
appearance: none;
&::placeholder {
position: relative;
top: 0;
transform: none;
}
}
.disabled {
background: #DEE0E3;
}
}
}
.time-box {
padding-bottom: var(--fontSize48);
}
}
}
}
.popup-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--fontSize20) var(--fontSize32) ;
.btn {
height: var(--fontSize80);
box-sizing: border-box;
border-radius: var(--fontSize12);
font-size: var(--fontSize32);
text-align: center;
line-height: var(--fontSize80);
}
.cancel {
width: var(--fontSize186);
height: var(--fontSize76);
color: #292D33;
border: var(--fontSize2) solid #DEE0E3;
}
.confirm {
width: calc(100% - var(--fontSize206));
background: #347BFF;
color: #fff;
}
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--fontSize20) var(--fontSize32);
.btn {
height: var(--fontSize80);
box-sizing: border-box;
border-radius: var(--fontSize12);
font-size: var(--fontSize32);
text-align: center;
line-height: var(--fontSize80);
}
.cancel {
width: var(--fontSize186);
height: var(--fontSize76);
color: #292D33;
border: var(--fontSize2) solid #DEE0E3;
}
.confirm {
width: calc(100% - var(--fontSize206));
background: #347BFF;
color: #fff;
}
}
.popup-footer.isFullSucreen {
padding-bottom: var(--fontSize68) !important;
}
\ No newline at end of file
padding-bottom: var(--fontSize68) !important;
}
<!--tabRepairOrder/components/outboundPopup/index.wxml-->
<wxs src="../../index.wxs" module="filter" />
<van-popup show="{{show}}" position="bottom" custom-style="height: 90%;" round closeable close-on-click-overlay="{{false}}" bind:close="cancel">
<view class="outbound-popup-box" >
<view class="sub-title">
<view class="text-center">{{title}}</view>
</view>
<view class="outbound-box">
<scroll-view scroll-y class="scroll-box" enhanced="{{true}}" scroll-top="{{scrollTop}}" show-scrollbar="{{false}}">
<view class="qrcode-box">
<image src="{{weappQrcode}}" mode=""/>
<view class="tips">请仓库管理员扫描此二维码确认产品实际用料</view>
</view>
<block wx:for="{{infoData.subOrderList}}" wx:key="index">
<view class="box">
<view class="title infoTitle">
<view class="text-name text-hide">{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}</view>
</view>
<view class="box-item">
<view class="label">产品膜卷号</view>
<view class="value-box" bindtap="handleRollNumber" data-target="{{item}}" data-index="{{index}}">
<view class="value text-hide">
<block wx:if="{{item.rollNumber}}">{{item.rollNumber}}</block>
<block wx:else><view class='placeholder'>请选择</view></block>
</view>
<image class="pickerArrow" src="/components/images/arrow-x.png" />
</view>
</view>
<view class="box-item input-box">
<view class="label">产品实际用料(米/件)<text class='required'>*</text></view>
<view class="value">
<input class="input {{false ? 'disabled' : ''}}" bindinput="handleInput" value="{{item.materialsUsed}}" data-index="{{index}}" type="digit" placeholder-style="color: #BEC1C7;" placeholder="输入数字"/>
</view>
</view>
</view>
</block>
<view class="box">
<view class="title infoTitle">
出库时间
</view>
<view class="box-item time-box">
<view class="label" >产品出库时间</view>
<view class="value-box" bindtap="handleOutboundTime">
<view class="value text-hide">
<block wx:if="{{infoData.outBoundTime}}">{{infoData.outBoundTime}}</block>
<block wx:else><view class='placeholder'>请选择</view></block>
</view>
<image class="pickerArrow" src="/components/images/arrow-x.png" />
</view>
</view>
</view>
</scroll-view>
</view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}" wx:if="{{filter.btnPermissions(userPermissions, 'WULIAOCHUKU')}}">
<view class="cancel btn text-center" bind:tap="cancel">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认核销出库</view>
</view>
<view class="outbound-popup-box">
<view class="sub-title">
<view class="text-center">{{title}}</view>
</view>
<view class="outbound-box">
<scroll-view scroll-y class="scroll-box" enhanced="{{true}}" scroll-top="{{scrollTop}}" show-scrollbar="{{false}}">
<view class="qrcode-box">
<image src="{{weappQrcode}}" mode="" />
<view class="tips">请仓库管理员扫描此二维码确认产品实际用料</view>
</view>
<block wx:for="{{infoData.subOrderList}}" wx:key="index">
<view class="box">
<view class="title infoTitle">
<view class="title-name">
<view class="text-name text-hide">{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}</view>
<view class="inventory" bindtap="openInventoryPopup" data-inventory="{{item}}">库存{{item.stock}}</view>
</view>
</view>
<!-- <view class="box-item">
<view class="label">产品膜卷号</view>
<view class="value-box" bindtap="handleRollNumber" data-target="{{item}}" data-index="{{index}}">
<view class="value text-hide">
<block wx:if="{{item.rollNumber}}">{{item.rollNumber}}</block>
<block wx:else>
<view class='placeholder'>请选择</view>
</block>
</view>
<image class="pickerArrow" src="/components/images/arrow-x.png" />
</view>
</view> -->
<view class="box-item input-box">
<view class="label">产品实际用料(米/件)<text class='required'>*</text></view>
<view class="value">
<input class="input {{false ? 'disabled' : ''}}" bindinput="handleInput" value="{{item.materialsUsed}}" data-index="{{index}}" type="digit" placeholder-style="color: #BEC1C7;" placeholder="输入数字" />
</view>
</view>
</view>
</block>
<view class="box">
<view class="title infoTitle">
出库时间
</view>
<view class="box-item time-box">
<view class="label">产品出库时间</view>
<view class="value-box" bindtap="handleOutboundTime">
<view class="value text-hide">
<block wx:if="{{infoData.outBoundTime}}">{{infoData.outBoundTime}}</block>
<block wx:else>
<view class='placeholder'>请选择</view>
</block>
</view>
<image class="pickerArrow" src="/components/images/arrow-x.png" />
</view>
</view>
</view>
</scroll-view>
</view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}" wx:if="{{filter.btnPermissions(userPermissions, 'WULIAOCHUKU')}}">
<view class="cancel btn text-center" bind:tap="cancel">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认核销出库</view>
</view>
</van-popup>
<film-roll-no-popup show="{{filmRollNoVisible}}" title="产品膜卷号" copyfilmRollNoList="{{filmRollNoList}}" filmSelectedItem="{{filmSelectedItem}}" bindconfirm="changefilmRollNo" bindcancel="handelCancelRollPopup"/>
<time-select show="{{timeVisible}}" title="产品出库时间" defaultTime="{{infoData.outBoundTime}}" bind:confirm="onTimeConfirm" bindcancel="onClosePicker"/>
\ No newline at end of file
<film-roll-no-popup show="{{filmRollNoVisible}}" title="产品膜卷号" copyfilmRollNoList="{{filmRollNoList}}" filmSelectedItem="{{filmSelectedItem}}" bindconfirm="changefilmRollNo" bindcancel="handelCancelRollPopup" />
<time-select show="{{timeVisible}}" title="产品出库时间" defaultTime="{{infoData.outBoundTime}}" bind:confirm="onTimeConfirm" bindcancel="onClosePicker" />
\ No newline at end of file
......@@ -35,6 +35,22 @@ Component({
* 组件的方法列表
*/
methods: {
openInventoryPopup(e){
console.log(e)
let {inventory:{
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}} = e.target.dataset
const inventoryData ={
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}
this.triggerEvent('openInventory', inventoryData)
},
choose(e) {
let { item } = e.currentTarget.dataset
let { goodsList } = this.data
......
/* tabRepairOrder/components/relateGoodsPop/index.wxss */
.goods-content {
width: calc(100% + var(--fontSize64));
height: 100%;
margin-left: calc(-1 * var(--fontSize32));
.content {
height: calc(100% - var(--fontSize104));
.box {
border-bottom: var(--fontSize2) solid #EBEDF0;
.itemBox {
display: flex;
align-items: center;
.choose {
width: var(--fontSize32);
height: var(--fontSize32);
margin: 0 var(--fontSize32);
}
.item {
flex: 1;
justify-content: space-between;
padding-right: var(--fontSize32);
width: calc(100% - var(--fontSize130));
height: var(--fontSize84);
display: flex;
align-items: center;
font-size: var(--fontSize28);
color: #888888;
position: relative;
.labelWidth {
width: calc(100% - var(--fontSize180));
}
.value {
width: 100%;
display: flex;
justify-content: space-between;
.name {
max-width: 85%;
width:calc(100vw - var(--fontSize100))
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
}
}
.selected-box {
text-align: center;
font-size: var(--fontSize28);
color: #888888;
margin-top: var(--fontSize30);
text {
color: #347BFF;
}
}
width: calc(100% + var(--fontSize64));
height: 100%;
margin-left: calc(-1 * var(--fontSize32));
.content {
height: calc(100% - var(--fontSize104));
.box {
border-bottom: var(--fontSize2) solid #EBEDF0;
.itemBox {
display: flex;
align-items: center;
.choose {
width: var(--fontSize32);
height: var(--fontSize32);
margin: 0 var(--fontSize32);
}
.item-box {
padding: 20rpx 0;
padding-right: var(--fontSize32);
width: calc(100% - var(--fontSize130));
border-top: var(--fontSize2) solid #EBEDF0;
}
.item {
flex: 1;
justify-content: space-between;
display: flex;
align-items: center;
font-size: var(--fontSize28);
color: #888888;
position: relative;
.labelWidth {
width: calc(100% - var(--fontSize180));
}
.value {
width: 100%;
display: flex;
justify-content: space-between;
.name {
max-width: 85%;
width: calc(100vw - var(--fontSize100))
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.inventory {
margin-top: 4px;
max-width: 85%;
font-size: 24rpx;
color: #347bff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
.selected-box {
text-align: center;
font-size: var(--fontSize28);
color: #888888;
margin-top: var(--fontSize30);
text {
color: #347BFF;
}
}
}
<!--tabRepairOrder/components/relateGoodsPop/index.wxml-->
<wxs src="../../index.wxs" module="filter" />
<popup show="{{show}}" title="选择关联商品" bindconfirm="confirm" height="50%" bindcancel="cancel">
<view class="goods-content">
<scroll-view class="content" scroll-y show-scrollbar="{{false}}">
<block wx:if="{{goodsList.length > 0}}">
<view class="box">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item-wrap">
<view class="itemBox">
<view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<image src="{{i.active ? '../../../components/images/radio.png' : '../../../components/images/radio_icon.png'}}" />
</view>
<view class="item">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<text>{{filter.replaceItemText(i.goodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsName)}}</text>
<text wx:if="{{i.position && (i.goodsType == 1 || i.goodsType == baseConfigData.selfBuildFilmType)}}">{{'「' + i.positionStr+'」'}}</text>
<!-- <text class="warning_text" wx:if="{{!i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</text> -->
</view>
</view>
</view>
</view>
</view>
</block>
</view>
</block>
<block wx:else>
<empty-data style="width: 100%;" />
</block>
</scroll-view>
<view class="selected-box">已选商品 <text>{{filter.activeNum(goodsList)}}</text> 件</view>
</view>
<view class="goods-content">
<scroll-view class="content" scroll-y show-scrollbar="{{false}}">
<block wx:if="{{goodsList.length > 0}}">
<view class="box">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item-wrap">
<view class="itemBox">
<view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<image src="{{i.active ? '../../../components/images/radio.png' : '../../../components/images/radio_icon.png'}}" />
</view>
<view class="item-box">
<view class="item">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<text>{{filter.replaceItemText(i.goodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsName)}}</text>
<text wx:if="{{i.position && (i.goodsType == 1 || i.goodsType == baseConfigData.selfBuildFilmType)}}">{{'「' + i.positionStr+'」'}}</text>
<!-- <text class="warning_text" wx:if="{{!i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</text> -->
</view>
</view>
</view>
<view class="inventory" catch:tap="openInventoryPopup" data-inventory="{{i}}">库存{{i.stock}}</view>
</view>
</view>
</view>
</block>
</view>
</block>
<block wx:else>
<empty-data style="width: 100%;" />
</block>
</scroll-view>
<view class="selected-box">已选商品 <text>{{filter.activeNum(goodsList)}}</text> 件</view>
</view>
</popup>
\ No newline at end of file
<!--tabRepairOrder/components/outboundPopup/index.wxml-->
<wxs src="../../index.wxs" module="filter" />
<van-popup show="{{ show }}" position="bottom" custom-style="height: 90%;" round closeable close-on-click-overlay="{{ false }}" bind:close="cancel">
<view class="outbound-popup-box">
<view class="sub-title">
<view class="text-center">{{title}}</view>
</view>
<view class="tips">返工是否产生退料返库,请与库管确认后提交返工</view>
<view class="outbound-box">
<scroll-view scroll-y class="scroll-box" enhanced="{{ true }}" scroll-top="{{ scrollTop }}" show-scrollbar="{{ false }}">
<!-- <view class="qrcode-box">
<view class="outbound-popup-box">
<view class="sub-title">
<view class="text-center">{{title}}</view>
</view>
<view class="tips">返工是否产生退料返库,请与库管确认后提交返工</view>
<view class="outbound-box">
<scroll-view scroll-y class="scroll-box" enhanced="{{ true }}" scroll-top="{{ scrollTop }}" show-scrollbar="{{ false }}">
<!-- <view class="qrcode-box">
<image src="{{ weappQrcode }}" mode="" />
<view class="tips">请仓库管理员扫描此二维码确认产品实际用料</view>
</view> -->
<block wx:for="{{ infoData.subOrderList }}" wx:key="index">
<view class="box">
<view class="title infoTitle">
<view class="text-name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}
</view>
</view>
<view class="box-item">
<block wx:for="{{ infoData.subOrderList }}" wx:key="index">
<view class="box">
<view class="title infoTitle">
<view class="text-name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}
</view>
</view>
<!-- <view class="box-item">
<view class="label">产品膜卷号</view>
<view class="value-box" data-target="{{ item }}" data-index="{{ index }}">
<view class="value text-hide">
<block wx:if="{{ item.rollNumber }}">{{item.rollNumber}}</block>
<block wx:else>
-
<!-- <view class="placeholder">请选择</view> -->
=
</block>
</view>
<!-- <image class="pickerArrow" src="/components/images/arrow-x.png" /> -->
</view>
</view>
<view class="box-item input-box">
<view class="label">
退料入库数量(米/件)
<text class="required">*</text>
</view>
<view class="value">
<input class="input {{ false ? 'disabled' : '' }}" bindinput="handleInput" value="{{ item.materialsUsed }}" data-index="{{ index }}" type="digit" placeholder-style="color: #BEC1C7;" placeholder="输入数字" />
</view>
</view>
</view>
</block>
<!-- <view class="box">
</view> -->
<view class="box-item input-box">
<view class="label">
退料入库数量(米/件)
<text class="required">*</text>
</view>
<view class="value">
<input class="input {{ false ? 'disabled' : '' }}" bindinput="handleInput" value="{{ item.materialsUsed }}" data-index="{{ index }}" type="digit" placeholder-style="color: #BEC1C7;" placeholder="输入数字" />
</view>
</view>
</view>
</block>
<!-- <view class="box">
<view class="title infoTitle">出库时间</view>
<view class="box-item time-box">
<view class="label">产品出库时间</view>
......@@ -58,13 +58,13 @@
</view>
</view>
</view> -->
</scroll-view>
</view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="cancel btn text-center" bind:tap="cancel">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认返工</view>
</view>
</scroll-view>
</view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="cancel btn text-center" bind:tap="cancel">取消</view>
<view class="confirm btn text-center" bind:tap="confirm">确认返工</view>
</view>
</van-popup>
<film-roll-no-popup show="{{ filmRollNoVisible }}" title="产品膜卷号" copyfilmRollNoList="{{ filmRollNoList }}" filmSelectedItem="{{ filmSelectedItem }}" bindconfirm="changefilmRollNo" bindcancel="handelCancelRollPopup" />
<time-select show="{{ timeVisible }}" title="产品出库时间" defaultTime="{{ infoData.outBoundTime }}" bind:confirm="onTimeConfirm" bindcancel="onClosePicker" />
\ No newline at end of file
......@@ -10,6 +10,13 @@ Page({
* 页面的初始数据
*/
data: {
showInventory:false,
inventoryData: {
upgradeGoodsCommodityCode: '',
upgradeGoodsCode: '',
specification: '',
stock: ''
},
IMG_URL,
confirmInfo: {},
goodsObj: [
......@@ -71,6 +78,47 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {},
// 打开弹窗
openInventoryPopup(e) {
console.log(e.target.dataset)
let {inventory:{
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}} = e.target.dataset
const inventoryData ={
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}
this.setData({
showInventory: true,
inventoryData
});
},
// 打开物料弹窗
openInventory(e){
const inventoryData=e.detail
this.setData({
showInventory: true,
inventoryData
});
},
// 关闭弹窗
closeInventoryPopup() {
this.setData({
showInventory: false
});
},
// 监听弹窗关闭事件
onInventoryClose() {
this.setData({
showInventory: false
});
},
// 获取人员权限
getStaffPermissions() {
......
......@@ -32,9 +32,13 @@
<block wx:if="{{ !editGoodsFlag }}">
<view class="goods-box" wx:if="{{ confirmInfo.subOrderList.length }}">
<view class="goods-item" wx:for="{{ confirmInfo.subOrderList }}" wx:key="index">
<view class="goods-name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}
<view class="goods-text">
<view class="goods-name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}
</view>
<view class="inventory" bindtap="openInventoryPopup" data-inventory="{{item}}">库存{{item.stock}}</view>
</view>
<view class="count">x{{item.number}}</view>
</view>
</view>
......@@ -60,17 +64,7 @@
<view class="title">
<view class="box">施工单信息</view>
</view>
<gl-cell
border
valueAlign="right"
label="主技师"
requiredAfter
labelWidth="var(--fontSize140)"
required
haveArrow
bindclick="showPopup"
placeholder="请选择"
>
<gl-cell border valueAlign="right" label="主技师" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" placeholder="请选择">
<block wx:if="{{ mainSelected.length }}">
<view class="techic-value text-hide">
{{mainSelected[0] && mainSelected[0].staffName}}
......@@ -78,16 +72,7 @@
</view>
</block>
</gl-cell>
<gl-cell
border
valueAlign="right"
label="副手技师"
labelWidth="var(--fontSize140)"
haveArrow
bindclick="showPopup"
data-type="deputy"
placeholder="请选择"
>
<gl-cell border valueAlign="right" label="副手技师" labelWidth="var(--fontSize140)" haveArrow bindclick="showPopup" data-type="deputy" placeholder="请选择">
<block wx:if="{{ deputySelected.length }}">
<view class="techic-value text-hide">
<view class="text-hide" wx:if="{{ deputySelected[0] }}">
......@@ -142,13 +127,7 @@
<view class="title text-hide">{{item.title}}</view>
<block wx:for="{{ item.detailList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view class="service-item edit-item">
<image
bindtap="handleDelServices"
data-index="{{ index }}"
data-sindex="{{ sindex }}"
src="{{ IMG_URL }}repair-order/del-goods.png"
mode=""
/>
<image bindtap="handleDelServices" data-index="{{ index }}" data-sindex="{{ sindex }}" src="{{ IMG_URL }}repair-order/del-goods.png" mode="" />
<view style="flex: 1;display: flex;align-items: center;justify-content: space-between;">
<view class="left">
<view class="name">{{i.serviceItemsName}}</view>
......@@ -171,37 +150,12 @@
</view>
</view>
</view>
<view
class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}"
wx:if="{{ filter.btnPermissions(userPermissions, 'SHIGONGQUEREN') }}"
>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{ filter.btnPermissions(userPermissions, 'SHIGONGQUEREN') }}">
<view class="btns-con">
<view class="confirm text-center" bindtap="submit">提交电子施工单</view>
</view>
</view>
<relate-goods-popup
show="{{ relateGoodsVisable }}"
goodsList="{{ goodsList }}"
bindconfirm="handelRelateGoodsConfirm"
selected="{{ editGoodsList }}"
bindcancel="handelRelateGoodsCancel"
baseConfigData="{{ baseConfigData }}"
></relate-goods-popup>
<technician-select-popup
show="{{ artificerSelectPopup }}"
title="选择技师"
copyArtificerList="{{ artificerList }}"
multiple="{{ technicianMultiple }}"
artificerSelectObj="{{ technicianMultiple ? deputySelected : mainSelected }}"
disabledSelectObj="{{ technicianMultiple ? mainSelected : deputySelected }}"
bindconfirm="changeArtificer"
bindcancel="cancelTechnician"
deputyFlag="{{ technicianMultiple }}"
/>
<select-service-popup
show="{{ selectServiceVisable }}"
bindconfirm="handleSelectServiceConfirm"
selectGoodsList="{{ confirmInfo.subOrderList }}"
selected="{{ editServicesList }}"
bindcancel="handleSelectServiceCancel"
></select-service-popup>
\ No newline at end of file
<relate-goods-popup show="{{ relateGoodsVisable }}" goodsList="{{ goodsList }}" bindconfirm="handelRelateGoodsConfirm" selected="{{ editGoodsList }}" bindcancel="handelRelateGoodsCancel" baseConfigData="{{ baseConfigData }}" bind:openInventory="openInventory"></relate-goods-popup>
<technician-select-popup show="{{ artificerSelectPopup }}" title="选择技师" copyArtificerList="{{ artificerList }}" multiple="{{ technicianMultiple }}" artificerSelectObj="{{ technicianMultiple ? deputySelected : mainSelected }}" disabledSelectObj="{{ technicianMultiple ? mainSelected : deputySelected }}" bindconfirm="changeArtificer" bindcancel="cancelTechnician" deputyFlag="{{ technicianMultiple }}" />
<select-service-popup show="{{ selectServiceVisable }}" bindconfirm="handleSelectServiceConfirm" selectGoodsList="{{ confirmInfo.subOrderList }}" selected="{{ editServicesList }}" bindcancel="handleSelectServiceCancel"></select-service-popup>
<inventory-info show="{{showInventory}}" inventory-data="{{inventoryData}}" title="库存信息" bind:close="onInventoryClose" />
\ No newline at end of file
......@@ -13,7 +13,8 @@ Page({
data: {
IMG_URL,
detailInfo: {},
reworkVisible: false,
reworkVisible: false,
showInventory:false,
orderObj: [
{
label: '施工单编号',
......@@ -142,7 +143,13 @@ Page({
technicianMultiple: false,
mainSelected: [],
deputySelected: [],
artificerList: []
artificerList: [],
inventoryData: {
upgradeGoodsCommodityCode: '',
upgradeGoodsCode: '',
specification: '',
stock: ''
},
},
onRoute(options) {
......@@ -188,6 +195,47 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {},
// 打开弹窗
openInventoryPopup(e) {
console.log(e.target.dataset)
let {inventory:{
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}} = e.target.dataset
const inventoryData ={
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}
this.setData({
showInventory: true,
inventoryData
});
},
// 打开物料弹窗
openInventory(e){
const inventoryData=e.detail
this.setData({
showInventory: true,
inventoryData
});
},
// 关闭弹窗
closeInventoryPopup() {
this.setData({
showInventory: false
});
},
// 监听弹窗关闭事件
onInventoryClose() {
this.setData({
showInventory: false
});
},
// 人员权限
getStaffPermissions() {
let { userInfo } = this.data
......
......@@ -43,6 +43,22 @@ Component({
* 组件的方法列表
*/
methods: {
openInventoryPopup(e){
console.log(e)
let {inventory:{
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}} = e.target.dataset
const inventoryData ={
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}
this.triggerEvent('openInventory', inventoryData)
},
navto(e) {
let { item } = e.currentTarget.dataset
console.log(item, 'item')
......@@ -67,6 +83,18 @@ Component({
let listConstruction = res.data.map(item => {
item.subGoodsName = item.subOrderList
.map(sub => sub.upgradeGoodsName)
.join('/')
item.upgradeGoodsCommodityCode = item.subOrderList
.map(sub => sub.upgradeGoodsCommodityCode)
.join('/')
item.upgradeGoodsCode = item.subOrderList
.map(sub => sub.upgradeGoodsCode)
.join('/')
item.specification = item.subOrderList
.map(sub => sub.specification)
.join('/')
item.stock = item.subOrderList
.map(sub => sub.stock)
.join('/')
item.mainTechnician = item.mainTechnicianList
.map(sub => sub.technicianName)
......
/* components/SelectInvoiceModal/SelectInvoiceModal.wxss */
.modatcontent {
box-sizing: border-box;
// margin: var(--fontSize48) 0 0;
// max-height: 600rpx;
// overflow-y: scroll;
margin: 20rpx 0;
display: flex;
flex-direction: column;
.itemContent {
box-sizing: border-box;
display: flex;
align-items: center;
border-bottom: 1rpx solid #f2f2f3;
// margin-top: 24rpx;
margin: 24rpx 2rpx 0;
}
.item {
display: flex;
align-items: center;
}
.itembox {
box-sizing: border-box;
padding: 0 48rpx;
height: 120rpx;
display: flex;
// align-items: center;
flex-direction: column;
.subName {
overflow: hidden; //一定要写
text-overflow: ellipsis; //超出省略号
display: -webkit-box; //一定要写
-webkit-line-clamp: 1; //控制行数
-webkit-box-orient: vertical; //一定要写
width: 480rpx;
height: 40rpx;
margin-bottom: 18rpx;
}
.part {
display: flex;
align-items: center;
.position {
font-size: 24rpx;
color: #999EA8;
margin-right: 16rpx;
}
.statusBox {
font-weight: 500;
font-size: 18rpx;
width: 67rpx;
height: 26rpx;
color: #35C376;
border: 1.6rpx solid #35C376;
border-radius: 4rpx;
line-height: 26rpx;
text-align: center;
}
.wait {
color: #FF9D0A;
border: 1.6rpx solid #FF9D0A;
}
}
}
.itembox+.itembox {
border-top: 1rpx solid #EFF0F2;
}
.right {
.arrow {
display: inline-block;
width: 32rpx;
height: 32rpx;
}
}
box-sizing: border-box;
// margin: var(--fontSize48) 0 0;
// max-height: 600rpx;
// overflow-y: scroll;
margin: 20rpx 0;
display: flex;
flex-direction: column;
.itemContent {
box-sizing: border-box;
display: flex;
align-items: center;
border-bottom: 1rpx solid #f2f2f3;
// margin-top: 24rpx;
margin: 24rpx 2rpx 0;
}
.item {
display: flex;
align-items: center;
}
.itembox {
box-sizing: border-box;
padding: 24rpx 48rpx;
// height: 120rpx;
display: flex;
// align-items: center;
flex-direction: column;
.subName {
overflow: hidden; //一定要写
text-overflow: ellipsis; //超出省略号
display: -webkit-box; //一定要写
-webkit-line-clamp: 1; //控制行数
-webkit-box-orient: vertical; //一定要写
width: 480rpx;
height: 40rpx;
margin-bottom: 18rpx;
}
.part {
display: flex;
align-items: center;
.position {
max-width: 200rpx;
font-size: 24rpx;
color: #999EA8;
margin-right: 16rpx;
overflow: hidden; //一定要写
text-overflow: ellipsis; //超出省略号
display: -webkit-box; //一定要写
-webkit-line-clamp: 2; //控制行数
-webkit-box-orient: vertical; //一定要写
}
.statusBox {
font-weight: 500;
font-size: 18rpx;
width: 67rpx;
height: 26rpx;
color: #35C376;
border: 1.6rpx solid #35C376;
border-radius: 4rpx;
line-height: 26rpx;
text-align: center;
}
.wait {
color: #FF9D0A;
border: 1.6rpx solid #FF9D0A;
}
.inventory {
max-width: 200rpx;
margin-left: 20rpx;
font-size: 24rpx;
color: #347bff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.itembox+.itembox {
border-top: 1rpx solid #EFF0F2;
}
.right {
.arrow {
display: inline-block;
width: 32rpx;
height: 32rpx;
}
}
}
.modal {
.icon {
width: 96rpx;
height: 96rpx;
margin-right: 30rpx;
}
.modalbox {
display: flex;
align-items: center;
box-sizing: border-box;
width: 522rpx;
height: 136rpx;
background: #F7F8FA;
border-radius: 8rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28rpx;
color: #292D33;
padding-left: 24rpx;
margin: 0 auto;
&+.modalbox {
margin-top: 16rpx;
}
.txt {
font-size: 24rpx;
}
}
.act {
background: #347bff1a;
border: 2rpx solid #347BFF;
color: #3582EE;
}
.icon {
width: 96rpx;
height: 96rpx;
margin-right: 30rpx;
}
.modalbox {
display: flex;
align-items: center;
box-sizing: border-box;
width: 522rpx;
height: 136rpx;
background: #F7F8FA;
border-radius: 8rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28rpx;
color: #292D33;
padding-left: 24rpx;
margin: 0 auto;
&+.modalbox {
margin-top: 16rpx;
}
.txt {
font-size: 24rpx;
}
}
.act {
background: #347bff1a;
border: 2rpx solid #347BFF;
color: #3582EE;
}
}
.btnbox {
// margin-top: 32rpx;
display: flex;
justify-content: center;
.btn {
width: 250rpx;
height: 100rpx;
line-height: 100rpx;
text-align: center;
border-radius: 12rpx;
font-size: 32rpx;
// margin-bottom: 48rpx;
}
.cancel {
background: #FFFFFF;
// border: 2rpx solid #DEE0E3;
color: #222222;
}
.confirm {
color: #FFFFFF;
background: #347BFF;
margin-left: 24rpx;
}
}
\ No newline at end of file
// margin-top: 32rpx;
display: flex;
justify-content: center;
.btn {
width: 250rpx;
height: 100rpx;
line-height: 100rpx;
text-align: center;
border-radius: 12rpx;
font-size: 32rpx;
// margin-bottom: 48rpx;
}
.cancel {
background: #FFFFFF;
// border: 2rpx solid #DEE0E3;
color: #222222;
}
.confirm {
color: #FFFFFF;
background: #347BFF;
margin-left: 24rpx;
}
}
<!--components/SelectInvoiceModal/SelectInvoiceModal.wxml-->
<!-- btns="{{ ['取消','确定'] }}" -->
<modal id="modal" class="modal" custom="true" btns="{{ [] }}" maskEnable="{{ false }}" tapTitle="查看客户施工单">
<scroll-view style="height: 200px;padding: 15px 0 10px;" scroll-y>
<view class="modatcontent">
<view wx:for="{{ constructionList }}" wx:for-item="item" wx:for-index="index" class="item" wx:key="index">
<!-- bind:tap="handleDetail" -->
<view class="itembox" bind:tap="navto" data-item="{{item}}">
<view class="subName">{{item.subGoodsName}}</view>
<view class="part">
<view class="position">{{item.mainTechnician}}</view>
<view class="statusBox" wx:if="{{ item.constructionStatus == 1||item.constructionStatus ==2 }}">已施工</view>
<view class="statusBox wait" wx:if="{{ item.constructionStatus == 0 }}">待施工</view>
</view>
</view>
<view class="right">
<image class="arrow" src="/components/images/arrow-x.png"></image>
</view>
</view>
</view>
</scroll-view>
<scroll-view style="height: 200px;padding: 15px 0 10px;" scroll-y>
<view class="modatcontent">
<view wx:for="{{ constructionList }}" wx:for-item="item" wx:for-index="index" class="item" wx:key="index">
<!-- bind:tap="handleDetail" -->
<view class="itembox" bind:tap="navto" data-item="{{item}}">
<view class="subName">{{item.subGoodsName}}</view>
<view class="part">
<view class="position">{{item.mainTechnician}}</view>
<view class="statusBox" wx:if="{{ item.constructionStatus == 1||item.constructionStatus ==2 }}">已施工</view>
<view class="statusBox wait" wx:if="{{ item.constructionStatus == 0 }}">待施工</view>
<!-- <view class="inventory">库存1020.00米/件</view>
<view class="inventory" catch:tap="openInventoryPopup" data-inventory="{{item}}">库存{{item.stock}}</view> -->
</view>
</view>
<view class="right">
<image class="arrow" src="/components/images/arrow-x.png"></image>
</view>
</view>
</view>
</scroll-view>
<view class="btnbox">
<view class="btn cancel" bind:tap="handleCancel">关闭</view>
<!-- <view class="btn confirm" bind:tap="handleConfirm">下一步</view> -->
</view>
<view class="btnbox">
<view class="btn cancel" bind:tap="handleCancel">关闭</view>
<!-- <view class="btn confirm" bind:tap="handleConfirm">下一步</view> -->
</view>
</modal>
\ No newline at end of file
......@@ -37,6 +37,22 @@ Component({
* 组件的方法列表
*/
methods: {
openInventoryPopup(e){
console.log(e)
let {inventory:{
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}} = e.target.dataset
const inventoryData ={
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}
this.triggerEvent('openInventory', inventoryData)
},
selectType(e) {
let { type } = e.currentTarget.dataset
this.setData({
......@@ -135,7 +151,11 @@ Component({
subOrderCode: val.subOrderCode,
upgradeGoodsId: val.upgradeGoodsId,
upgradeGoodsName: val.upgradeGoodsName,
constructionFlag: val.constructionFlag
constructionFlag: val.constructionFlag,
upgradeGoodsCommodityCode:val.upgradeGoodsCommodityCode,
upgradeGoodsCode:val.upgradeGoodsCode,
specification:val.specification,
stock:val.stock
}
})
let params = {
......
/* components/SelectInvoiceModal/SelectInvoiceModal.wxss */
.modatcontent {
box-sizing: border-box;
// margin: var(--fontSize48) 0 0;
// max-height: 600rpx;
// height: 600rxp;
overflow-y: auto;
margin: 20rpx 0;
.itembox {
box-sizing: border-box;
padding: 0 48rpx;
height: 120rpx;
display: flex;
align-items: center;
.subName {
display: inline-block;
overflow: hidden; //一定要写
text-overflow: ellipsis; //超出省略号
display: -webkit-box; //一定要写
-webkit-line-clamp: 2; //控制行数
-webkit-box-orient: vertical; //一定要写
width: 300rpx;
// height: 90rpx;
line-height: 45rpx;
font-size: 28rpx;
color: #292D33;
}
.checked_img {
display: flex;
align-items: center;
margin-left: 20rpx;
.checked {
display: flex;
align-items: center;
font-size: 28rpx;
color: #292D33;
}
image {
display: inline-block;
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
margin-right: 20rpx;
}
.nocheck {
margin-left: 48rpx;
}
}
}
.itembox+.itembox {
border-top: 1rpx solid #EFF0F2;
}
box-sizing: border-box;
// margin: var(--fontSize48) 0 0;
// max-height: 600rpx;
// height: 600rxp;
overflow-y: auto;
margin: 20rpx 0;
.itembox {
box-sizing: border-box;
padding: 16rpx 48rpx;
// height: 120rpx;
display: flex;
align-items: center;
.item-text {
width: 300rpx;
}
.inventory {
width: 100%;
font-size: 24rpx;
color: #347bff;
display: inline-block;
overflow: hidden; //一定要写
text-overflow: ellipsis; //超出省略号
display: -webkit-box; //一定要写
-webkit-line-clamp: 2; //控制行数
-webkit-box-orient: vertical; //一定要写
}
.subName {
width: 100%;
display: inline-block;
overflow: hidden; //一定要写
text-overflow: ellipsis; //超出省略号
display: -webkit-box; //一定要写
-webkit-line-clamp: 2; //控制行数
-webkit-box-orient: vertical; //一定要写
// height: 90rpx;
line-height: 45rpx;
font-size: 28rpx;
color: #292D33;
}
.checked_img {
display: flex;
align-items: center;
margin-left: 20rpx;
.checked {
display: flex;
align-items: center;
font-size: 28rpx;
color: #292D33;
}
image {
display: inline-block;
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
margin-right: 20rpx;
}
.nocheck {
margin-left: 48rpx;
}
}
}
.itembox+.itembox {
border-top: 1rpx solid #EFF0F2;
}
}
.modal {
.icon {
width: 96rpx;
height: 96rpx;
margin-right: 30rpx;
}
.modalbox {
display: flex;
align-items: center;
box-sizing: border-box;
width: 522rpx;
height: 136rpx;
background: #F7F8FA;
border-radius: 8rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28rpx;
color: #292D33;
padding-left: 24rpx;
margin: 0 auto;
&+.modalbox {
margin-top: 16rpx;
}
.txt {
font-size: 24rpx;
}
}
.act {
background: #347bff1a;
border: 2rpx solid #347BFF;
color: #3582EE;
}
.icon {
width: 96rpx;
height: 96rpx;
margin-right: 30rpx;
}
.modalbox {
display: flex;
align-items: center;
box-sizing: border-box;
width: 522rpx;
height: 136rpx;
background: #F7F8FA;
border-radius: 8rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28rpx;
color: #292D33;
padding-left: 24rpx;
margin: 0 auto;
&+.modalbox {
margin-top: 16rpx;
}
.txt {
font-size: 24rpx;
}
}
.act {
background: #347bff1a;
border: 2rpx solid #347BFF;
color: #3582EE;
}
}
.btnbox {
margin-top: 32rpx;
display: flex;
justify-content: center;
.btn {
width: 250rpx;
height: 80rpx;
line-height: 80rpx;
text-align: center;
border-radius: 12rpx;
font-size: 32rpx;
margin-bottom: 48rpx;
}
.cancel {
background: #FFFFFF;
border: 2rpx solid #DEE0E3;
color: #222222;
}
.confirm {
color: #FFFFFF;
background: #347BFF;
margin-left: 24rpx;
}
.disabled {
background: #D0D2D6;
color: #FFFFFF;
}
}
\ No newline at end of file
margin-top: 32rpx;
display: flex;
justify-content: center;
.btn {
width: 250rpx;
height: 80rpx;
line-height: 80rpx;
text-align: center;
border-radius: 12rpx;
font-size: 32rpx;
margin-bottom: 48rpx;
}
.cancel {
background: #FFFFFF;
border: 2rpx solid #DEE0E3;
color: #222222;
}
.confirm {
color: #FFFFFF;
background: #347BFF;
margin-left: 24rpx;
}
.disabled {
background: #D0D2D6;
color: #FFFFFF;
}
}
......@@ -6,7 +6,13 @@
<view class="modatcontent">
<block wx:for="{{ constructionList }}" wx:key="index">
<view class="itembox">
<text class="subName">{{item.upgradeGoodsName}}</text>
<view class="item-text">
<text class="subName">{{item.upgradeGoodsName}}</text>
<!-- <view class="inventory">库存1020.00米/件</view> -->
<view class="inventory" catch:tap="openInventoryPopup" data-inventory="{{item}}">库存{{item.stock}}</view>
</view>
<view class="checked_img">
<!-- <block wx:if="{{multiple}}"> -->
<view class="checked" bind:tap="switchValue" data-index="{{ index }}" data-value="1">
......
......@@ -35,6 +35,22 @@ Component({
* 组件的方法列表
*/
methods: {
openInventoryPopup(e){
console.log(e)
let {inventory:{
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}} = e.target.dataset
const inventoryData ={
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}
this.triggerEvent('openInventory', inventoryData)
},
choose(e) {
let { item } = e.currentTarget.dataset
let { goodsList } = this.data
......
/* tabRepairOrder/components/relateGoodsPop/index.wxss */
.tips {
background: #FDECE9;
font-size: 28rpx;
color: #F24724;
line-height: 40rpx;
padding: 16rpx 40rpx;
margin-left: calc(-1 * var(--fontSize32));
width: 100%;
background: #FDECE9;
font-size: 28rpx;
color: #F24724;
line-height: 40rpx;
padding: 16rpx 40rpx;
margin-left: calc(-1 * var(--fontSize32));
width: 100%;
}
.goods-content {
width: calc(100% + var(--fontSize64));
height: calc(100% - var(--fontSize90));
margin-left: calc(-1 * var(--fontSize32));
.content {
height: calc(100% - var(--fontSize104));
.box {
border-bottom: var(--fontSize2) solid #EBEDF0;
.itemBox {
display: flex;
align-items: center;
.choose {
width: var(--fontSize32);
height: var(--fontSize32);
margin: 0 var(--fontSize32);
}
.item {
flex: 1;
justify-content: space-between;
padding-right: var(--fontSize32);
width: calc(100% - var(--fontSize130));
border-top: var(--fontSize2) solid #EBEDF0;
height: var(--fontSize84);
display: flex;
align-items: center;
font-size: var(--fontSize28);
color: #888888;
position: relative;
.labelWidth {
width: calc(100% - var(--fontSize180));
}
.value {
width: 100%;
display: flex;
justify-content: space-between;
.name {
max-width: 85%;
width: calc(100vw - var(--fontSize100));
color: #292D33;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
}
}
.selected-box {
text-align: center;
font-size: var(--fontSize28);
color: #888888;
margin-top: var(--fontSize30);
text {
color: #347BFF;
}
}
width: calc(100% + var(--fontSize64));
height: calc(100% - var(--fontSize90));
margin-left: calc(-1 * var(--fontSize32));
.content {
height: calc(100% - var(--fontSize104));
.box {
border-bottom: var(--fontSize2) solid #EBEDF0;
.itemBox {
display: flex;
align-items: center;
.choose {
width: var(--fontSize32);
height: var(--fontSize32);
margin: 0 var(--fontSize32);
}
.item-box {
padding: 20rpx 0;
padding-right: var(--fontSize32);
width: calc(100% - var(--fontSize130));
border-top: var(--fontSize2) solid #EBEDF0;
}
.item {
flex: 1;
justify-content: space-between;
display: flex;
align-items: center;
font-size: var(--fontSize28);
color: #888888;
position: relative;
.labelWidth {
width: calc(100% - var(--fontSize180));
}
.value {
width: 100%;
display: flex;
justify-content: space-between;
.name {
max-width: 85%;
width: calc(100vw - var(--fontSize100));
color: #292D33;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.inventory {
margin-top: 4px;
max-width: 85%;
font-size: 24rpx;
color: #347bff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
.selected-box {
text-align: center;
font-size: var(--fontSize28);
color: #888888;
margin-top: var(--fontSize30);
text {
color: #347BFF;
}
}
}
.nothing {
text-align: center;
margin-top: 30rpx;
}
\ No newline at end of file
text-align: center;
margin-top: 30rpx;
}
<!--tabRepairOrder/components/relateGoodsPop/index.wxml-->
<wxs src="../../index.wxs" module="filter" />
<popup show="{{show}}" title="选择关联商品" bindconfirm="confirm" height="60%" bindcancel="cancel">
<view class="tips">
选定当前施工单的商品,未选的商品将自动创建第二笔施工单,可由不同技师负责施工
</view>
<view class="goods-content">
<scroll-view class="content" scroll-y show-scrollbar="{{false}}">
<block wx:if="{{goodsList.length > 0}}">
<view class="box">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item-wrap">
<view class="itemBox">
<view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<image src="{{i.active ? '../../../components/images/radio.png' : '../../../components/images/radio_icon.png'}}" />
</view>
<view class="item">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<text>{{filter.replaceItemText(i.goodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsName)}}</text>
<text wx:if="{{i.position && (i.goodsType == 1 || i.goodsType == baseConfigData.selfBuildFilmType)}}">{{'「' + i.positionStr+'」'}}</text>
<!-- <text class="warning_text" wx:if="{{!i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</text> -->
</view>
</view>
</view>
</view>
</view>
</block>
</view>
</block>
<block wx:else>
<view class="nothing">暂无数据</view>
</block>
</scroll-view>
<view class="selected-box">已选商品 <text>{{filter.activeNum(goodsList)}}</text> 件</view>
</view>
<view class="tips">
选定当前施工单的商品,未选的商品将自动创建第二笔施工单,可由不同技师负责施工
</view>
<view class="goods-content">
<scroll-view class="content" scroll-y show-scrollbar="{{false}}">
<block wx:if="{{goodsList.length > 0}}">
<view class="box">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item-wrap">
<view class="itemBox">
<view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<image src="{{i.active ? '../../../components/images/radio.png' : '../../../components/images/radio_icon.png'}}" />
</view>
<view class="item-box">
<view class="item">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<text>{{filter.replaceItemText(i.goodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsName)}}</text>
<text wx:if="{{i.position && (i.goodsType == 1 || i.goodsType == baseConfigData.selfBuildFilmType)}}">{{'「' + i.positionStr+'」'}}</text>
<!-- <text class="warning_text" wx:if="{{!i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</text> -->
</view>
</view>
</view>
<view class="inventory" catch:tap="openInventoryPopup" data-inventory="{{i}}">库存{{i.stock}}</view>
</view>
</view>
</view>
</block>
</view>
</block>
<block wx:else>
<view class="nothing">暂无数据</view>
</block>
</scroll-view>
<view class="selected-box">已选商品 <text>{{filter.activeNum(goodsList)}}</text> 件</view>
</view>
</popup>
\ No newline at end of file
......@@ -10,6 +10,13 @@ Page({
* 页面的初始数据
*/
data: {
showInventory:false,
inventoryData: {
upgradeGoodsCommodityCode: '',
upgradeGoodsCode: '',
specification: '',
stock: ''
},
isFirst: true,
subOrderRelationList: [{}],
confirmInfo: {
......@@ -171,6 +178,40 @@ Page({
}, 1000)
})
},
// 监听弹窗关闭事件
onInventoryClose() {
this.setData({
showInventory: false
});
},
// 打开弹窗
openInventoryPopup(e) {
console.log(e.target.dataset)
let {inventory:{
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}} = e.target.dataset
const inventoryData ={
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}
this.setData({
showInventory: true,
inventoryData
});
},
// 打开物料弹窗
openInventory(e){
const inventoryData=e.detail
this.setData({
showInventory: true,
inventoryData
});
},
backup() {
let { orderCode } = this.data
wx.$router.back({ orderCode })
......@@ -447,7 +488,11 @@ Page({
subOrderCode: val.subOrderCode,
upgradeGoodsId: val.upgradeGoodsId,
upgradeGoodsName: val.upgradeGoodsName,
constructionFlag: val.constructionFlag,
constructionFlag: val.constructionFlag,
upgradeGoodsCommodityCode:val.upgradeGoodsCommodityCode,
upgradeGoodsCode:val.upgradeGoodsCode,
specification:val.specification,
stock:val.stock,
number: val.number
}
})
......
......@@ -11,22 +11,16 @@
<view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="box">
<view class="orderBox">
<gl-cell
border="{{ false }}"
valueAlign="right"
label="选择商品并创建此施工单"
labelWidth="var(--fontSize330)"
haveArrow
bindclick="relateGoods"
data-show-name="selesBox"
placeholder="请选择"
disabled="{{ confirmInfo.relateGoodsDisabled }}"
></gl-cell>
<gl-cell border="{{ false }}" valueAlign="right" label="选择商品并创建此施工单" labelWidth="var(--fontSize330)" haveArrow bindclick="relateGoods" data-show-name="selesBox" placeholder="请选择" disabled="{{ confirmInfo.relateGoodsDisabled }}"></gl-cell>
<view class="goodsListCon" wx:if="{{ confirmInfo.subOrderList && confirmInfo.subOrderList.length }}">
<view class="goods" wx:for="{{ confirmInfo.subOrderList }}" wx:key="index">
<view class="left">
<view class="dot"></view>
<view class="name">{{item.upgradeGoodsName}}</view>
<view class="goods-text">
<view class="name">{{item.upgradeGoodsName}}</view>
<view class="inventory" catch:tap="openInventoryPopup" data-inventory="{{item}}">库存{{item.stock}}</view>
<!-- <view class="inventory">库存1020.00米/件</view> -->
</view>
</view>
<view class="count">x{{item.number}}</view>
</view>
......@@ -35,17 +29,7 @@
</view>
<view class="servies-content box">
<view class="title">选择技师</view>
<gl-cell
border
valueAlign="right"
label="主技师"
requiredAfter
labelWidth="var(--fontSize140)"
required
haveArrow
bindclick="showPopup"
placeholder="请选择"
>
<gl-cell border valueAlign="right" label="主技师" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" placeholder="请选择">
<block wx:if="{{ mainSelected.length }}">
<view class="techic-value text-hide">
{{mainSelected[0] && mainSelected[0].staffName}}
......@@ -53,16 +37,7 @@
</view>
</block>
</gl-cell>
<gl-cell
border
valueAlign="right"
label="副手技师"
labelWidth="var(--fontSize140)"
haveArrow
bindclick="showPopup"
data-type="deputy"
placeholder="请选择"
>
<gl-cell border valueAlign="right" label="副手技师" labelWidth="var(--fontSize140)" haveArrow bindclick="showPopup" data-type="deputy" placeholder="请选择">
<block wx:if="{{ deputySelected.length }}">
<view class="techic-value text-hide">
<view class="text-hide" wx:if="{{ deputySelected[0] }}">
......@@ -114,15 +89,7 @@
</view>
</view>
<view class="count-box" wx:if="{{ i.active }}">
<input
type="number"
class="count-input"
value="{{ i.useNum }}"
maxlength="2"
bindblur="handleCountBlur"
bindinput="handleCountInput"
data-target="{{ i }}"
/>
<input type="number" class="count-input" value="{{ i.useNum }}" maxlength="2" bindblur="handleCountBlur" bindinput="handleCountInput" data-target="{{ i }}" />
<text>个/件</text>
</view>
</view>
......@@ -158,22 +125,6 @@
</view>
</view>
</block>
<relate-goods-popup
show="{{ relateGoodsVisable }}"
goodsList="{{ goodsList }}"
bindconfirm="handelRelateGoodsConfirm"
selected="{{ editGoodsList }}"
bindcancel="handelRelateGoodsCancel"
baseConfigData="{{ baseConfigData }}"
></relate-goods-popup>
<technician-select-popup
show="{{ artificerSelectPopup }}"
title="选择技师"
copyArtificerList="{{ artificerList }}"
multiple="{{ technicianMultiple }}"
artificerSelectObj="{{ technicianMultiple ? deputySelected : mainSelected }}"
disabledSelectObj="{{ technicianMultiple ? mainSelected : deputySelected }}"
bindconfirm="changeArtificer"
bindcancel="cancelTechnician"
deputyFlag="{{ technicianMultiple }}"
/>
\ No newline at end of file
<relate-goods-popup show="{{ relateGoodsVisable }}" goodsList="{{ goodsList }}" bindconfirm="handelRelateGoodsConfirm" selected="{{ editGoodsList }}" bindcancel="handelRelateGoodsCancel" baseConfigData="{{ baseConfigData }}" bind:openInventory="openInventory"></relate-goods-popup>
<technician-select-popup show="{{ artificerSelectPopup }}" title="选择技师" copyArtificerList="{{ artificerList }}" multiple="{{ technicianMultiple }}" artificerSelectObj="{{ technicianMultiple ? deputySelected : mainSelected }}" disabledSelectObj="{{ technicianMultiple ? mainSelected : deputySelected }}" bindconfirm="changeArtificer" bindcancel="cancelTechnician" deputyFlag="{{ technicianMultiple }}" />
<inventory-info show="{{showInventory}}" inventory-data="{{inventoryData}}" title="库存信息" bind:close="onInventoryClose" />
\ No newline at end of file
......@@ -20,6 +20,13 @@ Page({
* 页面的初始数据
*/
data: {
showInventory:false,
inventoryData: {
upgradeGoodsCommodityCode: '',
upgradeGoodsCode: '',
specification: '',
stock: ''
},
IMG_URL,
...order_mixins.data,
selectType: 1,
......@@ -56,6 +63,40 @@ Page({
sublistVisible: false,
constructionVisible: false
},
// 监听弹窗关闭事件
onInventoryClose() {
this.setData({
showInventory: false
});
},
// 打开弹窗
openInventoryPopup(e) {
console.log(e.target.dataset)
let {inventory:{
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}} = e.target.dataset
const inventoryData ={
upgradeGoodsCommodityCode,
upgradeGoodsCode,
specification,
stock
}
this.setData({
showInventory: true,
inventoryData
});
},
// 打开物料弹窗
openInventory(e){
const inventoryData=e.detail
this.setData({
showInventory: true,
inventoryData
});
},
sublistCancel() {
this.setData(
{
......
......@@ -25,9 +25,7 @@
<view class="box goodsOrderApplyStatus" wx:if="{{ orderInfo.goodsOrderApplyStatus }}">
<view class="title" style="display: flex;justify-content: space-between;align-items: center;">
<text>审批</text>
<view
class="approval-tag {{ orderInfo.goodsOrderApplyStatus==3?'success':orderInfo.goodsOrderApplyStatus==4?'error':'warning' }}"
>{{orderInfo.goodsOrderApplyStatus==3?'审批通过':orderInfo.goodsOrderApplyStatus==4?'审批驳回':'审批中'}}</view>
<view class="approval-tag {{ orderInfo.goodsOrderApplyStatus==3?'success':orderInfo.goodsOrderApplyStatus==4?'error':'warning' }}">{{orderInfo.goodsOrderApplyStatus==3?'审批通过':orderInfo.goodsOrderApplyStatus==4?'审批驳回':'审批中'}}</view>
</view>
<block wx:if="{{ orderInfo.goodsOrderApplyStatus==3 }}">
<view class="approval-info">
......@@ -117,9 +115,7 @@
<view class="price">¥{{item.finalPrice}}</view>
</view>
<view class="subItem_box">
<view
style="{{ !orderInfo.isOpenArtificer || !item.upgradeGoodsPosition ? 'display: flex; justify-content: space-between; width: 100%;' : 'display: flex;' }}"
>
<view style="{{ !orderInfo.isOpenArtificer || !item.upgradeGoodsPosition ? 'display: flex; justify-content: space-between; width: 100%;' : 'display: flex;' }}">
<!-- 太阳膜类展示部位 精品类展示类目名 -->
<view class="position">
{{item.positionStr || item.upgradeGoodsTypeName}}
......@@ -146,10 +142,7 @@
<view class="label icon">
<image src="../../images/voucher_icon.png" mode="" />
</view>
<view
class="value"
wx:if="{{ orderInfo.couponName || orderInfo.customerCoupon.customerCouponCode || orderInfo.customerCoupon.employeeName }}"
>
<view class="value" wx:if="{{ orderInfo.couponName || orderInfo.customerCoupon.customerCouponCode || orderInfo.customerCoupon.employeeName }}">
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}({{orderInfo.customerCoupon.employeeName || ''}})
</view>
<view class="value" wx:else>无</view>
......@@ -171,17 +164,9 @@
<!-- 非门店收款 已支付/已退款展示 -->
<!-- wx:if="{{ isStaff && orderInfo.selectPayType != 2 && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}" -->
<view>
<apply-refund-btn
orderInfo="{{ orderInfo }}"
updateFlag="{{ updateFlag&&filter.btnPermissions(userPermissions, 'CHUANGJIANSHIGONGDAN')&&(orderInfo.status == 4 || orderInfo.status == 6||orderInfo.status == 2|| orderInfo.status == 12) }}"
showRefundBtn="{{ isStaff && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}"
></apply-refund-btn>
<apply-refund-btn orderInfo="{{ orderInfo }}" updateFlag="{{ updateFlag&&filter.btnPermissions(userPermissions, 'CHUANGJIANSHIGONGDAN')&&(orderInfo.status == 4 || orderInfo.status == 6||orderInfo.status == 2|| orderInfo.status == 12) }}" showRefundBtn="{{ isStaff && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}"></apply-refund-btn>
</view>
<view
wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}"
class="invoice-btn"
bindtap="handleBtnInvoice"
>
<view wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}" class="invoice-btn" bindtap="handleBtnInvoice">
<gl-image class="icon" src="/icon-invoice.png"></gl-image>
{{invoiceName}}
</view>
......@@ -219,20 +204,11 @@
</block>
</view>
</block>
<block
wx:if="{{ (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length }}"
>
<block wx:if="{{ (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length }}">
<view class="cell">
<view class="label">付款凭证</view>
<view class="image-box">
<view
class="value"
bindtap="previewImage"
wx:for="{{ orderInfo.payVoucherList }}"
wx:key="index"
data-index="{{ index }}"
data-url="{{ orderInfo.payVoucherList }}"
>
<view class="value" bindtap="previewImage" wx:for="{{ orderInfo.payVoucherList }}" wx:key="index" data-index="{{ index }}" data-url="{{ orderInfo.payVoucherList }}">
<view class="image">
<image src="{{ item.payVoucher }}" />
</view>
......@@ -254,18 +230,11 @@
<view class="title userTitle">
<text>客户信息</text>
<!-- 已退款或已开票不可修改客户任何信息 -->
<view
bindtap="jumpUserPortrait"
class="updateInfo icon {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2||!isMake ? 'isHide' : '' }}"
>
<view bindtap="jumpUserPortrait" class="updateInfo icon {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2||!isMake ? 'isHide' : '' }}">
<image src="{{ IMG_URL }}miniProgram/custom_portrait_icon.png" class="iconImage"></image>
画像
</view>
<view
wx:if="{{ isYqdSuper||isStaff }}"
bindtap="jumpUpdate"
class="updateInfo {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}"
>
<view wx:if="{{ isYqdSuper||isStaff }}" bindtap="jumpUpdate" class="updateInfo {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}">
<image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="iconImage"></image>
客户信息
</view>
......@@ -371,18 +340,8 @@
wx:if="{{ (!userInfo.isSuper && userInfo.loginRole != 3 && userInfo.loginRole != 6 && userInfo.userType == 2 && (orderInfo.status == 4 || orderInfo.status == 2 || orderInfo.status == 6)) && ((orderInfo.subOrderList && orderInfo.subOrderList.length) ||(orderInfo.packageGoodsList&&orderInfo.packageGoodsList.length)) }}"
> -->
<view wx:if="{{ confirmFlagObj.showBtn }}" class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view
wx:if="{{ confirmFlagObj.btnName == 'constructionVisible' }}"
class="btn text-center"
data-btnName="{{ confirmFlagObj.btnName }}"
bindtap="showModal"
>{{confirmFlagObj.showBtn}}</view>
<view
wx:if="{{ confirmFlagObj.btnName == 'sublistVisible' &&filter.btnPermissions(userPermissions, 'CHUANGJIANSHIGONGDAN')&&(orderInfo.status == 4 || orderInfo.status == 6|| orderInfo.status == 2|| orderInfo.status == 12) }}"
class="btn text-center"
data-btnName="{{ confirmFlagObj.btnName }}"
bindtap="showModal"
>{{confirmFlagObj.showBtn}}</view>
<view wx:if="{{ confirmFlagObj.btnName == 'constructionVisible' }}" class="btn text-center" data-btnName="{{ confirmFlagObj.btnName }}" bindtap="showModal">{{confirmFlagObj.showBtn}}</view>
<view wx:if="{{ confirmFlagObj.btnName == 'sublistVisible' &&filter.btnPermissions(userPermissions, 'CHUANGJIANSHIGONGDAN')&&(orderInfo.status == 4 || orderInfo.status == 6|| orderInfo.status == 2|| orderInfo.status == 12) }}" class="btn text-center" data-btnName="{{ confirmFlagObj.btnName }}" bindtap="showModal">{{confirmFlagObj.showBtn}}</view>
</view>
<!-- 不需要走签名逻辑 -->
<!-- <view wx:if="{{ signatureSwitch&&orderInfo.selectPayType!=0 }}" class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}">
......@@ -425,30 +384,13 @@
</view>
</modal>
<order-popup orderType="4" show="{{ showPopup }}" />
<artificer-select-popup
show="{{ artificerSelectPopup }}"
title="选择技师"
copyArtificerList="{{ artificerList }}"
orderInfo="{{ orderInfo }}"
artificerSelectObj="{{ artificerSelectObj }}"
bindconfirm="changeArtificer"
/>
<artificer-select-popup show="{{ artificerSelectPopup }}" title="选择技师" copyArtificerList="{{ artificerList }}" orderInfo="{{ orderInfo }}" artificerSelectObj="{{ artificerSelectObj }}" bindconfirm="changeArtificer" />
<!-- <wxs src="/utils/index.wxs" module="common" /> -->
<film-roll-no-popup
show="{{ filmRollNoPopup }}"
title="选择膜卷号"
copyfilmRollNoList="{{ filmRollNoList }}"
filmSelectedItem="{{ filmSelectedItem }}"
bindconfirm="changefilmRollNo"
/>
<film-roll-no-popup show="{{ filmRollNoPopup }}" title="选择膜卷号" copyfilmRollNoList="{{ filmRollNoList }}" filmSelectedItem="{{ filmSelectedItem }}" bindconfirm="changefilmRollNo" />
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-modal>
<sublist-modal visible="{{ sublistVisible }}" orderInfo="{{ orderInfo }}" orderCode="{{ orderCode }}" bindcancel="sublistCancel"></sublist-modal>
<ConstructionDetailModal
visible="{{ constructionVisible }}"
orderInfo="{{ orderInfo }}"
orderCode="{{ orderCode }}"
bindcancel="constructionCancel"
></ConstructionDetailModal>
<sublist-modal visible="{{ sublistVisible }}" orderInfo="{{ orderInfo }}" orderCode="{{ orderCode }}" bindcancel="sublistCancel" bind:openInventory="openInventory"></sublist-modal>
<ConstructionDetailModal visible="{{ constructionVisible }}" orderInfo="{{ orderInfo }}" orderCode="{{ orderCode }}" bindcancel="constructionCancel" bind:openInventory="openInventory"></ConstructionDetailModal>
<!-- <dialog show="{{showModal}}" confirmText="确定" cancelText="取消" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}">
</dialog> -->
<study-permission-modal id="customModal" />
\ No newline at end of file
<study-permission-modal id="customModal" />
<inventory-info show="{{showInventory}}" inventory-data="{{inventoryData}}" title="库存信息" bind:close="onInventoryClose" />
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!