From 171e6dc39bb085184c0e0989b7b37b129c59e6ac Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期三, 16 七月 2025 22:38:10 +0800
Subject: [PATCH] 1.样本值修改
---
Scripts/config.js | 2 +-
H5/Js/LLJ/Add.js | 41 +++++++++++++++++++++++++++++++++++++++++
Mst.master | 2 +-
H5/LLJ/Add.aspx | 8 ++++++--
4 files changed, 49 insertions(+), 4 deletions(-)
diff --git a/H5/Js/LLJ/Add.js b/H5/Js/LLJ/Add.js
index e725a23..e329912 100644
--- a/H5/Js/LLJ/Add.js
+++ b/H5/Js/LLJ/Add.js
@@ -40,6 +40,8 @@
okValue: '',//OK-鏁伴噺
ngValue: '',//NG-鏁伴噺
showDialog: false,//涓嶈壇琛ㄨ堪杈撳叆妗�
+ ybsDialog: false,//鏍锋湰鍊艰緭鍏ユ
+ ybsValue: '',//鏍锋湰鏁伴噺
//鍥剧墖涓婁紶妗�
fileList: [
//{
@@ -82,6 +84,11 @@
this.inputValue = value.replace(/[^\d.]/g, '') // 1. 鍘婚櫎闈炴暟瀛楀拰灏忔暟鐐�
.replace(/(\..*)\./g, '$1') // 2. 绂佹澶氫釜灏忔暟鐐�
.replace(/^\./g, '');
+ },
+ handleNumberInput4(value) {
+ // 鍘婚櫎闈炴暟瀛楀苟纭繚棣栦綅涓嶄负0锛堥櫎闈炴槸鍗曠嫭鐨�0锛�
+ this.jymxData.ybsl = value.replace(/[^\d]/g, '') // 鍘婚櫎闈炴暟瀛楀瓧绗�
+ .replace(/^0+(?!$)/, ''); // 鍘婚櫎寮�澶寸殑0锛岄櫎闈炴暣涓瓧绗︿覆鏄�0
},
togglePopup(index) {
@@ -351,6 +358,40 @@
updateRemarks(guid) {
this.showDialog= true
},
+ EditYangLi(GUID) {
+ // 鍒囨崲鎸囧畾绱㈠紩鐨� popup 鐘舵��
+ var that = this;
+
+ if (!that.jymxData.ybsl) {
+ this.$toast.fail("鏍锋湰鏁颁笉鑳戒负绌�");
+ that.isLoading = false;
+ return;
+ }
+
+ var mxguid = that.tableData[that.tabActive].guid;//妫�楠岄」鐩殑guid
+ var input = that.jymxData.ybsl;
+ that.isLoading = true;
+ that.AxiosHttp("post", 'MesQaItemsDetect01Manager/EditYangLi', {
+ dt05Guid: mxguid,
+ fSeq: "鏍锋湰鏁�",
+ fVal: input,
+ }, true, 1).then(function (res1) {
+ if (res1.rtnData.outSum == 1) {
+ that.$notify({
+ type: 'success', message: res1.rtnMsg
+ });
+ that.okValue = null;
+ that.refreshJYItem();//鍒锋柊妫�楠岄」鐩�
+ } else {
+ that.$toast.fail(res1.rtnMsg);
+ }
+ that.isLoading = false;
+ }).catch(function (error) {
+ that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+ that.isLoading = false;
+ });
+ },
+
deleteDetail13(guid13) {
const that = this;
diff --git a/H5/LLJ/Add.aspx b/H5/LLJ/Add.aspx
index cc9e1fe..f117e02 100644
--- a/H5/LLJ/Add.aspx
+++ b/H5/LLJ/Add.aspx
@@ -205,7 +205,11 @@
<van-field label="涓婇檺" colon="true" v-model="jymxData.fupAllow" readonly ></van-field>
<%--<van-field label="AC鏁�" colon="true" v-model="jymxData.facQty" readonly ></van-field>--%>
<van-field label="RE鏁�" colon="true" v-model="jymxData.freQty" readonly ></van-field>
- <van-field label="鏍锋湰鏁�" colon="true" v-model="jymxData.ybsl" readonly ></van-field>
+ <van-field label="鏍锋湰鏁�" colon="true" v-model="jymxData.ybsl" @input="handleNumberInput4" >
+ <template #button>
+ <van-tag type="primary" style="font-size:15px" @click="EditYangLi(jymxData.guid)">淇敼</van-tag>
+ </template>
+ </van-field>
<%--<van-field label="棰勮缁撴灉" colon="true" v-model="jymxData.result" readonly ></van-field>--%>
<%--<van-field label="缁撴灉褰曞叆" colon="true" v-model="resultValue" placeholder="璇疯緭鍏K-鏁板瓧鎴朜G-鏁板瓧"></van-field>--%>
@@ -384,5 +388,5 @@
<%--<comback ></comback>--%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
- <script src="../Js/LLJ/Add.js?<%=119997112 %>"></script>
+ <script src="../Js/LLJ/Add.js?<%=119997116 %>"></script>
</asp:Content>
diff --git a/Mst.master b/Mst.master
index 3e62dbd..c7642fe 100644
--- a/Mst.master
+++ b/Mst.master
@@ -11,7 +11,7 @@
<script src="/Scripts/vue.min.js"></script>
<script src="/Scripts/js.cookie.min.js"></script>
<script src="/scripts/axios0.25.0.js"></script>
- <script src="/scripts/config.js?<%=123611117 %>"></script>
+ <script src="/scripts/config.js?<%=123611118 %>"></script>
<link href="/scripts/vant/vant.css" rel="stylesheet" />
<script src="/scripts/vant/vant.js"></script>
<link href="/Images/Style.css?<%=169950 %>" rel="stylesheet" />
diff --git a/Scripts/config.js b/Scripts/config.js
index 97d05c2..34933a0 100644
--- a/Scripts/config.js
+++ b/Scripts/config.js
@@ -1,7 +1,7 @@
锘�/*var APIURL = "http://192.168.1.145:83/api/";*/
var APIURL = "http://localhost:5204/api/";
/*var APIURL_PC = "http://192.168.1.145:81/";*/
-var APIURL_PC = "http://192.168.1.145:8081/";//娴嬭瘯
+var APIURL_PC = "http://192.168.1.145:81/";//娴嬭瘯
var APIURL_IMAGE = APIURL_PC+"upload/";
var ISNEEDLOGIN = true;
String.prototype.trim = function () {
--
Gitblit v1.9.3