From 66f29ab451014ca2e72fa9a5ff6373ab507ff67c Mon Sep 17 00:00:00 2001
From: xwt <2740516069@qq.com>
Date: 星期四, 17 七月 2025 18:32:42 +0800
Subject: [PATCH] 入库检,来料检获取附件—70%

---
 pages/QC/RKJ/Add.vue | 1111 +++++++++++++++++++++++++++++-----------------------------
 1 files changed, 558 insertions(+), 553 deletions(-)

diff --git a/pages/QC/RKJ/Add.vue b/pages/QC/RKJ/Add.vue
index 36fd29b..1fe4639 100644
--- a/pages/QC/RKJ/Add.vue
+++ b/pages/QC/RKJ/Add.vue
@@ -1,584 +1,589 @@
 <template>
-  <view>
-    <view class="form-container">
-      <form :modelValue="formData">
-        <view class="form-group">
-          <label class="form-label">妫�楠屽崟鍙�:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.releaseNo"/>
-        </view>
-        <view class="form-group">
-          <label class="form-label">鍒涘缓浜�:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.createBy"/>
-        </view>
-        <view class="form-group">
-          <label class="form-label">鍒涘缓鏃堕棿:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.createDate"/>
-        </view>
-        <view class="uni-form-item uni-column form-item edit">
-          <text class="form-label">鐢熶骇绾垮埆:</text>
-          <superwei-combox v-if="isUpdate" :candidates="DAA020List" placeholder="璇烽�夋嫨鎴栬緭鍏�"
-                           v-model="formData.lineName"
-                           @select="onDaa020Change"
-                           class="picker form-input"
-                           style="border: none;"></superwei-combox>
-          <input v-else class="form-input" disabled="true" type="text" v-model="formData.daa015"/>
-        </view>
-
-        <view class="uni-form-item uni-column form-item edit">
-          <text class="form-label">閫佹鎵规鍙�:</text>
-          <superwei-combox v-if="isUpdate" :candidates="DAA001List" placeholder="璇烽�夋嫨鎴栬緭鍏�"
-                           v-model="formData.billNo"
-                           @select="onDaa001Change"
-                           class="picker form-input"
-                           style="border: none;"></superwei-combox>
-          <input v-else class="form-input" disabled="true" type="text" v-model="formData.billNo"/>
-        </view>
-        <view class="form-group">
-          <label class="form-label">鐗╂枡缂栫爜:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.itemNo"/>
-        </view>
-        <view class="uni-title-sub uni-ellipsis-2">
+    <view>
+      <view class="form-container">
+        <form :modelValue="formData">
           <view class="form-group">
-            <label class="form-label">浜у搧鍚嶇О:</label>
-            <input class="form-input" disabled="true" type="text" v-model="formData.itemName"/>
+            <label class="form-label">妫�楠屽崟鍙�:</label>
+            <input class="form-input" disabled="true" type="text" v-model="formData.releaseNo"/>
           </view>
