The code defines two functions.

  1. dailySendMedicine: This function sends a daily medicine send request to the server. It retrieves the current date and time, storage code, and drug trade code from the scope. It then iterates over the specDataList and sends a GET request to the specified API endpoint with the query parameters. If the response data length is greater than 0, it returns true.

  2. stopSplitSpecSupply: This function stops the split supply of a specific drug. It retrieves the current date and time, storage code, and drug trade code from the scope. It then checks if the dailySendMedicine function returns true. If it does, it displays a prompt message. If not, it sends a PUT request to the specified API endpoint with the necessary data to update the supply package specification. It also sets other parameters such as the operator ID, reason, and memo. If the request is successful, it updates the supply indicator in the scope and performs some additional actions.

The code is related to managing drug specifications and supplies

$scopedailySendMedicine = function var path = apidrugdrug-spec-maintainget-daily-send-medicine; var beginDate = $filterdatenew Date yyyy-MM-dd 000000; var endDate = $filterdatene

原文地址: https://www.cveoy.top/t/topic/iSTW 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录