| | |
| | | return new Promise((resolve, reject) => {
|
| | | const token = uni.getStorageSync('token');
|
| | | // const URL = 'http://47.76.147.249:8080/rsf-server/pda' + url;
|
| | | const URL = 'http://test.zoneyung.net:8080/rsf-server/pda' + url;
|
| | | // const URL = 'http://127.0.0.1:8080/rsf-server/pda' + url;
|
| | | // const URL = 'http://test.zoneyung.net:8080/rsf-server/pda' + url;
|
| | | const URL = 'http://127.0.0.1:8080/rsf-server/pda' + url;
|
| | | uni.request({
|
| | | url: URL,
|
| | | data: postData,
|
| | |
| | | {
|
| | | "name": "中扬WMS",
|
| | | "appid": "__UNI__DA5854D",
|
| | | "description": "",
|
| | | "versionName": "20250225A",
|
| | | "versionCode": 146,
|
| | | "transformPx": false,
|
| | | /* 5+App特有相关 */
|
| | | "app-plus": {
|
| | | "usingComponents": true,
|
| | | "nvueStyleCompiler": "uni-app",
|
| | | "compilerVersion": 3,
|
| | | "splashscreen": {
|
| | | "alwaysShowBeforeRender": true,
|
| | | "waiting": true,
|
| | | "autoclose": true,
|
| | | "delay": 0
|
| | | },
|
| | | /* 模块配置 */
|
| | | "modules": {
|
| | | "Bluetooth": {}
|
| | | },
|
| | | /* 应用发布信息 */
|
| | | "distribute": {
|
| | | /* android打包配置 */
|
| | | "android": {
|
| | | "permissions": [
|
| | | "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
| | | "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
| | | "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
| | | "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
| | | "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
| | | "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
| | | "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
| | | "<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
| | | "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
| | | "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
| | | "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
| | | "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
| | | "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
| | | "<uses-feature android:name=\"android.hardware.camera\"/>",
|
| | | "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
| | | ]
|
| | | },
|
| | | /* ios打包配置 */
|
| | | "ios": {
|
| | | "dSYMs": false
|
| | | },
|
| | | /* SDK配置 */
|
| | | "sdkConfigs": {
|
| | | "ad": {}
|
| | | },
|
| | | "icons": {
|
| | | "android": {
|
| | | "hdpi": "unpackage/res/icons/72x72.png",
|
| | | "xhdpi": "unpackage/res/icons/96x96.png",
|
| | | "xxhdpi": "unpackage/res/icons/144x144.png",
|
| | | "xxxhdpi": "unpackage/res/icons/192x192.png"
|
| | | },
|
| | | "ios": {
|
| | | "appstore": "unpackage/res/icons/1024x1024.png",
|
| | | "ipad": {
|
| | | "app": "unpackage/res/icons/76x76.png",
|
| | | "app@2x": "unpackage/res/icons/152x152.png",
|
| | | "notification": "unpackage/res/icons/20x20.png",
|
| | | "notification@2x": "unpackage/res/icons/40x40.png",
|
| | | "proapp@2x": "unpackage/res/icons/167x167.png",
|
| | | "settings": "unpackage/res/icons/29x29.png",
|
| | | "settings@2x": "unpackage/res/icons/58x58.png",
|
| | | "spotlight": "unpackage/res/icons/40x40.png",
|
| | | "spotlight@2x": "unpackage/res/icons/80x80.png"
|
| | | },
|
| | | "iphone": {
|
| | | "app@2x": "unpackage/res/icons/120x120.png",
|
| | | "app@3x": "unpackage/res/icons/180x180.png",
|
| | | "notification@2x": "unpackage/res/icons/40x40.png",
|
| | | "notification@3x": "unpackage/res/icons/60x60.png",
|
| | | "settings@2x": "unpackage/res/icons/58x58.png",
|
| | | "settings@3x": "unpackage/res/icons/87x87.png",
|
| | | "spotlight@2x": "unpackage/res/icons/80x80.png",
|
| | | "spotlight@3x": "unpackage/res/icons/120x120.png"
|
| | | }
|
| | | }
|
| | | }
|
| | | },
|
| | | "nativePlugins": {
|
| | | "Hanyin-Plugin": {
|
| | | "__plugin_info__": {
|
| | | "name": "蓝牙连接汉印便携式打印机",
|
| | | "description": "app蓝牙连接汉印便携式打印机面单打印-----测试型号: HM-A300",
|
| | | "platforms": "Android",
|
| | | "url": "https://ext.dcloud.net.cn/plugin?id=2731",
|
| | | "android_package_name": "uni.UNIDA5854D",
|
| | | "ios_bundle_id": "",
|
| | | "isCloud": true,
|
| | | "bought": 1,
|
| | | "pid": "2731",
|
| | | "parameters": {}
|
| | | }
|
| | | }
|
| | | }
|
| | | },
|
| | | /* 快应用特有相关 */
|
| | | "quickapp": {},
|
| | | /* 小程序特有相关 */
|
| | | "mp-weixin": {
|
| | | "appid": "",
|
| | | "setting": {
|
| | | "urlCheck": false
|
| | | },
|
| | | "usingComponents": true
|
| | | },
|
| | | "mp-alipay": {
|
| | | "usingComponents": true
|
| | | },
|
| | | "mp-baidu": {
|
| | | "usingComponents": true
|
| | | },
|
| | | "mp-toutiao": {
|
| | | "usingComponents": true
|
| | | },
|
| | | "uniStatistics": {
|
| | | "enable": false
|
| | | },
|
| | | "vueVersion": "2",
|
| | | "h5": {
|
| | | "devServer": {
|
| | | "port": 8133
|
| | | }
|
| | | }
|
| | | } |
| | | { |
| | | "name" : "中扬WMS", |
| | | "appid" : "__UNI__DA5854D", |
| | | "description" : "", |
| | | "versionName" : "20250225A", |
| | | "versionCode" : 146, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | | "usingComponents" : true, |
| | | "nvueStyleCompiler" : "uni-app", |
| | | "compilerVersion" : 3, |
| | | "splashscreen" : { |
| | | "alwaysShowBeforeRender" : true, |
| | | "waiting" : true, |
| | | "autoclose" : true, |
| | | "delay" : 0 |
| | | }, |
| | | /* 模块配置 */ |
| | | "modules" : { |
| | | "Bluetooth" : {} |
| | | }, |
| | | /* 应用发布信息 */ |
| | | "distribute" : { |
| | | /* android打包配置 */ |
| | | "android" : { |
| | | "permissions" : [ |
| | | "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", |
| | | "<uses-permission android:name=\"android.permission.VIBRATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_LOGS\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", |
| | | "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", |
| | | "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CAMERA\"/>", |
| | | "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", |
| | | "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", |
| | | "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", |
| | | "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", |
| | | "<uses-feature android:name=\"android.hardware.camera\"/>", |
| | | "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" |
| | | ], |
| | | "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ] |
| | | }, |
| | | /* ios打包配置 */ |
| | | "ios" : { |
| | | "dSYMs" : false |
| | | }, |
| | | /* SDK配置 */ |
| | | "sdkConfigs" : { |
| | | "ad" : {} |
| | | }, |
| | | "icons" : { |
| | | "android" : { |
| | | "hdpi" : "unpackage/res/icons/72x72.png", |
| | | "xhdpi" : "unpackage/res/icons/96x96.png", |
| | | "xxhdpi" : "unpackage/res/icons/144x144.png", |
| | | "xxxhdpi" : "unpackage/res/icons/192x192.png" |
| | | }, |
| | | "ios" : { |
| | | "appstore" : "unpackage/res/icons/1024x1024.png", |
| | | "ipad" : { |
| | | "app" : "unpackage/res/icons/76x76.png", |
| | | "app@2x" : "unpackage/res/icons/152x152.png", |
| | | "notification" : "unpackage/res/icons/20x20.png", |
| | | "notification@2x" : "unpackage/res/icons/40x40.png", |
| | | "proapp@2x" : "unpackage/res/icons/167x167.png", |
| | | "settings" : "unpackage/res/icons/29x29.png", |
| | | "settings@2x" : "unpackage/res/icons/58x58.png", |
| | | "spotlight" : "unpackage/res/icons/40x40.png", |
| | | "spotlight@2x" : "unpackage/res/icons/80x80.png" |
| | | }, |
| | | "iphone" : { |
| | | "app@2x" : "unpackage/res/icons/120x120.png", |
| | | "app@3x" : "unpackage/res/icons/180x180.png", |
| | | "notification@2x" : "unpackage/res/icons/40x40.png", |
| | | "notification@3x" : "unpackage/res/icons/60x60.png", |
| | | "settings@2x" : "unpackage/res/icons/58x58.png", |
| | | "settings@3x" : "unpackage/res/icons/87x87.png", |
| | | "spotlight@2x" : "unpackage/res/icons/80x80.png", |
| | | "spotlight@3x" : "unpackage/res/icons/120x120.png" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "nativePlugins" : { |
| | | "Hanyin-Plugin" : { |
| | | "__plugin_info__" : { |
| | | "name" : "蓝牙连接汉印便携式打印机", |
| | | "description" : "app蓝牙连接汉印便携式打印机面单打印-----测试型号: HM-A300", |
| | | "platforms" : "Android", |
| | | "url" : "https://ext.dcloud.net.cn/plugin?id=2731", |
| | | "android_package_name" : "uni.UNIDA5854D", |
| | | "ios_bundle_id" : "", |
| | | "isCloud" : true, |
| | | "bought" : 1, |
| | | "pid" : "2731", |
| | | "parameters" : {} |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | /* 快应用特有相关 */ |
| | | "quickapp" : {}, |
| | | /* 小程序特有相关 */ |
| | | "mp-weixin" : { |
| | | "appid" : "", |
| | | "setting" : { |
| | | "urlCheck" : false |
| | | }, |
| | | "usingComponents" : true |
| | | }, |
| | | "mp-alipay" : { |
| | | "usingComponents" : true |
| | | }, |
| | | "mp-baidu" : { |
| | | "usingComponents" : true |
| | | }, |
| | | "mp-toutiao" : { |
| | | "usingComponents" : true |
| | | }, |
| | | "uniStatistics" : { |
| | | "enable" : false |
| | | }, |
| | | "vueVersion" : "2", |
| | | "h5" : { |
| | | "devServer" : { |
| | | "port" : 8133 |
| | | } |
| | | } |
| | | } |
| | |
| | | </navigator>
|
| | | </view>
|
| | |
|
| | | <view class="cu-item">
|
| | | <!-- <view class="cu-item">
|
| | | <navigator hover-class='none' url="/pages/listing/upper" navigateTo>
|
| | | <view class="cuIcon-punch text-blue">
|
| | | </view>
|
| | |
| | | </view>
|
| | | <text>入库上架</text>
|
| | | </navigator>
|
| | | </view>
|
| | | </view> -->
|
| | | </view>
|
| | |
|
| | | <view class="cu-bar bg-white solid-bottom margin-top">
|
| | |
| | | <template>
|
| | | <view class="has-foot">
|
| | | <form>
|
| | | <view class="cu-form-group margin-top">
|
| | | <view class="title">ASN单</view>
|
| | | <input placeholder="请扫描ASN单" v-model="asnCode" focus></input>
|
| | | </view>
|
| | |
|
| | | <view class="cu-form-group ">
|
| | | <view class="title">托盘</view>
|
| | | <input placeholder="请扫描托盘" v-model="container"></input>
|
| | | </view>
|
| | |
|
| | | <view class="cu-form-group ">
|
| | | <view class="title">物料码</view>
|
| | | <input placeholder="请扫描物料码" v-model="barcode"></input>
|
| | | <text class='cuIcon-search text-blue' @click="search"></text>
|
| | | </view>
|
| | | <view class="cu-form-group">
|
| | | <view class="title">库位码</view>
|
| | | <input placeholder="请扫描库位码" v-model="locCode"></input>
|
| | | </view>
|
| | | </form>
|
| | | <view class="cu-list det menu sm-border padding">
|
| | |
| | | {{index+1}}
|
| | | </view>
|
| | | <view class="text-blue">
|
| | | {{`${item.maktx}`}}
|
| | | 编码:{{`${item.matnrCode}`}}
|
| | | </view>
|
| | | </view>
|
| | | <view class="action">
|
| | | <text @click="remove(index)" class="cuIcon-close text-red" style="font-size: 24px;"></text>
|
| | | </view>
|
| | | |
| | | </view>
|
| | |
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">名称:</text>
|
| | | <text class="text-grey ">{{item.maktx}}</text>
|
| | | </view>
|
| | | |
| | | </view>
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">ASN:</text>
|
| | |
| | | <text class="text-grey ">{{item.asnCode}}</text>
|
| | | </view>
|
| | | </view>
|
| | |
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">托盘:</text>
|
| | | </view>
|
| | | <view class="action">
|
| | | <text class="text-grey ">{{item.barcode}}</text>
|
| | | </view>
|
| | | </view>
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">供应商批次:</text>
|
| | | </view>
|
| | | <view class="action">
|
| | | <text class="text-grey ">{{item.splrBatch}}</text>
|
| | | </view>
|
| | | </view>
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">库存批次:</text>
|
| | | <text class="text-black">批次:</text>
|
| | | </view>
|
| | | <view class="action">
|
| | | <text class="text-grey ">{{item.batch}}</text>
|
| | |
| | | </view>
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">收货数量:</text>
|
| | | <text class="text-black">数量:</text>
|
| | | </view>
|
| | | <view class="action">
|
| | | <text class="text-grey ">{{item.anfme}}</text>
|
| | |
| | | </block>
|
| | | </view>
|
| | |
|
| | | <view class="cu-form-group margin-bottom">
|
| | | <view class="title">库位码</view>
|
| | | <input placeholder="请扫描库位码" v-model="locCode"></input>
|
| | | </view>
|
| | | |
| | | <view class="cu-bar btn-group foot">
|
| | | <button class="cu-btn text-blue line-blue shadow" @click="clear">清空</button>
|
| | | <button class="cu-btn bg-blue shadow-blur" @click="confirm">上架</button>
|
| | |
| | | code,
|
| | | data,
|
| | | msg
|
| | | } = await request('/stock/operate/list', {
|
| | | asnCode: this.asnCode,
|
| | | barcode: this.container,
|
| | | matnrCode: this.barcode
|
| | | } = await request('/stock/operate/list', { |
| | | barcode: this.container, |
| | | })
|
| | | if (code === 200) {
|
| | | // const find = this.list.find(el => el.id === data.id);
|
| | | // !find && |
| | | this.list.push(data)
|
| | | this.list = data
|
| | | } else {
|
| | | uni.showToast({
|
| | | title: msg,
|
| | |
| | | },
|
| | |
|
| | | async confirm() {
|
| | | if (this.locCode !== '') {
|
| | | const {
|
| | | code,
|
| | | data,
|
| | | msg
|
| | | } = await request('/stock/operate', {
|
| | | itemList: this.list,
|
| | | locCode: this.locCode
|
| | | if (this.locCode === '' || this.locCode === null) {
|
| | | uni.showToast({
|
| | | title: '请输入库位',
|
| | | icon: "none",
|
| | | })
|
| | | if (code === 200) {
|
| | | uni.showToast({
|
| | | title: '上架成功'
|
| | | })
|
| | | this.list = []
|
| | | this.barcode = ''
|
| | | } else {
|
| | | uni.showToast({
|
| | | title: msg,
|
| | | icon: "none",
|
| | | })
|
| | | }
|
| | | return ;
|
| | | }
|
| | | if (this.container === '' || this.container === null) {
|
| | | uni.showToast({
|
| | | title: '请输入托盘码',
|
| | | icon: "none",
|
| | | })
|
| | | return ;
|
| | | }
|
| | | const {
|
| | | code,
|
| | | data,
|
| | | msg
|
| | | } = await request('/stock/operate', {
|
| | | itemList: this.list,
|
| | | locCode: this.locCode,
|
| | | barcode: this.container,
|
| | | |
| | | })
|
| | | if (code === 200) {
|
| | | uni.showToast({
|
| | | title: '上架成功'
|
| | | })
|
| | | this.list = []
|
| | | this.locCode = ''
|
| | | this.container = ''
|
| | | } else {
|
| | | uni.showToast({
|
| | | title: '请选择库位',
|
| | | title: msg,
|
| | | icon: "none",
|
| | | })
|
| | | }
|
| | | |
| | |
|
| | |
|
| | | },
|
| | |
| | | </view>
|
| | | <view class="cu-item">
|
| | | <view class="content">
|
| | | <text class="text-black">供应商批次:</text>
|
| | | <text class="text-grey ">{{item.splrBatch}}</text>
|
| | | <text class="text-black">批次:</text>
|
| | | <text class="text-grey ">{{item.batch}}</text>
|
| | | </view>
|
| | | </view>
|
| | | <view class="cu-item">
|