lijuncheng 1 year ago
parent
commit
c26303a40f
  1. 4
      api/request2.js
  2. 31
      common/style/new_style.css
  3. 6
      mycomponents/item/item.vue
  4. 2
      mycomponents/job/jobStatus.vue
  5. 2
      mycomponents/job/jobTop.vue
  6. 2
      mycomponents/location/requiredLocation.vue
  7. 6
      mycomponents/recommend/recommend.vue
  8. 1
      pages/purchaseReceipt/coms/comReceiptDetailCard.vue
  9. 7
      pages/purchaseReceipt/coms/comReceiptJobCard.vue
  10. 11
      pages/purchaseReceipt/job/receiptDetail.vue
  11. 2
      static/config.json

4
api/request2.js

@ -1,8 +1,8 @@
import request from '@/api/httpRequest2.js' import request from '@/api/httpRequest2.js'
// const baseApi = "/api/admin-api" const baseApi = "/api/admin-api"
//公司地址 //公司地址
// 本地地址 // 本地地址
const baseApi = "/admin-api" // const baseApi = "/admin-api"
/** /**
* 获取验证码 * 获取验证码
* @param {*} * @param {*}

31
common/style/new_style.css

@ -2025,6 +2025,28 @@ button::after {
} }
.card_itemCode {
font-size: 36rpx;
/* font-weight: 500; */
padding: 10rpx;
}
.card_itemName {
color: #909399;
font-size: 30rpx;
padding: 0rpx 20rpx;
}
/* .std_pack {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 0px;
color: #909399;
font-size: 30rpx;
}
*/
.card_icon_normal { .card_icon_normal {
width: 45rpx; width: 45rpx;
height: 45rpx; height: 45rpx;
@ -2113,8 +2135,13 @@ button::after {
overflow: hidden; overflow: hidden;
} }
.task_top {
margin: 0rpx 10rpx;
background-color: #fff;
}
.task_item { .task_item {
margin: 10rpx; margin: 0rpx 10rpx;
background-color: #fff; background-color: #fff;
} }
@ -2123,7 +2150,6 @@ button::after {
background-color: #fff; background-color: #fff;
border-radius: 10rpx; border-radius: 10rpx;
margin: 12rpx; margin: 12rpx;
} }
.task_number { .task_number {
@ -2134,6 +2160,7 @@ button::after {
.task_text { .task_text {
font-size: 30rpx; font-size: 30rpx;
margin: 5rpx 0rpx;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;

6
mycomponents/item/item.vue

@ -3,11 +3,11 @@
<view class="uni-flex u-col-center space-between" style=" <view class="uni-flex u-col-center space-between" style="
background-color:#fff; background-color:#fff;
margin-left: 10rpx;"> margin-left: 10rpx;">
<view class="card_partCode"> <view >
<view class="" :class="openPopup(dataContent)"> <view class="card_itemCode" :class="openPopup(dataContent)">
{{dataContent.itemCode}} {{dataContent.itemCode}}
</view> </view>
<view class=""> <view class="card_itemName">
{{dataContent.itemName}} {{dataContent.itemName}}
</view> </view>
</view> </view>

2
mycomponents/job/jobStatus.vue

@ -1,5 +1,5 @@
<template> <template>
<view style="margin: 10rpx;"> <view >
<text :class="statusStyle(jobStatus)"> <text :class="statusStyle(jobStatus)">
{{ jobStatusInfo.label}} {{ jobStatusInfo.label}}
</text> </text>

2
mycomponents/job/jobTop.vue

@ -1,5 +1,5 @@
<template> <template>
<view class="task_item"> <view class="task_top">
<view class="uni-flex space-between u-col-center"> <view class="uni-flex space-between u-col-center">
<job-number :number="dataContent.number"></job-number> <job-number :number="dataContent.number"></job-number>
<job-status :jobStatus="dataContent.status"></job-status> <job-status :jobStatus="dataContent.status"></job-status>

2
mycomponents/location/requiredLocation.vue

@ -3,7 +3,7 @@
padding-bottom: 15rpx; padding-bottom: 15rpx;
padding-left: 10rpx; padding-left: 10rpx;
padding-right: 10rpx; padding-right: 10rpx;
font-size:32rpx;background-color: #fff;"> font-size:32rpx;">
<text style="font-size: 35rpx;">{{title}} </text> <text style="font-size: 35rpx;">{{title}} </text>
<view class="uni-flex u-col-center" @click="showLocation"> <view class="uni-flex u-col-center" @click="showLocation">
<text style="color:#3FBAFF;font-size: 35rpx;" v-if="locationCode==''&&isShowEdit==true">&nbsp 请扫描</text> <text style="color:#3FBAFF;font-size: 35rpx;" v-if="locationCode==''&&isShowEdit==true">&nbsp 请扫描</text>

6
mycomponents/recommend/recommend.vue

@ -23,10 +23,12 @@
:handleQty="Number(detail.handleQty)" :isShowStdPack="false"> :handleQty="Number(detail.handleQty)" :isShowStdPack="false">
</compare-qty> </compare-qty>
<view class="" style="font-size: 40rpx;"> <view class="" style="font-size: 40rpx;">
<u-button @click="copy" size="mini" type="primary">复制箱码</u-button> <!-- <u-button @click="copy" size="mini" >复制采购标签</u-button> -->
<text style="font-size: 10rpx;color: #2979ff;" @click="copy">复制采购标签</text>
</view> </view>
<view class="" style="font-size: 40rpx;"> <view class="" style="font-size: 40rpx;">
<u-button @click="copyPro" size="mini" type="primary">复制制品</u-button> <!-- <u-button @click="copyPro" size="mini" type="primary" >复制制造标签</u-button> -->
<text style="font-size: 10rpx;color: #2979ff;" @click="copyPro">复制制品标签</text>
</view> </view>
</view> </view>
</view> </view>

1
pages/purchaseReceipt/coms/comReceiptDetailCard.vue

@ -11,7 +11,6 @@
<uni-swipe-action-item @click="swipeClick($event,item)" <uni-swipe-action-item @click="swipeClick($event,item)"
:right-options="item.scaned?scanOptions:detailOptions"> :right-options="item.scaned?scanOptions:detailOptions">
<recommend :detail="item" :isShowToLocation="settingParam.allowModifyLocation=='TRUE'"></recommend> <recommend :detail="item" :isShowToLocation="settingParam.allowModifyLocation=='TRUE'"></recommend>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>
<u-line color="#D8D8D8"></u-line> <u-line color="#D8D8D8"></u-line>

7
pages/purchaseReceipt/coms/comReceiptJobCard.vue

@ -3,17 +3,18 @@
<view class="task_item"> <view class="task_item">
<view class="task_text"> <view class="task_text">
<view class=""> <view class="">
发货单号 : {{dataContent.asnNumber}} 申请单号 : {{dataContent.requestNumber}}
</view> </view>
</view> </view>
<view class="task_text"> <view class="task_text">
<view class=""> <view class="">
要货计划单号 : {{dataContent.ppNumber}} 发货单号 : {{dataContent.asnNumber}}
</view> </view>
</view> </view>
<view class="task_text"> <view class="task_text">
<view class=""> <view class="">
供应商名称 : {{dataContent.supplierName}} 供应商代码 : {{dataContent.supplierCode}}
<!-- 供应商名称 : {{dataContent.supplierName}} -->
</view> </view>
</view> </view>
</view> </view>

11
pages/purchaseReceipt/job/receiptDetail.vue

@ -13,14 +13,15 @@
</scroll-view> </scroll-view>
</view> </view>
<required-location ref="requiredLocation" title="默认收货库位" :locationCode="toLocationCode"
:isShowEdit="jobContent.allowModifyLocation=='TRUE'" @getLocation='scanLocationCode'
:locationTypeList="locationTypeList"></required-location>
<view class="page-footer"> <view class="page-footer">
<view class="uni-flex u-col-center space-between padding_10" <view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; "> style="background-color:ghostwhite; width: 100%; ">
<view class=""> <view class="">
<required-location ref="requiredLocation" title="默认收货库位" :locationCode="toLocationCode"
:isShowEdit="jobContent.allowModifyLocation=='TRUE'" @getLocation='scanLocationCode'
:locationTypeList="locationTypeList"></required-location>
</view> </view>
<view class=" uni-flex uni-row"> <view class=" uni-flex uni-row">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> <button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button>
@ -35,7 +36,6 @@
</template> </template>
<script> <script>
import { import {
purchaseReceiptJobSubmit, purchaseReceiptJobSubmit,
getPurchaseReceiptJobDetail, getPurchaseReceiptJobDetail,
@ -47,6 +47,7 @@
goHome, goHome,
getCurrDateTime, getCurrDateTime,
getPackingNumberAndBatch, getPackingNumberAndBatch,
updateTitle
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
@ -108,6 +109,7 @@
} else { } else {
this.getDetail(); this.getDetail();
} }
} }
}, },
// //
@ -181,6 +183,7 @@
} else { } else {
that.showMessage('列表数据为0'); that.showMessage('列表数据为0');
} }
updateTitle(that.jobContent.number);
} }
}).catch(error => { }).catch(error => {
uni.hideLoading() uni.hideLoading()

2
static/config.json

@ -18,7 +18,7 @@
"request_url": { "request_url": {
"name": "request_url", "name": "request_url",
"value": "http://localhost:12080", "value": "http://dev.ccwin-in.com:25100",
"dev":"http://dev.ccwin-in.com:25100/api", "dev":"http://dev.ccwin-in.com:25100/api",
"local":"http://localhost:12080", "local":"http://localhost:12080",
"desc": "api请求地址" "desc": "api请求地址"

Loading…
Cancel
Save