-        </view>
-        <view class="form-group">
-          <label class="form-label">瑙勬牸鍨嬪彿:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.itemModel"/>
-        </view>
-        <view class="form-group">
-          <label class="form-label">閫佹鏁伴噺:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.quantity"/>
-        </view>
-		<view class="form-group">
-		  <label class="form-label">鎶ュ伐浜�:</label>
-		  <input class="form-input" disabled="true" type="text" v-model="formData.bgr"/>
-		</view>
-		<view class="form-group">
-		  <label class="form-label">妫�楠岀粨鏋�:</label>
-		  <input class="form-input" disabled="true" type="text" v-model="formData.fcheckResu"/>
-		</view>
-        <view class="form-group">
-          <label class="form-label">涓嶅悎鏍兼弿杩�:</label>
-          <input class="form-input" disabled="true" type="text" v-model="formData.remarks"/>
-        </view>
-      </form>
-    </view>
-
-    <view class="list-container">
-      <uni-table ref="table" border emptyText="鏆傛棤鏇村鏁版嵁">
-        <uni-tr>
-          <uni-th align="center" class="th" style="color: #FFFFFF;">妫�楠岄」鐩�</uni-th>
-          <uni-th align="center" class="th" style="color: #FFFFFF">鏄惁鍚堟牸</uni-th>
-          <uni-th align="center" class="th" style="color: #FFFFFF">璁板綍(鐐瑰嚮)</uni-th>
-        </uni-tr>
-        <uni-tr v-for="(item, index) in tableData" :key="index">
-          <uni-td align="center">
-            <input class="form-input" disabled="true" type="text" v-model="item.projName"/>
-          </uni-td>
-          <uni-td align="center">
-            <input class="form-input" disabled="true" type="text" v-model="item.result"/>
-          </uni-td>
-          <uni-td>
-            <view class="uni-group">
-              <button v-if="item.isCheck >=item.levelNum" type="default" @click="toDetail(item)">
-                {{ item.levelNum + '/' + item.isCheck }}
-              </button>
-              <button v-else type="warn" @click="toDetail(item)">
-                {{ item.levelNum + '/' + item.isCheck }}
-              </button>
+          <view class="form-group">
+            <label class="form-label">鍒涘缓浜�:</label>
+            <input class="form-input" disabled="true" type="text" v-model="formData.createBy"/>
+          </view>
+          <view class="form-group">
+            <label class="form-label">鍒涘缓鏃堕棿:</label>
+            <input class="form-input" disabled="true" type="text" v-model="formData.createDate"/>
+          </view>
+          <view class="uni-form-item uni-column form-item edit">
+            <text class="form-label">鐢熶骇绾垮埆:</text>
+            <superwei-combox v-if="isUpdate" :candidates="DAA020List" placeholder="璇烽�夋嫨鎴栬緭鍏�"
+                             v-model="formData.lineName"
+                             @select="onDaa020Change"
+                             class="picker form-input"
+                             style="border: none;"></superwei-combox>
+            <input v-else class="form-input" disabled="true" type="text" v-model="formData.daa015"/>
+          </view>
+  
+          <view class="uni-form-item uni-column form-item edit">
+            <text class="form-label">宸ュ崟鍙�:</text>
+            <superwei-combox v-if="isUpdate" :candidates="DAA001List" placeholder="璇烽�夋嫨鎴栬緭鍏�"
+                             v-model="formData.billNo"
+                             @select="onDaa001Change"
+                             class="picker form-input"
+                             style="border: none;"></superwei-combox>
+            <input v-else class="form-input" disabled="true" type="text" v-model="formData.billNo"/>
+          </view>
+          <view class="form-group">
+            <label class="form-label">閫佹鎵规:</label>
+            <input class="form-input" type="text" v-model="formData.rbillNo" :readonly="true" />
+          </view>
+          <view class="form-group">
+            <label class="form-label">鐗╂枡缂栫爜:</label>
+            <input class="form-input" disabled="true" type="text" v-model="formData.itemNo"/>
+          </view>
+          <view class="uni-title-sub uni-ellipsis-2">
+            <view class="form-group">
+              <label class="form-label">浜у搧鍚嶇О:</label>
+              <input class="form-input" disabled="true" type="text" v-model="formData.itemName"/>
             </view>
-          </uni-td>
-        </uni-tr>
-      </uni-table>
-    </view>
-
-    <view class="plus-button">
-      <button type="warn" v-if="isUpdate && !isShowTable" @click="getItem">鐢熸垚妫�楠屽崟</button>
-    </view>
-	
-    <view class="plus-button">
-      <button type="warn" v-if="!isUpdate && !isShowTable" @click="toImage">涓婁紶/鏌ョ湅鍥剧墖</button>
-    </view>
-	
-    <view class="plus-button">
-      <button type="warn" v-if="!isUpdate && !isShowTable" @click="saveRemarks">娣诲姞涓嶅悎鏍兼弿杩�</button>
-    </view>
-	
-	<view class="plus-button">
-	  <button type="warn" v-if="!isUpdate && !isShowTable && this.formData.fsubmit != 1" @click="cleanResult">娓呴櫎妫�楠岀粨鏋�</button>
-	</view>
-	
-<!--    <view class="plus-button">
-      <button type="warn" v-if="!isUpdate && !formData.fcheckResu && !isShowTable" @click="removeXJ">鍒犻櫎鍗曟嵁</button>
-    </view> -->
-
-    <view class="plus-button">
-      <button type="warn" v-if="isShowTable" @click="getTable">鑾峰彇妫�楠岄」鐩�</button>
-    </view>
-
-    <view class="plus-button">
-      <button type="warn" v-if="isShowTable && isUpdate" @click="saveTable">鐢熸垚妫�楠岄」鐩�</button>
-    </view>
-
-
-    <view v-if="showPopup" class="overlay">
-      <view class="popup">
-        <h3>淇敼涓嶅悎鏍兼弿杩�</h3>
-        <form>
+          </view>
+          <view class="form-group">
+            <label class="form-label">瑙勬牸鍨嬪彿:</label>
+            <input class="form-input" disabled="true" type="text" v-model="formData.itemModel"/>
+          </view>
+          <view class="form-group">
+            <label class="form-label">閫佹鏁伴噺:</label>
+            <input class="form-input" disabled="true" type="text" v-model="formData.quantity"/>
+          </view>
+          <view class="form-group">
+            <label class="form-label">鎶ュ伐浜�:</label>
+            <input class="form-input" disabled="true" type="text" v-model="formData.bgr"/>
+          </view>
+          <view class="form-group">
+            <label class="form-label">妫�楠岀粨鏋�:</label>
+            <input class="form-input" disabled="true" type="text" v-model="formData.fcheckResu"/>
+          </view>
           <view class="form-group">
             <label class="form-label">涓嶅悎鏍兼弿杩�:</label>
