From d2bfd6d78df34f0aad0d22e75d137d2f104c1bc1 Mon Sep 17 00:00:00 2001
From: chenhaozhe <gaozhechen26@gmail.com>
Date: 星期一, 04 八月 2025 15:17:21 +0800
Subject: [PATCH] 修改打印模板 工序出站汇报单 添加 未报工数量 是否计时 工序 委外接收单 添加 未报工数量
---
pages/index/tab1.vue | 554 ++--
pages/weiwaigxOut/form.vue | 2277 +++++++++---------
manifest.json | 202
pages/gongxuOut/form.vue | 3011 +++++++++++++------------
pages/index/login.vue | 1
pages/tiaomadaying/tiaomadaying.vue | 1065 ++++----
6 files changed, 3,642 insertions(+), 3,468 deletions(-)
diff --git a/manifest.json b/manifest.json
index 2adc3b9..a6fc3f8 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,33 +1,33 @@
{
- "name" : "鏅轰簯LMES",
- "appid" : "__UNI__B002F49",
- "description" : "",
- "versionName" : "1.0.34",
- "versionCode" : 134,
- "transformPx" : false,
+ "name": "鏅轰簯LMES",
+ "appid": "__UNI__B002F49",
+ "description": "",
+ "versionName": "1.0.34",
+ "versionCode": 134,
+ "transformPx": false,
/* 5+App鐗规湁鐩稿叧 */
- "app-plus" : {
- "usingComponents" : true,
- "nvueStyleCompiler" : "uni-app",
- "compilerVersion" : 3,
- "splashscreen" : {
- "alwaysShowBeforeRender" : true,
- "waiting" : true,
- "autoclose" : true,
- "delay" : 0
+ "app-plus": {
+ "usingComponents": true,
+ "nvueStyleCompiler": "uni-app",
+ "compilerVersion": 3,
+ "splashscreen": {
+ "alwaysShowBeforeRender": true,
+ "waiting": true,
+ "autoclose": true,
+ "delay": 0
},
/* 妯″潡閰嶇疆 */
- "modules" : {
- "Barcode" : {},
- "Camera" : {},
- "Contacts" : {},
- "Bluetooth" : {}
+ "modules": {
+ "Barcode": {},
+ "Camera": {},
+ "Contacts": {},
+ "Bluetooth": {}
},
/* 搴旂敤鍙戝竷淇℃伅 */
- "distribute" : {
+ "distribute": {
/* android鎵撳寘閰嶇疆 */
- "android" : {
- "permissions" : [
+ "android": {
+ "permissions": [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
@@ -46,80 +46,80 @@
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
- "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
- "minSdkVersion" : 23
+ "abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"],
+ "minSdkVersion": 23
},
/* ios鎵撳寘閰嶇疆 */
- "ios" : {
- "dSYMs" : false
+ "ios": {
+ "dSYMs": false
},
/* SDK閰嶇疆 */
- "sdkConfigs" : {
- "ad" : {}
+ "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"
+ "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"
+ "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"
+ "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" : {
- "Mpaas-Scan" : {
- "AppId" : "ALIPUB2087527291109",
- "License" : "uqSDoPf8ArVz0mKgs62fihEiELxaNc/fCwZU2eRwDvfdN3uhWCRRtXgszPkWmqjSUPYSFgOdMh0dv4UkQe0twC8fZt8+71FB3K6A83NaLtwi5gu+hVJ8MZnOTUe/ipmCCVmRGapmwfKfyHbV2oSAOLbq4/fgBszewOVtdjx7ogzyIltcCHOESsdejnFxmg/7+HuX5/0qmLxGIUUwGhwQazot0bQeGBP8sJ4ONZLd7n4WQFe8bQCrRcB3CPAFClwA/VldpIjOwrTYTd0LHyrhPJN5xHdpeoKmGIyJYsoxm94DDUFZyGHB+Qs+3euCJHOlCqpa7/A+ciAdUSeKHa0tkw==",
- "WorkspaceId" : "default",
- "__plugin_info__" : {
- "name" : "鏀粯瀹濆師鐢熸壂鐮佹彃浠�",
- "description" : "鏀粯瀹濆師鐢熸壂鐮佺粍浠讹紝鍖呬綋绉粎0.7MB锛�15鍒嗛挓鍗冲彲瀹屾垚鎺ュ叆銆傚悓鏃讹紝mPaaS鎻愪緵銆屾壂鐮佸垎鏋愩�嶅ぇ鐩�",
- "platforms" : "Android,iOS",
- "url" : "https://ext.dcloud.net.cn/plugin?id=2636",
- "android_package_name" : "com.shebeiguanli.www",
- "ios_bundle_id" : "",
- "isCloud" : true,
- "bought" : 1,
- "pid" : "2636",
- "parameters" : {
- "AppId" : {
- "des" : "Android骞冲彴鐨凙ppId锛岃濉啓Android鐨刢onfig鏂囦欢涓殑appId瀵瑰簲鐨勫��",
- "key" : "mobilegw.appid",
- "value" : ""
+ "nativePlugins": {
+ "Mpaas-Scan": {
+ "AppId": "ALIPUB2087527291109",
+ "License": "uqSDoPf8ArVz0mKgs62fihEiELxaNc/fCwZU2eRwDvfdN3uhWCRRtXgszPkWmqjSUPYSFgOdMh0dv4UkQe0twC8fZt8+71FB3K6A83NaLtwi5gu+hVJ8MZnOTUe/ipmCCVmRGapmwfKfyHbV2oSAOLbq4/fgBszewOVtdjx7ogzyIltcCHOESsdejnFxmg/7+HuX5/0qmLxGIUUwGhwQazot0bQeGBP8sJ4ONZLd7n4WQFe8bQCrRcB3CPAFClwA/VldpIjOwrTYTd0LHyrhPJN5xHdpeoKmGIyJYsoxm94DDUFZyGHB+Qs+3euCJHOlCqpa7/A+ciAdUSeKHa0tkw==",
+ "WorkspaceId": "default",
+ "__plugin_info__": {
+ "name": "鏀粯瀹濆師鐢熸壂鐮佹彃浠�",
+ "description": "鏀粯瀹濆師鐢熸壂鐮佺粍浠讹紝鍖呬綋绉粎0.7MB锛�15鍒嗛挓鍗冲彲瀹屾垚鎺ュ叆銆傚悓鏃讹紝mPaaS鎻愪緵銆屾壂鐮佸垎鏋愩�嶅ぇ鐩�",
+ "platforms": "Android,iOS",
+ "url": "https://ext.dcloud.net.cn/plugin?id=2636",
+ "android_package_name": "com.shebeiguanli.www",
+ "ios_bundle_id": "",
+ "isCloud": true,
+ "bought": 1,
+ "pid": "2636",
+ "parameters": {
+ "AppId": {
+ "des": "Android骞冲彴鐨凙ppId锛岃濉啓Android鐨刢onfig鏂囦欢涓殑appId瀵瑰簲鐨勫��",
+ "key": "mobilegw.appid",
+ "value": ""
},
- "License" : {
- "des" : "Android骞冲彴鐨凩icense,锛岃濉啓Android鐨刢onfig鏂囦欢涓殑mpaasConfigLicense瀵瑰簲鐨勫��",
- "key" : "mpaasConfigLicense",
- "value" : ""
+ "License": {
+ "des": "Android骞冲彴鐨凩icense,锛岃濉啓Android鐨刢onfig鏂囦欢涓殑mpaasConfigLicense瀵瑰簲鐨勫��",
+ "key": "mpaasConfigLicense",
+ "value": ""
},
- "WorkspaceId" : {
- "des" : "Android骞冲彴鐨刉orkspaceId锛岃濉啓Android鐨刢onfig鏂囦欢涓殑workspaceId瀵瑰簲鐨勫��",
- "key" : "workspaceId",
- "value" : ""
+ "WorkspaceId": {
+ "des": "Android骞冲彴鐨刉orkspaceId锛岃濉啓Android鐨刢onfig鏂囦欢涓殑workspaceId瀵瑰簲鐨勫��",
+ "key": "workspaceId",
+ "value": ""
}
}
}
@@ -127,29 +127,29 @@
}
},
/* 蹇簲鐢ㄧ壒鏈夌浉鍏� */
- "quickapp" : {},
+ "quickapp": {},
/* 灏忕▼搴忕壒鏈夌浉鍏� */
- "mp-weixin" : {
- "appid" : "",
- "setting" : {
- "urlCheck" : false
+ "mp-weixin": {
+ "appid": "",
+ "setting": {
+ "urlCheck": false
},
- "usingComponents" : true
+ "usingComponents": true
},
- "mp-alipay" : {
- "usingComponents" : true
+ "mp-alipay": {
+ "usingComponents": true
},
- "mp-baidu" : {
- "usingComponents" : true
+ "mp-baidu": {
+ "usingComponents": true
},
- "mp-toutiao" : {
- "usingComponents" : true
+ "mp-toutiao": {
+ "usingComponents": true
},
- "uniStatistics" : {
- "enable" : false
+ "uniStatistics": {
+ "enable": false
},
- "vueVersion" : "2",
- "orientation" : [
+ "vueVersion": "2",
+ "orientation": [
//绔栧睆姝f柟鍚�
"portrait-primary",
//绔栧睆鍙嶆柟鍚�
@@ -161,4 +161,4 @@
//鑷劧鏂瑰悜
"default"
]
-}
+}
\ No newline at end of file
diff --git a/pages/gongxuOut/form.vue b/pages/gongxuOut/form.vue
index d234022..11e9a5b 100644
--- a/pages/gongxuOut/form.vue
+++ b/pages/gongxuOut/form.vue
@@ -1,139 +1,162 @@
<template>
- <view>
- <view class="form">
- <view class="form-item">
- <view class="title"><text>*</text>鏉″舰鐮�:</view>
- <view class="right" style="width: 380rpx;">
- <input name="HBarCode" v-model="hform.HBarCode" placeholder="璇锋壂鎻忔潯鐮�" @confirm="toInCode(e)"/>
- </view>
- <uni-icons type="scan" style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" size="20" @click="toScanCode"></uni-icons>
- </view>
- <view class="form-item">
- <view class="title"><text>*</text>娴佹按鍙�:</view>
- <view class="right" style="width: 380rpx;">
- <input v-model="hform.HProcNo" placeholder="璇疯緭鍏�(鎴栨壂鎻�)娴佹按鍙�" @confirm="getHProcNoData(hform.HBarCode,hform.HProcNo)"/>
- </view>
- <uni-icons type="scan" style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" size="20" @click="toScanProcNo"></uni-icons>
- </view>
- <view class="form-item">
- <view class="title">鍚堟牸鏁伴噺:</view>
- <view class="right">
- <input v-model="hform.HQty" placeholder="璇疯緭鍏ュ悎鏍兼暟閲�" />
- </view>
- </view>
-<!-- <view class="form-item">
+ <view>
+ <view class="form">
+ <view class="form-item">
+ <view class="title"><text>*</text>鏉″舰鐮�:</view>
+ <view class="right" style="width: 380rpx;">
+ <input name="HBarCode" v-model="hform.HBarCode" placeholder="璇锋壂鎻忔潯鐮�" @confirm="toInCode(e)" />
+ </view>
+ <uni-icons type="scan"
+ style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
+ size="20" @click="toScanCode"></uni-icons>
+ </view>
+ <view class="form-item">
+ <view class="title"><text>*</text>娴佹按鍙�:</view>
+ <view class="right" style="width: 380rpx;">
+ <input v-model="hform.HProcNo" placeholder="璇疯緭鍏�(鎴栨壂鎻�)娴佹按鍙�"
+ @confirm="getHProcNoData(hform.HBarCode,hform.HProcNo)" />
+ </view>
+ <uni-icons type="scan"
+ style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
+ size="20" @click="toScanProcNo"></uni-icons>
+ </view>
+ <view class="form-item">
+ <view class="title">鏈姤宸ユ暟閲�:</view>
+ <view class="righton">
+ <input disabled v-model="hform.HNotReportQty" placeholder="璇疯緭鍏ユ湭鎶ュ伐鏁伴噺" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鍚堟牸鏁伴噺:</view>
+ <view class="right">
+ <input v-model="hform.HQty" placeholder="璇疯緭鍏ュ悎鏍兼暟閲�" />
+ </view>
+ </view>
+ <!-- <view class="form-item">
<view class="title">涓嶈壇鏁伴噺:</view>
<view class="right">
<input v-model="hform.HPieceQty" placeholder="璇疯緭鍏ヤ笉鑹暟閲�" />
</view>
</view> -->
- <view class="form-item">
- <view class="title">鎶ュ簾鏁伴噺:</view>
- <view class="right">
- <input v-model="hform.HWasterQty" placeholder="璇疯緭鍏ユ姤搴熸暟閲�" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鐢熶骇璧勬簮:</view>
- <view class="right">
- <uni-combox :candidates="arrayHSourceName" placeholder="璇烽�夋嫨鐢熶骇璧勬簮" v-model="hform.HSourceName" @input="HSourceNameChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title"><text>*</text>宸ヤ綔涓績:</view>
- <view class="right">
- <uni-combox :candidates="arrayHCenterName" placeholder="璇烽�夋嫨宸ヤ綔涓績" v-model="hform.HCenterName" @input="HCenterNameChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title">鐢熶骇鐝粍:</view>
- <view class="right">
- <uni-combox :candidates="arrayHGroupName" placeholder="璇烽�夋嫨鐢熶骇鐝粍" v-model="hform.HGroupName" @input="HGroupNameChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title"><text>*</text>鎿嶄綔鍛�:</view>
- <view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName" @input="HEmpNameChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title">澶囨敞:</view>
- <view class="right">
- <textarea name="HRemark" v-model="hform.HRemark" auto-height placeholder="璇疯緭鍏ュ娉�"></textarea>
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
- <view class="right">
- <picker mode="date" v-model="hform.HDate" @change="HDateChange">
- <input disabled v-model="hform.HDate" placeholder="璇烽�夋嫨鏃ユ湡" />
- </picker>
- </view>
- </view>
-
- <view class="tab_area"></view>
-
- <view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
- <view class="righton">
- <input name="HBillNo" disabled v-model="hform.HBillNo" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鐢熶骇璁㈠崟:</view>
- <view class="righton">
- <input name="HICMOBillNo" disabled v-model="hform.HICMOBillNo" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">娴佽浆鍗�:</view>
- <view class="righton">
- <input disabled v-model="hform.HProcExchBillNo" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鐗╂枡浠g爜:</view>
- <view class="righton">
- <input disabled v-model="hform.HMaterNumber" />
- <!-- <uni-combox :candidates="arrayHMaterNumber" placeholder="璇烽�夋嫨浜у搧浠g爜" v-model="hform.HMaterNumber" @input="HMaterNumberChange"></uni-combox> -->
- </view>
- </view>
- <view class="form-item">
- <view class="title">鐗╂枡鍚嶇О:</view>
- <view class="righton">
- <input v-model="hform.HMaterName" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">瑙勬牸鍨嬪彿:</view>
- <view class="righton">
- <input v-model="hform.HMaterModel" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">璁¢噺鍗曚綅:</view>
- <view class="righton">
- <input v-model="hform.鍗曚綅" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">宸ュ簭:</view>
-<!-- <view class="right">
+ <view class="form-item">
+ <view class="title">鎶ュ簾鏁伴噺:</view>
+ <view class="right">
+ <input v-model="hform.HWasterQty" placeholder="璇疯緭鍏ユ姤搴熸暟閲�" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐢熶骇璧勬簮:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHSourceName" placeholder="璇烽�夋嫨鐢熶骇璧勬簮" v-model="hform.HSourceName"
+ @input="HSourceNameChange"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title"><text>*</text>宸ヤ綔涓績:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHCenterName" placeholder="璇烽�夋嫨宸ヤ綔涓績" v-model="hform.HCenterName"
+ @input="HCenterNameChange"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐢熶骇鐝粍:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHGroupName" placeholder="璇烽�夋嫨鐢熶骇鐝粍" v-model="hform.HGroupName"
+ @input="HGroupNameChange"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title"><text>*</text>鎿嶄綔鍛�:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName"
+ @input="HEmpNameChange"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">澶囨敞:</view>
+ <view class="right">
+ <textarea name="HRemark" v-model="hform.HRemark" auto-height placeholder="璇疯緭鍏ュ娉�"></textarea>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="right">
+ <picker mode="date" v-model="hform.HDate" @change="HDateChange">
+ <input disabled v-model="hform.HDate" placeholder="璇烽�夋嫨鏃ユ湡" />
+ </picker>
+ </view>
+ </view>
+
+ <view class="tab_area"></view>
+
+ <view class="form-item">
+ <view class="title">鍗曟嵁鍙�:</view>
+ <view class="righton">
+ <input name="HBillNo" disabled v-model="hform.HBillNo" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐢熶骇璁㈠崟:</view>
+ <view class="righton">
+ <input name="HICMOBillNo" disabled v-model="hform.HICMOBillNo" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">娴佽浆鍗�:</view>
+ <view class="righton">
+ <input disabled v-model="hform.HProcExchBillNo" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐗╂枡浠g爜:</view>
+ <view class="righton">
+ <input disabled v-model="hform.HMaterNumber" />
+ <!-- <uni-combox :candidates="arrayHMaterNumber" placeholder="璇烽�夋嫨浜у搧浠g爜" v-model="hform.HMaterNumber" @input="HMaterNumberChange"></uni-combox> -->
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐗╂枡鍚嶇О:</view>
+ <view class="righton">
+ <input v-model="hform.HMaterName" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">瑙勬牸鍨嬪彿:</view>
+ <view class="righton">
+ <input v-model="hform.HMaterModel" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">璁¢噺鍗曚綅:</view>
+ <view class="righton">
+ <input v-model="hform.鍗曚綅" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">宸ュ簭:</view>
+ <!-- <view class="right">
<uni-combox :candidates="arrayHProcName" placeholder="璇烽�夋嫨褰撳墠宸ュ簭" v-model="hform.HProcName" @input="HProcNameChange"></uni-combox>
</view> -->
- <view class="righton">
- <input v-model="hform.HProcName" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鐢熶骇缁勭粐:</view>
- <view class="righton">
- <input v-model="hform.HPRDOrg" disabled />
- </view>
- </view>
-
-<!--
+ <view class="righton">
+ <input v-model="hform.HProcName" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐢熶骇缁勭粐:</view>
+ <view class="righton">
+ <input v-model="hform.HPRDOrg" disabled />
+ </view>
+ </view>
+ <view class="form-item has-ticking">
+ <checkbox-group name="checkboxGroup">
+ <label>
+ <checkbox disabled :checked="hform.HHasTickingSync == 1" :value="hform.HHasTickingSync" />
+ <text>鏄惁璁℃椂</text>
+ </label>
+ </checkbox-group>
+ </view>
+
+ <!--
<view class="form-item">
<view class="title">璁㈠崟鏁伴噺:</view>
<view class="right">
@@ -191,49 +214,53 @@
<uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨妫�楠屽憳" v-model="hform.HQCCheckName" @input="HQCCheckNameChange"></uni-combox>
</view>
</view> -->
-
- <view class="tab_area"></view>
-
- <view class="form-item">
- <view class="title">宸ユ椂:</view>
- <view class="right">
- <input v-model="hform.HWorkTimes" placeholder="璇疯緭鍏ュ伐鏃�" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鎿嶄綔鍛�2:</view>
- <view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName2" @input="HEmpName2Change"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title">鎿嶄綔鍛�3:</view>
- <view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName3" @input="HEmpName3Change"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title">鎿嶄綔鍛�4:</view>
- <view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName4" @input="HEmpName4Change"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title">鎿嶄綔鍛�5:</view>
- <view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName5" @input="HEmpName5Change"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title"></view>
-<!-- <view style="padding-top: 10rpx;" @tap="hform.HLastSubProc = hform.HLastSubProc==true?false:true">
+
+ <view class="tab_area"></view>
+
+ <view class="form-item">
+ <view class="title">宸ユ椂:</view>
+ <view class="right">
+ <input v-model="hform.HWorkTimes" placeholder="璇疯緭鍏ュ伐鏃�" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鎿嶄綔鍛�2:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName2"
+ @input="HEmpName2Change"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鎿嶄綔鍛�3:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName3"
+ @input="HEmpName3Change"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鎿嶄綔鍛�4:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName4"
+ @input="HEmpName4Change"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鎿嶄綔鍛�5:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName5"
+ @input="HEmpName5Change"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title"></view>
+ <!-- <view style="padding-top: 10rpx;" @tap="hform.HLastSubProc = hform.HLastSubProc==true?false:true">
<radio value="true" :checked="hform.HLastSubProc == true" style="transform:scale(1);"/>杞笅閬�
</view> -->
- <view style="padding-top: 10rpx;">
- <radio value="true" :checked="hform.HLastSubProc == true" style="transform:scale(1);"/>杞笅閬�
- </view>
- </view>
-<!-- <view class="form-item">
+ <view style="padding-top: 10rpx;">
+ <radio value="true" :checked="hform.HLastSubProc == true" style="transform:scale(1);" />杞笅閬�
+ </view>
+ </view>
+ <!-- <view class="form-item">
<view class="title">鍑虹珯鏃堕棿:</view>
<view class="right">
<uni-datetime-picker v-model="hform.HStationOutTime">
@@ -278,19 +305,19 @@
</view>
</view> -->
-<!-- <view class="form-item">
+ <!-- <view class="form-item">
<view class="title">璁惧娓呭崟:</view>
<view class="right">
<input v-model="hform.HSourceNameList" placeholder="璇疯緭鍏ヨ澶囨竻鍗�" />
</view>
</view> -->
-<!-- <view class="form-item">
+ <!-- <view class="form-item">
<view class="title">渚涘簲鍟�:</view>
<view class="right">
<uni-combox :candidates="arrayHSupName" placeholder="璇烽�夋嫨渚涘簲鍟�" v-model="hform.HSupName" @input="HSupNameChange"></uni-combox>
</view>
</view> -->
-<!--
+ <!--
<view class="form-item">
<view class="title">杩涚珯鏃堕棿:</view>
<view class="right">
@@ -300,7 +327,7 @@
</view>
</view> -->
-<!-- <view class="form-item">
+ <!-- <view class="form-item">
<view class="title">鎿嶄綔鍛�:</view>
<view class="right">
<input v-model="hform.HEmp" placeholder="璇疯緭鍏ユ搷浣滃憳" />
@@ -312,1312 +339,1386 @@
<input v-model="hform.HDept" placeholder="璇疯緭鍏ラ儴闂�" />
</view>
</view> -->
-
- <!-- <view class="tab_area"></view> -->
-
-<!-- <view class="form-item">
+
+ <!-- <view class="tab_area"></view> -->
+
+ <!-- <view class="form-item">
<view class="title">閫夋嫨鏂囦欢:</view>
<view class="right">
1111
</view>
</view> -->
-
- <view v-if="showmore">
- <view class="form-item">
- <view class="title">璁㈠崟璺熻釜鍙�:</view>
- <view class="righton">
- <input v-model="hform.HOrderProcNO" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍒跺崟浜�:</view>
- <view class="righton">
- <input v-model="hform.HMaker" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍒跺崟鏃ユ湡:</view>
- <view class="righton">
- <input v-if="hform.HMakeDate" v-model="hform.HMakeDate.substr(0,10)" disabled/>
- <input v-else v-model="hform.HMakeDate" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">淇敼浜�:</view>
- <view class="righton">
- <input v-model="hform.HUpDater" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
- <view class="righton">
- <input v-if="hform.HUpDateDate" v-model="hform.HUpDateDate.substr(0,10)" disabled/>
- <input v-else v-model="hform.HUpDateDate" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
- <view class="righton">
- <input v-model="hform.HChecker" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
- <view class="righton">
- <input v-if="hform.HCheckDate" v-model="hform.HCheckDate.substr(0,10)" disabled/>
- <input v-else v-model="hform.HCheckDate" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">浣滃簾浜�:</view>
- <view class="righton">
- <input v-model="hform.HDeleteMan" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">浣滃簾鏃ユ湡:</view>
- <view class="righton">
- <input v-if="hform.HDeleteDate" v-model="hform.HDeleteDate.substr(0,10)" disabled/>
- <input v-else v-model="hform.HDeleteDate" disabled/>
- </view>
- </view>
- </view>
-
- <view class="tab_area"></view>
-
- <view class="other">
- <view v-if="!showmore" @tap="showmore = true">
- 灞曞紑鍏朵粬淇℃伅<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="bottom"></uni-icons>
- </view>
- <view v-if="showmore" @tap="showmore = false">
- 鎶樺彔鍏朵粬淇℃伅<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="top"></uni-icons>
- </view>
- </view>
-
- <view class="tab_area"></view>
-
-<!-- <view class="op">
+
+ <view v-if="showmore">
+ <view class="form-item">
+ <view class="title">璁㈠崟璺熻釜鍙�:</view>
+ <view class="righton">
+ <input v-model="hform.HOrderProcNO" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鍒跺崟浜�:</view>
+ <view class="righton">
+ <input v-model="hform.HMaker" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鍒跺崟鏃ユ湡:</view>
+ <view class="righton">
+ <input v-if="hform.HMakeDate" v-model="hform.HMakeDate.substr(0,10)" disabled />
+ <input v-else v-model="hform.HMakeDate" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">淇敼浜�:</view>
+ <view class="righton">
+ <input v-model="hform.HUpDater" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">淇敼鏃ユ湡:</view>
+ <view class="righton">
+ <input v-if="hform.HUpDateDate" v-model="hform.HUpDateDate.substr(0,10)" disabled />
+ <input v-else v-model="hform.HUpDateDate" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">瀹℃牳浜�:</view>
+ <view class="righton">
+ <input v-model="hform.HChecker" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">瀹℃牳鏃ユ湡:</view>
+ <view class="righton">
+ <input v-if="hform.HCheckDate" v-model="hform.HCheckDate.substr(0,10)" disabled />
+ <input v-else v-model="hform.HCheckDate" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">浣滃簾浜�:</view>
+ <view class="righton">
+ <input v-model="hform.HDeleteMan" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">浣滃簾鏃ユ湡:</view>
+ <view class="righton">
+ <input v-if="hform.HDeleteDate" v-model="hform.HDeleteDate.substr(0,10)" disabled />
+ <input v-else v-model="hform.HDeleteDate" disabled />
+ </view>
+ </view>
+ </view>
+
+ <view class="tab_area"></view>
+
+ <view class="other">
+ <view v-if="!showmore" @tap="showmore = true">
+ 灞曞紑鍏朵粬淇℃伅<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="bottom"></uni-icons>
+ </view>
+ <view v-if="showmore" @tap="showmore = false">
+ 鎶樺彔鍏朵粬淇℃伅<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="top"></uni-icons>
+ </view>
+ </view>
+
+ <view class="tab_area"></view>
+
+ <!-- <view class="op">
<button class="op1" size="mini" plain @tap="huibao">姹囨姤</button>
<button class="op2" size="mini" plain @tap="ruku">鍏ュ簱</button>
<button class="op3" size="mini" plain @tap="baofei">鎶ュ簾</button>
</view> -->
- <view class="bottom-btn">
- <button v-if="btnType == 0 && !isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
- <button v-if="btnType != 0 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">淇敼</button>
- <button v-if="btnType != 0 && isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
- <button v-if="btnType != 0 && btnType == 2" class="btn-b" style="margin-left: 20rpx;" size="mini" @tap="check">瀹℃牳</button>
- <button v-if="btnType != 0 && btnType == 3" class="btn-d" style="margin-left: 20rpx;" size="mini" @tap="abandonCheck">鍙嶅鏍�</button>
- <!-- <button class="btn-b" size="mini" @tap="showMask = true">鏂板</button> -->
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
- </view>
- </view>
- </view>
+ <view class="bottom-btn">
+ <button v-if="btnType == 0 && !isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+ <button v-if="btnType != 0 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">淇敼</button>
+ <button v-if="btnType != 0 && isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+ <button v-if="btnType != 0 && btnType == 2" class="btn-b" style="margin-left: 20rpx;" size="mini"
+ @tap="check">瀹℃牳</button>
+ <button v-if="btnType != 0 && btnType == 3" class="btn-d" style="margin-left: 20rpx;" size="mini"
+ @tap="abandonCheck">鍙嶅鏍�</button>
+ <!-- <button class="btn-b" size="mini" @tap="showMask = true">鏂板</button> -->
+ <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ </view>
+ </view>
+ </view>
</template>
<script>
- import getDateTime from '@/utils/getdateTime.js';
- import { getUserInfo } from "@/utils/auth.js";
+ import getDateTime from '@/utils/getdateTime.js';
+ import {
+ getUserInfo
+ } from "@/utils/auth.js";
export default {
data() {
return {
- userInfo:getUserInfo(),
- serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
- linterid:'',
- HBillNo:'',
- btnType:0,//0鏂板锛�1淇敼锛�2瀹℃牳锛�3鍙嶅鏍�
- FirstEndHProcNo:0,//榛樿0 棣栭亾宸ュ簭1 鏈亾宸ュ簭2
- OperationType:1,
- showmore: false,
-
- arrayHMaterNumber:[],//浜у搧
- HMaterNumberList:[],
- arrayHProcName:[],//宸ュ簭
- HProcNameList:[],
- arrayHSupName:[],//渚涘簲鍟�
- HSupNameList:[],
- arrayHSourceName:[],//鐢熶骇璧勬簮
- HSourceNameList:[],
- arrayHGroupName:[],//鐢熶骇鐝粍
- HGroupNameList:[],
- arrayHEmpName:[],//鎺ユ敹浜�
- HEmpNameList:[],
- arrayHCenterName:[],//宸ヤ綔涓績
- HCenterNameList:[],
-
- isEdit: false,
- hform:{
- HInterID:'',
- HBillNo:'',
- HBarCode:'',
- HProcNo:'',
- HQty:'',
- // HPieceQty:'',
- HWasterQty:0,
- HSourceName:'',
- HSourceID:0,
- HCenterName:'',
- HCenterID:0,
- HGroupName:'',
- HGroupID:0,
- HEmpName:'',
- HEmpID:0,
- HRemark:'',
- HDate:getDateTime.dateTimeStr('y-m-d'),
-
- HICMOBillNo:'',
- HProcExchBillNo:'',
- HMaterNumber:'',
- HMaterName:'',
- HMaterID:0,
- HMaterModel:'',
- 鍗曚綅:'',
- HProcName:'',
- HProcID:'',
- HPRDOrg:'',
- HOrderProcNO:'',
-
- HWorkTimes:0,
- HEmpName2:'',
- HEmpID2:0,
- HEmpName3:'',
- HEmpID3:0,
- HEmpName4:'',
- HEmpID4:0,
- HEmpName5:'',
- HEmpID5:0,
- HLastSubProc:true,
-
- // HICMOInterID:'',
- // HICMOQty:'',
- HProcExchHinteID:'',
- lngBillKey:'',
- // HPlanQty:'',
- // HSupName:'',
- // HSupID:'',
- // HWWWorkOrderBillNo:'',
- // HTaxRate:'',
- // HPrice:'',
- // HMoney:'',
- HStationInTime:getDateTime.dateTimeStr('y-m-d h:i:s'),
- // HStationOutTime:getDateTime.dateTimeStr('y-m-d h:i:s'),
- // HSendBillNo:'',
- // HInnerBillNo:'',
- // HEmp:'',
- // HEmpID:'',
- // HQCCheckName:'',
- // HQCCheckID:'',
- // HSourceName2:'',
- // HSourceID2:'',
- // HSourceName3:'',
- // HSourceID3:'',
- // HSourceName4:'',
- // HSourceID4:'',
- // HSourceName5:'',
- // HSourceID5:'',
- // HDept:'',
- // HDeptID:'',
- // HMouldNum:'',
- // HPayProcID:'',
- // HSourceNameList:'',
-
- HMaker:uni.getStorageSync('HUserName'),
- HMakeDate:getDateTime.dateTimeStr('y-m-d h:i:s'),
- HUpDater:'',
- HUpDateDate:'',
- HChecker:'',
- HCheckDate:'',
- // HCloseMan:'',
- // HCloseDate:'',
- HDeleteMan:'',
- HDeleteDate:'',
-
- eventType:'Add',
- }
+ userInfo: getUserInfo(),
+ serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+ linterid: '',
+ HBillNo: '',
+ btnType: 0, //0鏂板锛�1淇敼锛�2瀹℃牳锛�3鍙嶅鏍�
+ FirstEndHProcNo: 0, //榛樿0 棣栭亾宸ュ簭1 鏈亾宸ュ簭2
+ OperationType: 1,
+ showmore: false,
+
+ arrayHMaterNumber: [], //浜у搧
+ HMaterNumberList: [],
+ arrayHProcName: [], //宸ュ簭
+ HProcNameList: [],
+ arrayHSupName: [], //渚涘簲鍟�
+ HSupNameList: [],
+ arrayHSourceName: [], //鐢熶骇璧勬簮
+ HSourceNameList: [],
+ arrayHGroupName: [], //鐢熶骇鐝粍
+ HGroupNameList: [],
+ arrayHEmpName: [], //鎺ユ敹浜�
+ HEmpNameList: [],
+ arrayHCenterName: [], //宸ヤ綔涓績
+ HCenterNameList: [],
+
+ isEdit: false,
+ hform: {
+ HInterID: '',
+ HBillNo: '',
+ HBarCode: '',
+ HProcNo: '',
+ HQty: 0,
+ HNotReportQty: 0,
+ HHasTickingSync: 0,
+ // HPieceQty:'',
+ HWasterQty: 0,
+ HSourceName: '',
+ HSourceID: 0,
+ HCenterName: '',
+ HCenterID: 0,
+ HGroupName: '',
+ HGroupID: 0,
+ HEmpName: '',
+ HEmpID: 0,
+ HRemark: '',
+ HDate: getDateTime.dateTimeStr('y-m-d'),
+
+ HICMOBillNo: '',
+ HProcExchBillNo: '',
+ HMaterNumber: '',
+ HMaterName: '',
+ HMaterID: 0,
+ HMaterModel: '',
+ 鍗曚綅: '',
+ HProcName: '',
+ HProcID: '',
+ HPRDOrg: '',
+ HOrderProcNO: '',
+
+ HWorkTimes: 0,
+ HEmpName2: '',
+ HEmpID2: 0,
+ HEmpName3: '',
+ HEmpID3: 0,
+ HEmpName4: '',
+ HEmpID4: 0,
+ HEmpName5: '',
+ HEmpID5: 0,
+ HLastSubProc: true,
+
+ // HICMOInterID:'',
+ // HICMOQty:'',
+ HProcExchHinteID: '',
+ lngBillKey: '',
+ // HPlanQty:'',
+ // HSupName:'',
+ // HSupID:'',
+ // HWWWorkOrderBillNo:'',
+ // HTaxRate:'',
+ // HPrice:'',
+ // HMoney:'',
+ HStationInTime: getDateTime.dateTimeStr('y-m-d h:i:s'),
+ // HStationOutTime:getDateTime.dateTimeStr('y-m-d h:i:s'),
+ // HSendBillNo:'',
+ // HInnerBillNo:'',
+ // HEmp:'',
+ // HEmpID:'',
+ // HQCCheckName:'',
+ // HQCCheckID:'',
+ // HSourceName2:'',
+ // HSourceID2:'',
+ // HSourceName3:'',
+ // HSourceID3:'',
+ // HSourceName4:'',
+ // HSourceID4:'',
+ // HSourceName5:'',
+ // HSourceID5:'',
+ // HDept:'',
+ // HDeptID:'',
+ // HMouldNum:'',
+ // HPayProcID:'',
+ // HSourceNameList:'',
+
+ HMaker: uni.getStorageSync('HUserName'),
+ HMakeDate: getDateTime.dateTimeStr('y-m-d h:i:s'),
+ HUpDater: '',
+ HUpDateDate: '',
+ HChecker: '',
+ HCheckDate: '',
+ // HCloseMan:'',
+ // HCloseDate:'',
+ HDeleteMan: '',
+ HDeleteDate: '',
+
+ eventType: 'Add',
+ }
}
},
- onLoad(e) {
- // this.getEditData('1516','GXCZHB000000001290')
- console.log(e,this.userInfo)
- // this.hform.HEmpID = this.userInfo.Czybm
- // this.hform.HEmp = uni.getStorageSync('HUserName')
- this.hform.HMaker = uni.getStorageSync('HUserName')
- this.hform.HMakeDate = getDateTime.dateTimeStr('y-m-d h:i:s')
- // this.hform.HDate = getDateTime.dateTimeStr('y-m-d')
- // this.hform.HStationOutTime = getDateTime.dateTimeStr('y-m-d h:i:s')
- if(e.linterid){
- this.btnType = 1
- this.OperationType = 4
- this.linterid = e.linterid
- this.HBillNo = e.HBillNo
- this.getEditData(e.linterid,e.HBillNo)
- }else{
- this.getNewData()
- }
- this.getHMaterList()
- this.getHProcList()
- this.getHSupList()
- this.getHSourceList()
- this.getHGroupList()
- this.getHEmpList()
- this.getHCenterList()
-
- this.getDefValByUser()
- },
- methods: {
- //閫氳繃鐧诲綍鐢ㄦ埛鑾峰彇榛樿鍊�
- getDefValByUser(){
- uni.request({
- url: this.serverUrl + '/Cj_StationInBill/GetDefValByUser',
- type: "GET",
- async: false,
- data: { "Czybm": this.userInfo.Czybm, "Czymc": this.userInfo.Czymc },
- success: (res) => {
- // console.log(res.data)
- if(res.data.count == 1){
- var data = res.data.data[0]
- this.hform.HGroupID = data.HGroupID
- this.hform.HGroupName = data.鐢熶骇鐝粍鍚嶇О
- this.hform.HEmpID = data.HEmpID
- this.hform.HEmpName = data.鎿嶄綔鍛樺悕绉�
- this.hform.HEmpNumber = data.鎿嶄綔鍛樹唬鐮�
- this.hform.HSourceID = data.HSourceID
- this.hform.HSourceName = data.鐢熶骇璧勬簮鍚嶇О
- this.hform.HCenterID = data.HWorkCenterID
- this.hform.HCenterName = data.宸ヤ綔涓績鍚嶇О
- this.hform.HEmpName_second = data.鎿嶄綔鍛樺悕绉�
- }else{
- uni.showToast({
- title:'鑾峰彇鐢熶骇鐝粍淇℃伅澶辫触',
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鑾峰彇鐢熶骇鐝粍淇℃伅澶辫触',
- icon:'none'
- })
- },
- });
- },
- //鎵爜
- toScanCode(){
- var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
- mpaasScanModule.mpaasScan({
- 'hideAlbum': true,
- 'timeoutInterval':'10', //瓒呮椂鏃堕棿
- 'timeoutText':'鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
- },(ret) => {
- console.log(ret.resp_result)
- var str = ret.resp_result
- if(str.includes('@')) {
- const parts = str.split('@');
- this.hform.HBarCode = parts[0]
- this.hform.HProcNo = parts[1]
- this.getHBarCodeData(parts[0],1)
- // this.getHProcNoData(parts[0],parts[1])
- }else{
- this.hform.HBarCode = ret.resp_result
- this.getHBarCodeData(ret.resp_result)
- }
- })
- // const str = "GXLX250603001-01@10";
- // uni.scanCode({
- // onlyFromCamera: true,
- // // autoZoom:false,
- // success: (res) => {
- // console.log('鏉$爜鍐呭锛�' + res.result);
- // var str = res.result
- // if(str.includes('@')) {
- // const parts = str.split('@');
- // this.hform.HBarCode = parts[0]
- // this.hform.HProcNo = parts[1]
- // this.getHBarCodeData(parts[0],1)
- // // this.getHProcNoData(parts[0],parts[1])
- // }else{
- // this.hform.HBarCode = res.result
- // this.getHBarCodeData(res.result)
- // }
- // }
- // });
- },
- toInCode(e){
- var str = this.hform.HBarCode
- if(str.includes('@')) {
- const parts = str.split('@');
- this.hform.HBarCode = parts[0]
- this.hform.HProcNo = parts[1]
- this.getHBarCodeData(parts[0],1)
- // this.getHProcNoData(parts[0],parts[1])
- }else{
- this.getHBarCodeData(this.hform.HBarCode)
- }
- },
- //鎵祦姘村彿
- toScanProcNo(){
- var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
- mpaasScanModule.mpaasScan({
- 'hideAlbum': true,
- 'timeoutInterval':'10', //瓒呮椂鏃堕棿
- 'timeoutText':'鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
- },(ret) => {
- console.log(ret.resp_result)
- this.hform.HProcNo = ret.resp_result
- this.getHProcNoData(this.hform.HBarCode,ret.resp_result)
- })
- },
- //鏃ユ湡
- HDateChange(e){
- console.log(e.detail.value)
- this.hform.HDate = e.detail.value
- },
-
- //鑾峰彇浜у搧鏁版嵁
- getHMaterList(){
- var Value = " Where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + uni.getStorageSync('OrganizationID')
- uni.request({
- url: this.serverUrl + '/Web/GetMaterialList_Json',
- data: { sWhere: Value },
- success: (res) => {
- if(res.data.count == 1){
- this.HMaterNumberList = res.data.data
- for(var i=0;i<res.data.data.length;i++){
- this.arrayHMaterNumber[i] = res.data.data[i].HNumber
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨浜у搧鏁版嵁
- HMaterNumberChange(e){
- for(var i=0;i<this.HMaterNumberList.length;i++){
- if(this.HMaterNumberList[i].HNumber == e){
- this.hform.HMaterName = this.HMaterNumberList[i].HName
- this.hform.HMaterID = this.HMaterNumberList[i].HItemID
- }
- }
- },
- //宸ュ簭
- getHProcList(){
- uni.request({
- url: this.serverUrl + '/Web/GetProcList_Json',
- data: { sWhere: '' },
- success: (res) => {
- if(res.data.count == 1){
- this.HProcNameList = res.data.data
- for(var i=0;i<res.data.data.length;i++){
- this.arrayHProcName[i] = res.data.data[i].宸ュ簭
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨宸ュ簭
- HProcNameChange(e){
- for(var i=0;i<this.HProcNameList.length;i++){
- if(this.HProcNameList[i].宸ュ簭 == e){
- this.hform.HProcID = this.HProcNameList[i].HItemID
- }
- }
- },
- //鑾峰彇渚涘簲鍟嗘暟鎹�
- getHSupList(){
- if (!uni.getStorageSync('OrganizationID')) {
- var HOtherOrgID = 0;
- }else{
- var HOtherOrgID = uni.getStorageSync('OrganizationID')
- }
- uni.request({
- url: this.serverUrl + '/Web/GetSupplierList_Json',
- data: { Supplier: '', HOrgID: HOtherOrgID },
- success: (res) => {
- if(res.data.count == 1){
- this.HSupNameList = res.data.data
- for(var i=0;i<res.data.data.length;i++){
- this.arrayHSupName[i] = res.data.data[i].HName
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨渚涘簲鍟�
- HSupNameChange(e){
- for(var i=0;i<this.HSupNameList.length;i++){
- if(this.HSupNameList[i].HName == e){
- this.hform.HSupID = this.HSupNameList[i].HItemID
- }
- }
- },
- //鐢熶骇璧勬簮
- getHSourceList(){
- uni.request({
- url: this.serverUrl + '/api/newBill/getSourceList',
- data: { sWhere: '' },
- success: (res) => {
- if(res.data.code == 1){
- this.HSourceNameList = res.data.data.Gy_Source
- for(var i=0;i<res.data.data.Gy_Source.length;i++){
- this.arrayHSourceName[i] = res.data.data.Gy_Source[i].鐢熶骇璧勬簮
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨鐢熶骇璧勬簮
- HSourceNameChange(e){
- for(var i=0;i<this.HSourceNameList.length;i++){
- if(this.HSourceNameList[i].鐢熶骇璧勬簮 == e){
- this.hform.HSourceID = this.HSourceNameList[i].HItemID
- }
- }
- },
- HSourceName2Change(e){
- for(var i=0;i<this.HSourceNameList.length;i++){
- if(this.HSourceNameList[i].鐢熶骇璧勬簮 == e){
- this.hform.HSourceID2 = this.HSourceNameList[i].HItemID
- }
- }
- },
- HSourceName3Change(e){
- for(var i=0;i<this.HSourceNameList.length;i++){
- if(this.HSourceNameList[i].鐢熶骇璧勬簮 == e){
- this.hform.HSourceID3 = this.HSourceNameList[i].HItemID
- }
- }
- },
- HSourceName4Change(e){
- for(var i=0;i<this.HSourceNameList.length;i++){
- if(this.HSourceNameList[i].鐢熶骇璧勬簮 == e){
- this.hform.HSourceID4 = this.HSourceNameList[i].HItemID
- }
- }
- },
- HSourceName5Change(e){
- for(var i=0;i<this.HSourceNameList.length;i++){
- if(this.HSourceNameList[i].鐢熶骇璧勬簮 == e){
- this.hform.HSourceID5 = this.HSourceNameList[i].HItemID
- }
- }
- },
- //鐢熶骇鐝粍
- getHGroupList(){
- uni.request({
- url: this.serverUrl + '/Web/GetProductionTeamList_Json',
- data: { sWhere: "and HUSEORGID = " + uni.getStorageSync('OrganizationID') + "" },
- success: (res) => {
- if(res.data.count == 1){
- this.HGroupNameList = res.data.data
- for(var i=0;i<res.data.data.length;i++){
- this.arrayHGroupName[i] = res.data.data[i].鐝粍
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨鐢熶骇鐝粍
- HGroupNameChange(e){
- for(var i=0;i<this.HGroupNameList.length;i++){
- if(this.HGroupNameList[i].鐝粍 == e){
- this.hform.HGroupID = this.HGroupNameList[i].HItemID
- }
- }
- },
- //鎿嶄綔鍛樼瓑
- getHEmpList(){
- uni.request({
- url: this.serverUrl + '/Web/GetEmployeeList_Json',
- data: { Employee: '',HGroupID:0 },
- success: (res) => {
- if(res.data.count == 1){
- this.HEmpNameList = res.data.data
- for(var i=0;i<res.data.data.length;i++){
- this.arrayHEmpName[i] = res.data.data[i].HName
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨鎿嶄綔鍛�
- HEmpNameChange(e){
- for(var i=0;i<this.HEmpNameList.length;i++){
- if(this.HEmpNameList[i].HName == e){
- this.hform.HEmpID = this.HEmpNameList[i].HItemID
- }
- }
- },
- //閫夋嫨妫�楠屽憳
- HQCCheckNameChange(e){
- for(var i=0;i<this.HEmpNameList.length;i++){
- if(this.HEmpNameList[i].HName == e){
- this.hform.HQCCheckID = this.HEmpNameList[i].HItemID
- }
- }
- },
- //閫夋搷浣滃憳
- HEmpName2Change(e){
- for(var i=0;i<this.HEmpNameList.length;i++){
- if(this.HEmpNameList[i].HName == e){
- this.hform.HEmpID2 = this.HEmpNameList[i].HItemID
- }
- }
- },
- HEmpName3Change(e){
- for(var i=0;i<this.HEmpNameList.length;i++){
- if(this.HEmpNameList[i].HName == e){
- this.hform.HEmpID3 = this.HEmpNameList[i].HItemID
- }
- }
- },
- HEmpName4Change(e){
- for(var i=0;i<this.HEmpNameList.length;i++){
- if(this.HEmpNameList[i].HName == e){
- this.hform.HEmpID4 = this.HEmpNameList[i].HItemID
- }
- }
- },
- HEmpName5Change(e){
- for(var i=0;i<this.HEmpNameList.length;i++){
- if(this.HEmpNameList[i].HName == e){
- this.hform.HEmpID5 = this.HEmpNameList[i].HItemID
- }
- }
- },
- //宸ヤ綔涓績
- getHCenterList(){
- uni.request({
- url: this.serverUrl + '/api/newBill/getWorkCenterList',
- data: { sWhere: '' },
- success: (res) => {
- if(res.data.code == 1){
- this.HCenterNameList = res.data.data.Gy_Source
- for(var i=0;i<res.data.data.Gy_Source.length;i++){
- this.arrayHCenterName[i] = res.data.data.Gy_Source[i].宸ヤ綔涓績
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨宸ヤ綔涓績
- HCenterNameChange(e){
- for(var i=0;i<this.HCenterNameList.length;i++){
- if(this.HCenterNameList[i].宸ヤ綔涓績 == e){
- this.hform.HCenterID = this.HCenterNameList[i].HItemID
- }
- }
- },
- //姹囨姤
- huibao(){
- var datas = {
- InterID: this.hform.HInterID,
- BillNo: this.hform.HBillNo,
- user: uni.getStorageSync('HUserName'),
- OrganizationID:uni.getStorageSync('OrganizationID'),
- }
- console.log('姹囨姤',datas)
- uni.request({
- url: this.serverUrl + '/Sc_ProcessMangement/SaveICMOReportBill',
- method:'GET',
- data: datas,
- success: (res) => {
- console.log(res)
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //鍏ュ簱
- ruku(){
- console.log('ruku')
- uni.request({
- url: this.serverUrl + '/Sc_ProcessMangement/SaveProcdutInBill',
- method:'GET',
- data: {BillNo: this.hform.HBillNo},
- success: (res) => {
- console.log(res)
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //鎶ュ簾
- baofei(){
- console.log('baofei')
- uni.request({
- url: this.serverUrl + '/Sc_ProcessMangement/SaveBFBill',
- method:'GET',
- data: {BillNo: this.hform.HBillNo},
- success: (res) => {
- console.log(res)
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //缂栬緫
- ifEdit(){
- //鏄惁缂栬緫
- uni.request({
- url: this.serverUrl + '/Cj_StationOutBill/set_ShowBillJudge',
- data: {
- HBillNo: this.HBillNo,
- // CurUserName: uni.getStorageSync('HUserName'),
- // HInterID: this.linterid,
- },
- success: (res) => {
- console.log(res)
- if(res.data.count == 1){
- this.isEdit = true
- this.OperationType = 3
- this.hform.eventType = 'Modify'
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- getEditData(linterid,HBillNo){
- //涓昏〃
- uni.request({
- url: this.serverUrl + '/Cj_StationOutBill/GetStationOutBill',
- data: { HInterID: linterid },
- success: (res) => {
- console.log(1,res.data.data[0]);
- if(res.data.code == 1){
- var data = res.data.data[0]
- this.getHBarCodeData(data.HBarCode)
- this.getHProcNoData(data.HBarCode,data.HProcNo)
-
- this.hform.HInterID= data.HInterID
- this.hform.HBillNo= data.HBillNo
- this.hform.HBarCode= data.HBarCode
- this.hform.HProcNo= data.HProcNo
- this.hform.HQty= data.HQty
- // this.hform.HPieceQty= data.HPieceQty
- this.hform.HWasterQty= data.HWasterQty
- this.hform.HSourceID= data.HSourceID
- this.hform.HSourceName= data.HSourceName
- this.hform.HGroupID= data.HGroupID
- this.hform.HGroupName= data.HGroupName
- this.hform.HEmpID= data.HEmpID
- this.hform.HEmpName= data.HEmpName
- this.hform.HRemark= data.HRemark
- this.hform.HDate= data.HDate.substr(0,10)
-
- this.hform.HWorkTimes= data.HWorkTimes
- this.hform.HEmpID2= data.HEmpID2
- this.hform.HEmpName2= data.HEmpName2
- this.hform.HEmpID3= data.HEmpID3
- this.hform.HEmpName3= data.HEmpName3
- this.hform.HEmpID4= data.HEmpID4
- this.hform.HEmpName4= data.HEmpName4
- this.hform.HEmpID5= data.HEmpID5
- this.hform.HEmpName5= data.HEmpName5
- // this.hform.HLastSubProc= data.HLastSubProc
- // this.hform.HQCCheckID= data.HQCCheckID
- // this.hform.HQCCheckName= data.HQCCheckName
+ onLoad(e) {
+ // this.getEditData('1516','GXCZHB000000001290')
+ console.log(e, this.userInfo)
+ // this.hform.HEmpID = this.userInfo.Czybm
+ // this.hform.HEmp = uni.getStorageSync('HUserName')
+ this.hform.HMaker = uni.getStorageSync('HUserName')
+ this.hform.HMakeDate = getDateTime.dateTimeStr('y-m-d h:i:s')
+ // this.hform.HDate = getDateTime.dateTimeStr('y-m-d')
+ // this.hform.HStationOutTime = getDateTime.dateTimeStr('y-m-d h:i:s')
+ if (e.linterid) {
+ this.btnType = 1
+ this.OperationType = 4
+ this.linterid = e.linterid
+ this.HBillNo = e.HBillNo
+ this.getEditData(e.linterid, e.HBillNo)
+ } else {
+ this.getNewData()
+ }
+ this.getHMaterList()
+ this.getHProcList()
+ this.getHSupList()
+ this.getHSourceList()
+ this.getHGroupList()
+ this.getHEmpList()
+ this.getHCenterList()
- if (data.鏄惁瀹℃牳 == "true") {
- this.btnType = 3
- } else {
- this.btnType = 2
- }
-
- this.hform.HMaker= data.HMaker
- this.hform.HMakeDate= data.HMakeDate
- this.hform.HUpDater= data.HUpDater
- this.hform.HUpDateDate= data.HUpDateDate
- this.hform.HChecker= data.HChecker
- this.hform.HCheckDate= data.HCheckDate
- // this.hform.HCloseMan= data.HCloseMan
- // this.hform.HCloseDate= data.HCloseDate
- this.hform.HDeleteMan= data.HDeleteMan
- this.hform.HDeleteDate= data.HDeleteDate
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- getHBarCodeData(HBarCode,e){
- var barNo = HBarCode.substr(0, 2);
- var barNo1 = HBarCode.substr(0, 4);
- uni.request({
- url: this.serverUrl + '/Cj_StationBill/txtHBarCode_KeyDown2',
- data: {HBarCode: HBarCode,HInterID:this.hform.HProcExchHinteID,UserID:this.userInfo.Czybm,HBillType:"Out"},
- success: (res) => {
- console.log(2,res.data);
- if(res.data.code == 1){
- var data = res.data.data[0]
- if(barNo != 'OP'){
- if(barNo1 == 'GXLZ' && data.娴佹按鍙�){
- this.hform.HProcNo= data.娴佹按鍙�
- }else if(barNo1 == 'GXLX' && data.宸ュ簭鍙�){
- this.hform.HProcNo= data.宸ュ簭鍙�
- }
- }
- this.hform.HICMOInterID= data.hicmointerid
- this.hform.HICMOBillNo= data.浠诲姟鍗曞彿
- this.hform.HMaterID= data.HMaterID
- this.hform.HMaterName= data.浜у搧
- this.hform.HMaterNumber= data.浜у搧浠g爜
- this.hform.HMaterModel= data.瑙勬牸鍨嬪彿
- this.hform.HPlanQty= data.娴佽浆鍗℃暟閲�
- this.hform.lngBillKey= data.hmainid
- this.hform.HProcExchBillNo= data.鍗曟嵁鍙�
- this.hform.HProcExchHinteID= data.hmainid
- this.hform.HICMOQty= data.浠诲姟鍗曟暟閲�
- this.hform.HOrderProcNO= data.璁㈠崟璺熻釜鍙�
- this.hform.HPRDOrgID= data.缁勭粐
- this.hform.HPRDOrg= data.缁勭粐鍚嶇О
- this.hform.lngBillSubKey= data.hsubid
- this.hform.HProcName= data.宸ュ簭
- this.hform.HProcID= data.HProcID
- this.hform.HCenterName= data.宸ヤ綔涓績
- this.hform.HCenterID= data.HCenterID
- this.hform.NoOutboundHqty= (data.娴佽浆鍗℃暟閲� - data.鍑虹珯鎶ュ簾鍏宠仈鏁伴噺 - data.鍑虹珯鍏宠仈鏁伴噺)
-
- if(e){
- this.getHProcNoData(this.hform.HBarCode,this.hform.HProcNo)
- }
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- getHProcNoData(HBarCode,HProcNo){
- uni.request({
- url: this.serverUrl + '/Cj_StationInBill/txtHProcNo_KeyDown',
- data: {sBillNo: HBarCode,sProcNo: HProcNo},
- success: (res) => {
- console.log(3,res);
- if(res.data.code == 1){
- var data = res.data.data[0]
- this.hform.lngBillSubKey= data.hsubid
- this.hform.HProcName= data.宸ュ簭
- this.hform.HProcID= data.HProcID
- this.hform.HCenterName= data.宸ヤ綔涓績
- this.hform.HCenterID= data.HCenterID
- this.hform.NoOutboundHqty= (data.娴佽浆鍗℃暟閲� - data.鍑虹珯鎶ュ簾鍏宠仈鏁伴噺 - data.鍑虹珯鍏宠仈鏁伴噺)
- this.hform.HQty= data.鍚堟牸鏁伴噺
- if (data.棣栭亾宸ュ簭 == "鏄�") {
- this.FirstEndHProcNo = 1
- }
- if (data.鏈亾宸ュ簭 == "鏄�") {
- this.FirstEndHProcNo = 2
- }
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //鏂板
- getNewData(){
- uni.request({
- url: this.serverUrl + '/Web/GetMAXNum',
- data: { HBillType: '3791' },
- success: (res) => {
- console.log(res.data)
- if(res.data.count == 1){
- this.hform.HInterID = res.data.data[0].HInterID
- this.hform.HBillNo = res.data.data[0].HBillNo
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- submit() {
- if(!this.hform.HBarCode){
- uni.showToast({
- title:'璇锋壂鎻忚澶囨潯褰㈢爜',
- icon:'none'
- })
- }else if(!this.hform.HProcNo){
- uni.showToast({
- title:'璇疯緭鍏�/鎵弿娴佹按鍙�',
- icon:'none'
- })
- }else if(!this.hform.HEmpName){
- uni.showToast({
- title:'璇烽�夋嫨鎿嶄綔鍛�',
- icon:'none'
- })
- }else if(!this.hform.HCenterName){
- uni.showToast({
- title:'璇烽�夋嫨宸ヤ綔涓績',
- icon:'none'
- })
- }else{
- uni.showLoading({
- title:'璇风◢鍊�'
- })
- var sMainStr = JSON.stringify(this.hform);
- var sMainSub = sMainStr + ";" + uni.getStorageSync('HUserName') + ";" + this.OperationType;
- console.log(sMainSub);
- uni.request({
- url: this.serverUrl + '/Cj_StationOutBill/AddBill',
- method:'POST',
- dataType:"json",
- data:{ oMain: sMainSub },
- success: (res) => {
- console.log(1,res);
- uni.hideLoading()
- if(res.data.count == 1){
- // if (uni.getStorageSync('OrganizationID') == 100038) {
- // if (this.FirstEndHProcNo == 1) {
- // //姹囨姤
- // this.huibao()
- // } else if (this.FirstEndHProcNo == 2) {
- // //鍏ュ簱
- // this.ruku()
- // //鎶ュ簾
- // this.baofei()
- // }
- // }
-
- // let pages = getCurrentPages();
- // let prePage = pages[pages.length - 2];
- // prePage.$vm.getList()
- if(this.isEdit){
- setTimeout(()=>{
- uni.redirectTo({
- url:'/pages/gongxuOut/form?linterid=' + this.linterid + '&HBillNo=' + this.linterid
- })
- },1000)
- }else{
- uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
- success: (res) => {
- if (res.confirm) {
- console.log('鐢ㄦ埛鐐瑰嚮纭畾');
- uni.redirectTo({
- url:'/pages/gongxuOut/form?OperationType=1'
- })
- } else if (res.cancel) {
- console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
- setTimeout(()=>{
- uni.navigateBack();
- },50)
- }
- }
- });
- }
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- }
+ this.getDefValByUser()
+ },
+ methods: {
+ //閫氳繃鐧诲綍鐢ㄦ埛鑾峰彇榛樿鍊�
+ getDefValByUser() {
+ uni.request({
+ url: this.serverUrl + '/Cj_StationInBill/GetDefValByUser',
+ type: "GET",
+ async: false,
+ data: {
+ "Czybm": this.userInfo.Czybm,
+ "Czymc": this.userInfo.Czymc
+ },
+ success: (res) => {
+ // console.log(res.data)
+ if (res.data.count == 1) {
+ var data = res.data.data[0]
+ this.hform.HGroupID = data.HGroupID
+ this.hform.HGroupName = data.鐢熶骇鐝粍鍚嶇О
+ this.hform.HEmpID = data.HEmpID
+ this.hform.HEmpName = data.鎿嶄綔鍛樺悕绉�
+ this.hform.HEmpNumber = data.鎿嶄綔鍛樹唬鐮�
+ this.hform.HSourceID = data.HSourceID
+ this.hform.HSourceName = data.鐢熶骇璧勬簮鍚嶇О
+ this.hform.HCenterID = data.HWorkCenterID
+ this.hform.HCenterName = data.宸ヤ綔涓績鍚嶇О
+ this.hform.HEmpName_second = data.鎿嶄綔鍛樺悕绉�
+ } else {
+ uni.showToast({
+ title: '鑾峰彇鐢熶骇鐝粍淇℃伅澶辫触',
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鑾峰彇鐢熶骇鐝粍淇℃伅澶辫触',
+ icon: 'none'
+ })
+ },
+ });
},
- //瀹℃牳
- check(){
- uni.request({
- url: this.serverUrl + '/Cj_StationOutBill/set_CheckBill',
- method:'GET',
- dataType:"json",
- data:{
- CurUserName: uni.getStorageSync('HUserName'),
- HInterID: this.linterid,
- HBillSubType:'',
- },
- success: (res) => {
- console.log(1,res);
- uni.hideLoading()
- if(res.data.count == 1){
- this.btnType = 3
- let pages = getCurrentPages();
- let prePage = pages[pages.length - 2];
- prePage.$vm.getList()
- uni.showModal({
- title: '鎿嶄綔鎴愬姛',
- content: '鏄惁缁х画鍋滅暀鍦ㄥ綋鍓嶉〉闈紵鈥樻槸鈥欏彲杩涜鍙嶅鏍革紝鈥樺惁鈥欏垯鍥炲埌涓婁竴绾у垪琛�',
- confirmText:'鏄�',
- cancelText:'鍚�',
- success: (res) => {
- if (res.confirm) {
- console.log('鐢ㄦ埛鐐瑰嚮鏄�');
- this.btnType = 3
- } else if (res.cancel) {
- console.log('鐢ㄦ埛鐐瑰嚮鍚�');
- uni.navigateBack()
- }
- }
- });
- }
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //鍙嶅鏍�
- abandonCheck(){
- uni.request({
- url: this.serverUrl + '/Cj_StationOutBill/set_AbandonCheck',
- method:'GET',
- dataType:"json",
- data:{
- CurUserName: uni.getStorageSync('HUserName'),
- HInterID: this.linterid,
- HBillSubType:'',
- },
- success: (res) => {
- console.log(1,res);
- uni.hideLoading()
- if(res.data.count == 1){
- let pages = getCurrentPages();
- let prePage = pages[pages.length - 2];
- prePage.$vm.getList()
- this.btnType = 2
- uni.showModal({
- title: '鎿嶄綔鎴愬姛',
- content: '鏄惁缁х画鍋滅暀鍦ㄥ綋鍓嶉〉闈紵鈥樻槸鈥欏彲杩涜瀹℃牳锛屸�樺惁鈥欏垯鍥炲埌涓婁竴绾у垪琛�',
- confirmText:'鏄�',
- cancelText:'鍚�',
- success: (res) => {
- if (res.confirm) {
- console.log('鐢ㄦ埛鐐瑰嚮鏄�');
- this.btnType = 2
- } else if (res.cancel) {
- console.log('鐢ㄦ埛鐐瑰嚮鍚�');
- uni.navigateBack()
- }
- }
- });
- }
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- goBack(){
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�',
- success: (res) => {
- if (res.confirm) {
- console.log('鐢ㄦ埛鐐瑰嚮纭畾');
- uni.navigateBack()
- } else if (res.cancel) {
- console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
- }
- }
- });
+ //鎵爜
+ toScanCode() {
+ var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
+ mpaasScanModule.mpaasScan({
+ 'hideAlbum': true,
+ 'timeoutInterval': '10', //瓒呮椂鏃堕棿
+ 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
+ }, (ret) => {
+ console.log(ret.resp_result)
+ var str = ret.resp_result
+ if (str.includes('@')) {
+ const parts = str.split('@');
+ this.hform.HBarCode = parts[0]
+ this.hform.HProcNo = parts[1]
+ this.getHBarCodeData(parts[0], 1)
+ // this.getHProcNoData(parts[0],parts[1])
+ } else {
+ this.hform.HBarCode = ret.resp_result
+ this.getHBarCodeData(ret.resp_result)
+ }
+ })
+ // const str = "GXLX250603001-01@10";
+ // uni.scanCode({
+ // onlyFromCamera: true,
+ // // autoZoom:false,
+ // success: (res) => {
+ // console.log('鏉$爜鍐呭锛�' + res.result);
+ // var str = res.result
+ // if(str.includes('@')) {
+ // const parts = str.split('@');
+ // this.hform.HBarCode = parts[0]
+ // this.hform.HProcNo = parts[1]
+ // this.getHBarCodeData(parts[0],1)
+ // // this.getHProcNoData(parts[0],parts[1])
+ // }else{
+ // this.hform.HBarCode = res.result
+ // this.getHBarCodeData(res.result)
+ // }
+ // }
+ // });
+ },
+ toInCode(e) {
+ var str = this.hform.HBarCode
+ if (str.includes('@')) {
+ const parts = str.split('@');
+ this.hform.HBarCode = parts[0]
+ this.hform.HProcNo = parts[1]
+ this.getHBarCodeData(parts[0], 1)
+ // this.getHProcNoData(parts[0],parts[1])
+ } else {
+ this.getHBarCodeData(this.hform.HBarCode)
+ }
+ },
+ //鎵祦姘村彿
+ toScanProcNo() {
+ var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
+ mpaasScanModule.mpaasScan({
+ 'hideAlbum': true,
+ 'timeoutInterval': '10', //瓒呮椂鏃堕棿
+ 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
+ }, (ret) => {
+ console.log(ret.resp_result)
+ this.hform.HProcNo = ret.resp_result
+ this.getHProcNoData(this.hform.HBarCode, ret.resp_result)
+ })
+ },
+ //鏃ユ湡
+ HDateChange(e) {
+ console.log(e.detail.value)
+ this.hform.HDate = e.detail.value
+ },
+
+ //鑾峰彇浜у搧鏁版嵁
+ getHMaterList() {
+ var Value = " Where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + uni.getStorageSync('OrganizationID')
+ uni.request({
+ url: this.serverUrl + '/Web/GetMaterialList_Json',
+ data: {
+ sWhere: Value
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.HMaterNumberList = res.data.data
+ for (var i = 0; i < res.data.data.length; i++) {
+ this.arrayHMaterNumber[i] = res.data.data[i].HNumber
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨浜у搧鏁版嵁
+ HMaterNumberChange(e) {
+ for (var i = 0; i < this.HMaterNumberList.length; i++) {
+ if (this.HMaterNumberList[i].HNumber == e) {
+ this.hform.HMaterName = this.HMaterNumberList[i].HName
+ this.hform.HMaterID = this.HMaterNumberList[i].HItemID
+ }
+ }
+ },
+ //宸ュ簭
+ getHProcList() {
+ uni.request({
+ url: this.serverUrl + '/Web/GetProcList_Json',
+ data: {
+ sWhere: ''
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.HProcNameList = res.data.data
+ for (var i = 0; i < res.data.data.length; i++) {
+ this.arrayHProcName[i] = res.data.data[i].宸ュ簭
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨宸ュ簭
+ HProcNameChange(e) {
+ for (var i = 0; i < this.HProcNameList.length; i++) {
+ if (this.HProcNameList[i].宸ュ簭 == e) {
+ this.hform.HProcID = this.HProcNameList[i].HItemID
+ }
+ }
+ },
+ //鑾峰彇渚涘簲鍟嗘暟鎹�
+ getHSupList() {
+ if (!uni.getStorageSync('OrganizationID')) {
+ var HOtherOrgID = 0;
+ } else {
+ var HOtherOrgID = uni.getStorageSync('OrganizationID')
+ }
+ uni.request({
+ url: this.serverUrl + '/Web/GetSupplierList_Json',
+ data: {
+ Supplier: '',
+ HOrgID: HOtherOrgID
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.HSupNameList = res.data.data
+ for (var i = 0; i < res.data.data.length; i++) {
+ this.arrayHSupName[i] = res.data.data[i].HName
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨渚涘簲鍟�
+ HSupNameChange(e) {
+ for (var i = 0; i < this.HSupNameList.length; i++) {
+ if (this.HSupNameList[i].HName == e) {
+ this.hform.HSupID = this.HSupNameList[i].HItemID
+ }
+ }
+ },
+ //鐢熶骇璧勬簮
+ getHSourceList() {
+ uni.request({
+ url: this.serverUrl + '/api/newBill/getSourceList',
+ data: {
+ sWhere: ''
+ },
+ success: (res) => {
+ if (res.data.code == 1) {
+ this.HSourceNameList = res.data.data.Gy_Source
+ for (var i = 0; i < res.data.data.Gy_Source.length; i++) {
+ this.arrayHSourceName[i] = res.data.data.Gy_Source[i].鐢熶骇璧勬簮
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨鐢熶骇璧勬簮
+ HSourceNameChange(e) {
+ for (var i = 0; i < this.HSourceNameList.length; i++) {
+ if (this.HSourceNameList[i].鐢熶骇璧勬簮 == e) {
+ this.hform.HSourceID = this.HSourceNameList[i].HItemID
+ }
+ }
+ },
+ HSourceName2Change(e) {
+ for (var i = 0; i < this.HSourceNameList.length; i++) {
+ if (this.HSourceNameList[i].鐢熶骇璧勬簮 == e) {
+ this.hform.HSourceID2 = this.HSourceNameList[i].HItemID
+ }
+ }
+ },
+ HSourceName3Change(e) {
+ for (var i = 0; i < this.HSourceNameList.length; i++) {
+ if (this.HSourceNameList[i].鐢熶骇璧勬簮 == e) {
+ this.hform.HSourceID3 = this.HSourceNameList[i].HItemID
+ }
+ }
+ },
+ HSourceName4Change(e) {
+ for (var i = 0; i < this.HSourceNameList.length; i++) {
+ if (this.HSourceNameList[i].鐢熶骇璧勬簮 == e) {
+ this.hform.HSourceID4 = this.HSourceNameList[i].HItemID
+ }
+ }
+ },
+ HSourceName5Change(e) {
+ for (var i = 0; i < this.HSourceNameList.length; i++) {
+ if (this.HSourceNameList[i].鐢熶骇璧勬簮 == e) {
+ this.hform.HSourceID5 = this.HSourceNameList[i].HItemID
+ }
+ }
+ },
+ //鐢熶骇鐝粍
+ getHGroupList() {
+ uni.request({
+ url: this.serverUrl + '/Web/GetProductionTeamList_Json',
+ data: {
+ sWhere: "and HUSEORGID = " + uni.getStorageSync('OrganizationID') + ""
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.HGroupNameList = res.data.data
+ for (var i = 0; i < res.data.data.length; i++) {
+ this.arrayHGroupName[i] = res.data.data[i].鐝粍
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨鐢熶骇鐝粍
+ HGroupNameChange(e) {
+ for (var i = 0; i < this.HGroupNameList.length; i++) {
+ if (this.HGroupNameList[i].鐝粍 == e) {
+ this.hform.HGroupID = this.HGroupNameList[i].HItemID
+ }
+ }
+ },
+ //鎿嶄綔鍛樼瓑
+ getHEmpList() {
+ uni.request({
+ url: this.serverUrl + '/Web/GetEmployeeList_Json',
+ data: {
+ Employee: '',
+ HGroupID: 0
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.HEmpNameList = res.data.data
+ for (var i = 0; i < res.data.data.length; i++) {
+ this.arrayHEmpName[i] = res.data.data[i].HName
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨鎿嶄綔鍛�
+ HEmpNameChange(e) {
+ for (var i = 0; i < this.HEmpNameList.length; i++) {
+ if (this.HEmpNameList[i].HName == e) {
+ this.hform.HEmpID = this.HEmpNameList[i].HItemID
+ }
+ }
+ },
+ //閫夋嫨妫�楠屽憳
+ HQCCheckNameChange(e) {
+ for (var i = 0; i < this.HEmpNameList.length; i++) {
+ if (this.HEmpNameList[i].HName == e) {
+ this.hform.HQCCheckID = this.HEmpNameList[i].HItemID
+ }
+ }
+ },
+ //閫夋搷浣滃憳
+ HEmpName2Change(e) {
+ for (var i = 0; i < this.HEmpNameList.length; i++) {
+ if (this.HEmpNameList[i].HName == e) {
+ this.hform.HEmpID2 = this.HEmpNameList[i].HItemID
+ }
+ }
+ },
+ HEmpName3Change(e) {
+ for (var i = 0; i < this.HEmpNameList.length; i++) {
+ if (this.HEmpNameList[i].HName == e) {
+ this.hform.HEmpID3 = this.HEmpNameList[i].HItemID
+ }
+ }
+ },
+ HEmpName4Change(e) {
+ for (var i = 0; i < this.HEmpNameList.length; i++) {
+ if (this.HEmpNameList[i].HName == e) {
+ this.hform.HEmpID4 = this.HEmpNameList[i].HItemID
+ }
+ }
+ },
+ HEmpName5Change(e) {
+ for (var i = 0; i < this.HEmpNameList.length; i++) {
+ if (this.HEmpNameList[i].HName == e) {
+ this.hform.HEmpID5 = this.HEmpNameList[i].HItemID
+ }
+ }
+ },
+ //宸ヤ綔涓績
+ getHCenterList() {
+ uni.request({
+ url: this.serverUrl + '/api/newBill/getWorkCenterList',
+ data: {
+ sWhere: ''
+ },
+ success: (res) => {
+ if (res.data.code == 1) {
+ this.HCenterNameList = res.data.data.Gy_Source
+ for (var i = 0; i < res.data.data.Gy_Source.length; i++) {
+ this.arrayHCenterName[i] = res.data.data.Gy_Source[i].宸ヤ綔涓績
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨宸ヤ綔涓績
+ HCenterNameChange(e) {
+ for (var i = 0; i < this.HCenterNameList.length; i++) {
+ if (this.HCenterNameList[i].宸ヤ綔涓績 == e) {
+ this.hform.HCenterID = this.HCenterNameList[i].HItemID
+ }
+ }
+ },
+ //姹囨姤
+ huibao() {
+ var datas = {
+ InterID: this.hform.HInterID,
+ BillNo: this.hform.HBillNo,
+ user: uni.getStorageSync('HUserName'),
+ OrganizationID: uni.getStorageSync('OrganizationID'),
+ }
+ console.log('姹囨姤', datas)
+ uni.request({
+ url: this.serverUrl + '/Sc_ProcessMangement/SaveICMOReportBill',
+ method: 'GET',
+ data: datas,
+ success: (res) => {
+ console.log(res)
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //鍏ュ簱
+ ruku() {
+ console.log('ruku')
+ uni.request({
+ url: this.serverUrl + '/Sc_ProcessMangement/SaveProcdutInBill',
+ method: 'GET',
+ data: {
+ BillNo: this.hform.HBillNo
+ },
+ success: (res) => {
+ console.log(res)
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //鎶ュ簾
+ baofei() {
+ console.log('baofei')
+ uni.request({
+ url: this.serverUrl + '/Sc_ProcessMangement/SaveBFBill',
+ method: 'GET',
+ data: {
+ BillNo: this.hform.HBillNo
+ },
+ success: (res) => {
+ console.log(res)
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //缂栬緫
+ ifEdit() {
+ //鏄惁缂栬緫
+ uni.request({
+ url: this.serverUrl + '/Cj_StationOutBill/set_ShowBillJudge',
+ data: {
+ HBillNo: this.HBillNo,
+ // CurUserName: uni.getStorageSync('HUserName'),
+ // HInterID: this.linterid,
+ },
+ success: (res) => {
+ console.log(res)
+ if (res.data.count == 1) {
+ this.isEdit = true
+ this.OperationType = 3
+ this.hform.eventType = 'Modify'
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ getEditData(linterid, HBillNo) {
+ //涓昏〃
+ uni.request({
+ url: this.serverUrl + '/Cj_StationOutBill/GetStationOutBill',
+ data: {
+ HInterID: linterid
+ },
+ success: (res) => {
+ console.log(1, res.data.data[0]);
+ if (res.data.code == 1) {
+ var data = res.data.data[0]
+ this.getHBarCodeData(data.HBarCode)
+ this.getHProcNoData(data.HBarCode, data.HProcNo)
+
+ this.hform.HInterID = data.HInterID
+ this.hform.HBillNo = data.HBillNo
+ this.hform.HBarCode = data.HBarCode
+ this.hform.HProcNo = data.HProcNo
+ // this.hform.HQty = data.HQty
+ // this.hform.HPieceQty= data.HPieceQty
+ this.HHasTickingSync = data.HHasTickingSync || 0
+ this.HNotReportQty = data.HNotReportQty
+ this.hform.HWasterQty = data.HWasterQty
+ this.hform.HSourceID = data.HSourceID
+ this.hform.HSourceName = data.HSourceName
+ this.hform.HGroupID = data.HGroupID
+ this.hform.HGroupName = data.HGroupName
+ this.hform.HEmpID = data.HEmpID
+ this.hform.HEmpName = data.HEmpName
+ this.hform.HRemark = data.HRemark
+ this.hform.HDate = data.HDate.substr(0, 10)
+
+ this.hform.HWorkTimes = data.HWorkTimes
+ this.hform.HEmpID2 = data.HEmpID2
+ this.hform.HEmpName2 = data.HEmpName2
+ this.hform.HEmpID3 = data.HEmpID3
+ this.hform.HEmpName3 = data.HEmpName3
+ this.hform.HEmpID4 = data.HEmpID4
+ this.hform.HEmpName4 = data.HEmpName4
+ this.hform.HEmpID5 = data.HEmpID5
+ this.hform.HEmpName5 = data.HEmpName5
+ // this.hform.HLastSubProc= data.HLastSubProc
+ // this.hform.HQCCheckID= data.HQCCheckID
+ // this.hform.HQCCheckName= data.HQCCheckName
+
+ if (data.鏄惁瀹℃牳 == "true") {
+ this.btnType = 3
+ } else {
+ this.btnType = 2
+ }
+
+ this.hform.HMaker = data.HMaker
+ this.hform.HMakeDate = data.HMakeDate
+ this.hform.HUpDater = data.HUpDater
+ this.hform.HUpDateDate = data.HUpDateDate
+ this.hform.HChecker = data.HChecker
+ this.hform.HCheckDate = data.HCheckDate
+ // this.hform.HCloseMan= data.HCloseMan
+ // this.hform.HCloseDate= data.HCloseDate
+ this.hform.HDeleteMan = data.HDeleteMan
+ this.hform.HDeleteDate = data.HDeleteDate
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ getHBarCodeData(HBarCode, e) {
+ var barNo = HBarCode.substr(0, 2);
+ var barNo1 = HBarCode.substr(0, 4);
+ uni.request({
+ url: this.serverUrl + '/Cj_StationBill/txtHBarCode_KeyDown2',
+ data: {
+ HBarCode: HBarCode,
+ HInterID: this.hform.HProcExchHinteID,
+ UserID: this.userInfo.Czybm,
+ HBillType: "Out"
+ },
+ success: (res) => {
+ console.log(2, res.data);
+ if (res.data.code == 1) {
+ var data = res.data.data[0]
+ if (barNo != 'OP') {
+ if (barNo1 == 'GXLZ' && data.娴佹按鍙�) {
+ this.hform.HProcNo = data.娴佹按鍙�
+ } else if (barNo1 == 'GXLX' && data.宸ュ簭鍙�) {
+ this.hform.HProcNo = data.宸ュ簭鍙�
+ }
+ }
+ this.hform.HICMOInterID = data.hicmointerid
+ this.hform.HICMOBillNo = data.浠诲姟鍗曞彿
+ this.hform.HMaterID = data.HMaterID
+ this.hform.HMaterName = data.浜у搧
+ this.hform.HMaterNumber = data.浜у搧浠g爜
+ this.hform.HMaterModel = data.瑙勬牸鍨嬪彿
+ this.hform.HPlanQty = data.娴佽浆鍗℃暟閲�
+ this.hform.lngBillKey = data.hmainid
+ this.hform.HProcExchBillNo = data.鍗曟嵁鍙�
+ this.hform.HProcExchHinteID = data.hmainid
+ this.hform.HICMOQty = data.浠诲姟鍗曟暟閲�
+ this.hform.HOrderProcNO = data.璁㈠崟璺熻釜鍙�
+ this.hform.HPRDOrgID = data.缁勭粐
+ this.hform.HPRDOrg = data.缁勭粐鍚嶇О
+ this.hform.lngBillSubKey = data.hsubid
+ this.hform.HProcName = data.宸ュ簭
+ this.hform.HProcID = data.HProcID
+ this.hform.HCenterName = data.宸ヤ綔涓績
+ this.hform.HCenterID = data.HCenterID
+ this.hform.NoOutboundHqty = (data.娴佽浆鍗℃暟閲� - data.鍑虹珯鎶ュ簾鍏宠仈鏁伴噺 - data.鍑虹珯鍏宠仈鏁伴噺)
+
+ if (e) {
+ this.getHProcNoData(this.hform.HBarCode, this.hform.HProcNo)
+ }
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ getHProcNoData(HBarCode, HProcNo) {
+ uni.request({
+ url: this.serverUrl + '/Cj_StationInBill/txtHProcNo_KeyDown',
+ data: {
+ sBillNo: HBarCode,
+ sProcNo: HProcNo
+ },
+ success: (res) => {
+ console.log(3, res);
+ if (res.data.code == 1) {
+ var data = res.data.data[0]
+ this.hform.lngBillSubKey = data.hsubid
+ this.hform.HProcName = data.宸ュ簭
+ this.hform.HProcID = data.HProcID
+ this.hform.HCenterName = data.宸ヤ綔涓績
+ this.hform.HCenterID = data.HCenterID
+ this.hform.NoOutboundHqty = (data.娴佽浆鍗℃暟閲� - data.鍑虹珯鎶ュ簾鍏宠仈鏁伴噺 - data.鍑虹珯鍏宠仈鏁伴噺)
+ this.HNotReportQty = data['鏈姤宸ユ暟閲�']
+ this.HHasTickingSync = data['鏄惁璁℃椂']
+ // this.hform.HQty = data.鍚堟牸鏁伴噺
+ if (data.棣栭亾宸ュ簭 == "鏄�") {
+ this.FirstEndHProcNo = 1
+ }
+ if (data.鏈亾宸ュ簭 == "鏄�") {
+ this.FirstEndHProcNo = 2
+ }
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //鏂板
+ getNewData() {
+ uni.request({
+ url: this.serverUrl + '/Web/GetMAXNum',
+ data: {
+ HBillType: '3791'
+ },
+ success: (res) => {
+ console.log(res.data)
+ if (res.data.count == 1) {
+ this.hform.HInterID = res.data.data[0].HInterID
+ this.hform.HBillNo = res.data.data[0].HBillNo
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ submit() {
+ if (!this.hform.HBarCode) {
+ uni.showToast({
+ title: '璇锋壂鎻忚澶囨潯褰㈢爜',
+ icon: 'none'
+ })
+ } else if (!this.hform.HProcNo) {
+ uni.showToast({
+ title: '璇疯緭鍏�/鎵弿娴佹按鍙�',
+ icon: 'none'
+ })
+ } else if (!this.hform.HEmpName) {
+ uni.showToast({
+ title: '璇烽�夋嫨鎿嶄綔鍛�',
+ icon: 'none'
+ })
+ } else if (!this.hform.HCenterName) {
+ uni.showToast({
+ title: '璇烽�夋嫨宸ヤ綔涓績',
+ icon: 'none'
+ })
+ } else {
+ uni.showLoading({
+ title: '璇风◢鍊�'
+ })
+ var sMainStr = JSON.stringify(this.hform);
+ var sMainSub = sMainStr + ";" + uni.getStorageSync('HUserName') + ";" + this.OperationType;
+ console.log(sMainSub);
+ uni.request({
+ url: this.serverUrl + '/Cj_StationOutBill/AddBill',
+ method: 'POST',
+ dataType: "json",
+ data: {
+ oMain: sMainSub
+ },
+ success: (res) => {
+ console.log(1, res);
+ uni.hideLoading()
+ if (res.data.count == 1) {
+ // if (uni.getStorageSync('OrganizationID') == 100038) {
+ // if (this.FirstEndHProcNo == 1) {
+ // //姹囨姤
+ // this.huibao()
+ // } else if (this.FirstEndHProcNo == 2) {
+ // //鍏ュ簱
+ // this.ruku()
+ // //鎶ュ簾
+ // this.baofei()
+ // }
+ // }
+
+ // let pages = getCurrentPages();
+ // let prePage = pages[pages.length - 2];
+ // prePage.$vm.getList()
+ if (this.isEdit) {
+ setTimeout(() => {
+ uni.redirectTo({
+ url: '/pages/gongxuOut/form?linterid=' + this
+ .linterid + '&HBillNo=' + this.linterid
+ })
+ }, 1000)
+ } else {
+ uni.showModal({
+ title: '鎻愮ず',
+ content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ success: (res) => {
+ if (res.confirm) {
+ console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+ uni.redirectTo({
+ url: '/pages/gongxuOut/form?OperationType=1'
+ })
+ } else if (res.cancel) {
+ console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+ setTimeout(() => {
+ uni.navigateBack();
+ }, 50)
+ }
+ }
+ });
+ }
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ }
+ },
+ //瀹℃牳
+ check() {
+ uni.request({
+ url: this.serverUrl + '/Cj_StationOutBill/set_CheckBill',
+ method: 'GET',
+ dataType: "json",
+ data: {
+ CurUserName: uni.getStorageSync('HUserName'),
+ HInterID: this.linterid,
+ HBillSubType: '',
+ },
+ success: (res) => {
+ console.log(1, res);
+ uni.hideLoading()
+ if (res.data.count == 1) {
+ this.btnType = 3
+ let pages = getCurrentPages();
+ let prePage = pages[pages.length - 2];
+ prePage.$vm.getList()
+ uni.showModal({
+ title: '鎿嶄綔鎴愬姛',
+ content: '鏄惁缁х画鍋滅暀鍦ㄥ綋鍓嶉〉闈紵鈥樻槸鈥欏彲杩涜鍙嶅鏍革紝鈥樺惁鈥欏垯鍥炲埌涓婁竴绾у垪琛�',
+ confirmText: '鏄�',
+ cancelText: '鍚�',
+ success: (res) => {
+ if (res.confirm) {
+ console.log('鐢ㄦ埛鐐瑰嚮鏄�');
+ this.btnType = 3
+ } else if (res.cancel) {
+ console.log('鐢ㄦ埛鐐瑰嚮鍚�');
+ uni.navigateBack()
+ }
+ }
+ });
+ }
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //鍙嶅鏍�
+ abandonCheck() {
+ uni.request({
+ url: this.serverUrl + '/Cj_StationOutBill/set_AbandonCheck',
+ method: 'GET',
+ dataType: "json",
+ data: {
+ CurUserName: uni.getStorageSync('HUserName'),
+ HInterID: this.linterid,
+ HBillSubType: '',
+ },
+ success: (res) => {
+ console.log(1, res);
+ uni.hideLoading()
+ if (res.data.count == 1) {
+ let pages = getCurrentPages();
+ let prePage = pages[pages.length - 2];
+ prePage.$vm.getList()
+ this.btnType = 2
+ uni.showModal({
+ title: '鎿嶄綔鎴愬姛',
+ content: '鏄惁缁х画鍋滅暀鍦ㄥ綋鍓嶉〉闈紵鈥樻槸鈥欏彲杩涜瀹℃牳锛屸�樺惁鈥欏垯鍥炲埌涓婁竴绾у垪琛�',
+ confirmText: '鏄�',
+ cancelText: '鍚�',
+ success: (res) => {
+ if (res.confirm) {
+ console.log('鐢ㄦ埛鐐瑰嚮鏄�');
+ this.btnType = 2
+ } else if (res.cancel) {
+ console.log('鐢ㄦ埛鐐瑰嚮鍚�');
+ uni.navigateBack()
+ }
+ }
+ });
+ }
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ goBack() {
+ uni.showModal({
+ title: '鎻愮ず',
+ content: '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�',
+ success: (res) => {
+ if (res.confirm) {
+ console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+ uni.navigateBack()
+ } else if (res.cancel) {
+ console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+ }
+ }
+ });
}
}
}
</script>
<style lang="scss" scoped>
- .form{
- width: 668rpx;
- margin: 20rpx auto;
- padding-bottom: 240rpx;
- }
- .tab_area{
- width: 100%;
- height: 50rpx;
- }
- .other{
- margin-top: 8rpx;
- text-align: center;
- font-size: 28rpx;
- padding: 4rpx 18rpx;
- color: #1890FF;
- }
- .form-item{
- display: flex;
- align-items: center;
- font-size: 30rpx;
- padding: 6rpx 0;
- .title{
- width: 208rpx;
- text{
- color: red;
- font-weight: bold;
- }
- }
- .right{
- width: 450rpx;
- border-radius: 22rpx;
- border: 1px solid #acacac;
- }
- .righton{
- width: 450rpx;
- border-radius: 22rpx;
- border: 1px solid #e4e4e4;
- background-color: #e4e4e4;
- }
- input{
- width: 100%;
- padding: 8rpx 20rpx;
- font-size: 30rpx;
- }
- textarea{
- width: 98%;
- padding: 8rpx 20rpx;
- font-size: 30rpx;
- }
+ .form {
+ width: 668rpx;
+ margin: 20rpx auto;
+ padding-bottom: 240rpx;
+ }
- }
- .op{
- display: flex;
- justify-content: space-around;
- button{
- padding: 0;
- width: 150rpx;
- font-size: 25rpx;
- }
- .op1{
- border: 1px solid #3a78ff;
- color: #3a78ff;
- background-color: rgba(58, 120, 255, 0.1);
- }
- .op2{
- border: 1px solid #41a863;
- color: #41a863;
- background-color: rgba(65, 168, 99, 0.1);
- }
- .op3{
- border: 1px solid #da0000;
- color: #da0000;
- background-color: rgba(218, 0, 0, 0.1);
- }
- }
- .bottom-btn{
- width: 100%;
- // height: 120rpx;
- position: fixed;
- bottom: 0;
- left: 0;
- background-color: #fff;
- box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
- padding: 30rpx 40rpx 40rpx 40rpx;
- button{
- border-radius: 50rpx;
- width: 180rpx;
- height: 66rpx;
- line-height: 66rpx;
- font-size: 28rpx;
- }
- .btn-a{
- background-color: #3A78FF;
- color: #fff;
- }
- .btn-b{
- background-color: #41a863;
- color: #fff;
- // margin-left: 30rpx;
- }
- .btn-c{
- background-color: #acacac;
- color: #fff;
- position: absolute;
- right: 120rpx;
- }
- .btn-d{
- background-color: #ff8901;
- color: #fff;
- // margin-left: 30rpx;
- }
- }
+ .tab_area {
+ width: 100%;
+ height: 50rpx;
+ }
+
+ .other {
+ margin-top: 8rpx;
+ text-align: center;
+ font-size: 28rpx;
+ padding: 4rpx 18rpx;
+ color: #1890FF;
+ }
+
+ .form-item {
+ display: flex;
+ align-items: center;
+ font-size: 30rpx;
+ padding: 6rpx 0;
+
+ .title {
+ width: 208rpx;
+
+ text {
+ color: red;
+ font-weight: bold;
+ }
+ }
+
+ .right {
+ width: 450rpx;
+ border-radius: 22rpx;
+ border: 1px solid #acacac;
+ }
+
+ .righton {
+ width: 450rpx;
+ border-radius: 22rpx;
+ border: 1px solid #e4e4e4;
+ background-color: #e4e4e4;
+ }
+
+ input {
+ width: 100%;
+ padding: 8rpx 20rpx;
+ font-size: 30rpx;
+ }
+
+ textarea {
+ width: 98%;
+ padding: 8rpx 20rpx;
+ font-size: 30rpx;
+ }
+
+ }
+
+ .op {
+ display: flex;
+ justify-content: space-around;
+
+ button {
+ padding: 0;
+ width: 150rpx;
+ font-size: 25rpx;
+ }
+
+ .op1 {
+ border: 1px solid #3a78ff;
+ color: #3a78ff;
+ background-color: rgba(58, 120, 255, 0.1);
+ }
+
+ .op2 {
+ border: 1px solid #41a863;
+ color: #41a863;
+ background-color: rgba(65, 168, 99, 0.1);
+ }
+
+ .op3 {
+ border: 1px solid #da0000;
+ color: #da0000;
+ background-color: rgba(218, 0, 0, 0.1);
+ }
+ }
+
+ .has-ticking {
+ display: flex;
+ flex-direction: row;
+ justify-content: right;
+ }
+
+ .bottom-btn {
+ width: 100%;
+ // height: 120rpx;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ background-color: #fff;
+ box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
+ padding: 30rpx 40rpx 40rpx 40rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #3A78FF;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ // margin-left: 30rpx;
+ }
+
+ .btn-c {
+ background-color: #acacac;
+ color: #fff;
+ position: absolute;
+ right: 120rpx;
+ }
+
+ .btn-d {
+ background-color: #ff8901;
+ color: #fff;
+ // margin-left: 30rpx;
+ }
+ }
</style>
\ No newline at end of file
diff --git a/pages/index/login.vue b/pages/index/login.vue
index 0b9c90f..8093be0 100644
--- a/pages/index/login.vue
+++ b/pages/index/login.vue
@@ -272,7 +272,6 @@
uni.setStorageSync('login', "login");
uni.setStorageSync('Organization', this.Organization);
uni.setStorageSync('OrganizationID', this.HOrgName);
- console.log('this.serverUrl: ', this.serverUrl);
this.CommonUtils.setServerUrl(this.serverUrl)
uni.reLaunch({
url: '/pages/index/index'
diff --git a/pages/index/tab1.vue b/pages/index/tab1.vue
index 8ce338d..3d9975c 100644
--- a/pages/index/tab1.vue
+++ b/pages/index/tab1.vue
@@ -1,291 +1,293 @@
<template>
- <view class="content">
- <view class="mains">
- <view class="box" v-for="(item,index) in itemData" :key="index" @tap="toUrl(item)">
- <image :src="item.img" mode=""></image>
- <view class="texts">
- <view class="font1">{{item.text}}</view>
- <!-- <view class="font2">{{item.tip}}</view> -->
- </view>
- <!-- <uni-icons type="forward" color="#888" style="position: absolute;right: 70rpx;" size="18"></uni-icons> -->
- </view>
- </view>
- </view>
+ <view class="content">
+ <view class="mains">
+ <view class="box" v-for="(item,index) in itemData" :key="index" @tap="toUrl(item)">
+ <image :src="item.img" mode=""></image>
+ <view class="texts">
+ <view class="font1">{{item.text}}</view>
+ <!-- <view class="font2">{{item.tip}}</view> -->
+ </view>
+ <!-- <uni-icons type="forward" color="#888" style="position: absolute;right: 70rpx;" size="18"></uni-icons> -->
+ </view>
+ </view>
+ </view>
</template>
<script>
- export default {
- data() {
- return {
- serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
- itemData: [{
- img: '../../static/icon/icon9.png',
- text: '宸ュ簭杩涚珯鎺ユ敹鍗曟柊澧�',
- tip: '绔嬪嵆鏂板',
- url: '/pages/gongxuIn/form',
- id: 1,
- }, {
- img: '../../static/icon/icon9.png',
- text: '宸ュ簭杩涚珯鎺ユ敹鍗曞垪琛�',
- tip: '鏌ョ湅鍒楄〃',
- url: '/pages/gongxuIn/table',
- id: 2,
- }, {
- img: '../../static/icon/icon10.png',
- text: '宸ュ簭鍑虹珯姹囨姤鍗曟柊澧�',
- tip: '绔嬪嵆鏂板',
- url: '/pages/gongxuOut/form',
- id: 3,
- }, {
- img: '../../static/icon/icon10.png',
- text: '宸ュ簭鍑虹珯姹囨姤鍗曞垪琛�',
- tip: '鏌ョ湅鍒楄〃',
- url: '/pages/gongxuOut/table',
- id: 4,
- }, {
- img: '../../static/icon/icon11.png',
- text: '宸ュ簭濮斿鍙戝嚭鍗曟柊澧�',
- tip: '绔嬪嵆鏂板',
- url: '/pages/weiwaigxIn/form',
- id: 5,
- }, {
- img: '../../static/icon/icon11.png',
- text: '宸ュ簭濮斿鍙戝嚭鍗曞垪琛�',
- tip: '鏌ョ湅鍒楄〃',
- url: '/pages/weiwaigxIn/table',
- id: 6,
- }, {
- img: '../../static/icon/icon12.png',
- text: '宸ュ簭濮斿鎺ユ敹鍗曟柊澧�',
- tip: '绔嬪嵆鏂板',
- url: '/pages/weiwaigxOut/form',
- id: 7,
- }, {
- img: '../../static/icon/icon12.png',
- text: '宸ュ簭濮斿鎺ユ敹鍗曞垪琛�',
- tip: '鏌ョ湅鍒楄〃',
- url: '/pages/weiwaigxOut/table',
- id: 8,
- }, {
- img: '../../static/icon/icon1.png',
- text: '璁惧妗f鏌ヨ',
- tip: '鏌ョ湅璇︽儏',
- url: '/pages/shebeidangan/table',
- id: 9,
- }, {
- img: '../../static/icon/icon8.png',
- text: '璁惧灞ュ巻鏌ヨ',
- tip: '鏌ョ湅璇︽儏',
- url: '/pages/shebeilvli/table',
- id: 10,
- }, {
- img: '../../static/icon/icon14.png',
- text: '鎴戠殑鎶ュ伐骞冲彴',
- tip: '鐐瑰嚮杩涘叆',
- url: '/pages/baogong/table',
- id: 11,
- }, {
- img: '../../static/icon/icon13.png',
- text: '涓婃ā鍗�',
- tip: '鏌ョ湅璇︽儏',
- url: '/pages/MJGL/shangmudan/table',
- id: 12,
- }, {
- img: '../../static/icon/icon13.png',
- text: '涓嬫ā鍗�',
- tip: '鏌ョ湅璇︽儏',
- url: '',
- id: 13,
- }, {
- img: '../../static/icon/icon32.png',
- text: '璁惧杩愯鐘舵��',
- tip: '鏌ョ湅璇︽儏',
- url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai',
- id: 14,
- }, {
- img: '../../static/icon/icon6.png',
- text: '妯″叿鐘舵�佸垎鏋�',
- tip: '鏌ョ湅璇︽儏',
- url: '/pages/mujvzhuangtai/mujvzhuangtai',
- id: 15,
- }]
- // itemData: [{
- // // img:'../../static/icon0.png',
- // // text:'鎶ヨ〃涓績',
- // // url:'/pages/shebeilvli/table',
- // // id:0
- // // },{
- // img: '../../static/icon/icon_a1.png',
- // text: '璁惧妗f',
- // url: '/pages/shebeidangan/table',
- // id: 1
- // }, {
- // img: '../../static/icon/icon_a2.png',
- // text: '璁惧淇濆吇璁″垝鍗�',
- // url: '/pages/baoyangjihua/table',
- // id: 2
- // }, {
- // img: '../../static/icon/icon_a3.png',
- // text: '璁惧淇濆吇璁板綍鍗�',
- // url: '/pages/baoyangjilu/table',
- // id: 3
- // // },{
- // // img:'../../static/icon/icon_a4.png',
- // // text:'璁惧鐐规璁″垝鍗�',
- // // url:'',
- // // id:4
- // // },{
- // // img:'../../static/icon/icon_a5.png',
- // // text:'璁惧鐐规璁板綍鍗�',
- // // url:'',
- // // id:5,
- // }, {
- // img: '../../static/icon/icon_a6.png',
- // text: '璁惧鏁呴殰鐧昏琛�',
- // url: '/pages/guzhangdengji/table',
- // id: 6
- // }, {
- // img: '../../static/icon/icon_a7.png',
- // text: '璁惧缁翠慨璁板綍鍗�',
- // url: '/pages/shebeiweixiu/table',
- // id: 7,
- // }, {
- // img: '../../static/icon/icon_a8.png',
- // text: '璁惧灞ュ巻',
- // url: '/pages/shebeilvli/table',
- // id: 8,
- // }, {
- // img: '../../static/icon/icon_a9.png',
- // text: '宸ュ簭杩涚珯鎺ユ敹鍗�',
- // url: '/pages/gongxuIn/table',
- // id: 9,
- // }, {
- // img: '../../static/icon/icon_a10.png',
- // text: '宸ュ簭鍑虹珯姹囨姤鍗�',
- // url: '/pages/gongxuOut/table',
- // id: 10,
- // }, {
- // img: '../../static/icon/icon_a11.png',
- // text: '宸ュ簭濮斿鍙戝嚭鍗�',
- // url: '/pages/weiwaigxIn/table',
- // id: 11,
- // }, {
- // img: '../../static/icon/icon_a12.png',
- // text: '宸ュ簭濮斿鎺ユ敹鍗�',
- // url: '/pages/weiwaigxOut/table',
- // id: 12,
- // // }, {
- // // img: '../../static/icon/icon_a13.png',
- // // text: '璁惧绠$悊',
- // // url: '',
- // // id: 13,
- // }, {
- // img: '../../static/icon/icon_a14.png',
- // text: '鎶ュ伐骞冲彴',
- // url: '/pages/baogong/table',
- // id: 14,
- // }, {
- // img: '../../static/icon/icon_a15.png',
- // text: '寮傚父鍙嶉鍗�',
- // url: '/pages/yichang/table',
- // id: 15,
- // }, {
- // img: '../../static/icon/icon_a16.png',
- // text: '寮傚父鍙嶉澶勭悊鍗�',
- // url: '/pages/yichang/list',
- // id: 16,
- // }]
- }
- },
- onLoad() {
+ export default {
+ data() {
+ return {
+ serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+ itemData: [{
+ img: '../../static/icon/icon9.png',
+ text: '宸ュ簭杩涚珯鎺ユ敹鍗曟柊澧�',
+ tip: '绔嬪嵆鏂板',
+ url: '/pages/gongxuIn/form',
+ id: 1,
+ }, {
+ img: '../../static/icon/icon9.png',
+ text: '宸ュ簭杩涚珯鎺ユ敹鍗曞垪琛�',
+ tip: '鏌ョ湅鍒楄〃',
+ url: '/pages/gongxuIn/table',
+ id: 2,
+ }, {
+ img: '../../static/icon/icon10.png',
+ text: '宸ュ簭鍑虹珯姹囨姤鍗曟柊澧�',
+ tip: '绔嬪嵆鏂板',
+ url: '/pages/gongxuOut/form',
+ id: 3,
+ }, {
+ img: '../../static/icon/icon10.png',
+ text: '宸ュ簭鍑虹珯姹囨姤鍗曞垪琛�',
+ tip: '鏌ョ湅鍒楄〃',
+ url: '/pages/gongxuOut/table',
+ id: 4,
+ }, {
+ img: '../../static/icon/icon11.png',
+ text: '宸ュ簭濮斿鍙戝嚭鍗曟柊澧�',
+ tip: '绔嬪嵆鏂板',
+ url: '/pages/weiwaigxIn/form',
+ id: 5,
+ }, {
+ img: '../../static/icon/icon11.png',
+ text: '宸ュ簭濮斿鍙戝嚭鍗曞垪琛�',
+ tip: '鏌ョ湅鍒楄〃',
+ url: '/pages/weiwaigxIn/table',
+ id: 6,
+ }, {
+ img: '../../static/icon/icon12.png',
+ text: '宸ュ簭濮斿鎺ユ敹鍗曟柊澧�',
+ tip: '绔嬪嵆鏂板',
+ url: '/pages/weiwaigxOut/form',
+ id: 7,
+ }, {
+ img: '../../static/icon/icon12.png',
+ text: '宸ュ簭濮斿鎺ユ敹鍗曞垪琛�',
+ tip: '鏌ョ湅鍒楄〃',
+ url: '/pages/weiwaigxOut/table',
+ id: 8,
+ }
+ // , {
+ // img: '../../static/icon/icon1.png',
+ // text: '璁惧妗f鏌ヨ',
+ // tip: '鏌ョ湅璇︽儏',
+ // url: '/pages/shebeidangan/table',
+ // id: 9,
+ // }, {
+ // img: '../../static/icon/icon8.png',
+ // text: '璁惧灞ュ巻鏌ヨ',
+ // tip: '鏌ョ湅璇︽儏',
+ // url: '/pages/shebeilvli/table',
+ // id: 10,
+ // }, {
+ // img: '../../static/icon/icon14.png',
+ // text: '鎴戠殑鎶ュ伐骞冲彴',
+ // tip: '鐐瑰嚮杩涘叆',
+ // url: '/pages/baogong/table',
+ // id: 11,
+ // }, {
+ // img: '../../static/icon/icon13.png',
+ // text: '涓婃ā鍗�',
+ // tip: '鏌ョ湅璇︽儏',
+ // url: '/pages/MJGL/shangmudan/table',
+ // id: 12,
+ // }, {
+ // img: '../../static/icon/icon13.png',
+ // text: '涓嬫ā鍗�',
+ // tip: '鏌ョ湅璇︽儏',
+ // url: '',
+ // id: 13,
+ // }, {
+ // img: '../../static/icon/icon32.png',
+ // text: '璁惧杩愯鐘舵��',
+ // tip: '鏌ョ湅璇︽儏',
+ // url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai',
+ // id: 14,
+ // }, {
+ // img: '../../static/icon/icon6.png',
+ // text: '妯″叿鐘舵�佸垎鏋�',
+ // tip: '鏌ョ湅璇︽儏',
+ // url: '/pages/mujvzhuangtai/mujvzhuangtai',
+ // id: 15,
+ // },
+ ]
+ // itemData: [{
+ // // img:'../../static/icon0.png',
+ // // text:'鎶ヨ〃涓績',
+ // // url:'/pages/shebeilvli/table',
+ // // id:0
+ // // },{
+ // img: '../../static/icon/icon_a1.png',
+ // text: '璁惧妗f',
+ // url: '/pages/shebeidangan/table',
+ // id: 1
+ // }, {
+ // img: '../../static/icon/icon_a2.png',
+ // text: '璁惧淇濆吇璁″垝鍗�',
+ // url: '/pages/baoyangjihua/table',
+ // id: 2
+ // }, {
+ // img: '../../static/icon/icon_a3.png',
+ // text: '璁惧淇濆吇璁板綍鍗�',
+ // url: '/pages/baoyangjilu/table',
+ // id: 3
+ // // },{
+ // // img:'../../static/icon/icon_a4.png',
+ // // text:'璁惧鐐规璁″垝鍗�',
+ // // url:'',
+ // // id:4
+ // // },{
+ // // img:'../../static/icon/icon_a5.png',
+ // // text:'璁惧鐐规璁板綍鍗�',
+ // // url:'',
+ // // id:5,
+ // }, {
+ // img: '../../static/icon/icon_a6.png',
+ // text: '璁惧鏁呴殰鐧昏琛�',
+ // url: '/pages/guzhangdengji/table',
+ // id: 6
+ // }, {
+ // img: '../../static/icon/icon_a7.png',
+ // text: '璁惧缁翠慨璁板綍鍗�',
+ // url: '/pages/shebeiweixiu/table',
+ // id: 7,
+ // }, {
+ // img: '../../static/icon/icon_a8.png',
+ // text: '璁惧灞ュ巻',
+ // url: '/pages/shebeilvli/table',
+ // id: 8,
+ // }, {
+ // img: '../../static/icon/icon_a9.png',
+ // text: '宸ュ簭杩涚珯鎺ユ敹鍗�',
+ // url: '/pages/gongxuIn/table',
+ // id: 9,
+ // }, {
+ // img: '../../static/icon/icon_a10.png',
+ // text: '宸ュ簭鍑虹珯姹囨姤鍗�',
+ // url: '/pages/gongxuOut/table',
+ // id: 10,
+ // }, {
+ // img: '../../static/icon/icon_a11.png',
+ // text: '宸ュ簭濮斿鍙戝嚭鍗�',
+ // url: '/pages/weiwaigxIn/table',
+ // id: 11,
+ // }, {
+ // img: '../../static/icon/icon_a12.png',
+ // text: '宸ュ簭濮斿鎺ユ敹鍗�',
+ // url: '/pages/weiwaigxOut/table',
+ // id: 12,
+ // // }, {
+ // // img: '../../static/icon/icon_a13.png',
+ // // text: '璁惧绠$悊',
+ // // url: '',
+ // // id: 13,
+ // }, {
+ // img: '../../static/icon/icon_a14.png',
+ // text: '鎶ュ伐骞冲彴',
+ // url: '/pages/baogong/table',
+ // id: 14,
+ // }, {
+ // img: '../../static/icon/icon_a15.png',
+ // text: '寮傚父鍙嶉鍗�',
+ // url: '/pages/yichang/table',
+ // id: 15,
+ // }, {
+ // img: '../../static/icon/icon_a16.png',
+ // text: '寮傚父鍙嶉澶勭悊鍗�',
+ // url: '/pages/yichang/list',
+ // id: 16,
+ // }]
+ }
+ },
+ onLoad() {
- },
- methods: {
- toUrl(item) {
- if (item.url) {
- uni.navigateTo({
- url: item.url
- })
- } else {
- uni.showToast({
- title:'鍔熻兘寮�鍙戜腑銆傘�傘��',
- icon:'none'
- })
- }
- }
- }
- }
+ },
+ methods: {
+ toUrl(item) {
+ if (item.url) {
+ uni.navigateTo({
+ url: item.url
+ })
+ } else {
+ uni.showToast({
+ title: '鍔熻兘寮�鍙戜腑銆傘�傘��',
+ icon: 'none'
+ })
+ }
+ }
+ }
+ }
</script>
<style lang="scss" scoped>
- page {
- width: 100vw;
- min-height: 100vh;
- background-color: #fff;
- }
-
- .mains {
- width: 720rpx;
- margin: 0 auto;
- display: flex;
- flex-wrap: wrap;
- padding-bottom: 80rpx;
-
- .box {
- width: 25%;
- margin-top: 2.5vh;
- text-align: center;
-
- image {
- width: 18vw;
- height: 18vw;
- }
-
- .texts {
- width: 120rpx;
- margin: 0 auto;
- font-size: 29rpx;
- font-weight: normal;
- color: #333333;
- margin-top: .2vh;
- }
- }
- }
+ page {
+ width: 100vw;
+ min-height: 100vh;
+ background-color: #fff;
+ }
- // .mains {
- // width: 720rpx;
- // margin: 0 auto;
- // padding-bottom: 120rpx;
+ .mains {
+ width: 720rpx;
+ margin: 0 auto;
+ display: flex;
+ flex-wrap: wrap;
+ padding-bottom: 80rpx;
- // .box {
- // width: 680rpx;
- // margin: 0 auto;
- // margin-top: 20rpx;
- // display: flex;
- // align-items: center;
- // background-color: #fff;
- // border-radius: 20rpx;
- // box-shadow: 2upx 2upx 20upx 0 #ddd;
+ .box {
+ width: 25%;
+ margin-top: 2.5vh;
+ text-align: center;
- // image {
- // width: 78rpx;
- // height: 78rpx;
- // padding: 10rpx;
- // margin: 14rpx 30rpx;
- // }
+ image {
+ width: 18vw;
+ height: 18vw;
+ }
- // .texts {
- // font-size: 30rpx;
- // font-weight: normal;
- // color: #333333;
+ .texts {
+ width: 120rpx;
+ margin: 0 auto;
+ font-size: 29rpx;
+ font-weight: normal;
+ color: #333333;
+ margin-top: .2vh;
+ }
+ }
+ }
- // .font1 {}
+ // .mains {
+ // width: 720rpx;
+ // margin: 0 auto;
+ // padding-bottom: 120rpx;
- // .font2 {
- // font-size: 25rpx;
- // color: #999;
- // }
- // }
- // }
- // }
+ // .box {
+ // width: 680rpx;
+ // margin: 0 auto;
+ // margin-top: 20rpx;
+ // display: flex;
+ // align-items: center;
+ // background-color: #fff;
+ // border-radius: 20rpx;
+ // box-shadow: 2upx 2upx 20upx 0 #ddd;
+
+ // image {
+ // width: 78rpx;
+ // height: 78rpx;
+ // padding: 10rpx;
+ // margin: 14rpx 30rpx;
+ // }
+
+ // .texts {
+ // font-size: 30rpx;
+ // font-weight: normal;
+ // color: #333333;
+
+ // .font1 {}
+
+ // .font2 {
+ // font-size: 25rpx;
+ // color: #999;
+ // }
+ // }
+ // }
+ // }
</style>
\ No newline at end of file
diff --git a/pages/tiaomadaying/tiaomadaying.vue b/pages/tiaomadaying/tiaomadaying.vue
index 9dfc35b..a32cb42 100644
--- a/pages/tiaomadaying/tiaomadaying.vue
+++ b/pages/tiaomadaying/tiaomadaying.vue
@@ -1,205 +1,208 @@
<template>
- <view class="container">
- <view class="content">
- <view class="header">鍩烘湰淇℃伅</view>
- <view class="items">
- <view class="item">
- <view class="left">鏉$爜缂栧彿锛�</view>
- <view class="right barcode">
- <input :focus="HBarCodeFocus" name="HBarCode" v-model="lailiaoInfo.barCodeNo"
- @focus="lailiaoInfo.barCodeNo = ''" @confirm="barCodeEntryHandler(lailiaoInfo.barCodeNo)"
- placeholder="璇锋壂鎻忓晢鍝佹潯鐮�" />
- </view>
- <view>
- <uni-icons type="scan"
- style="background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;font-weight: 500;"
- size="20" @click="toScanCode"></uni-icons>
- </view>
- </view>
- <view class="item">
- <view class="left">婧愬崟鍙凤細</view>
- <view class="right">
- <input name="HBillNo" disabled v-model="lailiaoInfo.HBillNo" />
- </view>
- </view>
- <view class="item">
- <view class="left">婧愬崟琛屽彿锛�</view>
- <view class="right">
- <input name="HBillLineNo" disabled v-model="lailiaoInfo.HBillLineNo" />
- </view>
- </view>
- <view class="item">
- <view class="left">鐗╂枡缂栫爜锛�</view>
- <view class="right">
- <input name="HMaterNo" disabled v-model="lailiaoInfo.HMaterNumber" />
- </view>
- </view>
- <view class="item">
- <view class="left">鐗╂枡鍚嶇О锛�</view>
- <view class="right">
- <input name="HMaterName" disabled v-model="lailiaoInfo.HMaterName" />
- </view>
- </view>
- <view class="item">
- <view class="left">瑙勬牸鍨嬪彿锛�</view>
- <view class="right">
- <input name="HMaterType" disabled v-model="lailiaoInfo.HMaterModel" />
- </view>
- </view>
- <view class="item">
- <view class="left">鎵规锛�</view>
- <view class="right">
- <input name="HBatchNo" disabled v-model="lailiaoInfo.HBatchNo" />
- </view>
- </view>
- <view class="item">
- <view class="left">鏁伴噺锛�</view>
- <view class="right">
- <input name="HQty" disabled v-model="lailiaoInfo.HQty" />
- </view>
- </view>
- <view class="item">
- <view class="left">MTO鍙凤細</view>
- <view class="right">
- <input name="HMTONo" disabled v-model="lailiaoInfo.HMTONo" />
- </view>
- </view>
- <view class="item">
- <view class="left">渚涘簲鍟嗭細</view>
- <view class="right">
- <input name="HSupName" disabled v-model="lailiaoInfo.HSupName" />
- </view>
- </view>
- <view class="item">
- <view class="left">渚涘簲鍟嗙畝绉帮細</view>
- <view class="right">
- <input name="HSupNameShort" disabled v-model="lailiaoInfo.HSupNameShort" />
- </view>
- </view>
- </view>
- </view>
- <view class="operation-zone">
- <button class="btn-c" :disabled="buttonStatus.btn1" @click="GenereateBarCode">鐢熸垚</button>
- <button class="btn-c" :disabled="buttonStatus.btn2" @click="print">鎵撳嵃</button>
- <view></view>
- <button class="btn-c" @click="setClearLailiaoInfo">鏂板</button>
- <button class="btn-c" @click="exit">閫�鍑�</button>
- </view>
- <labelPrinterComponentVue ref="labelPrinter" :printInfo="printInfo" :printMode="'cpcl'">
- </labelPrinterComponentVue>
- </view>
+ <view class="container">
+ <view class="content">
+ <view class="header">鍩烘湰淇℃伅</view>
+ <view class="items">
+ <view class="item">
+ <view class="left">鏉$爜缂栧彿锛�</view>
+ <view class="right barcode">
+ <input :focus="HBarCodeFocus" name="HBarCode" v-model="lailiaoInfo.barCodeNo"
+ @focus="lailiaoInfo.barCodeNo = ''" @confirm="barCodeEntryHandler(lailiaoInfo.barCodeNo)"
+ placeholder="璇锋壂鎻忓晢鍝佹潯鐮�" />
+ </view>
+ <view>
+ <uni-icons type="scan"
+ style="background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;font-weight: 500;"
+ size="20" @click="toScanCode"></uni-icons>
+ </view>
+ </view>
+ <view class="item">
+ <view class="left">婧愬崟鍙凤細</view>
+ <view class="right">
+ <input name="HBillNo" disabled v-model="lailiaoInfo.HBillNo" />
+ </view>
+ </view>
+ <view class="item">
+ <view class="left">婧愬崟琛屽彿锛�</view>
+ <view class="right">
+ <input name="HBillLineNo" disabled v-model="lailiaoInfo.HBillLineNo" />
+ </view>
+ </view>
+ <view class="item">
+ <view class="left">鐗╂枡缂栫爜锛�</view>
+ <view class="right">
+ <input name="HMaterNo" disabled v-model="lailiaoInfo.HMaterNumber" />
+ </view>
+ </view>
+ <view class="item">
+ <view class="left">鐗╂枡鍚嶇О锛�</view>
+ <view class="right">
+ <input name="HMaterName" disabled v-model="lailiaoInfo.HMaterName" />
+ </view>
+ </view>
+ <view class="item">
+ <view class="left">瑙勬牸鍨嬪彿锛�</view>
+ <view class="right">
+ <input name="HMaterType" disabled v-model="lailiaoInfo.HMaterModel" />
+ </view>
+ </view>
+ <view class="item">
+ <view class="left">鎵规锛�</view>
+ <view class="right">
+ <input name="HBatchNo" disabled v-model="lailiaoInfo.HBatchNo" />
+ </view>
+ </view>
+ <view class="item">
+ <view class="left">鏁伴噺锛�</view>
+ <view class="right">
+ <input name="HQty" disabled v-model="lailiaoInfo.HQty" />
+ </view>
+ </view>
+ <view class="item">
+ <view class="left">MTO鍙凤細</view>
+ <view class="right">
+ <input name="HMTONo" disabled v-model="lailiaoInfo.HMTONo" />
+ </view>
+ </view>
+ <view class="item">
+ <view class="left">渚涘簲鍟嗭細</view>
+ <view class="right">
+ <input name="HSupName" disabled v-model="lailiaoInfo.HSupName" />
+ </view>
+ </view>
+ <view class="item">
+ <view class="left">渚涘簲鍟嗙畝绉帮細</view>
+ <view class="right">
+ <input name="HSupNameShort" disabled v-model="lailiaoInfo.HSupNameShort" />
+ </view>
+ </view>
+ </view>
+ </view>
+ <view class="operation-zone">
+ <button class="btn-c" :disabled="buttonStatus.btn1" @click="GenereateBarCode">鐢熸垚</button>
+ <button class="btn-c" :disabled="buttonStatus.btn2" @click="print">鎵撳嵃</button>
+ <view></view>
+ <button class="btn-c" @click="setClearLailiaoInfo">鏂板</button>
+ <button class="btn-c" @click="exit">閫�鍑�</button>
+ </view>
+ <labelPrinterComponentVue ref="labelPrinter" :printInfo="printInfo" :printMode="'cpcl'">
+ </labelPrinterComponentVue>
+ </view>
</template>
<script>
- import labelPrinterComponentVue from '../../components/labelPrinterComponent/labelPrinterComponent.vue';
- import {
- CBar,
- CBox,
- CForm,
- CImage,
- CLine,
- CCodeRotation,
- CCodeType,
- CPage,
- CText,
- CFont,
- CBold,
- CRotation,
- CInverse,
- CMag,
- CQRCode,
- CCorrectLevel,
- CSN,
- CStatus,
- CPCL,
- } from "@psdk/cpcl";
- import {
- CommonUtils
- } from '../../utils/common';
- import {
- getUserInfo
- } from "@/utils/auth.js";
- export default {
- data() {
- return {
- HBarCodeFocus: false,
+ import labelPrinterComponentVue from '../../components/labelPrinterComponent/labelPrinterComponent.vue';
+ import {
+ CBar,
+ CBox,
+ CForm,
+ CImage,
+ CLine,
+ CCodeRotation,
+ CCodeType,
+ CPage,
+ CText,
+ CFont,
+ CBold,
+ CRotation,
+ CInverse,
+ CMag,
+ CQRCode,
+ CCorrectLevel,
+ CSN,
+ CStatus,
+ CPCL,
+ } from "@psdk/cpcl";
+ import {
+ CommonUtils
+ } from '../../utils/common';
+ import {
+ getUserInfo
+ } from "@/utils/auth.js";
+ export default {
+ data() {
+ return {
+ HBarCodeFocus: false,
- printInfo: "",
- userInfo: getUserInfo(),
- buttonStatus: {
- btn1: true,
- btn2: true
- },
- barCodeMeta: '',
- generatedBarCode: '',
- lailiaoInfo: {
- HMainID: '',
- HSubID: '',
- HOrderBillNo: '',
- HMaterID: '',
- // barCodeNo: '',
- HBillNo: '',
- HBillLineNo: '',
- HMaterNumber: '',
- HMaterName: '',
- HMaterModel: '',
- HPcsName: '',
- HBatchNo: '',
- HQty: '',
- HMTONo: '',
- HSupName: '',
- HSupNameShort: '',
- HMinQty: '',
- HBQty: '',
- HSupID: '',
- HUnitID: '',
- HDate: '',
- HSourceBillNo: '',
- HMaker: getUserInfo()["Czymc"],
- HSupNumber: '',
- }
- };
- },
- components: {
- labelPrinterComponentVue
- },
- onLoad() {
- this.HBarCodeFocus = true
- },
- methods: {
- async refreshBarcodeState() {
- this.HBarCodeFocus = false
- await this.$nextTick(() => {
- this.HBarCodeFocus = true
- this.lailiaoInfo.barCodeNo = ""
- })
- },
- async print() {
- if (this.$printer.isConnected() === false) {
- this.$refs.labelPrinter.openPopup()
- } else {
- let HBarCodeNoStr =
- `${this.lailiaoInfo.HBillNo}@${this.lailiaoInfo.HBillLineNo}@${this.lailiaoInfo.HMaterNumber || ''}@${this.lailiaoInfo.HMTONo || ''}@${parseFloat(this.lailiaoInfo.HQty||0).toFixed(10)}@${this.lailiaoInfo.HSupNumber || ''}`
+ printInfo: "",
+ userInfo: getUserInfo(),
+ buttonStatus: {
+ btn1: true,
+ btn2: true
+ },
+ barCodeMeta: '',
+ generatedBarCode: '',
+ lailiaoInfo: {
+ HMainID: '',
+ HSubID: '',
+ HOrderBillNo: '',
+ HMaterID: '',
+ // barCodeNo: '',
+ HBillNo: '',
+ HBillLineNo: '',
+ HMaterNumber: '',
+ HMaterName: '',
+ HMaterModel: '',
+ HPcsName: '',
+ HBatchNo: '',
+ HQty: '',
+ HMTONo: '',
+ HSupName: '',
+ HSupNameShort: '',
+ HMinQty: '',
+ HBQty: '',
+ HSupID: '',
+ HUnitID: '',
+ HDate: '',
+ HSourceBillNo: '',
+ HMaker: getUserInfo()["Czymc"],
+ HSupNumber: '',
+ HStyleNo: '',
+ HGroup: '',
+ HCustomNo: '',
+ }
+ };
+ },
+ components: {
+ labelPrinterComponentVue
+ },
+ onLoad() {
+ this.HBarCodeFocus = true
+ },
+ methods: {
+ async refreshBarcodeState() {
+ this.HBarCodeFocus = false
+ await this.$nextTick(() => {
+ this.HBarCodeFocus = true
+ this.lailiaoInfo.barCodeNo = ""
+ })
+ },
+ async print() {
+ if (this.$printer.isConnected() === false) {
+ this.$refs.labelPrinter.openPopup()
+ } else {
+ let HBarCodeNoStr =
+ `${this.lailiaoInfo.HBillNo}@${this.lailiaoInfo.HBillLineNo}@${this.lailiaoInfo.HMaterNumber || ''}@${this.lailiaoInfo.HMTONo || ''}@${parseFloat(this.lailiaoInfo.HQty||0).toFixed(10)}@${this.lailiaoInfo.HSupNumber || ''}`
- let pcsInfo = this.lailiaoInfo.HPcsName ? '(' + this.lailiaoInfo.HPcsName + ')' : ''
+ let pcsInfo = this.lailiaoInfo.HPcsName ? '(' + this.lailiaoInfo.HPcsName + ')' : ''
- this.printInfo = `! 0 200 200 400 1
+ this.printInfo = `! 0 200 200 400 1
PAGE-WIDTH 608
SETQRVER 3
-B QR 470 30 Q 0 U 3
+B QR 480 30 Q 0 U 3
LA,${HBarCodeNoStr}
ENDQR
T 24 0 0 30 渚涘簲鍟�: ${this.lailiaoInfo.HSupName}
T 55 0 0 55 (Supplier)
-T 24 0 0 75 渚涘簲鍟嗘枡鍙�: ${this.lailiaoInfo.HMaterNumber}
+T 24 0 0 75 渚涘簲鍟嗘枡鍙�: ${this.lailiaofo.HMaterNumber}
T 55 0 0 100 (Supplier Sku No.)
T 24 0 0 120 鐗╂枡鍚嶇О: ${this.lailiaoInfo.HMaterName}
T 55 0 0 145 (Material Code)
-T 24 0 0 165 娆惧彿:
+T 24 0 0 165 娆惧彿: ${this.lailiaoInfo.HStyleNo}
T 55 0 0 190 (Style No.)
-T 24 0 300 165 瀹㈡埛缂栧彿:
+T 24 0 300 165 瀹㈡埛缂栧彿: ${this.lailiaoInfo.HCustomNo}
T 55 0 300 190 (Consumer No.)
-T 24 0 0 210 鍒嗙粍:
+T 24 0 0 210 鍒嗙粍: ${this.lailiaoInfo.HGroup}
T 55 0 0 235 (Group)
T 24 0 300 210 瑙勬牸: ${this.lailiaoInfo.HMaterModel}
T 55 0 300 235 (SKU NO.)
@@ -224,381 +227,387 @@
T 55 0 440 370 (Spec. accepted)
FORM
PRINT`
- await this.$nextTick(() => {
- this.$refs.labelPrinter.execPrint()
- })
- }
- },
- setLailiaoInfo(data, row) {
- if (row > data.length) {
- CommonUtils.playSound(0)
- return uni.showToast({
- icon: 'none',
- title: '鏌ヨ鐨勫崟鎹彿涓嶅瓨鍦�...'
- })
+ await this.$nextTick(() => {
+ this.$refs.labelPrinter.execPrint()
+ })
+ }
+ },
+ setLailiaoInfo(data, row) {
+ if (row > data.length) {
+ CommonUtils.playSound(0)
+ return uni.showToast({
+ icon: 'none',
+ title: '鏌ヨ鐨勫崟鎹彿涓嶅瓨鍦�...'
+ })
- }
- let d = data[row - 1]
- console.log('鏁伴噺: ', parseFloat(d['鏁伴噺']).toFixed(10));
- this.lailiaoInfo = Object.assign(this.lailiaoInfo, {
- HMaterNumber: d['鐗╂枡缂栫爜'],
- HMaterName: d['鐗╂枡鍚嶇О'],
- HMaterModel: d['瑙勬牸鍨嬪彿'],
- // HBatchNo: d['鎵瑰彿'],
- HQty: d['鏁伴噺'],
- HMinQty: d['鏁伴噺'],
- HBQty: d['鏁伴噺'],
- HSupID: d['HSupID'],
- HSupNumber: d['渚涘簲鍟嗕唬鐮�'],
- HSupName: d['渚涘簲鍟�'],
- HUnitID: d['HUnitID'],
- HPcsName: d['璁¢噺鍗曚綅'],
- HSupNameShort: d['渚涘簲鍟�'],
- HMTONo: d['璁″垝璺熻釜鍙�'],
- HMainID: d['hmainid'],
- HSubID: d['HEntryID'],
- HMaterID: d['HMaterID'],
- HDate: d['鏃ユ湡'],
- })
- CommonUtils.playSound(1)
- this.buttonStatus.btn2 = true
- },
- setClearLailiaoInfo() {
- this.lailiaoInfo = {
- HMainID: '',
- HSubID: '',
- HOrderBillNo: '',
- HMaterID: '',
- barCodeNo: '',
- HBillNo: '',
- HBillLineNo: '',
- HMaterNumber: '',
- HMaterName: '',
- HMaterModel: '',
- HPcsName: '',
- HBatchNo: '',
- HQty: '',
- HMTONo: '',
- HSupName: '',
- HSupNameShort: '',
- HMinQty: '',
- HBQty: '',
- HSupID: '',
- HUnitID: '',
- HDate: '',
- HSourceBillNo: '',
- HSupNumber: '',
- }
+ }
+ let d = data[0]
+ console.log('鏁伴噺: ', parseFloat(d['鏁伴噺']).toFixed(10));
+ this.lailiaoInfo = Object.assign(this.lailiaoInfo, {
+ HMaterNumber: d['鐗╂枡缂栫爜'],
+ HMaterName: d['鐗╂枡鍚嶇О'],
+ HMaterModel: d['瑙勬牸鍨嬪彿'],
+ // HBatchNo: d['鎵瑰彿'],
+ HQty: d['鏁伴噺'],
+ HMinQty: d['鏁伴噺'],
+ HBQty: d['鏁伴噺'],
+ HSupID: d['HSupID'],
+ HSupNumber: d['渚涘簲鍟嗕唬鐮�'],
+ HSupName: d['渚涘簲鍟�'],
+ HUnitID: d['HUnitID'],
+ HPcsName: d['璁¢噺鍗曚綅'],
+ HSupNameShort: d['渚涘簲鍟�'],
+ HMTONo: d['璁″垝璺熻釜鍙�'],
+ HMainID: d['hmainid'],
+ HSubID: d['HEntryID'],
+ HMaterID: d['HMaterID'],
+ HDate: d['鏃ユ湡'],
+ HStyleNo: d['娆惧彿'],
+ HGroup: d['鍒嗙粍'],
+ HCustomNo: d['瀹㈡埛缂栧彿']
+ })
+ CommonUtils.playSound(1)
+ this.buttonStatus.btn2 = true
+ },
+ setClearLailiaoInfo() {
+ this.lailiaoInfo = {
+ HMainID: '',
+ HSubID: '',
+ HOrderBillNo: '',
+ HMaterID: '',
+ barCodeNo: '',
+ HBillNo: '',
+ HBillLineNo: '',
+ HMaterNumber: '',
+ HMaterName: '',
+ HMaterModel: '',
+ HPcsName: '',
+ HBatchNo: '',
+ HQty: '',
+ HMTONo: '',
+ HSupName: '',
+ HSupNameShort: '',
+ HMinQty: '',
+ HBQty: '',
+ HSupID: '',
+ HUnitID: '',
+ HDate: '',
+ HSourceBillNo: '',
+ HSupNumber: '',
+ HStyleNo: '',
+ HGroup: '',
+ HCustomNo: '',
+ }
- this.buttonStatus = {
- btn1: true,
- btn2: false
- }
-
- this.refreshBarcodeState()
- },
- barCodeEntryHandler(barCode) {
- if (CommonUtils.isEmpty(barCode) === false) {
- console.log('鏉$爜鍐呭锛�' + barCode);
- this.lailiaoInfo.barCodeNo = barCode;
- if (barCode.includes("@") === false) {
- this.buttonStatus.btn2 = false
- CommonUtils.playSound(0)
- this.refreshBarcodeState()
- return uni.showToast({
- icon: 'none',
- title: '鏉$爜鏍煎紡閿欒锛岃閲嶆柊鎵弿...'
- })
- }
- let barCodeInfo = barCode.split("@")
- let [PurchaseBillNo, Row] = barCodeInfo
- this.lailiaoInfo.HBillNo = PurchaseBillNo
- this.lailiaoInfo.HSourceBillNo = PurchaseBillNo
- this.lailiaoInfo.HBillLineNo = Row
- console.log({
- sWhere: ` and 鍗曟嵁鍙� = '${PurchaseBillNo}'`,
- user: this.userInfo.Czymc,
- })
- CommonUtils.doRequest(
- "/Cg_POOrderBill/list", {
- sWhere: ` and 鍗曟嵁鍙� = '${PurchaseBillNo}'`,
- user: this.userInfo.Czymc,
- },
- (res) => {
- console.log('閲囪喘璁㈠崟: ', res)
- let {
- data,
- count,
- Message
- } = res.data
- if (count > 0) {
+ this.buttonStatus = {
+ btn1: true,
+ btn2: false
+ }
- this.setLailiaoInfo(data, Row)
- // uni.showToast({
- // icon: 'none',
- // title: Message
- // })
- this.buttonStatus.btn1 = false
+ this.refreshBarcodeState()
+ },
+ barCodeEntryHandler(barCode) {
+ if (CommonUtils.isEmpty(barCode) === false) {
+ console.log('鏉$爜鍐呭锛�' + barCode);
+ this.lailiaoInfo.barCodeNo = barCode;
+ if (barCode.includes("@") === false) {
+ this.buttonStatus.btn2 = false
+ CommonUtils.playSound(0)
+ this.refreshBarcodeState()
+ return uni.showToast({
+ icon: 'none',
+ title: '鏉$爜鏍煎紡閿欒锛岃閲嶆柊鎵弿...'
+ })
+ }
+ let barCodeInfo = barCode.split("@")
+ let [PurchaseBillNo, Row] = barCodeInfo
+ this.lailiaoInfo.HBillNo = PurchaseBillNo
+ this.lailiaoInfo.HSourceBillNo = PurchaseBillNo
+ this.lailiaoInfo.HBillLineNo = Row
+ console.log({
+ sWhere: ` and 鍗曟嵁鍙� = '${PurchaseBillNo}' and 琛屽彿 = ${Row}`,
+ user: this.userInfo.Czymc,
+ })
+ CommonUtils.doRequest(
+ "/Cg_POOrderBill/list", {
+ sWhere: ` and 鍗曟嵁鍙� = '${PurchaseBillNo}' and 琛屽彿 = ${Row}`,
+ user: this.userInfo.Czymc,
+ },
+ (res) => {
+ console.log('閲囪喘璁㈠崟: ', res)
+ let {
+ data,
+ count,
+ Message
+ } = res.data
+ if (count > 0) {
+ console.log('data: ', data);
+ this.setLailiaoInfo(data, Row)
+ // uni.showToast({
+ // icon: 'none',
+ // title: Message
+ // })
+ this.buttonStatus.btn1 = false
- } else {
- CommonUtils.playSound(0)
- this.refreshBarcodeState()
- // uni.showToast({
- // icon: 'none',
- // title: Message
- // })
- this.buttonStatus.btn1 = true
- this.buttonStatus.btn2 = true
- }
- },
- (error) => {
- CommonUtils.playSound(0)
- this.refreshBarcodeState()
- this.buttonStatus.btn1 = true
- this.buttonStatus.btn2 = true
- }
- )
+ } else {
+ CommonUtils.playSound(0)
+ this.refreshBarcodeState()
+ // uni.showToast({
+ // icon: 'none',
+ // title: Message
+ // })
+ this.buttonStatus.btn1 = true
+ this.buttonStatus.btn2 = true
+ }
+ },
+ (error) => {
+ CommonUtils.playSound(0)
+ this.refreshBarcodeState()
+ this.buttonStatus.btn1 = true
+ this.buttonStatus.btn2 = true
+ }
+ )
- }
- },
- toScanCode() {
- var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
- mpaasScanModule.mpaasScan({
- 'hideAlbum': true,
- 'timeoutInterval': '10', //瓒呮椂鏃堕棿
- 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
- }, (ret) => {
- console.log(ret.resp_result)
- if (CommonUtils.isEmpty(ret.resp_result) === false) {
- console.log('鏉$爜鍐呭锛�' + ret.resp_result);
- this.lailiaoInfo.barCodeNo = ret.resp_result;
- if (ret.resp_result.includes("@") === false) {
- return uni.showToast({
- icon: 'none',
- title: '鏉$爜鏍煎紡閿欒锛岃閲嶆柊鎵弿...'
- })
- }
- // let barCodeInfo = ret.resp_result.split("@")
- // let [PurchaseBillNo, Row] = barCodeInfo
- // this.lailiaoInfo.HBillNo = PurchaseBillNo,
- // this.lailiaoInfo.HBillLineNo = Row
- // console.log({
- // sWhere: ` and 鍗曟嵁鍙� = '${PurchaseBillNo}'`,
- // user: this.userInfo.Czymc,
- // })
- // CommonUtils.doRequest(
- // "/Cg_POOrderBill/list", {
- // sWhere: ` and 鍗曟嵁鍙� = '${PurchaseBillNo}'`,
- // user: this.userInfo.Czymc,
- // },
- // (res) => {
- // console.log('閲囪喘璁㈠崟: ', res)
- // let {
- // data,
- // count
- // } = res.data
- // if (count > 0) {
- // this.setLailiaoInfo(data, Row)
- // }
- // },
- // (error) => {
+ }
+ },
+ toScanCode() {
+ var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
+ mpaasScanModule.mpaasScan({
+ 'hideAlbum': true,
+ 'timeoutInterval': '10', //瓒呮椂鏃堕棿
+ 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
+ }, (ret) => {
+ console.log(ret.resp_result)
+ if (CommonUtils.isEmpty(ret.resp_result) === false) {
+ console.log('鏉$爜鍐呭锛�' + ret.resp_result);
+ this.lailiaoInfo.barCodeNo = ret.resp_result;
+ if (ret.resp_result.includes("@") === false) {
+ return uni.showToast({
+ icon: 'none',
+ title: '鏉$爜鏍煎紡閿欒锛岃閲嶆柊鎵弿...'
+ })
+ }
+ // let barCodeInfo = ret.resp_result.split("@")
+ // let [PurchaseBillNo, Row] = barCodeInfo
+ // this.lailiaoInfo.HBillNo = PurchaseBillNo,
+ // this.lailiaoInfo.HBillLineNo = Row
+ // console.log({
+ // sWhere: ` and 鍗曟嵁鍙� = '${PurchaseBillNo}'`,
+ // user: this.userInfo.Czymc,
+ // })
+ // CommonUtils.doRequest(
+ // "/Cg_POOrderBill/list", {
+ // sWhere: ` and 鍗曟嵁鍙� = '${PurchaseBillNo}'`,
+ // user: this.userInfo.Czymc,
+ // },
+ // (res) => {
+ // console.log('閲囪喘璁㈠崟: ', res)
+ // let {
+ // data,
+ // count
+ // } = res.data
+ // if (count > 0) {
+ // this.setLailiaoInfo(data, Row)
+ // }
+ // },
+ // (error) => {
- // }
- // )
- this.barCodeEntryHandler(ret.resp_result)
- }
+ // }
+ // )
+ this.barCodeEntryHandler(ret.resp_result)
+ }
- })
- },
- GenereateBarCode() {
- let HBarCodeNoStr =
- `${this.lailiaoInfo.HBillNo}@${this.lailiaoInfo.HBillLineNo}@${this.lailiaoInfo.HMaterNumber || ''}@${this.lailiaoInfo.HMTONo || ''}@${parseFloat(this.lailiaoInfo.HQty || 0).toFixed(10)}@${this.lailiaoInfo.HSupNumber || ''}`
- let sMain = []
- sMain[0] = this.lailiaoInfo
- let sMainStr = JSON.stringify(sMain);
- //鑾峰彇閫夋嫨鐨勭粍缁�
- let HOrgType = uni.getStorageSync('Organization');
- //鑾峰彇閫夋嫨鐨勫伐鍘備唬鐮�
- let CampanyName = "xxx";
- //鑾峰彇閫夋嫨鐨勬簮鍗曠被鍨�
- let HSourceBillType = "閲囪喘璁㈠崟";
- //鑾峰彇閫夋嫨鐨勬潯鐮佺被鍨�
- let HSelectBarCodeType = "鍝佺鏉$爜";
- //鑾峰彇褰撳墠鐧诲綍浜哄憳
- let UserName = uni.getStorageSync('HUserName');
- let sMainSub = sMainStr + ';' + HOrgType + ';' + HSourceBillType + ';' + HSelectBarCodeType + ';' +
- CampanyName + ';' + UserName + ';' + HBarCodeNoStr;
+ })
+ },
+ GenereateBarCode() {
+ let HBarCodeNoStr =
+ `${this.lailiaoInfo.HBillNo}@${this.lailiaoInfo.HBillLineNo}@${this.lailiaoInfo.HMaterNumber || ''}@${this.lailiaoInfo.HMTONo || ''}@${parseFloat(this.lailiaoInfo.HQty || 0).toFixed(10)}@${this.lailiaoInfo.HSupNumber || ''}`
+ let sMain = []
+ sMain[0] = this.lailiaoInfo
+ let sMainStr = JSON.stringify(sMain);
+ //鑾峰彇閫夋嫨鐨勭粍缁�
+ let HOrgType = uni.getStorageSync('Organization');
+ //鑾峰彇閫夋嫨鐨勫伐鍘備唬鐮�
+ let CampanyName = "xxx";
+ //鑾峰彇閫夋嫨鐨勬簮鍗曠被鍨�
+ let HSourceBillType = "閲囪喘璁㈠崟";
+ //鑾峰彇閫夋嫨鐨勬潯鐮佺被鍨�
+ let HSelectBarCodeType = "鍝佺鏉$爜";
+ //鑾峰彇褰撳墠鐧诲綍浜哄憳
+ let UserName = uni.getStorageSync('HUserName');
+ let sMainSub = sMainStr + ';' + HOrgType + ';' + HSourceBillType + ';' + HSelectBarCodeType + ';' +
+ CampanyName + ';' + UserName + ';' + HBarCodeNoStr;
- CommonUtils.doRequest(
- "/Sc_BarCode/SaveBarCode_NoGenerate", {
- msg: sMainSub,
- CampanyName: CampanyName
- },
- (res) => {
- console.log(res)
- let {
- data,
- count,
- Message
- } = res.data
- if (count > 0) {
- // this.generatedBarCode = data[0]['鏉$爜缂栧彿']/
- // console.log(this.generatedBarCode)
- uni.showToast({
- icon: 'none',
- title: Message
- })
- this.buttonStatus = {
- btn1: true,
- btn2: false
- }
- } else {
- this.buttonStatus = {
- btn1: false,
- btn2: false
- }
- uni.showToast({
- icon: 'none',
- title: Message
- })
- }
- },
- (err) => {
- this.buttonStatus = {
- btn1: false,
- btn2: false
- }
- uni.showToast({
- icon: 'none',
- title: err
- })
- },
- "POST"
- )
- },
- exit() {
- uni.navigateBack()
- }
- }
- }
+ CommonUtils.doRequest(
+ "/Sc_BarCode/SaveBarCode_NoGenerate", {
+ msg: sMainSub,
+ CampanyName: CampanyName
+ },
+ (res) => {
+ console.log(res)
+ let {
+ data,
+ count,
+ Message
+ } = res.data
+ if (count > 0) {
+ // this.generatedBarCode = data[0]['鏉$爜缂栧彿']/
+ // console.log(this.generatedBarCode)
+ uni.showToast({
+ icon: 'none',
+ title: Message
+ })
+ this.buttonStatus = {
+ btn1: true,
+ btn2: false
+ }
+ } else {
+ this.buttonStatus = {
+ btn1: false,
+ btn2: false
+ }
+ uni.showToast({
+ icon: 'none',
+ title: Message
+ })
+ }
+ },
+ (err) => {
+ this.buttonStatus = {
+ btn1: false,
+ btn2: false
+ }
+ uni.showToast({
+ icon: 'none',
+ title: err
+ })
+ },
+ "POST"
+ )
+ },
+ exit() {
+ uni.navigateBack()
+ }
+ }
+ }
</script>
<style lang="scss" scoped>
- * {
- box-sizing: border-box;
- }
+ * {
+ box-sizing: border-box;
+ }
- input {
- padding: 8rpx 20rpx;
- font-size: 30rpx;
- line-height: 30rpx;
- }
+ input {
+ padding: 8rpx 20rpx;
+ font-size: 30rpx;
+ line-height: 30rpx;
+ }
- .uni-input-input[disabled] {
- background-color: #e4e4e4;
- }
+ .uni-input-input[disabled] {
+ background-color: #e4e4e4;
+ }
- .container {
- display: flex;
- flex-direction: column;
- height: 100vh;
- padding: 20rpx 0;
+ .container {
+ display: flex;
+ flex-direction: column;
+ height: 100vh;
+ padding: 20rpx 0;
- .content {
- flex: 1;
- background-image: url('/static/svgs/folder_bg.svg');
- background-size: cover;
- padding: 20rpx;
+ .content {
+ flex: 1;
+ background-image: url('/static/svgs/folder_bg.svg');
+ background-size: cover;
+ padding: 20rpx;
- .header {
- font-size: 30rpx;
- }
+ .header {
+ font-size: 30rpx;
+ }
- .items {
- display: flex;
- flex-direction: column;
- gap: 10rpx;
- padding: 40rpx 0rpx;
+ .items {
+ display: flex;
+ flex-direction: column;
+ gap: 10rpx;
+ padding: 40rpx 0rpx;
- .item {
- display: flex;
- flex-direction: row;
- padding: 0 10rpx;
- gap: 20rpx;
- font-size: 30rpx;
- // height: 1.5rem;
- // justify-content: center;
- align-items: center;
+ .item {
+ display: flex;
+ flex-direction: row;
+ padding: 0 10rpx;
+ gap: 20rpx;
+ font-size: 30rpx;
+ // height: 1.5rem;
+ // justify-content: center;
+ align-items: center;
- .left {
- text-align: left;
- width: 6rem;
- }
+ .left {
+ text-align: left;
+ width: 6rem;
+ }
- .right {
- flex: 1;
- height: 100%;
- padding: 6rpx 0;
- border-radius: 22rpx;
- border: 1px solid #e4e4e4;
- background-color: #e4e4e4;
+ .right {
+ flex: 1;
+ height: 100%;
+ padding: 6rpx 0;
+ border-radius: 22rpx;
+ border: 1px solid #e4e4e4;
+ background-color: #e4e4e4;
- >input {
- height: auto;
- }
+ >input {
+ height: auto;
+ }
- }
+ }
- .barcode {
- background-color: #fff !important;
- }
+ .barcode {
+ background-color: #fff !important;
+ }
- }
- }
- }
+ }
+ }
+ }
- .operation-zone {
- height: 3rem;
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 30rpx;
- padding: 20rpx;
+ .operation-zone {
+ height: 3rem;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 30rpx;
+ padding: 20rpx;
- >view {
- flex: 1;
- }
+ >view {
+ flex: 1;
+ }
- >button {
- width: 4rem;
- padding: 0;
- font-size: 25rpx;
- border-radius: 50rpx;
- line-height: 66rpx;
- font-size: 28rpx;
- }
+ >button {
+ width: 4rem;
+ padding: 0;
+ font-size: 25rpx;
+ border-radius: 50rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
- >button[disabled] {
- background-color: #acacac;
- color: #fff;
- }
+ >button[disabled] {
+ background-color: #acacac;
+ color: #fff;
+ }
- .btn-a {
- background-color: #acacac;
- color: #fff;
- }
+ .btn-a {
+ background-color: #acacac;
+ color: #fff;
+ }
- .btn-b {
- background-color: #41a863;
- color: #fff;
- }
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ }
- .btn-c {
- background-color: #3a78ff;
- color: #fff;
- }
- }
- }
+ .btn-c {
+ background-color: #3a78ff;
+ color: #fff;
+ }
+ }
+ }
</style>
\ No newline at end of file
diff --git a/pages/weiwaigxOut/form.vue b/pages/weiwaigxOut/form.vue
index 23452f3..de227d0 100644
--- a/pages/weiwaigxOut/form.vue
+++ b/pages/weiwaigxOut/form.vue
@@ -1,145 +1,159 @@
<template>
- <view>
- <view class="form">
- <view class="form-item">
- <view class="title"><text>*</text>鏉″舰鐮�:</view>
- <view class="right" style="width: 380rpx;">
- <input name="HBarCode" v-model="hform.HBarCode" placeholder="璇锋壂鎻忔潯鐮�" @confirm="toInCode(e)"/>
- </view>
- <uni-icons type="scan" style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" size="20" @click="toScanCode"></uni-icons>
- </view>
- <view class="form-item">
- <view class="title"><text>*</text>娴佹按鍙�:</view>
- <view class="right" style="width: 380rpx;">
- <input v-model="hform.HProcNo" placeholder="璇疯緭鍏�(鎴栨壂鎻�)娴佹按鍙�" @confirm="getHProcNoData(hform.HBarCode,hform.HProcNo)"/>
- </view>
- <uni-icons type="scan" style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" size="20" @click="toScanProcNo"></uni-icons>
- </view>
- <view class="form-item">
- <view class="title">鍚堟牸鏁伴噺:</view>
- <view class="right">
- <input v-model="hform.HQty" placeholder="璇疯緭鍏ュ悎鏍兼暟閲�" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">涓嶈壇鏁伴噺:</view>
- <view class="right">
- <input v-model="hform.HPieceQty" placeholder="璇疯緭鍏ヤ笉鑹暟閲�" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鎶ュ簾鏁伴噺:</view>
- <view class="right">
- <input v-model="hform.HWasterQty" placeholder="璇疯緭鍏ユ姤搴熸暟閲�" />
- </view>
- </view>
- <view class="form-item">
- <view class="title"><text>*</text>渚涘簲鍟�:</view>
- <view class="right">
- <uni-combox :candidates="arrayHSupName" placeholder="璇烽�夋嫨渚涘簲鍟�" v-model="hform.HSupName" @input="HSupNameChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title"><text>*</text>鎿嶄綔鍛�:</view>
- <view class="right">
- <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName" @input="HEmpNameChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title">閫佽揣鍗曞彿:</view>
- <view class="right">
- <input v-model="hform.HInnerBillNo" placeholder="璇疯緭鍏ラ�佽揣鍗曞彿" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">濮斿宸ュ崟鍙�:</view>
- <view class="right">
- <input v-model="hform.HWWWorkOrderBillNo" placeholder="璇疯緭鍏ュ澶栧伐鍗曞彿" />
- </view>
- </view>
- <view class="form-item">
- <view class="title"><text>*</text>鐢熶骇鐝粍:</view>
- <view class="right">
- <uni-combox :candidates="arrayHGroupName" placeholder="璇烽�夋嫨鐢熶骇鐝粍" v-model="hform.HGroupName" @input="HGroupNameChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title">澶囨敞:</view>
- <view class="right">
- <textarea name="HRemark" v-model="hform.HRemark" auto-height placeholder="璇疯緭鍏ュ娉�"></textarea>
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡:</view>
- <view class="right">
- <picker mode="date" v-model="hform.HDate" @change="HDateChange">
- <input disabled v-model="hform.HDate" placeholder="璇烽�夋嫨鏃ユ湡" />
- </picker>
- </view>
- </view>
-
- <view class="tab_area"></view>
-
- <view class="form-item">
- <view class="title">鍗曟嵁鍙�:</view>
- <view class="righton">
- <input name="HBillNo" disabled v-model="hform.HBillNo" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鐢熶骇璁㈠崟:</view>
- <view class="righton">
- <input name="HICMOBillNo" disabled v-model="hform.HICMOBillNo" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">娴佽浆鍗�:</view>
- <view class="righton">
- <input disabled v-model="hform.HProcExchBillNo" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鐗╂枡浠g爜:</view>
- <view class="righton">
- <input disabled v-model="hform.HMaterNumber" />
- <!-- <uni-combox :candidates="arrayHMaterNumber" placeholder="璇烽�夋嫨浜у搧浠g爜" v-model="hform.HMaterNumber" @input="HMaterNumberChange"></uni-combox> -->
- </view>
- </view>
- <view class="form-item">
- <view class="title">鐗╂枡鍚嶇О:</view>
- <view class="righton">
- <input v-model="hform.HMaterName" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">瑙勬牸鍨嬪彿:</view>
- <view class="righton">
- <input v-model="hform.HMaterModel" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">璁¢噺鍗曚綅:</view>
- <view class="righton">
- <input v-model="hform.鍗曚綅" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">宸ュ簭:</view>
-<!-- <view class="right">
+ <view>
+ <view class="form">
+ <view class="form-item">
+ <view class="title"><text>*</text>鏉″舰鐮�:</view>
+ <view class="right" style="width: 380rpx;">
+ <input name="HBarCode" v-model="hform.HBarCode" placeholder="璇锋壂鎻忔潯鐮�" @confirm="toInCode(e)" />
+ </view>
+ <uni-icons type="scan"
+ style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
+ size="20" @click="toScanCode"></uni-icons>
+ </view>
+ <view class="form-item">
+ <view class="title"><text>*</text>娴佹按鍙�:</view>
+ <view class="right" style="width: 380rpx;">
+ <input v-model="hform.HProcNo" placeholder="璇疯緭鍏�(鎴栨壂鎻�)娴佹按鍙�"
+ @confirm="getHProcNoData(hform.HBarCode,hform.HProcNo)" />
+ </view>
+ <uni-icons type="scan"
+ style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
+ size="20" @click="toScanProcNo"></uni-icons>
+ </view>
+ <view class="form-item">
+ <view class="title">鏈姤宸ユ暟閲�:</view>
+ <view class="righton">
+ <input disabled v-model="hform.HNotReportQty" placeholder="璇疯緭鍏ュ悎鏍兼暟閲�" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鍚堟牸鏁伴噺:</view>
+ <view class="right">
+ <input v-model="hform.HQty" placeholder="璇疯緭鍏ュ悎鏍兼暟閲�" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">涓嶈壇鏁伴噺:</view>
+ <view class="right">
+ <input v-model="hform.HPieceQty" placeholder="璇疯緭鍏ヤ笉鑹暟閲�" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鎶ュ簾鏁伴噺:</view>
+ <view class="right">
+ <input v-model="hform.HWasterQty" placeholder="璇疯緭鍏ユ姤搴熸暟閲�" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title"><text>*</text>渚涘簲鍟�:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHSupName" placeholder="璇烽�夋嫨渚涘簲鍟�" v-model="hform.HSupName"
+ @input="HSupNameChange"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title"><text>*</text>鎿嶄綔鍛�:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHEmpName" placeholder="璇烽�夋嫨鎿嶄綔鍛�" v-model="hform.HEmpName"
+ @input="HEmpNameChange"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">閫佽揣鍗曞彿:</view>
+ <view class="right">
+ <input v-model="hform.HInnerBillNo" placeholder="璇疯緭鍏ラ�佽揣鍗曞彿" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">濮斿宸ュ崟鍙�:</view>
+ <view class="right">
+ <input v-model="hform.HWWWorkOrderBillNo" placeholder="璇疯緭鍏ュ澶栧伐鍗曞彿" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title"><text>*</text>鐢熶骇鐝粍:</view>
+ <view class="right">
+ <uni-combox :candidates="arrayHGroupName" placeholder="璇烽�夋嫨鐢熶骇鐝粍" v-model="hform.HGroupName"
+ @input="HGroupNameChange"></uni-combox>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">澶囨敞:</view>
+ <view class="right">
+ <textarea name="HRemark" v-model="hform.HRemark" auto-height placeholder="璇疯緭鍏ュ娉�"></textarea>
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鍗曟嵁鏃ユ湡:</view>
+ <view class="right">
+ <picker mode="date" v-model="hform.HDate" @change="HDateChange">
+ <input disabled v-model="hform.HDate" placeholder="璇烽�夋嫨鏃ユ湡" />
+ </picker>
+ </view>
+ </view>
+
+ <view class="tab_area"></view>
+
+ <view class="form-item">
+ <view class="title">鍗曟嵁鍙�:</view>
+ <view class="righton">
+ <input name="HBillNo" disabled v-model="hform.HBillNo" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐢熶骇璁㈠崟:</view>
+ <view class="righton">
+ <input name="HICMOBillNo" disabled v-model="hform.HICMOBillNo" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">娴佽浆鍗�:</view>
+ <view class="righton">
+ <input disabled v-model="hform.HProcExchBillNo" />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐗╂枡浠g爜:</view>
+ <view class="righton">
+ <input disabled v-model="hform.HMaterNumber" />
+ <!-- <uni-combox :candidates="arrayHMaterNumber" placeholder="璇烽�夋嫨浜у搧浠g爜" v-model="hform.HMaterNumber" @input="HMaterNumberChange"></uni-combox> -->
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐗╂枡鍚嶇О:</view>
+ <view class="righton">
+ <input v-model="hform.HMaterName" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">瑙勬牸鍨嬪彿:</view>
+ <view class="righton">
+ <input v-model="hform.HMaterModel" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">璁¢噺鍗曚綅:</view>
+ <view class="righton">
+ <input v-model="hform.鍗曚綅" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">宸ュ簭:</view>
+ <!-- <view class="right">
<uni-combox :candidates="arrayHProcName" placeholder="璇烽�夋嫨褰撳墠宸ュ簭" v-model="hform.HProcName" @input="HProcNameChange"></uni-combox>
</view> -->
- <view class="righton">
- <input v-model="hform.HProcName" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鐢熶骇缁勭粐:</view>
- <view class="righton">
- <input v-model="hform.HPRDOrg" disabled />
- </view>
- </view>
-
-<!-- <view class="form-item">
+ <view class="righton">
+ <input v-model="hform.HProcName" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鐢熶骇缁勭粐:</view>
+ <view class="righton">
+ <input v-model="hform.HPRDOrg" disabled />
+ </view>
+ </view>
+
+ <!-- <view class="form-item">
<view class="title">璁㈠崟鏁伴噺:</view>
<view class="right">
<input name="HICMOQty" v-model="hform.HICMOQty" placeholder="璇疯緭鍏ヨ鍗曟暟閲�" />
@@ -198,7 +212,7 @@
</view>
</view> -->
-<!-- <view class="form-item">
+ <!-- <view class="form-item">
<view class="title">鎿嶄綔鍛�:</view>
<view class="right">
<input v-model="hform.HEmp" placeholder="璇疯緭鍏ユ搷浣滃憳" />
@@ -222,65 +236,65 @@
<input v-model="hform.HDept" placeholder="璇疯緭鍏ラ儴闂�" />
</view>
</view> -->
-
- <!-- <view class="tab_area"></view> -->
-
-<!-- <view class="form-item">
+
+ <!-- <view class="tab_area"></view> -->
+
+ <!-- <view class="form-item">
<view class="title">閫夋嫨鏂囦欢:</view>
<view class="right">
1111
</view>
</view> -->
-
- <view class="tab_area"></view>
-
- <view v-if="showmore">
- <view class="form-item">
- <view class="title">璁㈠崟璺熻釜鍙�:</view>
- <view class="righton">
- <input v-model="hform.HOrderProcNO" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍒跺崟浜�:</view>
- <view class="righton">
- <input v-model="hform.HMaker" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍒跺崟鏃ユ湡:</view>
- <view class="righton">
- <input v-if="hform.HMakeDate" v-model="hform.HMakeDate.substr(0,10)" disabled/>
- <input v-else v-model="hform.HMakeDate" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">淇敼浜�:</view>
- <view class="righton">
- <input v-model="hform.HUpDater" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
- <view class="righton">
- <input v-if="hform.HUpDateDate" v-model="hform.HUpDateDate.substr(0,10)" disabled/>
- <input v-else v-model="hform.HUpDateDate" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
- <view class="righton">
- <input v-model="hform.HChecker" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
- <view class="righton">
- <input v-if="hform.HCheckDate" v-model="hform.HCheckDate.substr(0,10)" disabled/>
- <input v-else v-model="hform.HCheckDate" disabled/>
- </view>
- </view>
-<!-- <view class="form-item">
+
+ <view class="tab_area"></view>
+
+ <view v-if="showmore">
+ <view class="form-item">
+ <view class="title">璁㈠崟璺熻釜鍙�:</view>
+ <view class="righton">
+ <input v-model="hform.HOrderProcNO" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鍒跺崟浜�:</view>
+ <view class="righton">
+ <input v-model="hform.HMaker" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">鍒跺崟鏃ユ湡:</view>
+ <view class="righton">
+ <input v-if="hform.HMakeDate" v-model="hform.HMakeDate.substr(0,10)" disabled />
+ <input v-else v-model="hform.HMakeDate" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">淇敼浜�:</view>
+ <view class="righton">
+ <input v-model="hform.HUpDater" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">淇敼鏃ユ湡:</view>
+ <view class="righton">
+ <input v-if="hform.HUpDateDate" v-model="hform.HUpDateDate.substr(0,10)" disabled />
+ <input v-else v-model="hform.HUpDateDate" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">瀹℃牳浜�:</view>
+ <view class="righton">
+ <input v-model="hform.HChecker" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">瀹℃牳鏃ユ湡:</view>
+ <view class="righton">
+ <input v-if="hform.HCheckDate" v-model="hform.HCheckDate.substr(0,10)" disabled />
+ <input v-else v-model="hform.HCheckDate" disabled />
+ </view>
+ </view>
+ <!-- <view class="form-item">
<view class="title">鍏抽棴浜�:</view>
<view class="righton">
<input v-model="hform.HCloseMan" disabled/>
@@ -293,570 +307,596 @@
<input v-else v-model="hform.HCloseDate" disabled/>
</view>
</view> -->
- <view class="form-item">
- <view class="title">浣滃簾浜�:</view>
- <view class="righton">
- <input v-model="hform.HDeleteMan" disabled/>
- </view>
- </view>
- <view class="form-item">
- <view class="title">浣滃簾鏃ユ湡:</view>
- <view class="righton">
- <input v-if="hform.HDeleteDate" v-model="hform.HDeleteDate.substr(0,10)" disabled/>
- <input v-else v-model="hform.HDeleteDate" disabled/>
- </view>
- </view>
- </view>
-
- <view class="other">
- <view v-if="!showmore" @tap="showmore = true">
- 灞曞紑鍏朵粬淇℃伅<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="bottom"></uni-icons>
- </view>
- <view v-if="showmore" @tap="showmore = false">
- 鎶樺彔鍏朵粬淇℃伅<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="top"></uni-icons>
- </view>
- </view>
+ <view class="form-item">
+ <view class="title">浣滃簾浜�:</view>
+ <view class="righton">
+ <input v-model="hform.HDeleteMan" disabled />
+ </view>
+ </view>
+ <view class="form-item">
+ <view class="title">浣滃簾鏃ユ湡:</view>
+ <view class="righton">
+ <input v-if="hform.HDeleteDate" v-model="hform.HDeleteDate.substr(0,10)" disabled />
+ <input v-else v-model="hform.HDeleteDate" disabled />
+ </view>
+ </view>
+ </view>
- <view class="bottom-btn">
- <button v-if="btnType == 0 && !isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
- <button v-if="btnType != 0 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">淇敼</button>
- <button v-if="btnType != 0 && isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
- <button v-if="btnType != 0 && btnType == 2" class="btn-b" style="margin-left: 20rpx;" size="mini" @tap="check">瀹℃牳</button>
- <button v-if="btnType != 0 && btnType == 3" class="btn-d" style="margin-left: 20rpx;" size="mini" @tap="abandonCheck">鍙嶅鏍�</button>
- <!-- <button class="btn-b" size="mini" @tap="showMask = true">鏂板</button> -->
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
- </view>
- </view>
- </view>
+ <view class="other">
+ <view v-if="!showmore" @tap="showmore = true">
+ 灞曞紑鍏朵粬淇℃伅<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="bottom"></uni-icons>
+ </view>
+ <view v-if="showmore" @tap="showmore = false">
+ 鎶樺彔鍏朵粬淇℃伅<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="top"></uni-icons>
+ </view>
+ </view>
+
+ <view class="bottom-btn">
+ <button v-if="btnType == 0 && !isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+ <button v-if="btnType != 0 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">淇敼</button>
+ <button v-if="btnType != 0 && isEdit" class="btn-a" size="mini" @tap="submit">鎻愪氦</button>
+ <button v-if="btnType != 0 && btnType == 2" class="btn-b" style="margin-left: 20rpx;" size="mini"
+ @tap="check">瀹℃牳</button>
+ <button v-if="btnType != 0 && btnType == 3" class="btn-d" style="margin-left: 20rpx;" size="mini"
+ @tap="abandonCheck">鍙嶅鏍�</button>
+ <!-- <button class="btn-b" size="mini" @tap="showMask = true">鏂板</button> -->
+ <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
+ </view>
+ </view>
+ </view>
</template>
<script>
- import getDateTime from '@/utils/getdateTime.js';
- import { getUserInfo } from "@/utils/auth.js";
+ import getDateTime from '@/utils/getdateTime.js';
+ import {
+ getUserInfo
+ } from "@/utils/auth.js";
export default {
data() {
return {
- userInfo:getUserInfo(),
- serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
- linterid:'',
- HBillNo:'',
- btnType:0,//0鏂板锛�1淇敼锛�2瀹℃牳锛�3鍙嶅鏍�
- showmore: false,
-
- arrayHMaterNumber:[],//浜у搧
- HMaterNumberList:[],
- arrayHProcName:[],//宸ュ簭
- HProcNameList:[],
- arrayHSupName:[],//渚涘簲鍟�
- HSupNameList:[],
- arrayHEmpName:[],//鎿嶄綔鍛�
- HEmpNameList:[],
- arrayHGroupName:[],//鐝粍
- HGroupNameList:[],
-
- isEdit: false,
- hform:{
- HInterID:'',
- HBillNo:'',
- HBarCode:'',
- HQty:0,
- HPieceQty:0,
- HWasterQty:0,
- HEmpName:'',
- HEmpID:0,
- HInnerBillNo:'',
- HWWWorkOrderBillNo:'',
- HRemark:'',
- HDate:getDateTime.dateTimeStr('y-m-d'),
-
- HICMOBillNo:'',
- HProcExchBillNo:'',
- HMaterNumber:'',
- HMaterName:'',
- HMaterID:0,
- HMaterModel:'',
- HSupName:'',
- HSupID:0,
- 鍗曚綅:'',
- HProcName:'',
- HProcID:0,
- HPRDOrg:'',
- HOrderProcNO:'',
-
- // HPRDOrg:'',
- // HICMOBillNo:'',
- // HICMOInterID:'',
- // HICMOQty:'',
- // HOrderProcNO:'',
- // HMaterNumber:'',
- // HMaterName:'',
- // HMaterID:'',
- // HMaterModel:'',
- // HProcExchBillNo:'',
- // HProcExchHinteID:'',
- // HProcName:'',
- // HProcID:'',
- // HPlanQty:'',
- // HProcNo:'',
- // HSupName:'',
- // HSupID:'',
- // HTaxRate:'',
- // HPrice:'',
- // HMoney:'',
- // HStationInTime:'',
- // HStationOutTime:getDateTime.dateTimeStr('y-m-d h:i:s'),
- // HEmp:'',
- // HEmpID:'',
- // HSource:'',
- // HSourceID:'',
- HGroupName:'',
- HGroupID:0,
- // HDept:'',
- // HDeptID:'',
-
- HMaker:'',
- HMakeDate:'',
- HUpDater:'',
- HUpDateDate:'',
- HChecker:'',
- HCheckDate:'',
- // HCloseMan:'',
- // HCloseDate:'',
- HDeleteMan:'',
- HDeleteDate:'',
-
- eventType:'Add',
- }
+ userInfo: getUserInfo(),
+ serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
+ linterid: '',
+ HBillNo: '',
+ btnType: 0, //0鏂板锛�1淇敼锛�2瀹℃牳锛�3鍙嶅鏍�
+ showmore: false,
+
+ arrayHMaterNumber: [], //浜у搧
+ HMaterNumberList: [],
+ arrayHProcName: [], //宸ュ簭
+ HProcNameList: [],
+ arrayHSupName: [], //渚涘簲鍟�
+ HSupNameList: [],
+ arrayHEmpName: [], //鎿嶄綔鍛�
+ HEmpNameList: [],
+ arrayHGroupName: [], //鐝粍
+ HGroupNameList: [],
+
+ isEdit: false,
+ hform: {
+ HInterID: '',
+ HBillNo: '',
+ HBarCode: '',
+ HNotReportQty: 0,
+ HQty: 0,
+ HPieceQty: 0,
+ HWasterQty: 0,
+ HEmpName: '',
+ HEmpID: 0,
+ HInnerBillNo: '',
+ HWWWorkOrderBillNo: '',
+ HRemark: '',
+ HDate: getDateTime.dateTimeStr('y-m-d'),
+
+ HICMOBillNo: '',
+ HProcExchBillNo: '',
+ HMaterNumber: '',
+ HMaterName: '',
+ HMaterID: 0,
+ HMaterModel: '',
+ HSupName: '',
+ HSupID: 0,
+ 鍗曚綅: '',
+ HProcName: '',
+ HProcID: 0,
+ HPRDOrg: '',
+ HOrderProcNO: '',
+
+ // HPRDOrg:'',
+ // HICMOBillNo:'',
+ // HICMOInterID:'',
+ // HICMOQty:'',
+ // HOrderProcNO:'',
+ // HMaterNumber:'',
+ // HMaterName:'',
+ // HMaterID:'',
+ // HMaterModel:'',
+ // HProcExchBillNo:'',
+ // HProcExchHinteID:'',
+ // HProcName:'',
+ // HProcID:'',
+ // HPlanQty:'',
+ // HProcNo:'',
+ // HSupName:'',
+ // HSupID:'',
+ // HTaxRate:'',
+ // HPrice:'',
+ // HMoney:'',
+ // HStationInTime:'',
+ // HStationOutTime:getDateTime.dateTimeStr('y-m-d h:i:s'),
+ // HEmp:'',
+ // HEmpID:'',
+ // HSource:'',
+ // HSourceID:'',
+ HGroupName: '',
+ HGroupID: 0,
+ // HDept:'',
+ // HDeptID:'',
+
+ HMaker: '',
+ HMakeDate: '',
+ HUpDater: '',
+ HUpDateDate: '',
+ HChecker: '',
+ HCheckDate: '',
+ // HCloseMan:'',
+ // HCloseDate:'',
+ HDeleteMan: '',
+ HDeleteDate: '',
+
+ eventType: 'Add',
+ }
}
},
- onLoad(e) {
- // this.getEditData('710','WXGD000000000274')
- // console.log(e,this.userInfo)
- // this.hform.HEmpID = this.userInfo.Czybm
- // this.hform.HEmp = uni.getStorageSync('HUserName')
- this.hform.HMaker = uni.getStorageSync('HUserName')
- if(e.linterid){
- this.btnType = 1
- this.linterid = e.linterid
- this.HBillNo = e.HBillNo
- this.getEditData(e.linterid,e.HBillNo)
- }else{
- this.getNewData()
- }
- this.getHGroupList()
- this.getHMaterList()
- this.getHProcList()
- this.getHSupList()
- this.getHEmpList()
-
- this.getDefValByUser()
- },
+ onLoad(e) {
+ // this.getEditData('710','WXGD000000000274')
+ // console.log(e,this.userInfo)
+ // this.hform.HEmpID = this.userInfo.Czybm
+ // this.hform.HEmp = uni.getStorageSync('HUserName')
+ this.hform.HMaker = uni.getStorageSync('HUserName')
+ if (e.linterid) {
+ this.btnType = 1
+ this.linterid = e.linterid
+ this.HBillNo = e.HBillNo
+ this.getEditData(e.linterid, e.HBillNo)
+ } else {
+ this.getNewData()
+ }
+ this.getHGroupList()
+ this.getHMaterList()
+ this.getHProcList()
+ this.getHSupList()
+ this.getHEmpList()
+
+ this.getDefValByUser()
+ },
methods: {
- //閫氳繃鐧诲綍鐢ㄦ埛鑾峰彇榛樿鍊�
- getDefValByUser(){
- uni.request({
- url: this.serverUrl + '/Cj_StationInBill/GetDefValByUser',
- type: "GET",
- async: false,
- data: { "Czybm": this.userInfo.Czybm, "Czymc": this.userInfo.Czymc },
- success: (res) => {
- console.log(res.data)
- if(res.data.count == 1){
- var data = res.data.data[0]
- this.hform.HGroupID = data.HGroupID
- this.hform.HGroupName = data.鐢熶骇鐝粍鍚嶇О
- this.hform.HEmpID = data.HEmpID
- this.hform.HEmpName = data.鎿嶄綔鍛樺悕绉�
- this.hform.HEmpNumber = data.鎿嶄綔鍛樹唬鐮�
- this.hform.HSourceID = data.HSourceID
- this.hform.HSourceName = data.鐢熶骇璧勬簮鍚嶇О
- this.hform.HCenterID = data.HWorkCenterID
- this.hform.HCenterName = data.宸ヤ綔涓績鍚嶇О
- this.hform.HEmpName_second = data.鎿嶄綔鍛樺悕绉�
- }else{
- uni.showToast({
- title:'鑾峰彇鐢熶骇鐝粍淇℃伅澶辫触',
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鑾峰彇鐢熶骇鐝粍淇℃伅澶辫触',
- icon:'none'
- })
- },
- });
- },
- //鎵爜
- toScanCode(){
- var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
- mpaasScanModule.mpaasScan({
- 'hideAlbum': true,
- 'timeoutInterval':'10', //瓒呮椂鏃堕棿
- 'timeoutText':'鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
- },(ret) => {
- console.log(ret.resp_result)
- var str = ret.resp_result
- if(str.includes('@')) {
- const parts = str.split('@');
- this.hform.HBarCode = parts[0]
- this.hform.HProcNo = parts[1]
- this.getHBarCodeData(parts[0],1)
- // this.getHProcNoData(parts[0],parts[1])
- }else{
- this.hform.HBarCode = ret.resp_result
- this.getHBarCodeData(ret.resp_result)
- }
- })
- },
- toInCode(e){
- var str = this.hform.HBarCode
- if(str.includes('@')) {
- const parts = str.split('@');
- this.hform.HBarCode = parts[0]
- this.hform.HProcNo = parts[1]
- this.getHBarCodeData(parts[0],1)
- // this.getHProcNoData(parts[0],parts[1])
- }else{
- this.getHBarCodeData(this.hform.HBarCode)
- }
- },
- //鎵祦姘村彿
- toScanProcNo(){
- var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
- mpaasScanModule.mpaasScan({
- 'hideAlbum': true,
- 'timeoutInterval':'10', //瓒呮椂鏃堕棿
- 'timeoutText':'鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
- },(ret) => {
- console.log(ret.resp_result)
- this.hform.HProcNo = ret.resp_result
- this.getHProcNoData(this.hform.HBarCode,ret.resp_result)
- })
- },
- //鏃ユ湡
- HDateChange(e){
- console.log(e.detail.value)
- this.hform.HDate = e.detail.value
- },
-
- //鑾峰彇浜у搧鏁版嵁
- getHMaterList(){
- var Value = " Where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + uni.getStorageSync('OrganizationID')
- uni.request({
- url: this.serverUrl + '/Web/GetMaterialList_Json',
- data: { sWhere: Value },
- success: (res) => {
- if(res.data.count == 1){
- this.HMaterNumberList = res.data.data
- for(var i=0;i<res.data.data.length;i++){
- this.arrayHMaterNumber[i] = res.data.data[i].HNumber
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨浜у搧鏁版嵁
- HMaterNumberChange(e){
- for(var i=0;i<this.HMaterNumberList.length;i++){
- if(this.HMaterNumberList[i].HNumber == e){
- this.hform.HMaterName = this.HMaterNumberList[i].HName
- this.hform.HMaterID = this.HMaterNumberList[i].HItemID
- }
- }
- },
- //宸ュ簭
- getHProcList(){
- uni.request({
- url: this.serverUrl + '/Web/GetProcList_Json',
- data: { sWhere: '' },
- success: (res) => {
- if(res.data.count == 1){
- this.HProcNameList = res.data.data
- for(var i=0;i<res.data.data.length;i++){
- this.arrayHProcName[i] = res.data.data[i].宸ュ簭
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨宸ュ簭
- HProcNameChange(e){
- for(var i=0;i<this.HProcNameList.length;i++){
- if(this.HProcNameList[i].宸ュ簭 == e){
- this.hform.HProcID = this.HProcNameList[i].HItemID
- }
- }
- },
- //鑾峰彇渚涘簲鍟嗘暟鎹�
- getHSupList(){
- if (!uni.getStorageSync('OrganizationID')) {
- var HOtherOrgID = 0;
- }else{
- var HOtherOrgID = uni.getStorageSync('OrganizationID')
- }
- uni.request({
- url: this.serverUrl + '/Web/GetSupplierList_Json',
- data: { Supplier: '', HOrgID: HOtherOrgID },
- success: (res) => {
- if(res.data.count == 1){
- this.HSupNameList = res.data.data
- for(var i=0;i<res.data.data.length;i++){
- this.arrayHSupName[i] = res.data.data[i].HName
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨渚涘簲鍟�
- HSupNameChange(e){
- for(var i=0;i<this.HSupNameList.length;i++){
- if(this.HSupNameList[i].HName == e){
- this.hform.HSupID = this.HSupNameList[i].HItemID
- }
- }
- },
- //鎿嶄綔鍛�
- getHEmpList(){
- uni.request({
- url: this.serverUrl + '/Web/GetEmployeeList_Json',
- data: { Employee: '',HGroupID:0 },
- success: (res) => {
- if(res.data.count == 1){
- this.HEmpNameList = res.data.data
- for(var i=0;i<res.data.data.length;i++){
- this.arrayHEmpName[i] = res.data.data[i].HName
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
-
- },
- //閫夋嫨鎺ユ敹浜�
- HEmpNameChange(e){
- for(var i=0;i<this.HEmpNameList.length;i++){
- if(this.HEmpNameList[i].HName == e){
- this.hform.HEmpID = this.HEmpNameList[i].HItemID
- this.hform.HQCCheckID = this.HEmpNameList[i].HItemID
- }
- }
- },
- //鐢熶骇鐝粍
- getHGroupList(){
- uni.request({
- url: this.serverUrl + '/Web/GetProductionTeamList_Json',
- data: { sWhere: "and HUSEORGID = " + uni.getStorageSync('OrganizationID') + "" },
- success: (res) => {
- if(res.data.count == 1){
- this.HGroupNameList = res.data.data
- for(var i=0;i<res.data.data.length;i++){
- this.arrayHGroupName[i] = res.data.data[i].鐝粍
- }
- this.$forceUpdate();
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //閫夋嫨鐢熶骇鐝粍
- HGroupNameChange(e){
- for(var i=0;i<this.HGroupNameList.length;i++){
- if(this.HGroupNameList[i].鐝粍 == e){
- this.hform.HGroupName = this.HGroupNameList[i].鐝粍
- this.hform.HGroupID = this.HGroupNameList[i].HItemID
- }
- }
- },
-
- //缂栬緫
- ifEdit(){
- //鏄惁缂栬緫
- uni.request({
- url: this.serverUrl + '/Cj_StationEntrustOutBill/set_ShowBillJudge',
- data: {
- HBillNo: this.HBillNo,
- CurUserName: uni.getStorageSync('HUserName'),
- HInterID: this.linterid,
- },
- success: (res) => {
- console.log(res)
- if(res.data.count == 1){
- this.isEdit = true
- this.hform.eventType = 'Modify'
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- getEditData(linterid,HBillNo){
- //涓昏〃
- uni.request({
- url: this.serverUrl + '/Cj_StationEntrustOutBill/GetStationEntrustOutBill',
- data: { HInterID: linterid },
- success: (res) => {
- console.log(1,res.data.data[0]);
- if(res.data.code == 1){
- var data = res.data.data[0]
- this.getHBarCodeData(data.HBarCode)
- this.getHProcNoData(data.HBarCode,data.HProcNo)
-
- this.hform.HInterID= data.HInterID,
- this.hform.HBillNo= data.HBillNo,
- this.hform.HBarCode= data.HBarCode,
- this.hform.HProcNo= data.HProcNo,
- this.hform.HQty= data.HQty,
- this.hform.HPieceQty= data.HPieceQty,
- this.hform.HWasterQty= data.HWasterQty,
- this.hform.HSupName= data.HSupName
- this.hform.HSupID= data.HSupID
- this.hform.HEmpID= data.HEmpID,
- this.hform.HEmpName= data.HEmpName,
- this.hform.HInnerBillNo= data.HInnerBillNo,
- this.hform.HWWWorkOrderBillNo= data.HWWWorkOrderBillNo,
- this.hform.HRemark= data.HRemark,
- this.hform.HDate = data.HDate.substr(0,10)
-
- // this.hform.HSupID= data.HSupID,
- // this.hform.HSupName= data.HSupName,
- // this.hform.HMaterNumber= data.HMaterNumber,
- // this.hform.HMaterName= data.HMaterName,
- // this.hform.HMaterID= data.HMaterID,
- // this.hform.HPrice= data.HPrice,
- // this.hform.HMoney= data.HMoney,
- // this.hform.HBadPNL= data.HBadPNL,
- // this.hform.HSourceID= data.HSourceID,
- // this.hform.HSourceName= data.HSourceName
- if (data.鏄惁瀹℃牳 == "true") {
- this.btnType = 3
- } else {
- this.btnType = 2
- }
-
- this.hform.HMaker= data.HMaker
- this.hform.HMakeDate= data.HMakeDate
- this.hform.HUpDater= data.HUpDater
- this.hform.HUpDateDate= data.HUpDateDate
- this.hform.HChecker= data.HChecker
- this.hform.HCheckDate= data.HCheckDate
- // this.hform.HCloseMan= data.HCloseMan
- // this.hform.HCloseDate= data.HCloseDate
- this.hform.HDeleteMan= data.HDeleteMan
- this.hform.HDeleteDate= data.HDeleteDate
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- getHBarCodeData(HBarCode,e){
- uni.request({
- url: this.serverUrl + '/Cj_StationEntrustInBill/txtHBarCode_KeyDown',
- data: {HBarCode: HBarCode},
- success: (res) => {
- console.log(2,res.data);
- if(res.data.code == 1){
- var data = res.data.data[0]
- this.hform.HICMOBillNo= data.浠诲姟鍗曞彿
- this.hform.HICMOInterID= data.hicmointerid
- this.hform.HMaterID= data.HMaterID
- this.hform.HMaterName= data.浜у搧
- this.hform.HMaterNumber= data.浜у搧浠g爜
- this.hform.HMaterModel= data.瑙勬牸鍨嬪彿
- this.hform.鍗曚綅= data.鍗曚綅
+ //閫氳繃鐧诲綍鐢ㄦ埛鑾峰彇榛樿鍊�
+ getDefValByUser() {
+ uni.request({
+ url: this.serverUrl + '/Cj_StationInBill/GetDefValByUser',
+ type: "GET",
+ async: false,
+ data: {
+ "Czybm": this.userInfo.Czybm,
+ "Czymc": this.userInfo.Czymc
+ },
+ success: (res) => {
+ console.log(res.data)
+ if (res.data.count == 1) {
+ var data = res.data.data[0]
+ this.hform.HGroupID = data.HGroupID
+ this.hform.HGroupName = data.鐢熶骇鐝粍鍚嶇О
+ this.hform.HEmpID = data.HEmpID
+ this.hform.HEmpName = data.鎿嶄綔鍛樺悕绉�
+ this.hform.HEmpNumber = data.鎿嶄綔鍛樹唬鐮�
+ this.hform.HSourceID = data.HSourceID
+ this.hform.HSourceName = data.鐢熶骇璧勬簮鍚嶇О
+ this.hform.HCenterID = data.HWorkCenterID
+ this.hform.HCenterName = data.宸ヤ綔涓績鍚嶇О
+ this.hform.HEmpName_second = data.鎿嶄綔鍛樺悕绉�
+ } else {
+ uni.showToast({
+ title: '鑾峰彇鐢熶骇鐝粍淇℃伅澶辫触',
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鑾峰彇鐢熶骇鐝粍淇℃伅澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //鎵爜
+ toScanCode() {
+ var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
+ mpaasScanModule.mpaasScan({
+ 'hideAlbum': true,
+ 'timeoutInterval': '10', //瓒呮椂鏃堕棿
+ 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
+ }, (ret) => {
+ console.log(ret.resp_result)
+ var str = ret.resp_result
+ if (str.includes('@')) {
+ const parts = str.split('@');
+ this.hform.HBarCode = parts[0]
+ this.hform.HProcNo = parts[1]
+ this.getHBarCodeData(parts[0], 1)
+ // this.getHProcNoData(parts[0],parts[1])
+ } else {
+ this.hform.HBarCode = ret.resp_result
+ this.getHBarCodeData(ret.resp_result)
+ }
+ })
+ },
+ toInCode(e) {
+ var str = this.hform.HBarCode
+ if (str.includes('@')) {
+ const parts = str.split('@');
+ this.hform.HBarCode = parts[0]
+ this.hform.HProcNo = parts[1]
+ this.getHBarCodeData(parts[0], 1)
+ // this.getHProcNoData(parts[0],parts[1])
+ } else {
+ this.getHBarCodeData(this.hform.HBarCode)
+ }
+ },
+ //鎵祦姘村彿
+ toScanProcNo() {
+ var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
+ mpaasScanModule.mpaasScan({
+ 'hideAlbum': true,
+ 'timeoutInterval': '10', //瓒呮椂鏃堕棿
+ 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
+ }, (ret) => {
+ console.log(ret.resp_result)
+ this.hform.HProcNo = ret.resp_result
+ this.getHProcNoData(this.hform.HBarCode, ret.resp_result)
+ })
+ },
+ //鏃ユ湡
+ HDateChange(e) {
+ console.log(e.detail.value)
+ this.hform.HDate = e.detail.value
+ },
+
+ //鑾峰彇浜у搧鏁版嵁
+ getHMaterList() {
+ var Value = " Where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + uni.getStorageSync('OrganizationID')
+ uni.request({
+ url: this.serverUrl + '/Web/GetMaterialList_Json',
+ data: {
+ sWhere: Value
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.HMaterNumberList = res.data.data
+ for (var i = 0; i < res.data.data.length; i++) {
+ this.arrayHMaterNumber[i] = res.data.data[i].HNumber
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨浜у搧鏁版嵁
+ HMaterNumberChange(e) {
+ for (var i = 0; i < this.HMaterNumberList.length; i++) {
+ if (this.HMaterNumberList[i].HNumber == e) {
+ this.hform.HMaterName = this.HMaterNumberList[i].HName
+ this.hform.HMaterID = this.HMaterNumberList[i].HItemID
+ }
+ }
+ },
+ //宸ュ簭
+ getHProcList() {
+ uni.request({
+ url: this.serverUrl + '/Web/GetProcList_Json',
+ data: {
+ sWhere: ''
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.HProcNameList = res.data.data
+ for (var i = 0; i < res.data.data.length; i++) {
+ this.arrayHProcName[i] = res.data.data[i].宸ュ簭
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨宸ュ簭
+ HProcNameChange(e) {
+ for (var i = 0; i < this.HProcNameList.length; i++) {
+ if (this.HProcNameList[i].宸ュ簭 == e) {
+ this.hform.HProcID = this.HProcNameList[i].HItemID
+ }
+ }
+ },
+ //鑾峰彇渚涘簲鍟嗘暟鎹�
+ getHSupList() {
+ if (!uni.getStorageSync('OrganizationID')) {
+ var HOtherOrgID = 0;
+ } else {
+ var HOtherOrgID = uni.getStorageSync('OrganizationID')
+ }
+ uni.request({
+ url: this.serverUrl + '/Web/GetSupplierList_Json',
+ data: {
+ Supplier: '',
+ HOrgID: HOtherOrgID
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.HSupNameList = res.data.data
+ for (var i = 0; i < res.data.data.length; i++) {
+ this.arrayHSupName[i] = res.data.data[i].HName
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨渚涘簲鍟�
+ HSupNameChange(e) {
+ for (var i = 0; i < this.HSupNameList.length; i++) {
+ if (this.HSupNameList[i].HName == e) {
+ this.hform.HSupID = this.HSupNameList[i].HItemID
+ }
+ }
+ },
+ //鎿嶄綔鍛�
+ getHEmpList() {
+ uni.request({
+ url: this.serverUrl + '/Web/GetEmployeeList_Json',
+ data: {
+ Employee: '',
+ HGroupID: 0
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.HEmpNameList = res.data.data
+ for (var i = 0; i < res.data.data.length; i++) {
+ this.arrayHEmpName[i] = res.data.data[i].HName
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+
+ },
+ //閫夋嫨鎺ユ敹浜�
+ HEmpNameChange(e) {
+ for (var i = 0; i < this.HEmpNameList.length; i++) {
+ if (this.HEmpNameList[i].HName == e) {
+ this.hform.HEmpID = this.HEmpNameList[i].HItemID
+ this.hform.HQCCheckID = this.HEmpNameList[i].HItemID
+ }
+ }
+ },
+ //鐢熶骇鐝粍
+ getHGroupList() {
+ uni.request({
+ url: this.serverUrl + '/Web/GetProductionTeamList_Json',
+ data: {
+ sWhere: "and HUSEORGID = " + uni.getStorageSync('OrganizationID') + ""
+ },
+ success: (res) => {
+ if (res.data.count == 1) {
+ this.HGroupNameList = res.data.data
+ for (var i = 0; i < res.data.data.length; i++) {
+ this.arrayHGroupName[i] = res.data.data[i].鐝粍
+ }
+ this.$forceUpdate();
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //閫夋嫨鐢熶骇鐝粍
+ HGroupNameChange(e) {
+ for (var i = 0; i < this.HGroupNameList.length; i++) {
+ if (this.HGroupNameList[i].鐝粍 == e) {
+ this.hform.HGroupName = this.HGroupNameList[i].鐝粍
+ this.hform.HGroupID = this.HGroupNameList[i].HItemID
+ }
+ }
+ },
+
+ //缂栬緫
+ ifEdit() {
+ //鏄惁缂栬緫
+ uni.request({
+ url: this.serverUrl + '/Cj_StationEntrustOutBill/set_ShowBillJudge',
+ data: {
+ HBillNo: this.HBillNo,
+ CurUserName: uni.getStorageSync('HUserName'),
+ HInterID: this.linterid,
+ },
+ success: (res) => {
+ console.log(res)
+ if (res.data.count == 1) {
+ this.isEdit = true
+ this.hform.eventType = 'Modify'
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ getEditData(linterid, HBillNo) {
+ //涓昏〃
+ uni.request({
+ url: this.serverUrl + '/Cj_StationEntrustOutBill/GetStationEntrustOutBill',
+ data: {
+ HInterID: linterid
+ },
+ success: (res) => {
+ console.log(1, res.data.data[0]);
+ if (res.data.code == 1) {
+ var data = res.data.data[0]
+ this.getHBarCodeData(data.HBarCode)
+ this.getHProcNoData(data.HBarCode, data.HProcNo)
+
+ this.hform.HInterID = data.HInterID
+ this.hform.HBillNo = data.HBillNo
+ this.hform.HBarCode = data.HBarCode
+ this.hform.HProcNo = data.HProcNo
+ // this.hform.HQty= data.HQty,
+ this.hform.HNotReportQty = data.HNotReportQty
+ this.hform.HPieceQty = data.HPieceQty
+ this.hform.HWasterQty = data.HWasterQty
+ this.hform.HSupName = data.HSupName
+ this.hform.HSupID = data.HSupID
+ this.hform.HEmpID = data.HEmpID
+ this.hform.HEmpName = data.HEmpName
+ this.hform.HInnerBillNo = data.HInnerBillNo
+ this.hform.HWWWorkOrderBillNo = data.HWWWorkOrderBillNo
+ this.hform.HRemark = data.HRemark
+ this.hform.HDate = data.HDate.substr(0, 10)
+
+ // this.hform.HSupID= data.HSupID,
+ // this.hform.HSupName= data.HSupName,
+ // this.hform.HMaterNumber= data.HMaterNumber,
+ // this.hform.HMaterName= data.HMaterName,
+ // this.hform.HMaterID= data.HMaterID,
+ // this.hform.HPrice= data.HPrice,
+ // this.hform.HMoney= data.HMoney,
+ // this.hform.HBadPNL= data.HBadPNL,
+ // this.hform.HSourceID= data.HSourceID,
+ // this.hform.HSourceName= data.HSourceName
+ if (data.鏄惁瀹℃牳 == "true") {
+ this.btnType = 3
+ } else {
+ this.btnType = 2
+ }
+
+ this.hform.HMaker = data.HMaker
+ this.hform.HMakeDate = data.HMakeDate
+ this.hform.HUpDater = data.HUpDater
+ this.hform.HUpDateDate = data.HUpDateDate
+ this.hform.HChecker = data.HChecker
+ this.hform.HCheckDate = data.HCheckDate
+ // this.hform.HCloseMan= data.HCloseMan
+ // this.hform.HCloseDate= data.HCloseDate
+ this.hform.HDeleteMan = data.HDeleteMan
+ this.hform.HDeleteDate = data.HDeleteDate
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ getHBarCodeData(HBarCode, e) {
+ uni.request({
+ url: this.serverUrl + '/Cj_StationEntrustInBill/txtHBarCode_KeyDown',
+ data: {
+ HBarCode: HBarCode
+ },
+ success: (res) => {
+ console.log(2, res.data);
+ if (res.data.code == 1) {
+ var data = res.data.data[0]
+ this.hform.HICMOBillNo = data.浠诲姟鍗曞彿
+ this.hform.HICMOInterID = data.hicmointerid
+ this.hform.HMaterID = data.HMaterID
+ this.hform.HMaterName = data.浜у搧
+ this.hform.HMaterNumber = data.浜у搧浠g爜
+ this.hform.HMaterModel = data.瑙勬牸鍨嬪彿
+ this.hform.鍗曚綅 = data.鍗曚綅
// this.HQty= 0,
// this.hform.HPieceQty= data.鐢熶骇鏁伴噺
- this.hform.HPlanQty= data.鐢熶骇鏁伴噺
- this.hform.lngBillSubKey= data.hsubid
- this.hform.lngBillKey= data.hmainid
- this.hform.HProcExchBillNo= data.鍗曟嵁鍙�
- this.hform.HICMOQty= data.浠诲姟鍗曟暟閲�
- this.hform.HOrderProcNO= data.璁㈠崟璺熻釜鍙�
- this.hform.HStationInTime= getDateTime.dateTimeStr('y-m-d h:i:s')
+ this.hform.HNotReportQty = data['鏈姤宸ユ暟閲�']
+ this.hform.HPlanQty = data.鐢熶骇鏁伴噺
+ this.hform.lngBillSubKey = data.hsubid
+ this.hform.lngBillKey = data.hmainid
+ this.hform.HProcExchBillNo = data.鍗曟嵁鍙�
+ this.hform.HICMOQty = data.浠诲姟鍗曟暟閲�
+ this.hform.HOrderProcNO = data.璁㈠崟璺熻釜鍙�
+ this.hform.HStationInTime = getDateTime.dateTimeStr('y-m-d h:i:s')
// this.hform.HMoney= 0
// this.hform.HSupID= data.HSupID
// this.hform.HSupName= data.渚涘簲鍟�
@@ -864,372 +904,395 @@
// this.hform.HSource= data.鐢熶骇璧勬簮
// this.hform.HGroupID= data.HGroupID
// this.hform.HGroupName= data.鐝粍
- this.hform.HDeptID= this.userInfo.HDeptID
- this.hform.HDept= this.userInfo.HDept
- this.hform.HProcExchHinteID= data.hmainid
- this.hform.HPRDOrg= data.缁勭粐鍚嶇О
- this.hform.HPRDOrgID = data.HPRDORGID
- if(e){
- this.getHProcNoData(this.hform.HBarCode,this.hform.HProcNo)
- }
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- getHProcNoData(HBarCode,HProcNo){
- uni.request({
- url: this.serverUrl + '/Cj_StationEntrustInBill/txtHProcNo_KeyDown',
- data: {sBillNo: HBarCode,sProcNo: HProcNo},
- success: (res) => {
- console.log(3,res);
- if(res.data.code == 1){
- var data = res.data.data[0]
- this.hform.lngBillSubKey= data.hsubid
- this.hform.HProcName= data.宸ュ簭
- this.hform.HProcID= data.HProcID
- this.hform.HCenterName= data.宸ヤ綔涓績
- this.hform.HCenterID= data.HCenterID
- if(!this.hform.HSupName){
- this.hform.HSupName= data.渚涘簲鍟�
- this.hform.HSupID= data.HSupID
- }
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //鏂板
- getNewData(){
- uni.request({
- url: this.serverUrl + '/Web/GetMAXNum',
- data: { HBillType: '3793' },
- success: (res) => {
- console.log(res.data)
- if(res.data.count == 1){
- this.hform.HInterID = res.data.data[0].HInterID
- this.hform.HBillNo = res.data.data[0].HBillNo
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- submit() {
- if(!this.hform.HBarCode){
- uni.showToast({
- title:'璇锋壂鎻忚澶囨潯褰㈢爜',
- icon:'none'
- })
- }else if(!this.hform.HProcNo){
- uni.showToast({
- title:'璇疯緭鍏�/鎵弿娴佹按鍙�',
- icon:'none'
- })
- }else if(!this.hform.HSupName){
- uni.showToast({
- title:'璇烽�夋嫨渚涘簲鍟�',
- icon:'none'
- })
- }else if(!this.hform.HEmpName){
- uni.showToast({
- title:'璇烽�夋嫨鎿嶄綔鍛�',
- icon:'none'
- })
- }else{
- uni.showLoading({
- title:'璇风◢鍊�'
- })
- var sMainStr = JSON.stringify(this.hform);
- var sMainSub = sMainStr + ";" + uni.getStorageSync('HUserName');
- console.log(sMainSub);
- uni.request({
- url: this.serverUrl + '/Cj_StationEntrustOutBill/AddBill',
- method:'POST',
- dataType:"json",
- data:{ oMain: sMainSub },
- success: (res) => {
- console.log(1,res);
- uni.hideLoading()
- if(res.data.count == 1){
- // let pages = getCurrentPages();
- // let prePage = pages[pages.length - 2];
- // prePage.$vm.getList()
- if(this.isEdit){
- setTimeout(()=>{
- uni.redirectTo({
- url:'/pages/weiwaigxOut/form?linterid=' + this.linterid + '&HBillNo=' + this.linterid
- })
- },1000)
- }else{
- uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
- success: (res) => {
- if (res.confirm) {
- console.log('鐢ㄦ埛鐐瑰嚮纭畾');
- uni.redirectTo({
- url:'/pages/weiwaigxOut/form?OperationType=1'
- })
- } else if (res.cancel) {
- console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
- setTimeout(()=>{
- uni.navigateBack();
- },50)
- }
- }
- });
- }
- }else{
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- }
+ this.hform.HDeptID = this.userInfo.HDeptID
+ this.hform.HDept = this.userInfo.HDept
+ this.hform.HProcExchHinteID = data.hmainid
+ this.hform.HPRDOrg = data.缁勭粐鍚嶇О
+ this.hform.HPRDOrgID = data.HPRDORGID
+ if (e) {
+ this.getHProcNoData(this.hform.HBarCode, this.hform.HProcNo)
+ }
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
},
- //瀹℃牳
- check(){
- uni.request({
- url: this.serverUrl + '/Cj_StationEntrustOutBill/set_CheckBill',
- method:'GET',
- dataType:"json",
- data:{
- CurUserName: uni.getStorageSync('HUserName'),
- HInterID: this.linterid,
- },
- success: (res) => {
- console.log(1,res);
- uni.hideLoading()
- if(res.data.count == 1){
- this.btnType = 3
- let pages = getCurrentPages();
- let prePage = pages[pages.length - 2];
- prePage.$vm.getList()
- uni.showModal({
- title: '鎿嶄綔鎴愬姛',
- content: '鏄惁缁х画鍋滅暀鍦ㄥ綋鍓嶉〉闈紵鈥樻槸鈥欏彲杩涜鍙嶅鏍革紝鈥樺惁鈥欏垯鍥炲埌涓婁竴绾у垪琛�',
- confirmText:'鏄�',
- cancelText:'鍚�',
- success: (res) => {
- if (res.confirm) {
- console.log('鐢ㄦ埛鐐瑰嚮鏄�');
- this.btnType = 3
- } else if (res.cancel) {
- console.log('鐢ㄦ埛鐐瑰嚮鍚�');
- uni.navigateBack()
- }
- }
- });
- }
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- //鍙嶅鏍�
- abandonCheck(){
- uni.request({
- url: this.serverUrl + '/Cj_StationEntrustOutBill/set_AbandonCheck',
- method:'GET',
- dataType:"json",
- data:{
- CurUserName: uni.getStorageSync('HUserName'),
- HInterID: this.linterid,
- },
- success: (res) => {
- console.log(1,res);
- uni.hideLoading()
- if(res.data.count == 1){
- let pages = getCurrentPages();
- let prePage = pages[pages.length - 2];
- prePage.$vm.getList()
- this.btnType = 2
- uni.showModal({
- title: '鎿嶄綔鎴愬姛',
- content: '鏄惁缁х画鍋滅暀鍦ㄥ綋鍓嶉〉闈紵鈥樻槸鈥欏彲杩涜瀹℃牳锛屸�樺惁鈥欏垯鍥炲埌涓婁竴绾у垪琛�',
- confirmText:'鏄�',
- cancelText:'鍚�',
- success: (res) => {
- if (res.confirm) {
- console.log('鐢ㄦ埛鐐瑰嚮鏄�');
- this.btnType = 2
- } else if (res.cancel) {
- console.log('鐢ㄦ埛鐐瑰嚮鍚�');
- uni.navigateBack()
- }
- }
- });
- }
- uni.showToast({
- title:res.data.Message,
- icon:'none'
- })
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title:'鎺ュ彛璇锋眰澶辫触',
- icon:'none'
- })
- },
- });
- },
- goBack(){
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�',
- success: (res) => {
- if (res.confirm) {
- console.log('鐢ㄦ埛鐐瑰嚮纭畾');
- uni.navigateBack()
- } else if (res.cancel) {
- console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
- }
- }
- });
+ getHProcNoData(HBarCode, HProcNo) {
+ uni.request({
+ url: this.serverUrl + '/Cj_StationEntrustInBill/txtHProcNo_KeyDown',
+ data: {
+ sBillNo: HBarCode,
+ sProcNo: HProcNo
+ },
+ success: (res) => {
+ console.log(3, res);
+ if (res.data.code == 1) {
+ var data = res.data.data[0]
+ this.hform.lngBillSubKey = data.hsubid
+ this.hform.HProcName = data.宸ュ簭
+ this.hform.HProcID = data.HProcID
+ this.hform.HCenterName = data.宸ヤ綔涓績
+ this.hform.HCenterID = data.HCenterID
+ if (!this.hform.HSupName) {
+ this.hform.HSupName = data.渚涘簲鍟�
+ this.hform.HSupID = data.HSupID
+ }
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //鏂板
+ getNewData() {
+ uni.request({
+ url: this.serverUrl + '/Web/GetMAXNum',
+ data: {
+ HBillType: '3793'
+ },
+ success: (res) => {
+ console.log(res.data)
+ if (res.data.count == 1) {
+ this.hform.HInterID = res.data.data[0].HInterID
+ this.hform.HBillNo = res.data.data[0].HBillNo
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ submit() {
+ if (!this.hform.HBarCode) {
+ uni.showToast({
+ title: '璇锋壂鎻忚澶囨潯褰㈢爜',
+ icon: 'none'
+ })
+ } else if (!this.hform.HProcNo) {
+ uni.showToast({
+ title: '璇疯緭鍏�/鎵弿娴佹按鍙�',
+ icon: 'none'
+ })
+ } else if (!this.hform.HSupName) {
+ uni.showToast({
+ title: '璇烽�夋嫨渚涘簲鍟�',
+ icon: 'none'
+ })
+ } else if (!this.hform.HEmpName) {
+ uni.showToast({
+ title: '璇烽�夋嫨鎿嶄綔鍛�',
+ icon: 'none'
+ })
+ } else {
+ uni.showLoading({
+ title: '璇风◢鍊�'
+ })
+ var sMainStr = JSON.stringify(this.hform);
+ var sMainSub = sMainStr + ";" + uni.getStorageSync('HUserName');
+ console.log(sMainSub);
+ uni.request({
+ url: this.serverUrl + '/Cj_StationEntrustOutBill/AddBill',
+ method: 'POST',
+ dataType: "json",
+ data: {
+ oMain: sMainSub
+ },
+ success: (res) => {
+ console.log(1, res);
+ uni.hideLoading()
+ if (res.data.count == 1) {
+ // let pages = getCurrentPages();
+ // let prePage = pages[pages.length - 2];
+ // prePage.$vm.getList()
+ if (this.isEdit) {
+ setTimeout(() => {
+ uni.redirectTo({
+ url: '/pages/weiwaigxOut/form?linterid=' + this
+ .linterid + '&HBillNo=' + this.linterid
+ })
+ }, 1000)
+ } else {
+ uni.showModal({
+ title: '鎻愮ず',
+ content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵(鐐瑰嚮鍙栨秷杩斿洖涓婄骇椤甸潰)',
+ success: (res) => {
+ if (res.confirm) {
+ console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+ uni.redirectTo({
+ url: '/pages/weiwaigxOut/form?OperationType=1'
+ })
+ } else if (res.cancel) {
+ console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+ setTimeout(() => {
+ uni.navigateBack();
+ }, 50)
+ }
+ }
+ });
+ }
+ } else {
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ }
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ }
+ },
+ //瀹℃牳
+ check() {
+ uni.request({
+ url: this.serverUrl + '/Cj_StationEntrustOutBill/set_CheckBill',
+ method: 'GET',
+ dataType: "json",
+ data: {
+ CurUserName: uni.getStorageSync('HUserName'),
+ HInterID: this.linterid,
+ },
+ success: (res) => {
+ console.log(1, res);
+ uni.hideLoading()
+ if (res.data.count == 1) {
+ this.btnType = 3
+ let pages = getCurrentPages();
+ let prePage = pages[pages.length - 2];
+ prePage.$vm.getList()
+ uni.showModal({
+ title: '鎿嶄綔鎴愬姛',
+ content: '鏄惁缁х画鍋滅暀鍦ㄥ綋鍓嶉〉闈紵鈥樻槸鈥欏彲杩涜鍙嶅鏍革紝鈥樺惁鈥欏垯鍥炲埌涓婁竴绾у垪琛�',
+ confirmText: '鏄�',
+ cancelText: '鍚�',
+ success: (res) => {
+ if (res.confirm) {
+ console.log('鐢ㄦ埛鐐瑰嚮鏄�');
+ this.btnType = 3
+ } else if (res.cancel) {
+ console.log('鐢ㄦ埛鐐瑰嚮鍚�');
+ uni.navigateBack()
+ }
+ }
+ });
+ }
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ //鍙嶅鏍�
+ abandonCheck() {
+ uni.request({
+ url: this.serverUrl + '/Cj_StationEntrustOutBill/set_AbandonCheck',
+ method: 'GET',
+ dataType: "json",
+ data: {
+ CurUserName: uni.getStorageSync('HUserName'),
+ HInterID: this.linterid,
+ },
+ success: (res) => {
+ console.log(1, res);
+ uni.hideLoading()
+ if (res.data.count == 1) {
+ let pages = getCurrentPages();
+ let prePage = pages[pages.length - 2];
+ prePage.$vm.getList()
+ this.btnType = 2
+ uni.showModal({
+ title: '鎿嶄綔鎴愬姛',
+ content: '鏄惁缁х画鍋滅暀鍦ㄥ綋鍓嶉〉闈紵鈥樻槸鈥欏彲杩涜瀹℃牳锛屸�樺惁鈥欏垯鍥炲埌涓婁竴绾у垪琛�',
+ confirmText: '鏄�',
+ cancelText: '鍚�',
+ success: (res) => {
+ if (res.confirm) {
+ console.log('鐢ㄦ埛鐐瑰嚮鏄�');
+ this.btnType = 2
+ } else if (res.cancel) {
+ console.log('鐢ㄦ埛鐐瑰嚮鍚�');
+ uni.navigateBack()
+ }
+ }
+ });
+ }
+ uni.showToast({
+ title: res.data.Message,
+ icon: 'none'
+ })
+ },
+ fail: (res) => {
+ console.log(res);
+ uni.showToast({
+ title: '鎺ュ彛璇锋眰澶辫触',
+ icon: 'none'
+ })
+ },
+ });
+ },
+ goBack() {
+ uni.showModal({
+ title: '鎻愮ず',
+ content: '纭瑕侀��鍑哄綋鍓嶉〉闈㈠悧锛�',
+ success: (res) => {
+ if (res.confirm) {
+ console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+ uni.navigateBack()
+ } else if (res.cancel) {
+ console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
+ }
+ }
+ });
}
}
}
</script>
<style lang="scss" scoped>
- .form{
- width: 668rpx;
- margin: 20rpx auto;
- padding-bottom: 240rpx;
- }
- .tab_area{
- width: 100%;
- height: 50rpx;
- }
- .other{
- margin-top: 8rpx;
- text-align: center;
- font-size: 28rpx;
- padding: 4rpx 18rpx;
- color: #1890FF;
- }
- .form-item{
- display: flex;
- align-items: center;
- font-size: 30rpx;
- padding: 6rpx 0;
- .title{
- width: 208rpx;
- text{
- color: red;
- font-weight: bold;
- }
- }
- .right{
- width: 450rpx;
- border-radius: 22rpx;
- border: 1px solid #acacac;
- }
- .righton{
- width: 450rpx;
- border-radius: 22rpx;
- border: 1px solid #e4e4e4;
- background-color: #e4e4e4;
- }
- input{
- width: 100%;
- padding: 8rpx 20rpx;
- font-size: 30rpx;
- }
- textarea{
- width: 98%;
- padding: 8rpx 20rpx;
- font-size: 30rpx;
- }
+ .form {
+ width: 668rpx;
+ margin: 20rpx auto;
+ padding-bottom: 240rpx;
+ }
- }
- .bottom-btn{
- width: 100%;
- // height: 120rpx;
- position: fixed;
- bottom: 0;
- left: 0;
- background-color: #fff;
- box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
- padding: 30rpx 40rpx 40rpx 40rpx;
- button{
- border-radius: 50rpx;
- width: 180rpx;
- height: 66rpx;
- line-height: 66rpx;
- font-size: 28rpx;
- }
- .btn-a{
- background-color: #3A78FF;
- color: #fff;
- }
- .btn-b{
- background-color: #41a863;
- color: #fff;
- // margin-left: 30rpx;
- }
- .btn-c{
- background-color: #acacac;
- color: #fff;
- position: absolute;
- right: 120rpx;
- }
- .btn-d{
- background-color: #ff8901;
- color: #fff;
- // margin-left: 30rpx;
- }
- }
+ .tab_area {
+ width: 100%;
+ height: 50rpx;
+ }
+
+ .other {
+ margin-top: 8rpx;
+ text-align: center;
+ font-size: 28rpx;
+ padding: 4rpx 18rpx;
+ color: #1890FF;
+ }
+
+ .form-item {
+ display: flex;
+ align-items: center;
+ font-size: 30rpx;
+ padding: 6rpx 0;
+
+ .title {
+ width: 208rpx;
+
+ text {
+ color: red;
+ font-weight: bold;
+ }
+ }
+
+ .right {
+ width: 450rpx;
+ border-radius: 22rpx;
+ border: 1px solid #acacac;
+ }
+
+ .righton {
+ width: 450rpx;
+ border-radius: 22rpx;
+ border: 1px solid #e4e4e4;
+ background-color: #e4e4e4;
+ }
+
+ input {
+ width: 100%;
+ padding: 8rpx 20rpx;
+ font-size: 30rpx;
+ }
+
+ textarea {
+ width: 98%;
+ padding: 8rpx 20rpx;
+ font-size: 30rpx;
+ }
+
+ }
+
+ .bottom-btn {
+ width: 100%;
+ // height: 120rpx;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ background-color: #fff;
+ box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
+ padding: 30rpx 40rpx 40rpx 40rpx;
+
+ button {
+ border-radius: 50rpx;
+ width: 180rpx;
+ height: 66rpx;
+ line-height: 66rpx;
+ font-size: 28rpx;
+ }
+
+ .btn-a {
+ background-color: #3A78FF;
+ color: #fff;
+ }
+
+ .btn-b {
+ background-color: #41a863;
+ color: #fff;
+ // margin-left: 30rpx;
+ }
+
+ .btn-c {
+ background-color: #acacac;
+ color: #fff;
+ position: absolute;
+ right: 120rpx;
+ }
+
+ .btn-d {
+ background-color: #ff8901;
+ color: #fff;
+ // margin-left: 30rpx;
+ }
+ }
</style>
\ No newline at end of file
--
Gitblit v1.9.1