From d2bfd6d78df34f0aad0d22e75d137d2f104c1bc1 Mon Sep 17 00:00:00 2001
From: chenhaozhe <gaozhechen26@gmail.com>
Date: 星期一, 04 八月 2025 15:17:21 +0800
Subject: [PATCH] 修改打印模板 工序出站汇报单 添加 未报工数量 是否计时 工序 委外接收单 添加 未报工数量
---
pages/weiwaigxOut/form.vue | 2277 ++++++++++++++++++++++++++++++-----------------------------
1 files changed, 1,170 insertions(+), 1,107 deletions(-)
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