dedsudiyu 2 dagar sedan
förälder
incheckning
c36b151c3b

+ 8 - 0
pages_hazardousWasteRecycling/api/index.js

@@ -32,6 +32,14 @@ export const hwmsAppWasteOrderWasteDetail = (data) => {
 		data: { ...data }
 	})
 };
+//危废登记添加-前置留痕
+export const hwmsAppRegisterOrderPresign = (data) => {
+	return apiResquest({
+		url: `/hwms/app/registerOrder/presign`,
+		method: 'POST',
+		data: { ...data }
+	})
+};
 //危废登记添加
 export const hwmsAppRegisterOrderAdd = (data) => {
 	return apiResquest({

+ 1 - 1
pages_hazardousWasteRecycling/views/weighingRegistration/addPage.vue

@@ -231,7 +231,7 @@
 										forData3:o,
 										forData4:data.data.wasteOrderDetailItemVos[i].quantity,
 										forData5:self.dialogOptionForList[o].unit,
-										forData6:0,
+										forData6:data.data.wasteOrderDetailItemVos[i].weight?data.data.wasteOrderDetailItemVos[i].weight:0,
 										forList:self.dialogOptionForList,
 									}
 									list.push(JSON.parse(JSON.stringify(obj)))

+ 15 - 1
pages_hazardousWasteRecycling/views/weighingRegistration/confirmation.vue

@@ -25,7 +25,7 @@
 			</view>
 		</view>
 		<view class="flex-null-p"></view>
-		<view class="bottom-button-p" @click="confirmatinButton()">回收人员确认</view>
+		<view class="bottom-button-p" @click="hwmsAppRegisterOrderPresign()">回收人员确认</view>
 	</view>
 </template>
 
@@ -33,6 +33,9 @@
 	import {
 		config
 	} from '@/api/request/config.js'
+	import {
+		hwmsAppRegisterOrderPresign,
+	} from '@/pages_hazardousWasteRecycling/api/index.js'
 	export default {
 		data() {
 			return {
@@ -78,6 +81,17 @@
 					url: "/pages_hazardousWasteRecycling/views/weighingRegistration/signatureListComponent?data=" + encodeURIComponent(JSON.stringify(this.newData))
 				});
 			},
+			//前置留痕
+			async hwmsAppRegisterOrderPresign(){
+				const {
+					data
+				} = await hwmsAppRegisterOrderPresign(this.newData);
+				if (data.code == 200) {
+					uni.navigateTo({
+						url: "/pages_hazardousWasteRecycling/views/weighingRegistration/signatureListComponent?data=" + encodeURIComponent(JSON.stringify(this.newData))
+					});
+				}
+			},
 		},
 	}
 </script>