-            <input class="form-input" type="text" v-model="remarks"/>
+            <input class="form-input" disabled="true" type="text" v-model="formData.remarks"/>
           </view>
-          <button type="warn" @click="edit">淇敼</button>
-          <button @click="showPopup = !showPopup">鍙栨秷</button>
         </form>
       </view>
+  
+      <view class="list-container">
+        <uni-table ref="table" border emptyText="鏆傛棤鏇村鏁版嵁">
+          <uni-tr>
+            <uni-th align="center" class="th" style="color: #FFFFFF;">妫�楠岄」鐩�</uni-th>
+            <uni-th align="center" class="th" style="color: #FFFFFF">鏄惁鍚堟牸</uni-th>
+            <uni-th align="center" class="th" style="color: #FFFFFF">璁板綍(鐐瑰嚮)</uni-th>
+          </uni-tr>
+          <uni-tr v-for="(item, index) in tableData" :key="index">
+            <uni-td align="center">
+              <input class="form-input" disabled="true" type="text" v-model="item.projName"/>
+            </uni-td>
+            <uni-td align="center">
+              <input class="form-input" disabled="true" type="text" v-model="item.result"/>
+            </uni-td>
+            <uni-td>
+              <view class="uni-group">
+                <button v-if="item.isCheck >=item.levelNum" type="default" @click="toDetail(item)">
+                  {{ item.levelNum + '/' + item.isCheck }}
+                </button>
+                <button v-else type="warn" @click="toDetail(item)">
+                  {{ item.levelNum + '/' + item.isCheck }}
+                </button>
+              </view>
+            </uni-td>
+          </uni-tr>
+        </uni-table>
+      </view>
+  
+      <view class="plus-button">
+        <button type="warn" v-if="isUpdate && !isShowTable" @click="getItem">鐢熸垚妫�楠屽崟</button>
+      </view>
+      
+      <view class="plus-button">
+        <button type="warn" v-if="!isUpdate && !isShowTable" @click="toImage">涓婁紶/鏌ョ湅鍥剧墖</button>
+      </view>
+      
+      <view class="plus-button">
+        <button type="warn" v-if="!isUpdate && !isShowTable" @click="saveRemarks">娣诲姞涓嶅悎鏍兼弿杩�</button>
+      </view>
+      
+      <view class="plus-button">
+        <button type="warn" v-if="!isUpdate && !isShowTable && this.formData.fsubmit != 1" @click="cleanResult">娓呴櫎妫�楠岀粨鏋�</button>
+      </view>
+      
+  <!--    <view class="plus-button">
+        <button type="warn" v-if="!isUpdate && !formData.fcheckResu && !isShowTable" @click="removeXJ">鍒犻櫎鍗曟嵁</button>
+      </view> -->
+  
+      <view class="plus-button">
+        <button type="warn" v-if="isShowTable" @click="getTable">鑾峰彇妫�楠岄」鐩�</button>
+      </view>
+  
+      <view class="plus-button">
+        <button type="warn" v-if="isShowTable && isUpdate" @click="saveTable">鐢熸垚妫�楠岄」鐩�</button>
+      </view>
+  
+  
+      <view v-if="showPopup" class="overlay">
+        <view class="popup">
+          <h3>淇敼涓嶅悎鏍兼弿杩�</h3>
+          <form>
+            <view class="form-group">
+              <label class="form-label">涓嶅悎鏍兼弿杩�:</label>
+              <input class="form-input" type="text" v-model="remarks"/>
+            </view>
+            <button type="warn" @click="edit">淇敼</button>
+            <button @click="showPopup = !showPopup">鍙栨秷</button>
+          </form>
+        </view>
+      </view>
+  
     </view>
