From f70069e4f8377973c2e23365f0ffa2bf91cbbcc4 Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期五, 13 三月 2026 10:13:34 +0800
Subject: [PATCH] 1
---
/dev/null | 1130 -----------------------------------------------------------
1 files changed, 0 insertions(+), 1,130 deletions(-)
diff --git a/components/ZLGL/mouldMistakeBill.vue b/components/ZLGL/mouldMistakeBill.vue
deleted file mode 100644
index 655cbaf..0000000
--- a/components/ZLGL/mouldMistakeBill.vue
+++ /dev/null
@@ -1,1130 +0,0 @@
-<template>
- <view>
- <view class="form">
- <view class="tabs">
- <view :class="tabs == 0 ? 'on':''" @tap="tabs = 0">鍩烘湰淇℃伅</view>
- <view :class="tabs == 1 ? 'on':''" @tap="tabs = 1">鍏朵粬淇℃伅</view>
- </view>
-
- <view v-if="tabs == 0">
- <view class="form-item">
- <view class="title">妯″叿鏉$爜</view>
- <view class="right" :class="barcodeReadOnly?'readonly':''">
- <input type="text" :disabled="barcodeReadOnly" :focus="barCodeFocus" v-model="hform.HBarCode"
- @confirm="getHBarCodeData(hform.HBarCode)" />
- </view>
- <uni-icons type="scan"
- style="background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;flex-shrink: 0;"
- size="20" @click="toScanCode"></uni-icons>
- </view>
- <view class="form-item" @click="searchModule">
- <view class="title">鍣ㄥ叿</view>
- <view class="righton" style="width: 350rpx;">
- <input placeholder="璇烽�夋嫨鍣ㄥ叿" />
- </view>
- <uni-icons type="search"
- style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;"
- size="20" ></uni-icons>
- </view>
- <view class="form-item">
- <view class="title">鏁呴殰鍙戠敓鏃ユ湡</view>
-
- <view class="right">
- <uni-datetime-picker type="date">
- <view style="font-size: 30rpx;">{{hform.HConkBeginDate}}</view>
- </uni-datetime-picker>
- </view>
- </view>
- <view class="form-item">
- <view class="title required">鏁呴殰绫诲埆</view>
- <view class="right">
- <uni-combox :candidates="ConkTypeNameList" placeholder="璇烽�夋嫨鏁呴殰绫诲埆" v-model="hform.HConkTypeName"
- @input="ConkTypeNameChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title required">鏁呴殰鍘熷洜</view>
- <view class="right">
- <uni-combox :candidates="ConkReasonNameList" placeholder="璇烽�夋嫨鏁呴殰鍘熷洜"
- v-model="hform.HConkReasonName" @input="ConkReasonChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title">鏁呴殰鎻忚堪</view>
- <view class="right">
- <textarea value="" style="height: 6em;" maxlength="2000" placeholder="璇疯緭鍏ユ晠闅滄弿杩�..." />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍗曟嵁鍙�</view>
- <view class="right">
- <input name="HInterID" v-model="hform.HBillNo" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍗曟嵁鏃ユ湡</view>
- <view class="right">
- <uni-datetime-picker type="date">
- <view style="font-size: 30rpx;">{{hform.HDate}}</view>
- </uni-datetime-picker>
- </view>
- </view>
- <view class="form-item">
- <view class="title required">閮ㄩ棬</view>
- <view class="right">
- <uni-combox :candidates="DeptNameList" placeholder="璇烽�夋嫨閮ㄩ棬" v-model="hform.HDeptName"
- @input="DeptChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title required">鍙戠幇浜�</view>
- <view class="right">
- <uni-combox :candidates="EmpNameList" placeholder="璇烽�夋嫨鍙戠幇浜�" v-model="hform.HEmpName"
- @input="EmpChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title required">璐熻矗浜�</view>
- <view class="right">
- <uni-combox :candidates="EmpNameList" placeholder="璇烽�夋嫨璐熻矗浜�" v-model="hform.HManagerName"
- @input="ManagerChange"></uni-combox>
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍣ㄥ叿鍚嶇О</view>
- <view class="righton">
- <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏峰悕绉�" v-model="hform.HBarName" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍣ㄥ叿瑙勬牸</view>
- <view class="righton">
- <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏疯鏍�" v-model="hform.HBarSpec" />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍣ㄥ叿鍨嬪彿</view>
- <view class="righton">
- <input disabled type="text" placeholder="璇疯緭鍏ュ櫒鍏峰瀷鍙�" v-model="hform.HBarModel" />
- </view>
- </view>
- </view>
-
- <view v-if="tabs == 1">
- <view class="form-item">
- <view class="title">鍒涘缓浜�:</view>
- <view class="righton">
- <input type="text" v-model="hform.HMaker" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">鍒涘缓鏃ユ湡:</view>
- <view class="righton">
- <input type="text" v-model="hform.HMakeDate" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">淇敼浜�:</view>
- <view class="righton">
- <input type="text" v-model="hform.HUpDater" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">淇敼鏃ユ湡:</view>
- <view class="righton">
- <input type="text" v-model="hform.HUpDateDate" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">瀹℃牳浜�:</view>
- <view class="righton">
- <input type="text" v-model="hform.HChecker" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">瀹℃牳鏃ユ湡:</view>
- <view class="righton">
- <input type="text" v-model="hform.HCheckDate" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">浣滃簾浜�:</view>
- <view class="righton">
- <input type="text" v-model="hform.HDeleteMan" disabled />
- </view>
- </view>
- <view class="form-item">
- <view class="title">浣滃簾鏃ユ湡:</view>
- <view class="righton">
- <input type="text" v-model="hform.HDeleteDate" disabled />
- </view>
- </view>
- </view>
-
- <view class="bottom-btn">
- <button :class="EnableSave?'btn-a':'btn-c'" :disabled="!EnableSave" size="mini"
- @tap="submit">鎻愪氦</button>
- <view style="flex: 1;"></view>
- <button class="btn-a" size="mini" @tap="addNew">鏂板</button>
- <button class="btn-c" size="mini" @tap="goBack">閫�鍑�</button>
- </view>
- </view>
- <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
- <BillListPopupMouldVue @BillSelectComplete="MouldBillHandler" ref="billListMould"></BillListPopupMouldVue>
- </view>
-</template>
-<script>
- import getDateTime from '@/utils/getdateTime.js';
- import {
- getUserInfo
- } from "@/utils/auth.js";
- import {
- CommonUtils
- } from '../../utils/common';
- import {
- getUserStockRelation
- } from '../../utils/userRelationManager';
- import BillListPopupVue from '../../components/BillListPopup/BillListPopup.vue';
- import BarCodePopupVue from "../../components/BarCodePopup/BarCodePopup.vue";
- import BillSelectPopupXiaoWeiVue from '../../components/BillSelectPopupXiaoWei/BillSelectPopupXiaoWei.vue';
- import BillListPopupMouldVue from '../../components/BillListPopup/BillListPopup_Mould.vue';
- import dayjs from 'dayjs';
- import { MpaasScan } from '../../utils/mpaasScan';
- export default {
- components: {
- BillListPopupVue,
- BarCodePopupVue,
- BillSelectPopupXiaoWeiVue,
- BillListPopupMouldVue,
- },
-
- data() {
- return {
- HSourceBillNoFocus: false,
-
- userInfo: getUserInfo(),
- serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
- HModName: 'Kf_POStockInBackBill_PDA',
- ModRightName: 'CE_POStockInBack',
- OperationType: 1,
- HInterID_Temp: '',
-
- showHStockPlaceName: false,
- showHMainSourceBillType: true,
- showHSourceBillNo: true,
- reHSourceBillNo: true,
- showHSupName: true,
- barCodeFocus: false,
- barcodeReadOnly: false,
- EnableSave: true, // 鏄惁鍚敤淇濆瓨
-
-
- tabs: 0,
-
- HBarCode: '',
- linterid: '',
- HBillNo: '',
- btnType: 0, //0鏂板锛�1淇敼锛�2瀹℃牳锛�3鍙嶅鏍�
- showmore: false,
-
- materMeta: [],
- Materlist: [],
-
- // 鏁呴殰绫诲埆鍒楄〃
- ConkTypeNameList: [],
- ConkTypeList: [],
- // 鏁呴殰鍘熷洜鍒楄〃
- ConkReasonNameList: [],
- ConkReasonList: [],
- // 閮ㄩ棬鍒楄〃
- DeptNameList: [],
- DeptList: [],
- // 鑱屽憳鍒楄〃(鍚屾椂浣滀负鍙戠幇浜哄拰璐熻矗浜虹殑鍙�夋嫨瀵硅薄)
- EmpNameList: [],
- EmpList: [],
- // 鎻愪氦鏁版嵁
- hform: {
- "HBarCode": "",
- "HConkBeginDate": dayjs(new Date()).format("YYYY-MM-DD hh:mm:ss"),
- "HConkTypeName": "",
- "HConkTypeID": "0",
- "HConkReasonName": "",
- "HConkReasonID": "0",
- "HExplanation": "",
- "HBillNo": "",
- "HInterID": "0", "HDeptName": getUserInfo()["HDeptName"],
- "HDeptID": getUserInfo()["HDeptID"],
- "HDate": dayjs(new Date()).format("YYYY-MM-DD hh:mm:ss"),
- "HDeptName": getUserInfo()["HDeptName"],
- "HDeptID": getUserInfo()["HDeptID"],
- "HEmpName": getUserInfo().HEmpName,
- "HEmpID": getUserInfo().HEmpID,
- "HManagerName": getUserInfo().HSecManager,
- "HManagerID": getUserInfo().HSecManagerID,
- "HBarName": "",
- "HMouldID": "0",
- "HBarSpec": "",
- "HBarModel": "",
- "HMaker": getUserInfo()["Czymc"],
- "HMakeDate": dayjs(new Date()).format("YYYY-MM-DD hh:mm:ss"),
- "HUpDater": "",
- "HUpDateDate": "",
- "HChecker": "",
- "HCheckDate": "",
- "HDeleteMan": "",
- "HDeleteDate": "",
- "lngBillKey": "",
- "lngBillSubKey": "",
- "HBillType": 3815,
-
- }
- }
- },
- computed: {
-
-
- },
- async onLoad(e) {
- console.log(e, this.userInfo)
- this.OperationType = e.OperationType
- if (e.HInterID) {
- this.HInterID_Temp = e.HInterID
- // this.btnType = 1
- this.RoadBillMain(e.HInterID)
- this.barCodeFocus = true
- } else {
- this.getNewData()
- this.HSourceBillNoFocus = true
- this.refreshBarCodeState()
- }
-
- this.InitConkType()
- this.InitConkReason()
- this.InitDept()
- this.InitEmp()
- },
- methods: {
- searchModule() {
- this.$refs['billListMould'].showPopup()
- },
- MouldBillHandler(mould) {
- if(!mould.enableMultiSourceBill){
- let val = mould.val[0]
- this.hform.HBarCode = val['鏉$爜缂栧彿']
- this.getHBarCodeData(this.hform.HBarCode)
- }
- this.$refs['billListMould'].exit()
- },
- // 鏁呴殰绫诲埆
- async InitConkType() { // 鍒濆鍖栨晠闅滅被鍒�
- try {
- let res = await CommonUtils.doRequest2Async({
- url: '/Gy_ConkType/List_PDA',
- data: {
- sWhere: '',
- user: getUserInfo()['Czymc']
- }
- })
- let {
- count,
- code,
- Message,
- data
- } = res.data
- if (count == 1) {
- this.ConkTypeList = data
- this.ConkTypeNameList = Array.from(data).map(elem => elem['鏁呴殰绫诲埆鍚嶇О'])
- } else {
- CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栨晠闅滅被鍨嬮敊璇�: " + Message,
- })
- }
- } catch (err) {
- CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栨晠闅滅被鍨嬮敊璇�: " + err,
- })
- }
- },
- ConkTypeNameChange(elem) { // 鏁呴殰绫诲埆鏀瑰彉 鍙ユ焺
- let index = this.ConkTypeNameList.findIndex(e => e == elem)
- if (index == -1) {
- this.hform.HConkTypeName = ''
- this.hform.HConkTypeID = 0
- return
- }
-
- this.hform.HConkTypeName = this.ConkTypeList[index]['鏁呴殰绫诲埆鍚嶇О']
- this.hform.HConkTypeID = this.ConkTypeList[index]['hitemid']
-
- },
-
- // 鏁呴殰鍘熷洜
- async InitConkReason() { // 鍒濆鍖栨晠闅滃師鍥�
- try {
- let res = await CommonUtils.doRequest2Async({
- url: '/PublicPageMethod/Gy_ConkReasonList_PDA',
- data: {
- sWhere: '',
- }
- })
- let {
- count,
- code,
- Message,
- data
- } = res.data
- if (count == 1) {
- this.ConkReasonList = data
- this.ConkReasonNameList = Array.from(data).map(elem => elem['HName'])
- } else {
- CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栨晠闅滃師鍥犻敊璇�: " + Message,
- })
- }
- } catch (err) {
- CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栨晠闅滃師鍥犻敊璇�: " + err,
- })
- }
- },
- ConkReasonChange(elem) { // 鏁呴殰鍘熷洜鏀瑰彉 鍙ユ焺
- let index = this.ConkReasonNameList.findIndex(e => e == elem)
-
- if (index == -1) {
- this.hform.HConkReasonName = ''
- this.hform.HConkReasonID = 0
- return
- }
-
- this.hform.HConkReasonName = this.ConkReasonList[index]['HName']
- this.hform.HConkReasonID = this.ConkReasonList[index]['HItemID']
- },
-
- // 閮ㄩ棬
- async InitDept() { // 鍒濆鍖栭儴闂�
- try {
- let res = await CommonUtils.doRequest2Async({
- url: '/PublicPageMethod/DeptList',
- data: {
- sWhere: 'where 1=1',
- }
- })
- let {
- count,
- code,
- Message,
- data
- } = res.data
- if (count == 1) {
- this.DeptList = data
- this.DeptNameList = Array.from(data).map(elem => elem['HName'])
- } else {
- CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栭儴闂ㄩ敊璇�: " + Message,
- })
- }
- } catch (err) {
- CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栭儴闂ㄩ敊璇�: " + err,
- })
- }
- },
- DeptChange(elem) { // 閮ㄩ棬鏀瑰彉 鍙ユ焺
- let index = this.DeptNameList.findIndex(e => e == elem)
-
- if (index == -1) {
- this.hform.HDeptName = ''
- this.hform.HDeptID = 0
- return
- }
-
- this.hform.HDeptName = this.DeptList[index]['HName']
- this.hform.HDeptID = this.DeptList[index]['HItemID']
- },
-
- // 鑱屽憳
- async InitEmp() { // 鍒濆鍖栬亴鍛�
- try {
- let res = await CommonUtils.doRequest2Async({
- url: '/Web/GetEmployeeList_Json',
- data: {
- Employee: '',
- HGroupID: 0,
- }
- })
- let {
- count,
- code,
- Message,
- data
- } = res.data
- if (count == 1) {
- this.EmpList = data
- this.EmpNameList = Array.from(data).map(elem => elem['HName'])
- } else {
- CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栬亴鍛橀敊璇�: " + Message,
- })
- }
- } catch (err) {
- CommonUtils.showTips({
- title: '閿欒鎻愮ず',
- message: "鍒濆鍖栬亴鍛橀敊璇�: " + err,
- })
- }
- },
- EmpChange(elem) { // 鍙戠幇浜烘洿鏀�
- let index = this.EmpNameList.findIndex(e => e == elem)
-
- if (index == -1) {
- this.hform.HEmpName = ''
- this.hform.HEmpID = 0
- return
- }
-
- this.hform.HEmpName = this.EmpList[index]['HName']
- this.hform.HEmpID = this.EmpList[index]['HItemID']
- },
- ManagerChange(elem) { // 璐熻矗浜烘洿鏀�
- let index = this.EmpNameList.findIndex(e => e == elem)
-
- if (index == -1) {
- this.hform.HManagerName = ''
- this.hform.HManagerID = 0
- return
- }
-
- this.hform.HManagerName = this.EmpList[index]['HName']
- this.hform.HManagerID = this.EmpList[index]['HItemID']
- },
-
- async qrCodeDisplay() {
- try {
- this.$refs.barcodePopup.setCodeInfo(this.hform.HBillNo)
- await this.$nextTick()
- this.$refs.barcodePopup.open()
- } catch (err) {
- uni.showToast({
- icon: 'none',
- title: err
- })
- }
- },
- async refreshBarCodeState() {
- this.barCodeFocus = false
- await this.$nextTick(() => {
- this.hform.HBarCode = ""
- this.barCodeFocus = true
- })
- },
- playSound(e) {
- const innerAudioContext = uni.createInnerAudioContext();
- if (e == 1) {
- innerAudioContext.src = '/static/success.wav';
- } else {
- innerAudioContext.src = '/static/jingbao.wav';
- }
- innerAudioContext.play(); // 鎾斁闊抽
- },
- //鎵爜
- toScanCode() {
- var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
- mpaasScanModule.mpaasScan({
- 'hideAlbum': true,
- 'timeoutInterval': '10', //瓒呮椂鏃堕棿
- 'timeoutText': '鏈瘑鍒埌浜岀淮鐮�' //瓒呮椂鎻愰啋
- }, (ret) => {
- console.log(ret.resp_result)
- if (this.hform.HBarCode == '*') {
- this.hform.HBarCode = this.hform.HBarCode + ret.resp_result
- } else {
- this.hform.HBarCode = ret.resp_result
- }
-
- this.getHBarCodeData(this.hform.HBarCode)
- })
- },
- //鏃ユ湡
- HDateChange(e) {
- console.log(e.detail.value)
- this.hform.HDate = e.detail.value
- },
-
- // 鎵弿鏉$爜
- async getHBarCodeData(HBarCode) {
- if (!HBarCode) {
- CommonUtils.showTips({
- message: '鏉″舰鐮佷笉鑳戒负绌�'
- })
- return
- }
- try {
- let res = await CommonUtils.doRequest2Async({
- url: '/QJ_PDA_MouldDotCheckBill/txtHBarCode_KeyDown',
- data: {
- "HBarCode": HBarCode
- }
- })
-
- let {
- count,
- data,
- Message
- } = res.data
- if (count == 1) {
- this.hform.HMouldID = data[0].HInterID
- this.hform.HBarName = data[0].HName
- this.hform.HBarSpec = data[0].HModels
- this.hform.HBarModel = data[0].HModel2
- this.barcodeReadOnly = true
- } else {
- this.refreshBarCodeState()
- return CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: Message
- })
- }
- } catch (err) {
- this.refreshBarCodeState()
- return CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: "鎺ュ彛璇锋眰澶辫触" + err
- })
- }
-
- },
- //鐗╂枡淇℃伅
- DisBillEntryList() {
- uni.request({
- url: this.serverUrl + '/WEBSController/GetBillEntryTmpList_Json',
- data: {
- HInterID: this.hform.HInterID,
- HBillNo: this.hform.HBillNo,
- HBillType: this.hform.HBillType,
- HStockOrgID: this.hform.HStockOrgID
- },
- success: (res) => {
- console.log('鐗╂枡', res.data)
- if (res.data.count == 1) {
- var data = res.data.data
- this.materMeta = data.BarCodeDetailslist
- this.Materlist = data.Materlist
- if (/鍏磋揪/.test(uni.getStorageSync("Organization"))) {
- // 鍏磋揪瀹㈡埛 甯﹀嚭 浠撳簱
- console.log("鍏磋揪甯﹀嚭榛樿浠撳簱")
- this.HWHNameChange(data.BarCodeDetailslist[0].HWHName)
- }
-
-
- if (!data.BarCodeDetailslist[0].HBarCode) {
- this.hform.HMaterName_B = ''
- this.hform.HMaterModel_B = ''
- this.hform.HBatchNo_B = ''
- this.hform.HUnitName_B = ''
- this.hform.HQty_B = ''
- this.hform.HTMQty_B = ''
- this.hform.HWHName_B = ''
- this.hform.HSPName_B = ''
- } else {
- this.hform.HMaterName_B = data.BarCodeDetailslist[0].HMaterName
- this.hform.HMaterModel_B = data.BarCodeDetailslist[0].HMaterModel
- this.hform.HBatchNo_B = data.BarCodeDetailslist[0].HBatchNo
- this.hform.HUnitName_B = data.BarCodeDetailslist[0].HUnitName
- this.hform.HQty_B = data.BarCodeDetailslist[0].HQty
- this.hform.HTMQty_B = data.BarCodeDetailslist[0].HTMQty
- this.hform.HWHName_B = data.BarCodeDetailslist[0].HWHName
- this.hform.HSPName_B = data.BarCodeDetailslist[0].HSPName
- }
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- },
- //鍒犻櫎鐗╂枡鐮�
- delMater(item) {
- uni.showModal({
- title: '鎻愮ず',
- content: '纭瑕佸垹闄� " ' + item.鐗╂枡鍚嶇О + ' " 鎵�鏈夋壂鐮佽褰曪紵鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛�',
- success: (res) => {
- if (res.confirm) {
- uni.request({
- url: this.serverUrl +
- '/WEBSController/set_DelPonderationBillMain_Temp_InterIDAndSource_Json',
- data: {
- HInterID: this.hform.HInterID,
- HMaterID: item.HMaterID,
- HAuxPropID: item.HAuxPropID,
- HMTONo: item.HMTONo,
- HSourceInterID: item.HSourceInterID,
- HSourceEntryID: item.HSourceEntryID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- if (res.data.count == 1) {
- this.DisBillEntryList()
- } else {
- uni.showToast({
- title: res.data.Message,
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- }
- }
- });
- },
- // 鏂板鍥炶皟
- addNew() {
- uni.redirectTo({
- url: '/pages/qijvguzhangdengji/mouldMistakeBill?OperationType=1'
- })
- },
- //鏂板
- getNewData() {
- uni.request({
- url: this.serverUrl + '/Web/GetMAXNum',
- data: {
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- // console.log(res.data)
- if (res.data.count == 1) {
- this.hform.HInterID = 0
- 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'
- })
- },
- });
- },
- //淇敼鍥炲~鏁版嵁
- RoadBillMain(HInterID) {
- uni.request({
- url: this.serverUrl + '/WEBSController/GetSourceBill_Temp_Json',
- data: {
- HInterID: HInterID,
- HBillType: this.hform.HBillType
- },
- success: (res) => {
- console.log(33, res.data.data[0]);
- if (res.data.count == 1) {
- var data = res.data.data[0]
- this.hform.HInterID = data.HInterID
- this.hform.HBillNo = data.HBillNo
- this.hform.HMainSourceBillType = data.HSourceBillType
- this.hform.HSourceBillNo = data.HSourceBillNo
- if (data.HSourceBillType == 1105) {
- this.hform.HMainSourceBillType = 1105
- this.HMainSourceBillType = '閫�鏂欓�氱煡鍗�'
- this.showHSupName = false
- } else if (data.HSourceBillType == 1102) {
- this.hform.HMainSourceBillType = 1102
- this.HMainSourceBillType = '閲囪喘璁㈠崟'
- this.showHSupName = false
- } else if (data.HSourceBillType == 1201) {
- this.hform.HMainSourceBillType = 1201
- this.HMainSourceBillType = '閲囪喘鍏ュ簱鍗�'
- this.showHSupName = false
- } else {
- this.hform.HMainSourceBillType = -1
- this.HMainSourceBillType = '鎵嬪伐褰曞叆'
- }
- this.showHMainSourceBillType = false
-
- //闈炲婧愬崟妯″紡
- if (data.HMulSourceBill == 0) {
- this.showHSourceBillNo = false
- }
- this.hform.HDeptID = data.HDeptID
- this.hform.HDeptName = data.HDeptName
- this.hform.HSupID = data.HCusID
- this.hform.HSupName = data.HSupName
- this.DisBillEntryList()
- this.tabs = 2
- } else {
- uni.showToast({
- title: '鑾峰彇鏁版嵁鍥炲~澶辫触',
- icon: 'none'
- })
- }
- },
- fail: (res) => {
- console.log(res);
- uni.showToast({
- title: '鎺ュ彛璇锋眰澶辫触',
- icon: 'none'
- })
- },
- });
- },
- checkBillValidate() {
- let message = ''
-
- if (!this.hform.HConkTypeName) {
- message = '鏈~鍐欐晠闅滅被鍒�'
- } else if (!this.hform.HConkReasonName) {
- message = '鏈~鍐欐晠闅滃師鍥�'
- } else if (!this.hform.HDeptName) {
- message = '鏈~鍐欓儴闂�'
- } else if (!this.hform.HEmpName) {
- message = '鏈~鍐欏彂鐜颁汉'
- }
- // else if (!this.hform.HManagerName) {
- // message = '鏈~鍐欒礋璐d汉'
- // }
-
- if (!message) {
- return true
- }
-
- CommonUtils.showTips({
- message: message
- })
- return false
- },
- async submit() {
- if (!this.checkBillValidate()) {
- return
- }
- let oMain = JSON.stringify(this.hform)
- let sSubStr = JSON.stringify([{
- "HConkReasonID": this.hform.HConkReasonID,
- "HConkReasonCode": "",
- "HConkReasonName": this.hform.HConkReasonName,
- "HConkExplanation": this.hform.HExplanation,
- "HManagerID": this.hform.HManagerID,
- "HManagerCode": "",
- "HManagerName": this.hform.HManagerName,
- "HRemark": " "
- }])
- let sMainSub = `${oMain};${sSubStr};${getUserInfo()["Czymc"]};1`
- try {
- this.EnableSave = false
- let res = await CommonUtils.doRequest2Sync({
- url: '/Sc_MouldConkBookBill/SaveGetMouldConkBookBillList',
- data: {
- msg: sMainSub
- },
- method: 'POST'
- })
-
- if (!res) {
- return
- }
-
- let {
- count,
- Message
- } = res.data
- if (count == 1) {
- uni.showModal({
- title: '鎻愮ず',
- content: res.data.Message + '銆傛槸鍚︾户缁柊澧烇紵',
- success: (res) => {
- if (res.confirm) {
- console.log('鐢ㄦ埛鐐瑰嚮纭畾');
- uni.redirectTo({
- url: '/pages/qijvguzhangdengji/mouldMistakeBill?OperationType=1'
- })
- } else if (res.cancel) {
- console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
- // setTimeout(() => {
- // uni.navigateBack();
- // }, 50)
- }
- }
- });
- } else {
- CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: Message
- })
- this.EnableSave = true
- }
- } catch (err) {
- CommonUtils.showTips({
- title: '娓╅Θ鎻愮ず',
- message: err
- })
- this.EnableSave = true
- }
- },
-
- 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;
- }
-
- .tabs {
- width: 100%;
- display: flex;
- border-bottom: 1px solid #ddd;
- margin: 20rpx 0;
-
- view {
- width: 25%;
- font-size: 30rpx;
- color: #555;
- text-align: center;
- padding: 16rpx 0;
- }
-
- .on {
- color: #3a78ff;
- font-weight: bold;
- border-bottom: 3px solid #3a78ff;
- }
- }
-
- .form-item {
- display: flex;
- align-items: center;
- font-size: inherit;
- padding: 6rpx 0;
- gap: 12rpx;
-
- .title {
- width: 200rpx;
- font-size: 30rpx;
-
- text {
- color: red;
- font-weight: bold;
- }
- }
-
- .right {
- flex: 1;
- border-radius: 22rpx;
- border: 1px solid #acacac;
- position: relative;
- padding: 8rpx 16rpx;
- display: flex;
- font-size: 30rpx;
-
- picker {
- width: 100%;
- }
-
- .uni-combox {
- width: 100%;
- padding: 0;
-
- ::v-deep .uni-combox__input {
- font-size: 30rpx;
- height: auto;
- }
- }
- }
-
- .righton {
- flex: 1;
- border-radius: 22rpx;
- border: 1px solid #e4e4e4;
- background-color: #e4e4e4;
- padding: 8rpx 16rpx;
- font-size: 30rpx;
- }
-
- input {
- width: 100%;
- font-size: 30rpx;
- }
-
- textarea {
- width: 98%;
- font-size: 30rpx;
- }
-
- }
-
- .bottom-btn {
- width: 100%;
- box-sizing: border-box;
- // 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;
- display: flex;
- flex-direction: row;
- gap: 10rpx;
-
- 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;
- }
-
- .btn-c {
- background-color: #acacac;
- color: #fff;
- // position: absolute;
- // right: 120rpx;
- }
-
- .btn-d {
- background-color: #ff8901;
- color: #fff;
- }
- }
-
- .list {
- width: 100%;
-
- .card-detail {
- width: 100%;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- line-height: 120%;
-
- .detail {
- // width: 50%;
- font-size: 26rpx;
- margin-bottom: 12rpx;
- color: #555;
- margin-right: 20rpx;
-
- text {
- color: #999;
- font-size: 26rpx;
- }
- }
- }
-
- .more {
- color: #888;
- font-size: 24rpx;
- display: flex;
- border-top: 1px solid #eee;
- padding-top: 20rpx;
-
- .part {
- width: 50%;
- text-align: center;
- }
- }
- }
-
- .icon-wrapper {
- background-color: #3A78FF;
- width: 52rpx;
- height: 52rpx;
- border-radius: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
-
- .uni-icons {
- color: #fff !important;
- }
- }
-
- .required {
- position: relative;
-
- }
-
- .required::after {
- content: "*";
- position: relative;
- color: red;
- left: 0;
- top: 0;
- font-size: inherit;
- }
-
- .icon-wrapper[disabled] {
- background-color: rgba(228, 228, 228, 1);
- pointer-events: none;
- touch-action: none;
- }
-
- .readonly {
- background-color: #efefef4d;
- }
-</style>
\ No newline at end of file
--
Gitblit v1.9.1