Browse Source

修改样式

hella_online_20240829
lijuncheng 2 months ago
parent
commit
a57e217762
  1. 13
      src/common/style/new_style.css
  2. 2
      src/mycomponents/balance/batch.vue
  3. 4
      src/mycomponents/balance/location.vue
  4. 2
      src/mycomponents/balance/pack.vue
  5. 2
      src/mycomponents/balance/toLocation.vue
  6. 4
      src/mycomponents/job/jobBottom.vue
  7. 11
      src/mycomponents/job/jobComMainDetailCard.vue
  8. 1
      src/mycomponents/scan/winComScanBalance.vue
  9. 2
      src/mycomponents/scan/winScanPackJob.vue
  10. 92
      src/pages/issue/job/issueJob.vue
  11. 4
      src/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue

13
src/common/style/new_style.css

@ -2031,9 +2031,8 @@ button::after {
} }
.card_itemCode { .card_itemCode {
font-size: 38rpx; font-size: 40rpx;
font-weight: bold; font-weight: bold;
font-weight: 500;
/* padding: 5rpx 10rpx; */ /* padding: 5rpx 10rpx; */
/* width: 210rpx; */ /* width: 210rpx; */
word-wrap: break-word; word-wrap: break-word;
@ -2069,7 +2068,8 @@ button::after {
.card_content { .card_content {
font-size: 32rpx; font-size: 35rpx;
font-weight: bold;
padding: 5px; padding: 5px;
} }
@ -2082,27 +2082,32 @@ button::after {
.card_packing_code { .card_packing_code {
color: #3315EB; color: #3315EB;
padding: 5px; padding: 5px;
font-size: 35rpx;
} }
.card_batch { .card_batch {
color: #9747FF; color: #9747FF;
padding: 5px; padding: 5px;
font-size: 35rpx;
} }
.card_container { .card_container {
color: #0076F6; color: #0076F6;
padding: 5px; padding: 5px;
font-size: 35rpx;
} }
.card_container_content { .card_container_content {
font-size: 32rpx; font-size: 32rpx;
padding: 5px; padding: 5px;
font-size: 35rpx;
} }
.card_business { .card_business {
color: #F1A532; color: #F1A532;
padding: 5px; padding: 5px;
font-size: 35rpx;
} }
.card_business_content { .card_business_content {
@ -2113,11 +2118,13 @@ button::after {
.card_location { .card_location {
color: #DA8910; color: #DA8910;
padding: 5px; padding: 5px;
font-size: 35rpx;
} }
.card_to_location { .card_to_location {
color: #329362; color: #329362;
padding: 5px; padding: 5px;
font-size: 35rpx;
} }
.card_location_content { .card_location_content {

2
src/mycomponents/balance/batch.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="card_view "> <view class="card_view ">
<text class="card_batch card_content ">批次</text> <text class="card_batch ">批次</text>
<text class="card_content ">{{batch}}</text> <text class="card_content ">{{batch}}</text>
</view> </view>
</template> </template>

4
src/mycomponents/balance/location.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="card_view "> <view class="card_view ">
<text class="card_location card_content ">{{title}}</text> <text class="card_location">{{title}}</text>
<text class="card_content " style="font-size: 37rpx;">{{locationCode}}</text> <text class="card_content" >{{locationCode}}</text>
</view> </view>
</template> </template>

2
src/mycomponents/balance/pack.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="card_view"> <view class="card_view">
<text class="card_packing_code card_content ">{{title}}</text> <text class="card_packing_code ">{{title}}</text>
<text class="card_content ">{{packingCode}}</text> <text class="card_content ">{{packingCode}}</text>
</view> </view>
</template> </template>

2
src/mycomponents/balance/toLocation.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="card_view "> <view class="card_view ">
<text class="card_to_location card_content ">{{title}}</text> <text class="card_to_location ">{{title}}</text>
<text class="card_content ">{{locationCode}}</text> <text class="card_content ">{{locationCode}}</text>
</view> </view>
</template> </template>

4
src/mycomponents/job/jobBottom.vue

@ -4,11 +4,11 @@
<view class="uni-flex space-between u-col-center"> <view class="uni-flex space-between u-col-center">
<view class="uni-flex uni-row u-col-center"> <view class="uni-flex uni-row u-col-center">
<image class="card_icon_normal" src="/static/icons/icon_customer.svg" alt="" /> <image class="card_icon_normal" src="/static/icons/icon_customer.svg" alt="" />
<text>{{dataContent.creator}}</text> <text style="font-size: 32rpx;" >{{dataContent.creator}}</text>
</view> </view>
<view class="uni-flex uni-row u-col-center"> <view class="uni-flex uni-row u-col-center">
<image class="card_icon_normal" src="/static/icons/icon_date.svg" alt="" /> <image class="card_icon_normal" src="/static/icons/icon_date.svg" alt="" />
<text class="center">{{formatDate(dataContent.createTime)}}</text> <text style="font-size: 32rpx;" class="center">{{formatDate(dataContent.createTime)}}</text>
</view> </view>
</view> </view>
</view> </view>

11
src/mycomponents/job/jobComMainDetailCard.vue

@ -9,13 +9,10 @@
<pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber"> <pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber">
</pack> </pack>
<batch v-if="isShowBatch && dataContent.batch!=null" :batch="dataContent.batch"></batch> <batch v-if="isShowBatch && dataContent.batch!=null" :batch="dataContent.batch"></batch>
<div class="u-flex justify-between"> <location v-if="isShowFromLocation&&dataContent.fromLocationCode" title="来源库位" :locationCode="dataContent.fromLocationCode">
<location v-if="isShowFromLocation&&dataContent.fromLocationCode" title="来源库位" :locationCode="dataContent.fromLocationCode"> </location>
</location> <to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode||dataContent.locationCode">
<!-- <to-location></to-location> --> </to-location>
<to-location v-if="isShowToLocation" title="目标库位" :locationCode="dataContent.toLocationCode||dataContent.locationCode">
</to-location>
</div>
<view class="card_view " v-if="isShowDeliverType"> <view class="card_view " v-if="isShowDeliverType">
<text class="card_packing_code card_content ">发货类型</text> <text class="card_packing_code card_content ">发货类型</text>
<text class="card_content ">{{dataContent.deliverType=='CUST'?'寄售库发货':'三方库发货'}}</text> <text class="card_content ">{{dataContent.deliverType=='CUST'?'寄售库发货':'三方库发货'}}</text>

1
src/mycomponents/scan/winComScanBalance.vue

@ -130,6 +130,7 @@
itemCode: result.package.itemCode, itemCode: result.package.itemCode,
batch: result.label.batch, batch: result.label.batch,
packingNumber: result.label.packingNumber, packingNumber: result.label.packingNumber,
parentPackingNumber:result.package.parentNumber,
inventoryStatus: this.fromInventoryStatuses, inventoryStatus: this.fromInventoryStatuses,
areaType: this.fromLocationAreaTypeList, areaType: this.fromLocationAreaTypeList,
bussinessCode:this.bussinessCode bussinessCode:this.bussinessCode

2
src/mycomponents/scan/winScanPackJob.vue

@ -74,7 +74,7 @@
}, },
// //
closeScanPopup(content) { closeScanPopup(content) {
this.$refs.comscan.losefocus() this.packLoseFocus();
this.$refs.popup.close(); this.$refs.popup.close();
this.$emit("close", ''); this.$emit("close", '');
}, },

92
src/pages/issue/job/issueJob.vue

@ -1,10 +1,10 @@
<template> <template>
<view class=""> <view class="">
<com-empty-view v-if="jobList.length==0"></com-empty-view> <com-empty-view v-if="jobList.length==0"></com-empty-view>
<job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true" :productionline="productionline" ref="filter" otherTitle="" <job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true" :productionline="productionline"
@switchChangeToday="switchChangeToday" @switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" ref="filter" otherTitle="" @switchChangeToday="switchChangeToday" @switchChangeWait="switchChangeWait"
:checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask" @productionLineCode="productionLineCode" @onScanNumber="getScanNumber" :checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask"
@fromLocationCode="fromLocationCode"> @productionLineCode="productionLineCode" @fromLocationCode="fromLocationCode">
</job-filter> </job-filter>
<view v-if="jobList.length>0"> <view v-if="jobList.length>0">
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
@ -22,7 +22,7 @@
<uni-load-more :status="loadingType" v-if="jobList.length>0" /> <uni-load-more :status="loadingType" v-if="jobList.length>0" />
</view> </view>
<win-scan-button @goScan='openScanPopup' v-if="jobList.length>0"></win-scan-button> <win-scan-button @goScan='openScanPopup' v-if="jobList.length>0"></win-scan-button>
<winScanPackJob ref="scanPopup" @getResult='getScanResult' ></winScanPackJob> <winScanPackJob ref="scanPopup" @getResult='getScanResult'></winScanPackJob>
<jobList ref="jobList" @selectItem="selectItem"></jobList> <jobList ref="jobList" @selectItem="selectItem"></jobList>
<comMessage ref="comMessage"></comMessage> <comMessage ref="comMessage"></comMessage>
</view> </view>
@ -31,7 +31,7 @@
<script> <script>
import { import {
cancleTakeIssueJob, cancleTakeIssueJob,
getIssueJobList, getIssueJobList,
getIssueJobByProductionline getIssueJobByProductionline
} from '@/api/request2.js'; } from '@/api/request2.js';
import { import {
@ -77,12 +77,12 @@
todayTime: "", todayTime: "",
status: '1,2', // status: '1,2', //
detailOptions: [], detailOptions: [],
detailGiveupOptions: [], detailGiveupOptions: [],
productionline:[] productionline: []
}; };
}, },
onLoad(){ onLoad() {
this.getIssueJobByProductionline() this.getIssueJobByProductionline()
}, },
onShow() { onShow() {
this.getList('refresh'); this.getList('refresh');
@ -123,19 +123,19 @@
} }
}, },
methods: { methods: {
getIssueJobByProductionline(){ getIssueJobByProductionline() {
getIssueJobByProductionline().then(res=>{ getIssueJobByProductionline().then(res => {
console.log('生产线',res) console.log('生产线', res)
if(res.code==0){ if (res.code == 0) {
this.productionline = res.data.map(item=>({ this.productionline = res.data.map(item => ({
value: item.value, value: item.value,
text: item.name text: item.name
})) }))
}else{ } else {
this.productionline = [] this.productionline = []
} }
}) })
}, },
getList(type, fromLocationCode = '', productionLineCode = '') { getList(type, fromLocationCode = '', productionLineCode = '') {
let that = this; let that = this;
@ -162,12 +162,12 @@
column: "status", column: "status",
action: "in", action: "in",
value: this.status value: this.status
}) })
filters.push({ filters.push({
column: "accept_user_id", column: "accept_user_id",
action: "==", action: "==",
value: this.$store.state.user.id value: this.$store.state.user.id
}) })
if (fromLocationCode != '') { if (fromLocationCode != '') {
@ -257,8 +257,8 @@
openJobDetail(item, scanMessage = '') { openJobDetail(item, scanMessage = '') {
uni.navigateTo({ uni.navigateTo({
url: './issueDetail?id=' + item.masterId + '&status=' + item.status+'&scanMessage=' + url: './issueDetail?id=' + item.masterId + '&status=' + item.status + '&scanMessage=' +
scanMessage scanMessage
}); });
}, },
@ -269,10 +269,10 @@
selectedItem(item) { selectedItem(item) {
this.openJobDetail(item); this.openJobDetail(item);
}, },
selectItem(item) { selectItem(item) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
this.openJobDetail(item,this.scanMessage); this.openJobDetail(item, this.scanMessage);
}, },
swipeClick(e, dataContent) { swipeClick(e, dataContent) {
@ -361,7 +361,9 @@
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => { this.$refs.comMessage.showErrorMessage(message, res => {
if (res) { if (res) {
if (this.$refs.scanPopup) {
this.$refs.scanPopup.packGetFocus()
}
} }
}); });
}, },
@ -369,17 +371,16 @@
this.$refs.scanPopup.openScanPopup(); this.$refs.scanPopup.openScanPopup();
}, },
getScanResult(result) { getScanResult(result) {
if(!result.label.batch){ if (!result.label.batch) {
this.showMessage("批次为空") this.showMessage("批次为空")
return; return;
} }
if(!result.label.itemCode){ if (!result.label.itemCode) {
this.showMessage("物料号为空") this.showMessage("物料号为空")
return; return;
} }
try { try {
var filters = [ var filters = [{
{
column: "status", column: "status",
action: "in", action: "in",
value: '1,2' value: '1,2'
@ -402,7 +403,7 @@
sort: 'createTime', sort: 'createTime',
by: 'asc' by: 'asc'
}).then(res => { }).then(res => {
this.scanMessage =result.scanMessage this.scanMessage = result.scanMessage
let resultList = res.data.list; let resultList = res.data.list;
if (resultList.length > 0) { if (resultList.length > 0) {
resultList.forEach(item => { resultList.forEach(item => {
@ -410,21 +411,22 @@
item.selected = false item.selected = false
}) })
let list = [] let list = []
resultList.forEach(item=>{ resultList.forEach(item => {
if(!list.find(subItem=>subItem.title==item.title)){ if (!list.find(subItem => subItem.title == item.title)) {
list.push(item) list.push(item)
} }
}) })
if(list.length >0){ if (list.length > 0) {
this.selectItem(list[0]) this.selectItem(list[0])
} }
} else { } else {
this.showMessage("物料号["+result.label.itemCode+"]批次["+result.label.batch+']未查找到任务') this.showMessage("物料号[" + result.label.itemCode + "]批次[" + result.label.batch +
']未查找到任务')
} }
}).catch(error => { }).catch(error => {
this.showMessage(error) this.showMessage(error)
}) })
} catch (e) { } catch (e) {
this.showMessage(e.message) this.showMessage(e.message)
} }

4
src/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue

@ -350,7 +350,7 @@
cursor: pointer; cursor: pointer;
/* #endif */ /* #endif */
line-height: 35px; line-height: 35px;
font-size: 14px; font-size: 28rpx;
text-align: center; text-align: center;
/* border-bottom: solid 1px $uni-border-3; */ /* border-bottom: solid 1px $uni-border-3; */
padding: 0px 10px; padding: 0px 10px;
@ -413,7 +413,7 @@
.uni-select__input-placeholder { .uni-select__input-placeholder {
color: $uni-base-color; color: $uni-base-color;
font-size: 12px; font-size: 28rpx;
} }
.uni-select--mask { .uni-select--mask {

Loading…
Cancel
Save