-
-  </view>
-</template>
-
-<script>
-export default {
-  data() {
-    return {
-      formData: {
-        id: "",
-        releaseNo: "",
-        createBy: "",
-        createDate: "",
-        daa020: "",
-        itemNo: "",
-        billNo: "",
-        catQty: "",
-        detailMem: "",
-        taskNo: "",
-        fcheckResu: "",
-        remarks: ""
-      },
-
-      DAA020List: [],
-
-      DAA001List: [],
-
-      BillNoList: [],
-
-      lineList: [],
-
-      lineNo: "",
-
-      tableData: [],
-
-      isSubmit: true,
-
-      isUpdate: true,
-
-      isShowTable: false,
-
-      remarks: "",
-
-      showPopup: false,
-    };
-  },
-  onLoad(options) {
-    //options涓寘鍚簡url闄勫甫鐨勫弬鏁�
-
-    let params = options;
-
-    if (params["id"]) {
-      this.isUpdate = false;
-      this.formData.id = params["id"];
-      this.formData.releaseNo = params["releaseNo"];
-      //getQaItemXj02
-      this.init();
-    } else {
-      //鍒濆鍖栨楠屽崟鍙�
-      this.$post({
-        url: "/RKJ/getMaxReleaseNo"
-      }).then(res => {
-        this.formData.releaseNo = res.data.tbBillList;
-        this.formData.createBy = this.$loginInfo.account;
-        this.formData.createDate = this.$getDate("yyyy-mm-dd");
-      });
-
-      //杞﹂棿涓嬫媺妗嗙殑鍒濆鍖�
-      this.$post({
-        url: "/XJ/getLineAll"
-      }).then(res => {
-        this.lineList = res.data.tbBillList;
-        this.DAA020List = res.data.tbBillList.map(item => item.lineName);
-      })
-    }
-  },
-  methods: {
-    removeXJ() {
-      if (this.formData.id) {
+  </template>
+  
+  <script>
+  export default {
+    data() {
+      return {
+        formData: {
+          id: "",
+          releaseNo: "",
+          createBy: "",
+          createDate: "",
+          daa020: "",
+          itemNo: "",
+          billNo: "",
+          catQty: "",
+          detailMem: "",
+          taskNo: "",
+          fcheckResu: "",
+          remarks: "",
+          rbillNo: ""
+        },
+  
+        DAA020List: [],
+  
+        DAA001List: [],
+  
+        BillNoList: [],
+  
+        lineList: [],
+  
+        lineNo: "",
+  
+        tableData: [],
+  
+        isSubmit: true,
+  
+        isUpdate: true,
+  
+        isShowTable: false,
+  
+        remarks: "",
+  
+        showPopup: false,
+      };
+    },
+    onLoad(options) {
+      //options涓寘鍚簡url闄勫甫鐨勫弬鏁�
+  
+      let params = options;
+  
+      if (params["id"]) {
+        this.isUpdate = false;
+        this.formData.id = params["id"];
+        this.formData.releaseNo = params["releaseNo"];
+        //getQaItemXj02
+        this.init();
+      } else {
+        //鍒濆鍖栨楠屽崟鍙�
         this.$post({
-          url: "/RKJ/removeXJ",
+          url: "/RKJ/getMaxReleaseNo"
+        }).then(res => {
+          this.formData.releaseNo = res.data.tbBillList;
+          this.formData.createBy = this.$loginInfo.account;
+          this.formData.createDate = this.$getDate("yyyy-mm-dd");
+        });
+  
+        //杞﹂棿涓嬫媺妗嗙殑鍒濆鍖�
+        this.$post({
+          url: "/XJ/getLineAll"
+        }).then(res => {
+          this.lineList = res.data.tbBillList;
+          this.DAA020List = res.data.tbBillList.map(item => item.lineName);
+        })
+      }
+    },
+    methods: {
+      removeXJ() {
+        if (this.formData.id) {
+          this.$post({
+            url: "/RKJ/removeXJ",
+            data: {
+              id: this.formData.id
+            }
+          }).then(res => {
+            if (res.data.tbBillList > 0) {
+              this.$showMessage("鍒犻櫎鎴愬姛");
+              //鍏抽棴褰撳墠椤甸潰锛岃繑鍥炰笂涓�椤甸潰鎴栧绾ч〉闈�
+              uni.navigateBack();
+            } else {
+              this.$showMessage("鍒犻櫎澶辫触");
+            }
+          });
+        } else {
+          this.$showMessage("璇峰厛閫夋嫨妫�楠屽崟鍙�");
+        }
+      },
+      getItem() {
+  
+        if (!this.formData.billNo) {
+          this.$showMessage("璇烽�夋嫨宸ュ崟鍙�");
+          return;
+        }
+  
+        if (this.isSubmit) {
+          this.$showMessage("姝ょ墿鏂欐棤鍚敤鐨勬楠岄」鐩紝璇风淮鎶�!");
+          return;
+        }
+  
+        this.$post({
+          url: "/RKJ/save",
           data: {
-            id: this.formData.id
+            from: this.formData,
+            userNo: this.$loginInfo.account,
+            //moidNum: this.formData.moidNum
+            items: this.tableData
           }
         }).then(res => {
-          if (res.data.tbBillList > 0) {
-            this.$showMessage("鍒犻櫎鎴愬姛");
-            //鍏抽棴褰撳墠椤甸潰锛岃繑鍥炰笂涓�椤甸潰鎴栧绾ч〉闈�
-            uni.navigateBack();
+          this.formData.id = res.data.tbBillList;
+          this.$showMessage("鐢熸垚妫�楠岄」鐩垚鍔�");
+          this.init();
+          this.isUpdate = false;
+        });
+      },
+      //鐢熶骇绾垮埆閫夋嫨骞跺垵濮嬭瘽宸ュ崟鍙�
+      onDaa020Change(event) {
+        //鑾峰彇鐢熶骇绾垮埆鐨勪笅鏍囧湴鍧�
+        this.formData.lineName = event;
+  
+        this.lineNo = this.lineList[this.DAA020List.indexOf(event)].lineNo;
+  
+        this.formData.line = this.lineNo;
+  
+        this.$post({
+          url: "/RKJ/getDaa001",
+          data: {
+            lineNo: this.formData.lineName
+          }
+        }).then(res => {
+          this.BillNoList = res.data.tbBillList;
+          this.DAA001List = res.data.tbBillList.map(s => s.billNo);
+  
+          this.formData.billNo = "";
+          this.formData.mocode = "";
+          this.formData.boardModel = "";
+          this.formData.taskNo = "";
+          this.formData.itemNo = "";
+          this.formData.boardName = "";
+          this.formData.quantity = "";
+          this.tableData = [];
+        })
+      },
+      //閫夊彇宸ュ崟濉厖鐗╂枡鍙峰拰鍏朵粬淇℃伅
+      onDaa001Change(e) {
+  
+        this.formData.billNo = e;
+  
+        let data = this.BillNoList[this.DAA001List.indexOf(e)];
+  
+        //褰撹繑鍥炵殑缁撴灉闆嗕负绌烘椂缃┖鍘熸湁鐨勫��
+        if (!data) {
+          this.formData.billNo = "";
+          this.formData.mocode = "";
+          this.formData.boardModel = "";
+          this.formData.taskNo = "";
+          this.formData.itemNo = "";
+          this.formData.boardName = "";
+          this.formData.quantity = "";
+          this.tableData = [];
+          return;
+        }
+        //涓嶄负绌烘椂璧嬪��
+        this.formData.billNo = data.billNo;
+        this.formData.mocode = data.mocode;
+        this.formData.boardModel = data.boardModel;
+        this.formData.taskNo = data.taskNo;
+        this.formData.itemNo = data.itemNo;
+        this.formData.boardName = data.boardName;
+        this.formData.quantity = data.quantity;
+  
+  
+        this.$post({
+          url: "/RKJ/setJYItem",
+          data: {
+            itemNo: this.formData.itemNo,
+            quantity:this.formData.quantity
+          }
+        }).then(res => {
+          this.tableData = res.data.tbBillList;
+          if (this.tableData.length === 0) {
+            this.$showMessage("璇ョ墿鏂欐潯鐮佹病鏈夋楠岄」鐩�");
+            this.isSubmit = true;
+            this.tableData = [];
           } else {
-            this.$showMessage("鍒犻櫎澶辫触");
+            this.isSubmit = false;
           }
         });
-      } else {
-        this.$showMessage("璇峰厛閫夋嫨妫�楠屽崟鍙�");
-      }
-    },
-    getItem() {
-
-      if (!this.formData.billNo) {
-        this.$showMessage("璇烽�夋嫨閫佹鎵规鍙�");
-        return;
-      }
-
-      if (this.isSubmit) {
-        this.$showMessage("姝ょ墿鏂欐棤鍚敤鐨勬楠岄」鐩紝璇风淮鎶�!");
-        return;
-      }
-
-      this.$post({
-        url: "/RKJ/save",
-        data: {
-          from: this.formData,
-          userNo: this.$loginInfo.account,
-          //moidNum: this.formData.moidNum
-          items: this.tableData
-        }
-      }).then(res => {
-        this.formData.id = res.data.tbBillList;
-        this.$showMessage("鐢熸垚妫�楠岄」鐩垚鍔�");
-        this.init();
-        this.isUpdate = false;
-      });
-    },
-    //鐢熶骇绾垮埆閫夋嫨骞跺垵濮嬭瘽宸ュ崟鍙�
-    onDaa020Change(event) {
-      //鑾峰彇鐢熶骇绾垮埆鐨勪笅鏍囧湴鍧�
-      this.formData.lineName = event;
-
-      this.lineNo = this.lineList[this.DAA020List.indexOf(event)].lineNo;
-
-      this.formData.line = this.lineNo;
-
-      this.$post({
-        url: "/RKJ/getDaa001",
-        data: {
-          lineNo: this.formData.lineName
-        }
-      }).then(res => {
-        this.BillNoList = res.data.tbBillList;
-        this.DAA001List = res.data.tbBillList.map(s => s.billNo);
-
-        this.formData.billNo = "";
-        this.formData.mocode = "";
-        this.formData.boardModel = "";
-        this.formData.taskNo = "";
-        this.formData.itemNo = "";
-        this.formData.boardName = "";
-        this.formData.quantity = "";
-        this.tableData = [];
-      })
-    },
-    //閫夊彇宸ュ崟濉厖鐗╂枡鍙峰拰鍏朵粬淇℃伅
-    onDaa001Change(e) {
-
-      this.formData.billNo = e;
-
-      let data = this.BillNoList[this.DAA001List.indexOf(e)];
-
-      //褰撹繑鍥炵殑缁撴灉闆嗕负绌烘椂缃┖鍘熸湁鐨勫��
-      if (!data) {
-        this.formData.billNo = "";
-        this.formData.mocode = "";
-        this.formData.boardModel = "";
-        this.formData.taskNo = "";
-        this.formData.itemNo = "";
-        this.formData.boardName = "";
-        this.formData.quantity = "";
-        this.tableData = [];
-        return;
-      }
-      //涓嶄负绌烘椂璧嬪��
-      this.formData.billNo = data.billNo;
-      this.formData.mocode = data.mocode;
-      this.formData.boardModel = data.boardModel;
-      this.formData.taskNo = data.taskNo;
-      this.formData.itemNo = data.itemNo;
-      this.formData.boardName = data.boardName;
-      this.formData.quantity = data.quantity;
-
-
-      this.$post({
-        url: "/RKJ/setJYItem",
-        data: {
-          itemNo: this.formData.itemNo,
-          quantity:this.formData.quantity
-        }
-      }).then(res => {
-        this.tableData = res.data.tbBillList;
-        if (this.tableData.length === 0) {
-          this.$showMessage("璇ョ墿鏂欐潯鐮佹病鏈夋楠岄」鐩�");
-          this.isSubmit = true;
-          this.tableData = [];
-        } else {
-          this.isSubmit = false;
-        }
-      });
-    },
-    init() {
-      this.$post({
-        url: "/RKJ/getPage",
-        data: {
-          id: this.formData.id,
-		  createUser: this.$loginInfo.account,
-          pageIndex: 1,
-          limit: 1,
-        }
-      }).then(res => {
-        let data = res.data.tbBillList[0];
-        if (data) {
-          this.formData = data;
-
-          this.$post({
-            url: "/RKJ/getItems",
-            data: {
-              pid: this.formData.id
-            }
-          }).then(res1 => {
-
-            let tableData = res1.data.tbBillList
-
-            //褰撳凡妫�楠屼釜鏁伴兘涓嶄负绌烘椂鎸夌収妫�娴嬬粨鏋勬帓搴�
-            tableData.sort((a, b) => {
-              if (a.result === '鏈畬鎴�' && b.result === '鍚堟牸') {
-                return -1;
-              } else if (a.result === '鍚堟牸' && b.result === '鏈畬鎴�') {
-                return 1;
-              } else {
-                return 0;
+      },
+      init() {
+        this.$post({
+          url: "/RKJ/getPage",
+          data: {
+            id: this.formData.id,
+            createUser: this.$loginInfo.account,
+            pageIndex: 1,
+            limit: 1,
+          }
+        }).then(res => {
+          let data = res.data.tbBillList[0];
+          if (data) {
+            this.formData = data;
+  
+            this.$post({
+              url: "/RKJ/getItems",
+              data: {
+                pid: this.formData.id
               }
-            });
-            this.tableData = tableData;
-
-            if (this.tableData.length === 0) {
-              this.isShowTable = true;
+            }).then(res1 => {
+  
+              let tableData = res1.data.tbBillList
+  
+              //褰撳凡妫�楠屼釜鏁伴兘涓嶄负绌烘椂鎸夌収妫�娴嬬粨鏋勬帓搴�
+              tableData.sort((a, b) => {
+                if (a.result === '鏈畬鎴�' && b.result === '鍚堟牸') {
+                  return -1;
+                } else if (a.result === '鍚堟牸' && b.result === '鏈畬鎴�') {
+                  return 1;
+                } else {
+                  return 0;
+                }
+              });
+              this.tableData = tableData;
+  
+              if (this.tableData.length === 0) {
+                this.isShowTable = true;
+              }
+            })
+          }
+        });
+      },
+      toDetail(item) {
+  
+        if (this.isUpdate) {
+          uni.showToast({
+            icon: "none",
+            title: "璇峰厛鐢熸垚妫�楠岄」鐩�",
+            duration: 2000,
+          });
+        } else {
+          uni.navigateTo({
+            url: 'detail?id=' + item.id + '&billNo=' + this.formData.billNo + '&gid=' + this.formData
+                .id + '&itemInId=' + this.formData.itemInId
+          });
+        }
+      },
+      toImage() {
+        uni.navigateTo({
+          url: 'ImageItem?id=' + this.formData.id
+        });
+      },
+      saveRemarks() {
+        this.showPopup = !this.showPopup;
+        this.remarks = this.formData.remarks;
+      },
+      edit() {
+        if (this.remarks) {
+          //saveRemarksGid
+          this.$post({
+            url: "/RKJ/saveRemarksGid",
+            data: {
+              gid: this.formData.id,
+              remarks: this.remarks
+            }
+          }).then(res => {
+            if(res.data.tbBillList > 0){
+              this.formData.remarks = this.remarks;
+              this.showPopup = !this.showPopup;
+              this.$showMessage("淇濆瓨鎴愬姛");
             }
           })
         }
-      });
-    },
-    toDetail(item) {
-
-      if (this.isUpdate) {
-        uni.showToast({
-          icon: "none",
-          title: "璇峰厛鐢熸垚妫�楠岄」鐩�",
-          duration: 2000,
-        });
-      } else {
-        uni.navigateTo({
-          url: 'detail?id=' + item.id + '&billNo=' + this.formData.billNo + '&gid=' + this.formData
-              .id + '&itemInId=' + this.formData.itemInId
-        });
-      }
-    },
-    toImage() {
-      uni.navigateTo({
-        url: 'ImageItem?id=' + this.formData.id
-      });
-    },
-    saveRemarks() {
-      this.showPopup = !this.showPopup;
-      this.remarks = this.formData.remarks;
-    },
-    edit() {
-      if (this.remarks) {
-        //saveRemarksGid
+      },getTable() {
         this.$post({
-          url: "/RKJ/saveRemarksGid",
+          url: "/RKJ/setJYItem",
           data: {
-            gid: this.formData.id,
-            remarks: this.remarks
+            itemNo: this.formData.itemNo,
+            quantity:this.formData.quantity
           }
         }).then(res => {
-          if(res.data.tbBillList > 0){
-            this.formData.remarks = this.remarks;
-            this.showPopup = !this.showPopup;
-            this.$showMessage("淇濆瓨鎴愬姛");
+  
+          this.tableData = res.data.tbBillList;
+          if (this.tableData.length === 0) {
+            this.$showMessage("璇ョ墿鏂欐潯鐮佹病鏈夋楠岄」鐩�");
+            this.isSubmit = true;
+            this.tableData = [];
+            this.isShowTable = true;
+            this.isUpdate = false;
+          } else {
+            this.isSubmit = false;
+            this.isShowTable = true;
+            this.isUpdate = true;
           }
-        })
-      }
-    },getTable() {
-      this.$post({
-        url: "/RKJ/setJYItem",
-        data: {
-          itemNo: this.formData.itemNo,
-          quantity:this.formData.quantity
-        }
-      }).then(res => {
-
-        this.tableData = res.data.tbBillList;
+        });
+      },
+      saveTable() {
         if (this.tableData.length === 0) {
-          this.$showMessage("璇ョ墿鏂欐潯鐮佹病鏈夋楠岄」鐩�");
-          this.isSubmit = true;
-          this.tableData = [];
-          this.isShowTable = true;
+          return;
+        }
+  
+        this.$post({
+          url: "/RKJ/saveItem",
+          data: {
+            gid: this.formData.id,
+            items: this.tableData,
+            userNo: this.$loginInfo.account
+          }
+        }).then(res => {
+          this.formData.id = res.data.tbBillList;
+          this.isShowTable = false;
           this.isUpdate = false;
-        } else {
-          this.isSubmit = false;
-          this.isShowTable = true;
-          this.isUpdate = true;
-        }
-      });
-    },
-    saveTable() {
-      if (this.tableData.length === 0) {
-        return;
+          this.init();
+        })
+      },
+      cleanResult(){
+          this.$post({
+            url: "/RKJ/cleanReqResult",
+            data: {
+              gid: this.formData.id,
+              userNo: this.$loginInfo.account
+            }
+          }).then(res => {
+              console.log(res);
+              if(res.status == 0){
+                  this.init();
+              }else{
+                  this.$showMessage(res.message);
+              }
+            
+          })
       }
-
-      this.$post({
-        url: "/RKJ/saveItem",
-        data: {
-          gid: this.formData.id,
-          items: this.tableData,
-          userNo: this.$loginInfo.account
-        }
-      }).then(res => {
-        this.formData.id = res.data.tbBillList;
-        this.isShowTable = false;
-        this.isUpdate = false;
-        this.init();
-      })
     },
-	cleanResult(){
-		this.$post({
-		  url: "/RKJ/cleanReqResult",
-		  data: {
-		    gid: this.formData.id,
-		    userNo: this.$loginInfo.account
-		  }
-		}).then(res => {
-			console.log(res);
-			if(res.status == 0){
-				this.init();
-			}else{
-				this.$showMessage(res.message);
-			}
-		  
-		})
-	}
-  },
-  onShow() {
-    //姣忔杩涘叆椤甸潰閮戒細鎵ц鐨勬柟娉�
-    if (this.formData.id) {
-      this.init();
-    }
-  },
-};
-</script>
-
-<style>
-.form-group {
-  display: flex;
-  align-items: center;
-  border-bottom: 1px solid #c9c9c9;
-}
-
-.form-label {
-  margin-bottom: 0;
-  padding: 5px;
-}
-
-.form-input {
-  flex: 1;
-  margin-bottom: 0;
-  padding: 5px;
-}
-
-
-.picker {
-  flex: 1;
-  margin-bottom: 0;
-  padding: 5px;
-  font-size: 12px;
-}
-
-.uni-form-item {
-  display: flex;
-  border-bottom: 1px solid #c9c9c9;
-}
-
-.edit {
-  background-color: white;
-}
-
-/* 榛樿鏍峰紡 */
-.list-container {
-  height: 60vh;
-  /* 璁剧疆鍒楄〃瀹瑰櫒鐨勯珮搴︿负鍓╀綑绌洪棿锛屽苟鍑忓幓琛ㄥ崟瀹瑰櫒鐨勯珮搴� */
-  overflow-y: auto;
-  /* 鍏佽鍒楄〃瀹瑰櫒鍨傜洿婊氬姩 */
-  padding: 10px;
-  /* 鍙�夛細娣诲姞涓�浜涘唴杈硅窛锛屼娇鍒楄〃鍐呭鏇寸編瑙� */
-}
-
-/* 鍦ㄥ皬灞忓箷璁惧涓婏紝閲嶇疆楂樺害涓洪�傚簲灞忓箷 */
-@media (max-width: 768px) {
-  .list-container {
-    height: calc(100vh - 500px);
-    /* 閫傚綋璋冩暣楂樺害 */
+    onShow() {
+      //姣忔杩涘叆椤甸潰閮戒細鎵ц鐨勬柟娉�
+      if (this.formData.id) {
+        this.init();
+      }
+    },
+  };
+  </script>
+  
+  <style>
+  .form-group {
+    display: flex;
+    align-items: center;
+    border-bottom: 1px solid #c9c9c9;
   }
-}
-
-
-.form-container {
-  padding: 10px;
-  /* 鍙�夛細娣诲姞涓�浜涘唴杈硅窛锛屼娇琛ㄥ崟鍐呭鏇寸編瑙� */
-}
-
-.th {
-  background-color: lightskyblue;
-  color: #FFFFFF;
-}
-
-
-.plus-button {
-  line-height: 59px;
-  font-size: 24px;
-  cursor: pointer;
-  z-index: 1000;
-  margin-bottom: 10px;
-}
-
-.overlay {
-  position: fixed;
-  top: 0;
-  left: 0;
-  width: 100%;
-  height: 100%;
-  background-color: rgba(0, 0, 0, 0.5);
-  display: flex;
-  justify-content: center;
-  align-items: center;
-}
-
-.popup {
-  background-color: #fff;
-  padding: 20px;
-  border: 1px solid #ccc;
-  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
-  width: 68vw;
-  /* 璁剧疆瀹藉害涓鸿鍙e搴︾殑80% */
-  height: 25vh;
-  /* 璁剧疆楂樺害涓鸿鍙i珮搴︾殑80% */
-}
-</style>
\ No newline at end of file
+  
+  .form-label {
+    margin-bottom: 0;
+    padding: 5px;
+  }
+  
+  .form-input {
+    flex: 1;
+    margin-bottom: 0;
+    padding: 5px;
+  }
+  
+  
+  .picker {
+    flex: 1;
+    margin-bottom: 0;
+    padding: 5px;
+    font-size: 12px;
+  }
+  
+  .uni-form-item {
+    display: flex;
+    border-bottom: 1px solid #c9c9c9;
+  }
+  
+  .edit {
+    background-color: white;
+  }
+  
+  /* 榛樿鏍峰紡 */
+  .list-container {
+    height: 60vh;
+    /* 璁剧疆鍒楄〃瀹瑰櫒鐨勯珮搴︿负鍓╀綑绌洪棿锛屽苟鍑忓幓琛ㄥ崟瀹瑰櫒鐨勯珮搴� */
+    overflow-y: auto;
+    /* 鍏佽鍒楄〃瀹瑰櫒鍨傜洿婊氬姩 */
+    padding: 10px;
+    /* 鍙�夛細娣诲姞涓�浜涘唴杈硅窛锛屼娇鍒楄〃鍐呭鏇寸編瑙� */
+  }
+  
+  /* 鍦ㄥ皬灞忓箷璁惧涓婏紝閲嶇疆楂樺害涓洪�傚簲灞忓箷 */
+  @media (max-width: 768px) {
+    .list-container {
+      height: calc(100vh - 500px);
+      /* 閫傚綋璋冩暣楂樺害 */
+    }
+  }
+  
+  
+  .form-container {
+    padding: 10px;
+    /* 鍙�夛細娣诲姞涓�浜涘唴杈硅窛锛屼娇琛ㄥ崟鍐呭鏇寸編瑙� */
+  }
+  
+  .th {
+    background-color: lightskyblue;
+    color: #FFFFFF;
+  }
+  
+  
+  .plus-button {
+    line-height: 59px;
+    font-size: 24px;
+    cursor: pointer;
+    z-index: 1000;
+    margin-bottom: 10px;
+  }
+  
+  .overlay {
+    position: fixed;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%;
+    background-color: rgba(0, 0, 0, 0.5);
+    display: flex;
+    justify-content: center;
+    align-items: center;
+  }
+  
+  .popup {
+    background-color: #fff;
+    padding: 20px;
+    border: 1px solid #ccc;
+    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
+    width: 68vw;
+    /* 璁剧疆瀹藉害涓鸿鍙e搴︾殑80% */
+    height: 25vh;
+    /* 璁剧疆楂樺害涓鸿鍙i珮搴︾殑80% */
+  }
+  </style>
\ No newline at end of file

--
Gitblit v1.9.3