Commit 6b5d59b5 by wangzhihui

添加库存

1 parent a2b3c672
Showing 34 changed files with 872 additions and 234 deletions
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
}, },
"[wxml]": { "[wxml]": {
"editor.defaultFormatter": "1251208555.wxml-pretty" "editor.defaultFormatter": "wechat.miniprogram.wxml-language-features"
}, },
"[wxss]": { "[wxss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
......
...@@ -296,7 +296,8 @@ ...@@ -296,7 +296,8 @@
"van-uploader": "@vant/weapp/uploader/index", "van-uploader": "@vant/weapp/uploader/index",
"glsx-privacy": "glsk-applet-component/GlsxPrivacy/index", "glsx-privacy": "glsk-applet-component/GlsxPrivacy/index",
"empty-data": "/components/EmptyData/EmptyData", "empty-data": "/components/EmptyData/EmptyData",
"van-switch": "@vant/weapp/switch/index" "van-switch": "@vant/weapp/switch/index",
"inventory-info":"components/InventoryInfo/InventoryInfo"
}, },
"preloadRule": { "preloadRule": {
"pages/tabWorkOrder/pages/index/index": { "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 \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ 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 \ 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 // packageEquity/pages/aiInspection/components/contentItem/contentItem.js
Component({ Component({
......
...@@ -159,6 +159,21 @@ Component({ ...@@ -159,6 +159,21 @@ Component({
} }
} }
this.triggerEvent('confirm', infoData) 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 \ No newline at end of file
...@@ -4,24 +4,30 @@ ...@@ -4,24 +4,30 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.outbound-popup-box { .outbound-popup-box {
height: calc(100% - var(--fontSize120)); height: calc(100% - var(--fontSize120));
.sub-title { .sub-title {
height: var(--fontSize112); height: var(--fontSize112);
line-height: var(--fontSize112); line-height: var(--fontSize112);
border-bottom: var(--fontSize1) solid #EBEDF0; border-bottom: var(--fontSize1) solid #EBEDF0;
margin-bottom: var(--fontSize20); margin-bottom: var(--fontSize20);
.text-center { .text-center {
text-align: center; text-align: center;
font-weight: 500; font-weight: 500;
color: #222222; color: #222222;
} }
} }
.outbound-box { .outbound-box {
height: calc(100% - var(--fontSize114)); height: calc(100% - var(--fontSize114));
.scroll-box { .scroll-box {
height: 100%; height: 100%;
} }
.qrcode-box { .qrcode-box {
margin: 0 var(--fontSize32); margin: 0 var(--fontSize32);
background: #F4F5F7; background: #F4F5F7;
...@@ -30,26 +36,31 @@ ...@@ -30,26 +36,31 @@
display: flex; display: flex;
flex-flow: column; flex-flow: column;
align-items: center; align-items: center;
image { image {
width: var(--fontSize256); width: var(--fontSize256);
height: var(--fontSize256); height: var(--fontSize256);
} }
.tips { .tips {
margin-top: var(--fontSize16); margin-top: var(--fontSize16);
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #757980; color: #757980;
} }
} }
.box { .box {
padding: var(--fontSize40) var(--fontSize32) var(--fontSize2) var(--fontSize40); padding: var(--fontSize40) var(--fontSize32) var(--fontSize2) var(--fontSize40);
position: relative; position: relative;
margin: var(--fontSize20) 0 0; margin: var(--fontSize20) 0 0;
.title { .title {
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #292D33; color: #292D33;
margin-bottom: var(--fontSize20); margin-bottom: var(--fontSize20);
position: relative; position: relative;
font-weight: 500; font-weight: 500;
&::after { &::after {
position: absolute; position: absolute;
content: ''; content: '';
...@@ -60,49 +71,76 @@ ...@@ -60,49 +71,76 @@
top: 50%; top: 50%;
transform: translateY(-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 { .text-name {
max-width: calc(100% - var(--fontSize100)); max-width: calc(100% - var(--fontSize250));
} }
} }
.box-item { .box-item {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
height: var(--fontSize104); height: var(--fontSize104);
font-size: var(--fontSize28); font-size: var(--fontSize28);
.label { .label {
color: #292D33; color: #292D33;
flex-shrink: 0; flex-shrink: 0;
width: var(--fontSize180); width: var(--fontSize180);
.required { .required {
color: #f00; color: #f00;
margin-left: var(--fontSize8); margin-left: var(--fontSize8);
} }
} }
.value-box { .value-box {
width: calc(100% - var(--fontSize190)); width: calc(100% - var(--fontSize190));
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
} }
.value { .value {
text-align: right; text-align: right;
width: calc(100% - var(--fontSize32)); width: calc(100% - var(--fontSize32));
.placeholder { .placeholder {
color: #BEC1C7; color: #BEC1C7;
} }
} }
.pickerArrow { .pickerArrow {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
} }
} }
.input-box { .input-box {
.label { .label {
width: var(--fontSize330); width: var(--fontSize330);
} }
.value { .value {
width: var(--fontSize240); width: var(--fontSize240);
.input { .input {
width: 100%; width: 100%;
height: var(--fontSize68); height: var(--fontSize68);
...@@ -118,28 +156,33 @@ ...@@ -118,28 +156,33 @@
justify-content: flex-end; justify-content: flex-end;
-webkit-appearance: none; -webkit-appearance: none;
appearance: none; appearance: none;
&::placeholder { &::placeholder {
position: relative; position: relative;
top: 0; top: 0;
transform: none; transform: none;
} }
} }
.disabled { .disabled {
background: #DEE0E3; background: #DEE0E3;
} }
} }
} }
.time-box { .time-box {
padding-bottom: var(--fontSize48); padding-bottom: var(--fontSize48);
} }
} }
} }
} }
.popup-footer { .popup-footer {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: var(--fontSize20) var(--fontSize32) ; padding: var(--fontSize20) var(--fontSize32);
.btn { .btn {
height: var(--fontSize80); height: var(--fontSize80);
box-sizing: border-box; box-sizing: border-box;
...@@ -148,18 +191,21 @@ ...@@ -148,18 +191,21 @@
text-align: center; text-align: center;
line-height: var(--fontSize80); line-height: var(--fontSize80);
} }
.cancel { .cancel {
width: var(--fontSize186); width: var(--fontSize186);
height: var(--fontSize76); height: var(--fontSize76);
color: #292D33; color: #292D33;
border: var(--fontSize2) solid #DEE0E3; border: var(--fontSize2) solid #DEE0E3;
} }
.confirm { .confirm {
width: calc(100% - var(--fontSize206)); width: calc(100% - var(--fontSize206));
background: #347BFF; background: #347BFF;
color: #fff; color: #fff;
} }
} }
.popup-footer.isFullSucreen { .popup-footer.isFullSucreen {
padding-bottom: var(--fontSize68) !important; padding-bottom: var(--fontSize68) !important;
} }
<!--tabRepairOrder/components/outboundPopup/index.wxml--> <!--tabRepairOrder/components/outboundPopup/index.wxml-->
<wxs src="../../index.wxs" module="filter" /> <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"> <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="outbound-popup-box">
<view class="sub-title"> <view class="sub-title">
<view class="text-center">{{title}}</view> <view class="text-center">{{title}}</view>
</view> </view>
<view class="outbound-box"> <view class="outbound-box">
<scroll-view scroll-y class="scroll-box" enhanced="{{true}}" scroll-top="{{scrollTop}}" show-scrollbar="{{false}}"> <scroll-view scroll-y class="scroll-box" enhanced="{{true}}" scroll-top="{{scrollTop}}" show-scrollbar="{{false}}">
<view class="qrcode-box"> <view class="qrcode-box">
<image src="{{weappQrcode}}" mode=""/> <image src="{{weappQrcode}}" mode="" />
<view class="tips">请仓库管理员扫描此二维码确认产品实际用料</view> <view class="tips">请仓库管理员扫描此二维码确认产品实际用料</view>
</view> </view>
<block wx:for="{{infoData.subOrderList}}" wx:key="index"> <block wx:for="{{infoData.subOrderList}}" wx:key="index">
<view class="box"> <view class="box">
<view class="title infoTitle"> <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="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>
<!-- <view class="box-item">
<view class="label">产品膜卷号</view> <view class="label">产品膜卷号</view>
<view class="value-box" bindtap="handleRollNumber" data-target="{{item}}" data-index="{{index}}"> <view class="value-box" bindtap="handleRollNumber" data-target="{{item}}" data-index="{{index}}">
<view class="value text-hide"> <view class="value text-hide">
<block wx:if="{{item.rollNumber}}">{{item.rollNumber}}</block> <block wx:if="{{item.rollNumber}}">{{item.rollNumber}}</block>
<block wx:else><view class='placeholder'>请选择</view></block> <block wx:else>
<view class='placeholder'>请选择</view>
</block>
</view> </view>
<image class="pickerArrow" src="/components/images/arrow-x.png" /> <image class="pickerArrow" src="/components/images/arrow-x.png" />
</view> </view>
</view> </view> -->
<view class="box-item input-box"> <view class="box-item input-box">
<view class="label">产品实际用料(米/件)<text class='required'>*</text></view> <view class="label">产品实际用料(米/件)<text class='required'>*</text></view>
<view class="value"> <view class="value">
<input class="input {{false ? 'disabled' : ''}}" bindinput="handleInput" value="{{item.materialsUsed}}" data-index="{{index}}" type="digit" placeholder-style="color: #BEC1C7;" placeholder="输入数字"/> <input class="input {{false ? 'disabled' : ''}}" bindinput="handleInput" value="{{item.materialsUsed}}" data-index="{{index}}" type="digit" placeholder-style="color: #BEC1C7;" placeholder="输入数字" />
</view> </view>
</view> </view>
</view> </view>
...@@ -39,11 +44,13 @@ ...@@ -39,11 +44,13 @@
出库时间 出库时间
</view> </view>
<view class="box-item time-box"> <view class="box-item time-box">
<view class="label" >产品出库时间</view> <view class="label">产品出库时间</view>
<view class="value-box" bindtap="handleOutboundTime"> <view class="value-box" bindtap="handleOutboundTime">
<view class="value text-hide"> <view class="value text-hide">
<block wx:if="{{infoData.outBoundTime}}">{{infoData.outBoundTime}}</block> <block wx:if="{{infoData.outBoundTime}}">{{infoData.outBoundTime}}</block>
<block wx:else><view class='placeholder'>请选择</view></block> <block wx:else>
<view class='placeholder'>请选择</view>
</block>
</view> </view>
<image class="pickerArrow" src="/components/images/arrow-x.png" /> <image class="pickerArrow" src="/components/images/arrow-x.png" />
</view> </view>
...@@ -57,5 +64,5 @@ ...@@ -57,5 +64,5 @@
<view class="confirm btn text-center" bind:tap="confirm">确认核销出库</view> <view class="confirm btn text-center" bind:tap="confirm">确认核销出库</view>
</view> </view>
</van-popup> </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 \ 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 \ No newline at end of file
...@@ -35,6 +35,22 @@ Component({ ...@@ -35,6 +35,22 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { 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) { choose(e) {
let { item } = e.currentTarget.dataset let { item } = e.currentTarget.dataset
let { goodsList } = this.data let { goodsList } = this.data
......
...@@ -3,55 +3,82 @@ ...@@ -3,55 +3,82 @@
width: calc(100% + var(--fontSize64)); width: calc(100% + var(--fontSize64));
height: 100%; height: 100%;
margin-left: calc(-1 * var(--fontSize32)); margin-left: calc(-1 * var(--fontSize32));
.content { .content {
height: calc(100% - var(--fontSize104)); height: calc(100% - var(--fontSize104));
.box { .box {
border-bottom: var(--fontSize2) solid #EBEDF0; border-bottom: var(--fontSize2) solid #EBEDF0;
.itemBox { .itemBox {
display: flex; display: flex;
align-items: center; align-items: center;
.choose { .choose {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
margin: 0 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 { .item {
flex: 1; flex: 1;
justify-content: space-between; justify-content: space-between;
padding-right: var(--fontSize32);
width: calc(100% - var(--fontSize130));
height: var(--fontSize84);
display: flex; display: flex;
align-items: center; align-items: center;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #888888; color: #888888;
position: relative; position: relative;
.labelWidth { .labelWidth {
width: calc(100% - var(--fontSize180)); width: calc(100% - var(--fontSize180));
} }
.value { .value {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.name { .name {
max-width: 85%; max-width: 85%;
width:calc(100vw - var(--fontSize100)) width: calc(100vw - var(--fontSize100))
} }
.text-hide { .text-hide {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; 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 { .selected-box {
text-align: center; text-align: center;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #888888; color: #888888;
margin-top: var(--fontSize30); margin-top: var(--fontSize30);
text { text {
color: #347BFF; color: #347BFF;
} }
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}"> <view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<image src="{{i.active ? '../../../components/images/radio.png' : '../../../components/images/radio_icon.png'}}" /> <image src="{{i.active ? '../../../components/images/radio.png' : '../../../components/images/radio_icon.png'}}" />
</view> </view>
<view class="item-box">
<view class="item"> <view class="item">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}"> <view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}"> <view class="name text-hide {{i.active?'textWidth':''}}">
...@@ -19,7 +20,11 @@ ...@@ -19,7 +20,11 @@
<!-- <text class="warning_text" wx:if="{{!i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</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> </view>
<view class="inventory" catch:tap="openInventoryPopup" data-inventory="{{i}}">库存{{i.stock}}</view>
</view>
</view> </view>
</view> </view>
</block> </block>
......
...@@ -19,19 +19,19 @@ ...@@ -19,19 +19,19 @@
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}} {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}
</view> </view>
</view> </view>
<view class="box-item"> <!-- <view class="box-item">
<view class="label">产品膜卷号</view> <view class="label">产品膜卷号</view>
<view class="value-box" data-target="{{ item }}" data-index="{{ index }}"> <view class="value-box" data-target="{{ item }}" data-index="{{ index }}">
<view class="value text-hide"> <view class="value text-hide">
<block wx:if="{{ item.rollNumber }}">{{item.rollNumber}}</block> <block wx:if="{{ item.rollNumber }}">{{item.rollNumber}}</block>
<block wx:else> <block wx:else>
- -
<!-- <view class="placeholder">请选择</view> --> =
</block> </block>
</view> </view>
<!-- <image class="pickerArrow" src="/components/images/arrow-x.png" /> -->
</view>
</view> </view>
</view> -->
<view class="box-item input-box"> <view class="box-item input-box">
<view class="label"> <view class="label">
退料入库数量(米/件) 退料入库数量(米/件)
......
...@@ -10,6 +10,13 @@ Page({ ...@@ -10,6 +10,13 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
showInventory:false,
inventoryData: {
upgradeGoodsCommodityCode: '',
upgradeGoodsCode: '',
specification: '',
stock: ''
},
IMG_URL, IMG_URL,
confirmInfo: {}, confirmInfo: {},
goodsObj: [ goodsObj: [
...@@ -71,6 +78,47 @@ Page({ ...@@ -71,6 +78,47 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() {}, 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() { getStaffPermissions() {
......
...@@ -89,14 +89,23 @@ page { ...@@ -89,14 +89,23 @@ page {
position: relative; position: relative;
padding-left: var(--fontSize32); padding-left: var(--fontSize32);
display: flex; display: flex;
align-items: center; // align-items: center;
justify-content: space-between; justify-content: space-between;
.inventory {
font-size: 24rpx;
color: #347bff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 12rpx;
}
&::after { &::after {
position: absolute; position: absolute;
width: var(--fontSize12); width: var(--fontSize12);
height: var(--fontSize12); height: var(--fontSize12);
top: 50%; top: 25%;
left: 0; left: 0;
transform: translateY(-50%); transform: translateY(-50%);
content: ''; content: '';
......
...@@ -32,9 +32,13 @@ ...@@ -32,9 +32,13 @@
<block wx:if="{{ !editGoodsFlag }}"> <block wx:if="{{ !editGoodsFlag }}">
<view class="goods-box" wx:if="{{ confirmInfo.subOrderList.length }}"> <view class="goods-box" wx:if="{{ confirmInfo.subOrderList.length }}">
<view class="goods-item" wx:for="{{ confirmInfo.subOrderList }}" wx:key="index"> <view class="goods-item" wx:for="{{ confirmInfo.subOrderList }}" wx:key="index">
<view class="goods-text">
<view class="goods-name text-hide"> <view class="goods-name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}} {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}
</view> </view>
<view class="inventory" bindtap="openInventoryPopup" data-inventory="{{item}}">库存{{item.stock}}</view>
</view>
<view class="count">x{{item.number}}</view> <view class="count">x{{item.number}}</view>
</view> </view>
</view> </view>
...@@ -60,17 +64,7 @@ ...@@ -60,17 +64,7 @@
<view class="title"> <view class="title">
<view class="box">施工单信息</view> <view class="box">施工单信息</view>
</view> </view>
<gl-cell <gl-cell border valueAlign="right" label="主技师" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" placeholder="请选择">
border
valueAlign="right"
label="主技师"
requiredAfter
labelWidth="var(--fontSize140)"
required
haveArrow
bindclick="showPopup"
placeholder="请选择"
>
<block wx:if="{{ mainSelected.length }}"> <block wx:if="{{ mainSelected.length }}">
<view class="techic-value text-hide"> <view class="techic-value text-hide">
{{mainSelected[0] && mainSelected[0].staffName}} {{mainSelected[0] && mainSelected[0].staffName}}
...@@ -78,16 +72,7 @@ ...@@ -78,16 +72,7 @@
</view> </view>
</block> </block>
</gl-cell> </gl-cell>
<gl-cell <gl-cell border valueAlign="right" label="副手技师" labelWidth="var(--fontSize140)" haveArrow bindclick="showPopup" data-type="deputy" placeholder="请选择">
border
valueAlign="right"
label="副手技师"
labelWidth="var(--fontSize140)"
haveArrow
bindclick="showPopup"
data-type="deputy"
placeholder="请选择"
>
<block wx:if="{{ deputySelected.length }}"> <block wx:if="{{ deputySelected.length }}">
<view class="techic-value text-hide"> <view class="techic-value text-hide">
<view class="text-hide" wx:if="{{ deputySelected[0] }}"> <view class="text-hide" wx:if="{{ deputySelected[0] }}">
...@@ -142,13 +127,7 @@ ...@@ -142,13 +127,7 @@
<view class="title text-hide">{{item.title}}</view> <view class="title text-hide">{{item.title}}</view>
<block wx:for="{{ item.detailList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex"> <block wx:for="{{ item.detailList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view class="service-item edit-item"> <view class="service-item edit-item">
<image <image bindtap="handleDelServices" data-index="{{ index }}" data-sindex="{{ sindex }}" src="{{ IMG_URL }}repair-order/del-goods.png" mode="" />
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 style="flex: 1;display: flex;align-items: center;justify-content: space-between;">
<view class="left"> <view class="left">
<view class="name">{{i.serviceItemsName}}</view> <view class="name">{{i.serviceItemsName}}</view>
...@@ -171,37 +150,12 @@ ...@@ -171,37 +150,12 @@
</view> </view>
</view> </view>
</view> </view>
<view <view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{ filter.btnPermissions(userPermissions, 'SHIGONGQUEREN') }}">
class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}"
wx:if="{{ filter.btnPermissions(userPermissions, 'SHIGONGQUEREN') }}"
>
<view class="btns-con"> <view class="btns-con">
<view class="confirm text-center" bindtap="submit">提交电子施工单</view> <view class="confirm text-center" bindtap="submit">提交电子施工单</view>
</view> </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 \ 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 \ No newline at end of file
...@@ -14,6 +14,7 @@ Page({ ...@@ -14,6 +14,7 @@ Page({
IMG_URL, IMG_URL,
detailInfo: {}, detailInfo: {},
reworkVisible: false, reworkVisible: false,
showInventory:false,
orderObj: [ orderObj: [
{ {
label: '施工单编号', label: '施工单编号',
...@@ -142,7 +143,13 @@ Page({ ...@@ -142,7 +143,13 @@ Page({
technicianMultiple: false, technicianMultiple: false,
mainSelected: [], mainSelected: [],
deputySelected: [], deputySelected: [],
artificerList: [] artificerList: [],
inventoryData: {
upgradeGoodsCommodityCode: '',
upgradeGoodsCode: '',
specification: '',
stock: ''
},
}, },
onRoute(options) { onRoute(options) {
...@@ -188,6 +195,47 @@ Page({ ...@@ -188,6 +195,47 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() {}, 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() { getStaffPermissions() {
let { userInfo } = this.data let { userInfo } = this.data
......
...@@ -247,6 +247,13 @@ page { ...@@ -247,6 +247,13 @@ page {
.split { .split {
margin: 0 var(--fontSize6); margin: 0 var(--fontSize6);
} }
.cost {
max-width: 220rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
} }
...@@ -341,10 +348,36 @@ page { ...@@ -341,10 +348,36 @@ page {
padding-left: var(--fontSize28); padding-left: var(--fontSize28);
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #999EA8; color: #999EA8;
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: row-reverse;
.material {
display: flex;
align-items: center;
}
.split { .split {
margin: 0 var(--fontSize6); margin: 0 var(--fontSize6);
} }
.cost {
display: inline-block;
max-width: 220rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.inventory {
max-width: 200rpx;
font-size: 24rpx;
color: #347bff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
} }
} }
} }
......
...@@ -217,13 +217,17 @@ ...@@ -217,13 +217,17 @@
</view> </view>
<view class="count">x{{item.number}}</view> <view class="count">x{{item.number}}</view>
</view> </view>
<view class="bott text-hide" wx:if="{{ item.rollNumber || (item.materialsUsed !== null && item.materialsUsed !== undefined) }}"> <view class="bott text-hide">
<text class="material">用料{{item.materialsUsed}}米/件</text> <view class="inventory" bindtap="openInventoryPopup" data-inventory="{{item}}">库存{{item.stock}}</view>
<block wx:if="{{ item.rollNumber }}"> <view class="material" wx:if="{{ item.rollNumber || (item.materialsUsed !== null && item.materialsUsed !== undefined) }}">用料{{item.materialsUsed}}米/件
<block wx:if="{{ !item.rollNumber }}">
<text class="split">|</text> <text class="split">|</text>
<text class="cost">膜卷号{{item.rollNumber}}</text> <text class="cost">膜卷号{{item.rollNumber}}</text>
</block> </block>
</view> </view>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -255,7 +259,8 @@ ...@@ -255,7 +259,8 @@
</block> </block>
<time-select show="{{ startTimeVisible }}" title="开始施工时间" defaultTime="{{ detailInfo.startTime }}" isStartTime="{{ true }}" endTime="{{ detailInfo.endTime }}" bind:confirm="onStartTimeConfirm" bindcancel="onClosePicker" /> <time-select show="{{ startTimeVisible }}" title="开始施工时间" defaultTime="{{ detailInfo.startTime }}" isStartTime="{{ true }}" endTime="{{ detailInfo.endTime }}" bind:confirm="onStartTimeConfirm" bindcancel="onClosePicker" />
<time-select show="{{ endTimeVisible }}" title="结束施工时间" defaultTime="{{ detailInfo.endTime }}" isStartTime="{{ false }}" startTime="{{ detailInfo.startTime }}" bind:confirm="onEndTimeConfirm" bindcancel="onClosePicker" /> <time-select show="{{ endTimeVisible }}" title="结束施工时间" defaultTime="{{ detailInfo.endTime }}" isStartTime="{{ false }}" startTime="{{ detailInfo.startTime }}" bind:confirm="onEndTimeConfirm" bindcancel="onClosePicker" />
<outbound-popup show="{{ outboundVisible }}" title="物料出库" detailInfo="{{ detailInfo }}" bindcancel="handleOutboundCancel" bindconfirm="handleOutboundConfirm" userPermissions="{{ userPermissions }}"></outbound-popup> <outbound-popup show="{{ outboundVisible }}" title="物料出库" detailInfo="{{ detailInfo }}" bindcancel="handleOutboundCancel" bindconfirm="handleOutboundConfirm" userPermissions="{{ userPermissions }}" bind:openInventory="openInventory"></outbound-popup>
<rework-popup show="{{ reworkVisible }}" title="返工确认" detailInfo="{{ detailInfo }}" bindcancel="handleReworkCancel" bindconfirm="handleReworkConfirm"></rework-popup> <rework-popup show="{{ reworkVisible }}" title="返工确认" detailInfo="{{ detailInfo }}" bindcancel="handleReworkCancel" bindconfirm="handleReworkConfirm"></rework-popup>
<review-popup show="{{ reviewVisible }}" bindcancel="reviewCancel" bindconfirm="reviewConfirm" bindclose="reviewClose"></review-popup> <review-popup show="{{ reviewVisible }}" bindcancel="reviewCancel" bindconfirm="reviewConfirm" bindclose="reviewClose"></review-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 }}" /> <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 \ No newline at end of file
...@@ -43,6 +43,22 @@ Component({ ...@@ -43,6 +43,22 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { 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) { navto(e) {
let { item } = e.currentTarget.dataset let { item } = e.currentTarget.dataset
console.log(item, 'item') console.log(item, 'item')
...@@ -68,6 +84,18 @@ Component({ ...@@ -68,6 +84,18 @@ Component({
item.subGoodsName = item.subOrderList item.subGoodsName = item.subOrderList
.map(sub => sub.upgradeGoodsName) .map(sub => sub.upgradeGoodsName)
.join('/') .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 item.mainTechnician = item.mainTechnicianList
.map(sub => sub.technicianName) .map(sub => sub.technicianName)
.join('/') .join('/')
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
.itembox { .itembox {
box-sizing: border-box; box-sizing: border-box;
padding: 0 48rpx; padding: 24rpx 48rpx;
height: 120rpx; // height: 120rpx;
display: flex; display: flex;
// align-items: center; // align-items: center;
flex-direction: column; flex-direction: column;
...@@ -46,9 +46,15 @@ ...@@ -46,9 +46,15 @@
align-items: center; align-items: center;
.position { .position {
max-width: 200rpx;
font-size: 24rpx; font-size: 24rpx;
color: #999EA8; color: #999EA8;
margin-right: 16rpx; margin-right: 16rpx;
overflow: hidden; //一定要写
text-overflow: ellipsis; //超出省略号
display: -webkit-box; //一定要写
-webkit-line-clamp: 2; //控制行数
-webkit-box-orient: vertical; //一定要写
} }
.statusBox { .statusBox {
...@@ -67,6 +73,17 @@ ...@@ -67,6 +73,17 @@
color: #FF9D0A; color: #FF9D0A;
border: 1.6rpx solid #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;
} }
} }
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
<view class="position">{{item.mainTechnician}}</view> <view class="position">{{item.mainTechnician}}</view>
<view class="statusBox" wx:if="{{ item.constructionStatus == 1||item.constructionStatus ==2 }}">已施工</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="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> </view>
<view class="right"> <view class="right">
......
...@@ -37,6 +37,22 @@ Component({ ...@@ -37,6 +37,22 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { 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) { selectType(e) {
let { type } = e.currentTarget.dataset let { type } = e.currentTarget.dataset
this.setData({ this.setData({
...@@ -135,7 +151,11 @@ Component({ ...@@ -135,7 +151,11 @@ Component({
subOrderCode: val.subOrderCode, subOrderCode: val.subOrderCode,
upgradeGoodsId: val.upgradeGoodsId, upgradeGoodsId: val.upgradeGoodsId,
upgradeGoodsName: val.upgradeGoodsName, upgradeGoodsName: val.upgradeGoodsName,
constructionFlag: val.constructionFlag constructionFlag: val.constructionFlag,
upgradeGoodsCommodityCode:val.upgradeGoodsCommodityCode,
upgradeGoodsCode:val.upgradeGoodsCode,
specification:val.specification,
stock:val.stock
} }
}) })
let params = { let params = {
......
...@@ -9,19 +9,36 @@ ...@@ -9,19 +9,36 @@
.itembox { .itembox {
box-sizing: border-box; box-sizing: border-box;
padding: 0 48rpx; padding: 16rpx 48rpx;
height: 120rpx; // height: 120rpx;
display: flex; display: flex;
align-items: center; 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 { .subName {
width: 100%;
display: inline-block; display: inline-block;
overflow: hidden; //一定要写 overflow: hidden; //一定要写
text-overflow: ellipsis; //超出省略号 text-overflow: ellipsis; //超出省略号
display: -webkit-box; //一定要写 display: -webkit-box; //一定要写
-webkit-line-clamp: 2; //控制行数 -webkit-line-clamp: 2; //控制行数
-webkit-box-orient: vertical; //一定要写 -webkit-box-orient: vertical; //一定要写
width: 300rpx;
// height: 90rpx; // height: 90rpx;
line-height: 45rpx; line-height: 45rpx;
font-size: 28rpx; font-size: 28rpx;
......
...@@ -6,7 +6,13 @@ ...@@ -6,7 +6,13 @@
<view class="modatcontent"> <view class="modatcontent">
<block wx:for="{{ constructionList }}" wx:key="index"> <block wx:for="{{ constructionList }}" wx:key="index">
<view class="itembox"> <view class="itembox">
<view class="item-text">
<text class="subName">{{item.upgradeGoodsName}}</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"> <view class="checked_img">
<!-- <block wx:if="{{multiple}}"> --> <!-- <block wx:if="{{multiple}}"> -->
<view class="checked" bind:tap="switchValue" data-index="{{ index }}" data-value="1"> <view class="checked" bind:tap="switchValue" data-index="{{ index }}" data-value="1">
......
...@@ -35,6 +35,22 @@ Component({ ...@@ -35,6 +35,22 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { 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) { choose(e) {
let { item } = e.currentTarget.dataset let { item } = e.currentTarget.dataset
let { goodsList } = this.data let { goodsList } = this.data
......
...@@ -30,13 +30,16 @@ ...@@ -30,13 +30,16 @@
margin: 0 var(--fontSize32); margin: 0 var(--fontSize32);
} }
.item { .item-box {
flex: 1; padding: 20rpx 0;
justify-content: space-between;
padding-right: var(--fontSize32); padding-right: var(--fontSize32);
width: calc(100% - var(--fontSize130)); width: calc(100% - var(--fontSize130));
border-top: var(--fontSize2) solid #EBEDF0; border-top: var(--fontSize2) solid #EBEDF0;
height: var(--fontSize84); }
.item {
flex: 1;
justify-content: space-between;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: var(--fontSize28); font-size: var(--fontSize28);
...@@ -64,6 +67,18 @@ ...@@ -64,6 +67,18 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
} }
}
.inventory {
margin-top: 4px;
max-width: 85%;
font-size: 24rpx;
color: #347bff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
} }
} }
......
<!--tabRepairOrder/components/relateGoodsPop/index.wxml--> <!--tabRepairOrder/components/relateGoodsPop/index.wxml-->
<wxs src="../../index.wxs" module="filter" /> <wxs src="../../index.wxs" module="filter" />
<popup show="{{show}}" title="选择关联商品" bindconfirm="confirm" height="60%" bindcancel="cancel"> <popup show="{{show}}" title="选择关联商品" bindconfirm="confirm" height="60%" bindcancel="cancel">
<view class="tips"> <view class="tips">
选定当前施工单的商品,未选的商品将自动创建第二笔施工单,可由不同技师负责施工 选定当前施工单的商品,未选的商品将自动创建第二笔施工单,可由不同技师负责施工
</view> </view>
<view class="goods-content"> <view class="goods-content">
<scroll-view class="content" scroll-y show-scrollbar="{{false}}"> <scroll-view class="content" scroll-y show-scrollbar="{{false}}">
<block wx:if="{{goodsList.length > 0}}"> <block wx:if="{{goodsList.length > 0}}">
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}"> <view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<image src="{{i.active ? '../../../components/images/radio.png' : '../../../components/images/radio_icon.png'}}" /> <image src="{{i.active ? '../../../components/images/radio.png' : '../../../components/images/radio_icon.png'}}" />
</view> </view>
<view class="item-box">
<view class="item"> <view class="item">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}"> <view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}"> <view class="name text-hide {{i.active?'textWidth':''}}">
...@@ -22,7 +23,11 @@ ...@@ -22,7 +23,11 @@
<!-- <text class="warning_text" wx:if="{{!i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</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>
<view class="inventory" catch:tap="openInventoryPopup" data-inventory="{{i}}">库存{{i.stock}}</view>
</view> </view>
</view> </view>
</view> </view>
</block> </block>
......
...@@ -10,6 +10,13 @@ Page({ ...@@ -10,6 +10,13 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
showInventory:false,
inventoryData: {
upgradeGoodsCommodityCode: '',
upgradeGoodsCode: '',
specification: '',
stock: ''
},
isFirst: true, isFirst: true,
subOrderRelationList: [{}], subOrderRelationList: [{}],
confirmInfo: { confirmInfo: {
...@@ -171,6 +178,40 @@ Page({ ...@@ -171,6 +178,40 @@ Page({
}, 1000) }, 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() { backup() {
let { orderCode } = this.data let { orderCode } = this.data
wx.$router.back({ orderCode }) wx.$router.back({ orderCode })
...@@ -448,6 +489,10 @@ Page({ ...@@ -448,6 +489,10 @@ Page({
upgradeGoodsId: val.upgradeGoodsId, upgradeGoodsId: val.upgradeGoodsId,
upgradeGoodsName: val.upgradeGoodsName, upgradeGoodsName: val.upgradeGoodsName,
constructionFlag: val.constructionFlag, constructionFlag: val.constructionFlag,
upgradeGoodsCommodityCode:val.upgradeGoodsCommodityCode,
upgradeGoodsCode:val.upgradeGoodsCode,
specification:val.specification,
stock:val.stock,
number: val.number number: val.number
} }
}) })
......
...@@ -225,6 +225,17 @@ page { ...@@ -225,6 +225,17 @@ page {
height: 40rpx; height: 40rpx;
} }
.inventory {
margin-top: 18rpx;
font-size: 24rpx;
color: #347bff;
overflow: hidden; //一定要写
text-overflow: ellipsis; //超出省略号
display: -webkit-box; //一定要写
-webkit-line-clamp: 1; //控制行数
-webkit-box-orient: vertical; //一定要写
}
.count { .count {
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #5A5E66; color: #5A5E66;
......
...@@ -11,22 +11,16 @@ ...@@ -11,22 +11,16 @@
<view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}"> <view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="box"> <view class="box">
<view class="orderBox"> <view class="orderBox">
<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>
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="goodsListCon" wx:if="{{ confirmInfo.subOrderList && confirmInfo.subOrderList.length }}">
<view class="goods" wx:for="{{ confirmInfo.subOrderList }}" wx:key="index"> <view class="goods" wx:for="{{ confirmInfo.subOrderList }}" wx:key="index">
<view class="left"> <view class="left">
<view class="dot"></view> <view class="dot"></view>
<view class="goods-text">
<view class="name">{{item.upgradeGoodsName}}</view> <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>
<view class="count">x{{item.number}}</view> <view class="count">x{{item.number}}</view>
</view> </view>
...@@ -35,17 +29,7 @@ ...@@ -35,17 +29,7 @@
</view> </view>
<view class="servies-content box"> <view class="servies-content box">
<view class="title">选择技师</view> <view class="title">选择技师</view>
<gl-cell <gl-cell border valueAlign="right" label="主技师" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" placeholder="请选择">
border
valueAlign="right"
label="主技师"
requiredAfter
labelWidth="var(--fontSize140)"
required
haveArrow
bindclick="showPopup"
placeholder="请选择"
>
<block wx:if="{{ mainSelected.length }}"> <block wx:if="{{ mainSelected.length }}">
<view class="techic-value text-hide"> <view class="techic-value text-hide">
{{mainSelected[0] && mainSelected[0].staffName}} {{mainSelected[0] && mainSelected[0].staffName}}
...@@ -53,16 +37,7 @@ ...@@ -53,16 +37,7 @@
</view> </view>
</block> </block>
</gl-cell> </gl-cell>
<gl-cell <gl-cell border valueAlign="right" label="副手技师" labelWidth="var(--fontSize140)" haveArrow bindclick="showPopup" data-type="deputy" placeholder="请选择">
border
valueAlign="right"
label="副手技师"
labelWidth="var(--fontSize140)"
haveArrow
bindclick="showPopup"
data-type="deputy"
placeholder="请选择"
>
<block wx:if="{{ deputySelected.length }}"> <block wx:if="{{ deputySelected.length }}">
<view class="techic-value text-hide"> <view class="techic-value text-hide">
<view class="text-hide" wx:if="{{ deputySelected[0] }}"> <view class="text-hide" wx:if="{{ deputySelected[0] }}">
...@@ -114,15 +89,7 @@ ...@@ -114,15 +89,7 @@
</view> </view>
</view> </view>
<view class="count-box" wx:if="{{ i.active }}"> <view class="count-box" wx:if="{{ i.active }}">
<input <input type="number" class="count-input" value="{{ i.useNum }}" maxlength="2" bindblur="handleCountBlur" bindinput="handleCountInput" data-target="{{ i }}" />
type="number"
class="count-input"
value="{{ i.useNum }}"
maxlength="2"
bindblur="handleCountBlur"
bindinput="handleCountInput"
data-target="{{ i }}"
/>
<text>个/件</text> <text>个/件</text>
</view> </view>
</view> </view>
...@@ -158,22 +125,6 @@ ...@@ -158,22 +125,6 @@
</view> </view>
</view> </view>
</block> </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 \ 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 \ No newline at end of file
...@@ -20,6 +20,13 @@ Page({ ...@@ -20,6 +20,13 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
showInventory:false,
inventoryData: {
upgradeGoodsCommodityCode: '',
upgradeGoodsCode: '',
specification: '',
stock: ''
},
IMG_URL, IMG_URL,
...order_mixins.data, ...order_mixins.data,
selectType: 1, selectType: 1,
...@@ -56,6 +63,40 @@ Page({ ...@@ -56,6 +63,40 @@ Page({
sublistVisible: false, sublistVisible: false,
constructionVisible: 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() { sublistCancel() {
this.setData( this.setData(
{ {
......
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
<view class="box goodsOrderApplyStatus" wx:if="{{ orderInfo.goodsOrderApplyStatus }}"> <view class="box goodsOrderApplyStatus" wx:if="{{ orderInfo.goodsOrderApplyStatus }}">
<view class="title" style="display: flex;justify-content: space-between;align-items: center;"> <view class="title" style="display: flex;justify-content: space-between;align-items: center;">
<text>审批</text> <text>审批</text>
<view <view class="approval-tag {{ orderInfo.goodsOrderApplyStatus==3?'success':orderInfo.goodsOrderApplyStatus==4?'error':'warning' }}">{{orderInfo.goodsOrderApplyStatus==3?'审批通过':orderInfo.goodsOrderApplyStatus==4?'审批驳回':'审批中'}}</view>
class="approval-tag {{ orderInfo.goodsOrderApplyStatus==3?'success':orderInfo.goodsOrderApplyStatus==4?'error':'warning' }}"
>{{orderInfo.goodsOrderApplyStatus==3?'审批通过':orderInfo.goodsOrderApplyStatus==4?'审批驳回':'审批中'}}</view>
</view> </view>
<block wx:if="{{ orderInfo.goodsOrderApplyStatus==3 }}"> <block wx:if="{{ orderInfo.goodsOrderApplyStatus==3 }}">
<view class="approval-info"> <view class="approval-info">
...@@ -117,9 +115,7 @@ ...@@ -117,9 +115,7 @@
<view class="price">¥{{item.finalPrice}}</view> <view class="price">¥{{item.finalPrice}}</view>
</view> </view>
<view class="subItem_box"> <view class="subItem_box">
<view <view style="{{ !orderInfo.isOpenArtificer || !item.upgradeGoodsPosition ? 'display: flex; justify-content: space-between; width: 100%;' : 'display: flex;' }}">
style="{{ !orderInfo.isOpenArtificer || !item.upgradeGoodsPosition ? 'display: flex; justify-content: space-between; width: 100%;' : 'display: flex;' }}"
>
<!-- 太阳膜类展示部位 精品类展示类目名 --> <!-- 太阳膜类展示部位 精品类展示类目名 -->
<view class="position"> <view class="position">
{{item.positionStr || item.upgradeGoodsTypeName}} {{item.positionStr || item.upgradeGoodsTypeName}}
...@@ -146,10 +142,7 @@ ...@@ -146,10 +142,7 @@
<view class="label icon"> <view class="label icon">
<image src="../../images/voucher_icon.png" mode="" /> <image src="../../images/voucher_icon.png" mode="" />
</view> </view>
<view <view class="value" wx:if="{{ orderInfo.couponName || orderInfo.customerCoupon.customerCouponCode || orderInfo.customerCoupon.employeeName }}">
class="value"
wx:if="{{ orderInfo.couponName || orderInfo.customerCoupon.customerCouponCode || orderInfo.customerCoupon.employeeName }}"
>
{{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}({{orderInfo.customerCoupon.employeeName || ''}}) {{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}}({{orderInfo.customerCoupon.employeeName || ''}})
</view> </view>
<view class="value" wx:else>无</view> <view class="value" wx:else>无</view>
...@@ -171,17 +164,9 @@ ...@@ -171,17 +164,9 @@
<!-- 非门店收款 已支付/已退款展示 --> <!-- 非门店收款 已支付/已退款展示 -->
<!-- wx:if="{{ isStaff && orderInfo.selectPayType != 2 && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}" --> <!-- wx:if="{{ isStaff && orderInfo.selectPayType != 2 && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12) }}" -->
<view> <view>
<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>
orderInfo="{{ orderInfo }}" </view>
updateFlag="{{ updateFlag&&filter.btnPermissions(userPermissions, 'CHUANGJIANSHIGONGDAN')&&(orderInfo.status == 4 || orderInfo.status == 6||orderInfo.status == 2|| orderInfo.status == 12) }}" <view wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}" class="invoice-btn" bindtap="handleBtnInvoice">
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"
>
<gl-image class="icon" src="/icon-invoice.png"></gl-image> <gl-image class="icon" src="/icon-invoice.png"></gl-image>
{{invoiceName}} {{invoiceName}}
</view> </view>
...@@ -219,20 +204,11 @@ ...@@ -219,20 +204,11 @@
</block> </block>
</view> </view>
</block> </block>
<block <block wx:if="{{ (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length }}">
wx:if="{{ (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length }}"
>
<view class="cell"> <view class="cell">
<view class="label">付款凭证</view> <view class="label">付款凭证</view>
<view class="image-box"> <view class="image-box">
<view <view class="value" bindtap="previewImage" wx:for="{{ orderInfo.payVoucherList }}" wx:key="index" data-index="{{ index }}" data-url="{{ orderInfo.payVoucherList }}">
class="value"
bindtap="previewImage"
wx:for="{{ orderInfo.payVoucherList }}"
wx:key="index"
data-index="{{ index }}"
data-url="{{ orderInfo.payVoucherList }}"
>
<view class="image"> <view class="image">
<image src="{{ item.payVoucher }}" /> <image src="{{ item.payVoucher }}" />
</view> </view>
...@@ -254,18 +230,11 @@ ...@@ -254,18 +230,11 @@
<view class="title userTitle"> <view class="title userTitle">
<text>客户信息</text> <text>客户信息</text>
<!-- 已退款或已开票不可修改客户任何信息 --> <!-- 已退款或已开票不可修改客户任何信息 -->
<view <view bindtap="jumpUserPortrait" class="updateInfo icon {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2||!isMake ? 'isHide' : '' }}">
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> <image src="{{ IMG_URL }}miniProgram/custom_portrait_icon.png" class="iconImage"></image>
画像 画像
</view> </view>
<view <view wx:if="{{ isYqdSuper||isStaff }}" bindtap="jumpUpdate" class="updateInfo {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}">
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> <image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="iconImage"></image>
客户信息 客户信息
</view> </view>
...@@ -371,18 +340,8 @@ ...@@ -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)) }}" 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.showBtn }}" class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view <view wx:if="{{ confirmFlagObj.btnName == 'constructionVisible' }}" class="btn text-center" data-btnName="{{ confirmFlagObj.btnName }}" bindtap="showModal">{{confirmFlagObj.showBtn}}</view>
wx:if="{{ confirmFlagObj.btnName == 'constructionVisible' }}" <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>
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>
<!-- 不需要走签名逻辑 --> <!-- 不需要走签名逻辑 -->
<!-- <view wx:if="{{ signatureSwitch&&orderInfo.selectPayType!=0 }}" class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}"> <!-- <view wx:if="{{ signatureSwitch&&orderInfo.selectPayType!=0 }}" class="btn-box {{ isFullSucreen?'isFullSucreen-btn':'' }}">
...@@ -425,30 +384,13 @@ ...@@ -425,30 +384,13 @@
</view> </view>
</modal> </modal>
<order-popup orderType="4" show="{{ showPopup }}" /> <order-popup orderType="4" show="{{ showPopup }}" />
<artificer-select-popup <artificer-select-popup show="{{ artificerSelectPopup }}" title="选择技师" copyArtificerList="{{ artificerList }}" orderInfo="{{ orderInfo }}" artificerSelectObj="{{ artificerSelectObj }}" bindconfirm="changeArtificer" />
show="{{ artificerSelectPopup }}"
title="选择技师"
copyArtificerList="{{ artificerList }}"
orderInfo="{{ orderInfo }}"
artificerSelectObj="{{ artificerSelectObj }}"
bindconfirm="changeArtificer"
/>
<!-- <wxs src="/utils/index.wxs" module="common" /> --> <!-- <wxs src="/utils/index.wxs" module="common" /> -->
<film-roll-no-popup <film-roll-no-popup show="{{ filmRollNoPopup }}" title="选择膜卷号" copyfilmRollNoList="{{ filmRollNoList }}" filmSelectedItem="{{ filmSelectedItem }}" bindconfirm="changefilmRollNo" />
show="{{ filmRollNoPopup }}"
title="选择膜卷号"
copyfilmRollNoList="{{ filmRollNoList }}"
filmSelectedItem="{{ filmSelectedItem }}"
bindconfirm="changefilmRollNo"
/>
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-modal> <select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-modal>
<sublist-modal visible="{{ sublistVisible }}" orderInfo="{{ orderInfo }}" orderCode="{{ orderCode }}" bindcancel="sublistCancel"></sublist-modal> <sublist-modal visible="{{ sublistVisible }}" orderInfo="{{ orderInfo }}" orderCode="{{ orderCode }}" bindcancel="sublistCancel" bind:openInventory="openInventory"></sublist-modal>
<ConstructionDetailModal <ConstructionDetailModal visible="{{ constructionVisible }}" orderInfo="{{ orderInfo }}" orderCode="{{ orderCode }}" bindcancel="constructionCancel" bind:openInventory="openInventory"></ConstructionDetailModal>
visible="{{ constructionVisible }}"
orderInfo="{{ orderInfo }}"
orderCode="{{ orderCode }}"
bindcancel="constructionCancel"
></ConstructionDetailModal>
<!-- <dialog show="{{showModal}}" confirmText="确定" cancelText="取消" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}"> <!-- <dialog show="{{showModal}}" confirmText="确定" cancelText="取消" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}">
</dialog> --> </dialog> -->
<study-permission-modal id="customModal" /> <study-permission-modal id="customModal" />
<inventory-info show="{{showInventory}}" inventory-data="{{inventoryData}}" title="库存信息" bind:close="onInventoryClose" />
\ No newline at end of file \ 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!